Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Hernán Carle <pablo.carle@broadcom.com>
  • Loading branch information
Pablo Hernán Carle committed Aug 1, 2023
1 parent dbb2b0d commit c887827
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,7 @@ void givenConnectionIssue_thenFalseAndException() {
)).thenThrow(new RestClientException("resource access exception", new ConnectException("connection exception")));

assertThat(underTest.isAccessible(), is(false));
verify(mockedAppender, atLeast(1)).doAppend(loggingCaptor.capture());
String values = loggedValues();
assertTrue(values.length() > 0);
assertTrue(values.contains("Could not connecto to z/OSMF. Please verify z/OSMF instance is up and running"), values);
assertTrue(values.contains("connection exception"), values);
verify(apimlLogger, times(1)).log("org.zowe.apiml.security.auth.zosmf.connectError", "resource access exception; nested exception is java.net.ConnectException: connection exception");
}

@Test
Expand Down

0 comments on commit c887827

Please sign in to comment.