From 8435a8634844f359fcea2bf030b4c15421dd7a43 Mon Sep 17 00:00:00 2001 From: hongwei Date: Mon, 30 Mar 2020 07:09:44 +0200 Subject: [PATCH] removed personal / company details in the example swagger --- .../scala/code/api/util/ExampleValue.scala | 8 ++++---- .../code/api/v4_0_0/DynamicendPointsTest.scala | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/obp-api/src/main/scala/code/api/util/ExampleValue.scala b/obp-api/src/main/scala/code/api/util/ExampleValue.scala index 1698abecb..9021803ee 100644 --- a/obp-api/src/main/scala/code/api/util/ExampleValue.scala +++ b/obp-api/src/main/scala/code/api/util/ExampleValue.scala @@ -367,11 +367,11 @@ object ExampleValue { | "swagger": "2.0", | "info": { | "version": "0.0.1", - | "title": "Portus EVS sandbox demo API", - | "description": "Portus EVS sandbox demo API", + | "title": "Example Title", + | "description": "Example Description", | "contact": { - | "name": "Digital & FinTech, Grant Thornton", - | "email": "peng.xu@ie.gt.com", + | "name": "Example Company", + | "email": " simon@example.com", | "url": "https://www.tesobe.com/" | } | }, diff --git a/obp-api/src/test/scala/code/api/v4_0_0/DynamicendPointsTest.scala b/obp-api/src/test/scala/code/api/v4_0_0/DynamicendPointsTest.scala index b9fca8dd1..97bbc6e08 100644 --- a/obp-api/src/test/scala/code/api/v4_0_0/DynamicendPointsTest.scala +++ b/obp-api/src/test/scala/code/api/v4_0_0/DynamicendPointsTest.scala @@ -72,9 +72,9 @@ class DynamicEndpointsTest extends V400ServerSetup { responseWithRole.code should equal(201) responseWithRole.body.toString contains("dynamic_endpoint_id") should be (true) responseWithRole.body.toString contains("swagger_string") should be (true) - responseWithRole.body.toString contains("Portus EVS sandbox demo API") should be (true) - responseWithRole.body.toString contains("content user-friendly error message") should be (true) - responseWithRole.body.toString contains("create user successful and return created user object") should be (true) + responseWithRole.body.toString contains("Example Title") should be (true) + responseWithRole.body.toString contains("Example Description") should be (true) + responseWithRole.body.toString contains("Example Company") should be (true) } } @@ -123,9 +123,9 @@ class DynamicEndpointsTest extends V400ServerSetup { val request400 = (v4_0_0_Request / "management" / "dynamic-endpoints").GET<@ (user1) val response400 = makeGetRequest(request400) response400.code should be (200) - response400.body.toString contains("Portus EVS sandbox demo API") should be (true) - response400.body.toString contains("content user-friendly error message") should be (true) - response400.body.toString contains("create user successful and return created user object") should be (true) + response400.body.toString contains("Example Title") should be (true) + response400.body.toString contains("Example Description") should be (true) + response400.body.toString contains("Example Company") should be (true) } } @@ -179,9 +179,9 @@ class DynamicEndpointsTest extends V400ServerSetup { response400.code should be (200) response400.body.toString contains("dynamic_endpoint_id") should be (true) response400.body.toString contains("swagger_string") should be (true) - response400.body.toString contains("Portus EVS sandbox demo API") should be (true) - response400.body.toString contains("content user-friendly error message") should be (true) - response400.body.toString contains("create user successful and return created user object") should be (true) + response400.body.toString contains("Example Title") should be (true) + response400.body.toString contains("Example Description") should be (true) + response400.body.toString contains("Example Company") should be (true) } }