From fd2d0db7e2a0a2d27db0cfeac95959dcfb789910 Mon Sep 17 00:00:00 2001 From: janani b Date: Tue, 2 Apr 2019 17:53:56 +0530 Subject: Updating Rest code for AAI resolution This commit includes, i) Updated the SSL based rest connection for different auth support ii) Checked the co-routines based rest connection Issue-ID: CCSDK-692 Change-Id: Ic2fe5e5292c9190670d2a573598d78e94f59efb0 Signed-off-by: janani b --- .../modules/commons/rest-lib/pom.xml | 11 + .../rest/BluePrintRestLibConfiguration.kt | 3 + .../rest/BluePrintRestLibData.kt | 25 +- .../rest/service/BasicAuthRestClientService.kt | 24 +- .../service/BluePrintRestLibPropertyService.kt | 118 ++++++-- .../rest/service/BlueprintWebClientService.kt | 141 ++++++---- .../rest/service/SSLBasicAuthRestClientService.kt | 72 ----- .../rest/service/SSLRestClientService.kt | 125 +++++++++ .../rest/service/TokenAuthRestClientService.kt | 10 +- .../service/BluePrintRestLibPropertyServiceTest.kt | 172 +++++++++++- .../rest/service/RestClientServiceTest.kt | 305 ++++++++++++++++++++- .../rest-lib/src/test/resources/keystore.p12 | Bin 0 -> 2588 bytes 12 files changed, 825 insertions(+), 181 deletions(-) delete mode 100644 ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/SSLBasicAuthRestClientService.kt create mode 100644 ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/SSLRestClientService.kt create mode 100644 ms/blueprintsprocessor/modules/commons/rest-lib/src/test/resources/keystore.p12 (limited to 'ms') diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml index 054f2386e..6809e7968 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml @@ -2,6 +2,7 @@