Skip to content

Commit

Permalink
fix sonar
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Tabone <andrea.tabone@broadcom.com>
  • Loading branch information
taban03 committed Feb 10, 2025
1 parent dd26183 commit 862ab86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ void thenReturnOk() throws ContainerStatusRetrievalThrowable {
given(cachedApiDocService.getDefaultApiDocForService(serviceId)).willReturn("mockApiDoc");

ResponseEntity<APIService> apiServicesById = underTest.getAPIServicesById(serviceId);
assertEquals(apiServicesById.getStatusCode(), HttpStatus.OK);
assertEquals(HttpStatus.OK, apiServicesById.getStatusCode());
assertNotNull(apiServicesById.getBody());
assertEquals(apiServicesById.getBody().getApiDoc(), "mockApiDoc");
assertEquals(apiServicesById.getBody().getDefaultApiVersion(), "v1");
assertEquals( "mockApiDoc", apiServicesById.getBody().getApiDoc());
assertEquals("v1", apiServicesById.getBody().getDefaultApiVersion());
}

@Test
Expand All @@ -244,7 +244,7 @@ void thenReturnOkWithApiDocNull() throws ContainerStatusRetrievalThrowable {
given(cachedApiDocService.getDefaultApiDocForService(serviceId)).willReturn(null);

ResponseEntity<APIService> apiServicesById = underTest.getAPIServicesById(serviceId);
assertEquals(apiServicesById.getStatusCode(), HttpStatus.OK);
assertEquals(HttpStatus.OK, apiServicesById.getStatusCode());
assertNotNull(apiServicesById.getBody());
assertNull(apiServicesById.getBody().getApiDoc());
}
Expand Down
1 change: 0 additions & 1 deletion api-catalog-ui/frontend/src/actions/user-actions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function login(credentials) {
if (credentials.newPassword) {
showUpdatePassSuccess = true;
}
const dashBoardPath = '/dashboard';
localStorage.setItem('username', credentials.username);
dispatch(success(token, showUpdatePassSuccess));
},
Expand Down

0 comments on commit 862ab86

Please sign in to comment.