From 03f81b658d4a4ec348c369e75f32750262e87569 Mon Sep 17 00:00:00 2001 From: t-burch Date: Wed, 8 Nov 2023 13:24:24 +0100 Subject: [PATCH] Updated api proxy test to fruitshop v2 Signed-off-by: t-burch --- .../examples/tests/openapi/APIProxyTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/distribution/src/test/java/com/predic8/membrane/examples/tests/openapi/APIProxyTest.java b/distribution/src/test/java/com/predic8/membrane/examples/tests/openapi/APIProxyTest.java index 20a565662a..073453c152 100644 --- a/distribution/src/test/java/com/predic8/membrane/examples/tests/openapi/APIProxyTest.java +++ b/distribution/src/test/java/com/predic8/membrane/examples/tests/openapi/APIProxyTest.java @@ -41,12 +41,12 @@ void api_doc() throws IOException { String andAssert = getAndAssert(200, LOCALHOST_2000 + "/api-docs"); JSONAssert.assertEquals(""" { - "fruitshop-v1-0" : { + "fruitshop-v2-0" : { "openapi" : "3.0.2", "title" : "Fruit Shop API", - "version" : "1.0", - "openapi_link" : "/api-docs/fruitshop-v1-0", - "ui_link" : "/api-docs/ui/fruitshop-v1-0" + "version" : "2.0", + "openapi_link" : "/api-docs/fruitshop-v2-0", + "ui_link" : "/api-docs/ui/fruitshop-v2-0" } } """, andAssert, true); @@ -64,10 +64,10 @@ void apiOverview() throws IOException { @Test void swaggerUi() throws IOException { - String body = getAndAssert(200, LOCALHOST_2000 + "/api-docs/ui/fruitshop-v1-0", ACCEPT_HTML_HEADER); + String body = getAndAssert(200, LOCALHOST_2000 + "/api-docs/ui/fruitshop-v2-0", ACCEPT_HTML_HEADER); assertContains(""" content="SwaggerUI""", body); - assertContains("/api-docs/fruitshop-v1-0", body); + assertContains("/api-docs/fruitshop-v2-0", body); } @Test