Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KONG-10: upgrade kong version to 3.7.1 #108

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void checkInstalledRoutes_negative_parameterized(HttpMethod method, URI uri, Str
var result = HTTP_CLIENT.send(httpRequest(method, uri, tenantId), ofString());

assertThat(result.statusCode()).isEqualTo(NOT_FOUND.value());
assertThat(readToMap(result.body())).isEqualTo(Map.of("message", "no Route matched with those values"));
assertThat(readToMap(result.body())).containsEntry("message", "no Route matched with those values");
}

@Test
Expand All @@ -157,7 +157,7 @@ void checkInstalledRoutes_positive_routeIsNotFoundForInvalidModuleId() throws Ex
var result = HTTP_CLIENT.send(httpRequest(GET, uri, TENANT_NAME, "unknown-1.0.0"), ofString());

assertThat(result.statusCode()).isEqualTo(NOT_FOUND.value());
assertThat(readToMap(result.body())).isEqualTo(Map.of("message", "no Route matched with those values"));
assertThat(readToMap(result.body())).containsEntry("message", "no Route matched with those values");
}

private static HttpRequest httpRequest(HttpMethod method, URI uri, String tenant) {
Expand Down Expand Up @@ -285,7 +285,7 @@ private static URI prepareUri(String uri, Map<String, String> queryParams, Objec
}

@Nullable
private static Map<?, ?> readToMap(String responseBodyString) {
private static Map<String, String> readToMap(String responseBodyString) {
return parse(responseBodyString, new TypeReference<>() {});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class KongGatewayExtension implements BeforeAllCallback, AfterAllCallback {

public static final String KONG_GATEWAY_URL_PROPERTY = "kong.gateway.url";
public static final String KONG_DOCKER_IMAGE = "kong:3.4.1-ubuntu";
public static final String KONG_DOCKER_IMAGE = "kong:3.7.1-ubuntu";
public static final String KONG_URL_PROPERTY = "kong.url";

@SuppressWarnings("resource")
Expand Down