aboutsummaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/test/java/org
diff options
context:
space:
mode:
authorPatrikBuhr <patrik.buhr@est.tech>2020-12-14 13:33:06 +0100
committerPatrikBuhr <patrik.buhr@est.tech>2020-12-14 13:33:47 +0100
commitd7cc059bfce52da57e8cc12e17280641878bce19 (patch)
tree954bcdd6b6e98a4affbb627704ca19ce9cffc9d7 /a1-policy-management/src/test/java/org
parentf28594d423c9da9988d6a23ab49c4e787a5ae089 (diff)
Removing host from genernated doc
Change-Id: If25daa12d270a43928f583d3a5cbc2258bb426d9 Issue-ID: CCSDK-2966 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Diffstat (limited to 'a1-policy-management/src/test/java/org')
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java
index 2170b3c1..5edee150 100644
--- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java
+++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java
@@ -217,7 +217,9 @@ class ApplicationTest {
String url = "https://localhost:" + this.port + "/v2/api-docs";
ResponseEntity<String> resp = restClient("", false).getForEntity(url).block();
assertThat(resp.getStatusCode()).isEqualTo(HttpStatus.OK);
- String indented = (new JSONObject(resp.getBody())).toString(4);
+ JSONObject jsonObj = new JSONObject(resp.getBody());
+ jsonObj.remove("host");
+ String indented = (jsonObj).toString(4);
String docDir = "api/";
Files.createDirectories(Paths.get(docDir));
try (PrintStream out = new PrintStream(new FileOutputStream(docDir + "pms-api.json"))) {