@@ -42,21 +42,6 @@ public class Security2189Test {
42
42
private WorkflowJob job ;
43
43
private FreeStyleProject project ;
44
44
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
-
60
45
@ Issue ("SECURITY-2189" )
61
46
@ Test
62
47
public void doFillCredentialsItemsWhenUserWithoutAnyCredentialsThenListNotPopulated () throws Exception {
@@ -71,21 +56,6 @@ public void doFillCredentialsItemsWhenUserWithoutAnyCredentialsThenListNotPopula
71
56
}
72
57
}
73
58
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
-
89
59
@ Issue ("SECURITY-2189" )
90
60
@ Test
91
61
public void doFillIdItemsWhenUserWithoutAnyPermissionThenListNotPopulated () throws Exception {
0 commit comments