Skip to content

Commit 36df262

Browse files
authored
Added additional check OpenAPI version on /openapi endpoint (#906)
Added additional check OpenAPI version on /openapi endpoint Signed-off-by: Paolo Patierno <[email protected]>
1 parent 6ecd031 commit 36df262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/io/strimzi/kafka/bridge/http/OtherServicesIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ void openapiTest(VertxTestContext context) {
117117
assertThat(response.statusCode(), is(HttpResponseStatus.OK.code()));
118118
JsonObject bridgeResponse = response.body();
119119

120+
String version = bridgeResponse.getString("swagger");
121+
assertThat(version, is("2.0"));
122+
120123
Map<String, Object> paths = bridgeResponse.getJsonObject("paths").getMap();
121124
// subscribe, list subscriptions and unsubscribe are using the same endpoint but different methods (-2)
122125
// getTopic and send are using the same endpoint but different methods (-1)

0 commit comments

Comments
 (0)