diff options
author | Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> | 2020-10-20 18:12:07 +0300 |
---|---|---|
committer | Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> | 2020-10-21 07:37:51 +0000 |
commit | f45e1087ad03c0efe9547319e06df71328fa9c43 (patch) | |
tree | c1a901ef9a1d18e58d3820d048ed07727ae5668b /ms/blueprintsprocessor/modules/commons/rest-lib | |
parent | 6efa4fcf9a7310e5dc4b90f986f031093bc41583 (diff) |
Update AAI endpoints to /aai/v21
- Update all /aai/v14 references to /aai/v21 to resolve certificate
problems in CDS when trying to resolve attribute values with aai-data source
Issue-ID: CCSDK-2914
Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Change-Id: I6b150348b66e93b3d08ceaa49fa997d531ddb0e4
(cherry picked from commit bd6a6482f87626b4f1e49aa12e36e41a2e140168)
Diffstat (limited to 'ms/blueprintsprocessor/modules/commons/rest-lib')
-rw-r--r-- | ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt b/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt index 74e3807f7..f38c188a0 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt @@ -222,7 +222,7 @@ class RestClientServiceTest { val get1 = async(start = CoroutineStart.LAZY) { restClientService.exchangeNB( HttpMethod.GET.name, - "/sample/aai/v14/business/customers", "", headers, + "/sample/aai/v21/business/customers", "", headers, Customer::class.java ).body } @@ -230,7 +230,7 @@ class RestClientServiceTest { val get2 = async(start = CoroutineStart.LAZY) { restClientService.exchangeNB( HttpMethod.GET.name, - "/sample/aai/v14/business/customers", "", headers, + "/sample/aai/v21/business/customers", "", headers, Customer::class.java ).body } @@ -238,7 +238,7 @@ class RestClientServiceTest { val post = async(start = CoroutineStart.LAZY) { restClientService.exchangeNB( HttpMethod.POST.name, - "/sample/aai/v14/business/customers", post1, headers, + "/sample/aai/v21/business/customers", post1, headers, String::class.java ).body } @@ -246,7 +246,7 @@ class RestClientServiceTest { val put = async(start = CoroutineStart.LAZY) { restClientService.exchangeNB( HttpMethod.PUT.name, - "/sample/aai/v14/business/customers", post1, headers, + "/sample/aai/v21/business/customers", post1, headers, String::class.java ).body } @@ -254,7 +254,7 @@ class RestClientServiceTest { val patch = async(start = CoroutineStart.LAZY) { restClientService.exchangeNB( HttpMethod.PATCH.name, - "/sample/aai/v14/business/customers", post1, headers, + "/sample/aai/v21/business/customers", post1, headers, String::class.java ).body } @@ -262,7 +262,7 @@ class RestClientServiceTest { val delete = async(start = CoroutineStart.LAZY) { restClientService.exchangeNB( HttpMethod.DELETE.name, - "/sample/aai/v14/business/customers", "", headers, + "/sample/aai/v21/business/customers", "", headers, String::class.java ).body } @@ -321,7 +321,7 @@ open class SampleController { @GetMapping("/basic") fun getBasic(): String = "Basic request arrived successfully" - @GetMapping("/aai/v14/business/customers") + @GetMapping("/aai/v21/business/customers") fun getAaiCustomers( @RequestHeader(name = "X-TransactionId", required = true) transId: String, @@ -339,7 +339,7 @@ open class SampleController { "}" } - @PostMapping("/aai/v14/business/customers") + @PostMapping("/aai/v21/business/customers") fun postAaiCustomers( @RequestHeader(name = "X-TransactionId", required = true) transId: String, @@ -352,7 +352,7 @@ open class SampleController { return "The message is successfully posted" } - @PutMapping("/aai/v14/business/customers") + @PutMapping("/aai/v21/business/customers") fun putAaiCustomers( @RequestHeader(name = "X-TransactionId", required = true) transId: String, @@ -365,7 +365,7 @@ open class SampleController { return "The put request is success" } - @PatchMapping("/aai/v14/business/customers") + @PatchMapping("/aai/v21/business/customers") fun patchAaiCustomers( @RequestHeader(name = "X-TransactionId", required = true) transId: String, @@ -378,7 +378,7 @@ open class SampleController { return "The patch request is success" } - @DeleteMapping("/aai/v14/business/customers") + @DeleteMapping("/aai/v21/business/customers") fun deleteAaiCustomers( @RequestHeader(name = "X-TransactionId", required = true) transId: String, |