Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Jun 28, 2024
1 parent 1af9ccd commit 21e3630
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ private <T> FireboltAccountRetriever<T> mockAccountRetriever(String path, Class<
@CsvSource({
HTTP_BAD_REQUEST + "," + GENERIC_ERROR_MESSAGE,
HTTP_PAYMENT_REQUIRED + "," + GENERIC_ERROR_MESSAGE,
HTTP_FORBIDDEN + "," + GENERIC_ERROR_MESSAGE,
HTTP_BAD_METHOD + "," + GENERIC_ERROR_MESSAGE,
HTTP_NOT_ACCEPTABLE + "," + GENERIC_ERROR_MESSAGE,
HTTP_PROXY_AUTH + "," + GENERIC_ERROR_MESSAGE,
Expand All @@ -157,8 +156,12 @@ private <T> FireboltAccountRetriever<T> mockAccountRetriever(String path, Class<
HTTP_VERSION + "," + GENERIC_ERROR_MESSAGE,

HTTP_NOT_FOUND + "," + "Account '%s' does not exist",
HTTP_UNAVAILABLE + "," + "Could not query Firebolt at https://test-firebolt.io/web/v3/account/%s/%s. The engine is not running.",
HTTP_UNAUTHORIZED + "," + "Could not query Firebolt at https://test-firebolt.io/web/v3/account/%s/%s. The operation is not authorized"
HTTP_UNAVAILABLE + ","
+ "Could not query Firebolt at https://test-firebolt.io/web/v3/account/%s/%s. The engine is not running.",
HTTP_FORBIDDEN + ","
+ "Could not query Firebolt at https://test-firebolt.io/web/v3/account/%s/%s. The operation is not authorized",
HTTP_UNAUTHORIZED + ","
+ "Could not query Firebolt at https://test-firebolt.io/web/v3/account/%s/%s. The operation is not authorized"
})
void testFailedAccountDataRetrieving(int statusCode, String errorMessageTemplate) throws IOException {
injectMockedResponse(httpClient, statusCode, null);
Expand Down

0 comments on commit 21e3630

Please sign in to comment.