Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 7ff5792

Browse files
committed
SECURITY-2189
1 parent 3227f99 commit 7ff5792

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/test/java/com/cloudbees/jenkins/plugins/sshagent/Security2189Test.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,6 @@ public class Security2189Test {
4242
private WorkflowJob job;
4343
private FreeStyleProject project;
4444

45-
@Issue("SECURITY-2189")
46-
@Test
47-
public void doFillCredentialsItemsWhenAdminThenListPopulatedWithNameAndId() throws IOException {
48-
setUpAuthorizationAndWorkflowJob();
49-
initCredentials(SECURE_DATA, TEST_NAME);
50-
51-
try(ACLContext aclContext = ACL.as(User.getOrCreateByIdOrFullName(ADMINISTER_NAME))) {
52-
SSHAgentStep.DescriptorImpl descriptor = (SSHAgentStep.DescriptorImpl) Jenkins.get().getDescriptorOrDie(SSHAgentStep.class);
53-
ListBoxModel secureData = descriptor.doFillCredentialsItems(job);
54-
ListBoxModel expected = new ListBoxModel(new ListBoxModel.Option(TEST_NAME, SECURE_DATA));
55-
56-
assertListBoxModel(secureData, expected);
57-
}
58-
}
59-
6045
@Issue("SECURITY-2189")
6146
@Test
6247
public void doFillCredentialsItemsWhenUserWithoutAnyCredentialsThenListNotPopulated() throws Exception {
@@ -71,21 +56,6 @@ public void doFillCredentialsItemsWhenUserWithoutAnyCredentialsThenListNotPopula
7156
}
7257
}
7358

74-
@Issue("SECURITY-2189")
75-
@Test
76-
public void doFillIdItemsWhenAdminThenListPopulated() throws IOException {
77-
setUpAuthorizationAndFreestyleProject();
78-
initCredentials(SECURE_DATA, TEST_NAME);
79-
80-
try(ACLContext aclContext = ACL.as(User.getOrCreateByIdOrFullName(ADMINISTER_NAME))) {
81-
SSHAgentBuildWrapper.CredentialHolder.DescriptorImpl descriptor = (SSHAgentBuildWrapper.CredentialHolder.DescriptorImpl) Jenkins.get().getDescriptorOrDie(SSHAgentBuildWrapper.CredentialHolder.class);
82-
ListBoxModel secureData = descriptor.doFillIdItems(project);
83-
ListBoxModel expected = new ListBoxModel(new ListBoxModel.Option(TEST_NAME, SECURE_DATA));
84-
85-
assertListBoxModel(secureData, expected);
86-
}
87-
}
88-
8959
@Issue("SECURITY-2189")
9060
@Test
9161
public void doFillIdItemsWhenUserWithoutAnyPermissionThenListNotPopulated() throws Exception {

0 commit comments

Comments
 (0)