feature/implement-external-login-api #30

Merged
kasun merged 32 commits from feature/implement-external-login-api into main 2026-04-09 21:21:58 +02:00
Showing only changes of commit 01fa3e4267 - Show all commits
@@ -193,6 +193,18 @@ class HomeboxIntegrationTest {
} }
} }
@Test
void shouldReturnEmptyCredentialsExceptionWhenCredsAreMissing() {
ConnectionRequest missingCredentials = new ConnectionRequest(MOCK_URL, HOMEBOX.getValue(), TEST_USER, null,
false);
ResponseEntity<String> response = restTemplate.postForEntity(LOGIN.getValue(), missingCredentials,
String.class);
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.BAD_REQUEST);
assertThat(response.getBody()).contains(BAD_REQUEST_EMPTY_FIELDS.getMessage());
}
/** /**
* Creates a valid connection request with a mock Api throuh * Creates a valid connection request with a mock Api throuh
* WireMockRuntimeInfo. * WireMockRuntimeInfo.