Skip to content

Commit

Permalink
[JENKINS-34825] Fixed test for credentials tracking. Fixed dependency…
Browse files Browse the repository at this point in the history
… for testing credentials in Folder.
  • Loading branch information
Dohbedoh committed Mar 6, 2017
1 parent 31d91ea commit 460b252
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions pom.xml
Expand Up @@ -71,6 +71,13 @@
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>cloudbees-folder</artifactId>
<version>5.16</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-aggregator</artifactId>
Expand Down
Expand Up @@ -102,10 +102,9 @@ public void testCredentialsList() throws Exception {
public void testTrackingOfCredential() throws Exception {

P4BaseCredentials credential = new P4PasswordImpl(
CredentialsScope.GLOBAL, "id", "desc:passwd", p4d.getRshPort(),
CredentialsScope.GLOBAL, "testTrackingOfCredential", "desc:passwd", p4d.getRshPort(),
null, "jenkins", "0", "0", null, "jenkins");
SystemCredentialsProvider.getInstance().getCredentials().add(credential);
SystemCredentialsProvider.getInstance().save();

Fingerprint fingerprint = CredentialsProvider.getFingerprintOf(credential);
assertThat("No fingerprint created until first use", fingerprint, nullValue());
Expand Down

0 comments on commit 460b252

Please sign in to comment.