Skip to content

Commit d61991f

Browse files
author
Glover, Rene (rg9975)
committed
remove redirect check in saml test as its moved to ui side
1 parent 0b54c72 commit d61991f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,13 @@ public void testListAndSwitchSAMLAccountCmd() throws Exception {
213213
loginCmdResponse.set2FAenabled("false");
214214
Mockito.when(apiServer.loginUser(nullable(HttpSession.class), nullable(String.class), nullable(String.class),
215215
nullable(Long.class), nullable(String.class), nullable(InetAddress.class), nullable(Map.class))).thenReturn(loginCmdResponse);
216-
Mockito.doNothing().when(resp).sendRedirect(nullable(String.class));
217216
try {
218217
cmd.authenticate("command", params, session, null, HttpUtils.RESPONSE_TYPE_JSON, new StringBuilder(), req, resp);
219218
} catch (ServerApiException exception) {
220219
fail("SAML list and switch account API failed to pass for all valid data: " + exception.getMessage());
221220
} finally {
222221
// accountService should have been called 4 times by now, for this case twice and 2 for cases above
223222
Mockito.verify(accountService, Mockito.times(4)).getUserAccountById(Mockito.anyLong());
224-
Mockito.verify(resp, Mockito.times(1)).sendRedirect(anyString());
225223
}
226224
}
227225

0 commit comments

Comments
 (0)