Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the integration test for active-directory #1274

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update the integration test for active-directory
  • Loading branch information
fcojfernandez committed Feb 13, 2020
commit 735d02c22f4ab762f0dc3c5897df834058cb2cb0
6 changes: 3 additions & 3 deletions demos/active-directory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jenkins:
site: "site"
bindName: "admin"
bindPassword: "${BIND_PASSWORD}"
tlsConfiguration: JDK_TRUSTSTORE
groupLookupStrategy: "RECURSIVE"
removeIrrelevantGroups: true
customDomain: true
cache:
size: 4096
ttl: 30
size: 500
ttl: 600
startTls: true
tlsConfiguration: JDK_TRUSTSTORE
internalUsersDatabase:
jenkinsInternalUser: "jenkins"
```
2 changes: 1 addition & 1 deletion integrations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>active-directory</artifactId>
<version>2.6</version>
<version>2.16</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.junit.rules.RuleChain;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

/**
Expand Down Expand Up @@ -38,5 +39,9 @@ public void configure_active_directory() throws Exception {

assertTrue(realm.removeIrrelevantGroups);
assertTrue(realm.startTls);
assertNotNull(realm.getCache());
assertEquals(500, realm.getCache().getSize());
assertEquals(600, realm.getCache().getTtl());

}
}