Skip to content

Commit aa02e30

Browse files
committed
saml: fix tests and update method signature that generates random certs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 249446d commit aa02e30

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/user-authenticators/saml2/test/org/apache/cloudstack/api/command/GetServiceProviderMetaDataCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void testAuthenticate() throws NoSuchFieldException, SecurityException, I
7171

7272
String spId = "someSPID";
7373
String url = "someUrl";
74-
X509Certificate cert = SAMLUtils.generateRandomX509Certification();
74+
X509Certificate cert = SAMLUtils.generateRandomX509Certificate();
7575
Mockito.when(samlAuthManager.getServiceProviderId()).thenReturn(spId);
7676
Mockito.when(samlAuthManager.getIdpSigningKey()).thenReturn(cert);
7777
Mockito.when(samlAuthManager.getIdpSingleLogOutUrl()).thenReturn(url);

plugins/user-authenticators/saml2/test/org/apache/cloudstack/api/command/SAML2LoginAPIAuthenticatorCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void testAuthenticate() throws Exception {
133133

134134
String spId = "someSPID";
135135
String url = "someUrl";
136-
X509Certificate cert = SAMLUtils.generateRandomX509Certification();
136+
X509Certificate cert = SAMLUtils.generateRandomX509Certificate();
137137
Mockito.when(samlAuthManager.getServiceProviderId()).thenReturn(spId);
138138
Mockito.when(samlAuthManager.getIdpSigningKey()).thenReturn(null);
139139
Mockito.when(samlAuthManager.getIdpSingleSignOnUrl()).thenReturn(url);

plugins/user-authenticators/saml2/test/org/apache/cloudstack/api/command/SAML2LogoutAPIAuthenticatorCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void testAuthenticate() throws Exception {
7373

7474
String spId = "someSPID";
7575
String url = "someUrl";
76-
X509Certificate cert = SAMLUtils.generateRandomX509Certification();
76+
X509Certificate cert = SAMLUtils.generateRandomX509Certificate();
7777
Mockito.when(samlAuthManager.getServiceProviderId()).thenReturn(spId);
7878
Mockito.when(samlAuthManager.getIdpSigningKey()).thenReturn(cert);
7979
Mockito.when(samlAuthManager.getIdpSingleLogOutUrl()).thenReturn(url);

0 commit comments

Comments
 (0)