-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Tests to accommodate new config
- Loading branch information
1 parent
d927cdf
commit 7c7a481
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,9 @@ class ConfigProviderTest extends AnyFlatSpec with Matchers { | |
|
||
"The jwtConfig properties" should "Match" in { | ||
val jwtConfig: JwtConfig = configProvider.getJWTConfig | ||
assert(jwtConfig.algName == "RS256" && | ||
jwtConfig.expTime == 4) | ||
val inMemoryConfig = jwtConfig.generateInMemory.get | ||
assert(inMemoryConfig.algName == "RS256" && | ||
inMemoryConfig.expTime == 4) | ||
} | ||
|
||
"The ldapConfig properties" should "Match" in { | ||
|
@@ -55,8 +56,8 @@ class ConfigProviderTest extends AnyFlatSpec with Matchers { | |
usersConfig.knownUsers(0).username == "user1") | ||
|
||
assert(usersConfig.knownUsers(1).groups(0) == "group2" && | ||
usersConfig.knownUsers(1).email == Some("[email protected]") && | ||
usersConfig.knownUsers(1).displayname == Some("User Two") && | ||
usersConfig.knownUsers(1).email.contains("[email protected]") && | ||
usersConfig.knownUsers(1).displayname.contains("User Two") && | ||
usersConfig.knownUsers(1).password == "password2" && | ||
usersConfig.knownUsers(1).username == "user2") | ||
} | ||
|