summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-10-21 13:12:53 +0000
committerGerrit Code Review <gerrit@onap.org>2020-10-21 13:12:53 +0000
commita6b53aac7ee7c2b201689dc7d0755d9dc3c01083 (patch)
tree6aeaab7b5f042298b3d8b7c3f2ad6c725edd36f0 /ms/blueprintsprocessor
parent94e008c6ed3a9ff9c3adca069208a638f11988f3 (diff)
parent6b84093088b77a10764693760d83541b64e3d784 (diff)
Merge "Update AAI endpoints to /aai/v22 for Honolulu"
Diffstat (limited to 'ms/blueprintsprocessor')
-rw-r--r--ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/mock/MockBlueprintWebClientService.kt2
-rw-r--r--ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt22
2 files changed, 12 insertions, 12 deletions
diff --git a/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/mock/MockBlueprintWebClientService.kt b/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/mock/MockBlueprintWebClientService.kt
index 316017415..86a9ed056 100644
--- a/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/mock/MockBlueprintWebClientService.kt
+++ b/ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/mock/MockBlueprintWebClientService.kt
@@ -40,7 +40,7 @@ class MockBlueprintWebClientService(private var restClientProperties: RestClient
headers = defaultHeaders()
// Create expected requests and responses
- setRequest("GET", "/aai/v21/network/generic-vnfs/generic-vnf/123456")
+ setRequest("GET", "/aai/v22/network/generic-vnfs/generic-vnf/123456")
setRequest(
"GET",
"/config/GENERIC-RESOURCE-API:services/service/10/service-data/vnfs/vnf/123456/" +
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 f38c188a0..23ac1635b 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/v21/business/customers", "", headers,
+ "/sample/aai/v22/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/v21/business/customers", "", headers,
+ "/sample/aai/v22/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/v21/business/customers", post1, headers,
+ "/sample/aai/v22/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/v21/business/customers", post1, headers,
+ "/sample/aai/v22/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/v21/business/customers", post1, headers,
+ "/sample/aai/v22/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/v21/business/customers", "", headers,
+ "/sample/aai/v22/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/v21/business/customers")
+ @GetMapping("/aai/v22/business/customers")
fun getAaiCustomers(
@RequestHeader(name = "X-TransactionId", required = true)
transId: String,
@@ -339,7 +339,7 @@ open class SampleController {
"}"
}
- @PostMapping("/aai/v21/business/customers")
+ @PostMapping("/aai/v22/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/v21/business/customers")
+ @PutMapping("/aai/v22/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/v21/business/customers")
+ @PatchMapping("/aai/v22/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/v21/business/customers")
+ @DeleteMapping("/aai/v22/business/customers")
fun deleteAaiCustomers(
@RequestHeader(name = "X-TransactionId", required = true)
transId: String,