Skip to content

Commit

Permalink
Fixed ConfigProviderTest
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLydonKing committed Feb 29, 2024
1 parent 1751749 commit 369ad91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ loginsvc:
url: "ldaps://some.domain.com:636/"
search-filter: "(samaccountname={1})"
service-account:
account-pattern: "CN=%s,OU=Users,OU=Organization1,DC=my,DC=domain,DC=com"
account-pattern: "CN=%s,OU=Users,OU=CORP Accounts,DC=corp,DC=dsarena,DC=com"
in-config-account:
username: "svc-ldap"
password: "password"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ConfigProviderTest extends AnyFlatSpec with Matchers {
activeDirectoryLDAPConfig.domain shouldBe "some.domain.com"
activeDirectoryLDAPConfig.searchFilter shouldBe "(samaccountname={1})"
activeDirectoryLDAPConfig.order shouldBe 2
activeDirectoryLDAPConfig.serviceAccount.username shouldBe "CN=svc-ldap,OU=Users,OU=CORP Accounts,DC=corp,DC=dsarena,DC=com"
activeDirectoryLDAPConfig.serviceAccount.username shouldBe "CN=%s,OU=Users,OU=CORP Accounts,DC=corp,DC=dsarena,DC=com"
activeDirectoryLDAPConfig.serviceAccount.password shouldBe "password"
activeDirectoryLDAPConfig.attributes shouldBe Some(Map("mail" -> "email", "displayname" -> "displayname"))
}
Expand Down

0 comments on commit 369ad91

Please sign in to comment.