Skip to content

Commit

Permalink
Update the integration test for active-directory (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcojfernandez authored Feb 13, 2020
1 parent 39c0bb1 commit 165f356
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
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());

}
}

0 comments on commit 165f356

Please sign in to comment.