Update AAI endpoints to /aai/v22 for Honolulu 79/114079/1
authorLasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Wed, 21 Oct 2020 07:54:28 +0000 (10:54 +0300)
committerLasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Wed, 21 Oct 2020 07:54:28 +0000 (10:54 +0300)
 - Update all /aai/v21 references to /aai/v22 for Honolulu - note
   that the previous https://gerrit.onap.org/r/c/ccsdk/cds/+/114057
   was for Guilin only

Issue-ID: CCSDK-2914
Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Change-Id: I8103b12610a9de7263789a0852140f2f0bb09393

16 files changed:
components/model-catalog/blueprint-model/service-blueprint/vFW/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/service-blueprint/vLB/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/service-blueprint/vLB_CDS_Kotlin/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/service-blueprint/vLB_CDS_RESTCONF/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/uat-blueprints/PNF_CDS_RESTCONF/Definitions/resources_definition_types.json
components/model-catalog/blueprint-model/uat-blueprints/PNF_CDS_RESTCONF/Tests/uat.yaml
components/model-catalog/blueprint-model/uat-blueprints/pnf_config/Definitions/resources_definition_types.json
components/model-catalog/resource-dictionary/starter-dictionary/create-md-sal-vnf-param.json
components/model-catalog/resource-dictionary/starter-dictionary/pnf-id.json
components/model-catalog/resource-dictionary/starter-dictionary/pnf-ipaddress-aai.json
components/model-catalog/resource-dictionary/starter-dictionary/vdns_vf_module_id.json
components/model-catalog/resource-dictionary/starter-dictionary/vf-module-assign.json
components/model-catalog/resource-dictionary/starter-dictionary/vnf_assign_aai.json
ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/mock/MockBlueprintWebClientService.kt
ms/blueprintsprocessor/modules/commons/rest-lib/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestClientServiceTest.kt

index 54eeaac..43782a4 100644 (file)
         "properties" : {
           "type" : "JSON",
           "verb" : "GET",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
           "path" : "",
           "input-key-mapping" : {
             "vnf-id" : "vnf-id"
index dec2de7..aee10fe 100644 (file)
@@ -87,7 +87,7 @@
         "properties" : {
           "verb" : "PATCH",
           "type" : "JSON",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
           "payload" : "{\"nm-profile-name\":\"$vf-module-id\"}",
           "path" : "",
           "input-key-mapping" : {
         "properties" : {
           "verb" : "GET",
           "type" : "JSON",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
           "path" : "",
           "input-key-mapping" : {
             "vnf-id" : "vnf-id"
           "headers" : {
             "Content-Type" : "application/merge-patch+json"
           },
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id/vf-modules/vf-module/$vf-module-id",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id/vf-modules/vf-module/$vf-module-id",
           "payload" : "{\r\n\"vf-module-name\":\"${vf-module-name}\", \r\n\"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/${service-instance-id}/service-data/vnfs/vnf/${vnf-id}/vnf-data/vf-modules/vf-module/${vf-module-id}/vf-module-data/vf-module-topology/\"\r\n  \r\n}",
           "path" : "",
           "input-key-mapping" : {
           "headers" : {
             "Content-Type" : "application/merge-patch+json"
           },
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
           "payload" : "{\r\n\"vnf-name\":\"${vnf_name}\", \r\n \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/${service-instance-id}/service-data/vnfs/vnf/${vnf-id}/vnf-data/vnf-topology/\"\r\n}",
           "path" : "",
           "input-key-mapping" : {
index 748b0db..d98aae8 100644 (file)
@@ -87,7 +87,7 @@
         "properties" : {
           "verb" : "PATCH",
           "type" : "JSON",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
           "payload" : "{\"nm-profile-name\":\"$vf-module-id\"}",
           "path" : "",
           "input-key-mapping" : {
         "properties" : {
           "verb" : "GET",
           "type" : "JSON",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
           "path" : "",
           "input-key-mapping" : {
             "vnf-id" : "vnf-id"
index 748b0db..d98aae8 100644 (file)
@@ -87,7 +87,7 @@
         "properties" : {
           "verb" : "PATCH",
           "type" : "JSON",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
           "payload" : "{\"nm-profile-name\":\"$vf-module-id\"}",
           "path" : "",
           "input-key-mapping" : {
         "properties" : {
           "verb" : "GET",
           "type" : "JSON",
-          "url-path" : "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+          "url-path" : "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
           "path" : "",
           "input-key-mapping" : {
             "vnf-id" : "vnf-id"
index ced5dc1..523329d 100644 (file)
         "properties": {
           "type": "JSON",
           "verb": "GET",
-          "url-path": "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+          "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
           "path": "",
           "input-key-mapping": {
             "vnf-id": "vnf-id"
index 58260b3..8cfebdb 100644 (file)
@@ -28,7 +28,7 @@
         "properties" : {
           "type" : "JSON",
           "verb" : "GET",
-          "url-path" : "/aai/v21/network/pnfs/pnf/$pnf-id",
+          "url-path" : "/aai/v22/network/pnfs/pnf/$pnf-id",
           "path" : "/ipaddress-v4-oam",
           "input-key-mapping" : {
             "pnf-id" : "pnf-id"
index 9dfe023..bd005fd 100644 (file)
@@ -157,7 +157,7 @@ external-services:
     expectations:
       - request:
           method: GET
-          path: [ /aai/v21/network/pnfs/pnf, *pnfId]
+          path: [ /aai/v22/network/pnfs/pnf, *pnfId]
           headers:
             Accept: application/json
         response:
index 600f25a..8db0cee 100644 (file)
@@ -28,7 +28,7 @@
         "properties" : {
           "type" : "JSON",
           "verb" : "GET",
-          "url-path" : "/aai/v21/network/pnfs/pnf/$pnf-id",
+          "url-path" : "/aai/v22/network/pnfs/pnf/$pnf-id",
           "path" : "/ipaddress-v4-oam",
           "input-key-mapping" : {
             "pnf-id" : "pnf-id"
index cd8707c..be01c98 100644 (file)
@@ -38,7 +38,7 @@
             "properties": {
                 "verb": "PATCH",
                 "type": "JSON",
-                "url-path": "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
+                "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id/nm-profile-name",
                 "payload": "{\"nm-profile-name\":\"$vf-module-id\"}",
                 "path": "",
                 "input-key-mapping": {
index 70aa5da..895c6a9 100755 (executable)
@@ -17,7 +17,7 @@
       "properties": {
         "verb": "GET",
         "type": "JSON",
-        "url-path": "/aai/v21/network/pnfs/pnf/$pnf-id",
+        "url-path": "/aai/v22/network/pnfs/pnf/$pnf-id",
         "path": "/pnf-name",
         "headers" : {
           "Accept": "application/json",
index c33b6d7..9165d99 100755 (executable)
@@ -13,7 +13,7 @@
       "properties": {
         "type": "JSON",
         "verb": "GET",
-        "url-path": "/aai/v21/network/pnfs/pnf/$pnf-id",
+        "url-path": "/aai/v22/network/pnfs/pnf/$pnf-id",
         "path": "/ipaddress-v4-oam",
         "input-key-mapping": {
           "pnf-id": "pnf-id"
index 303ebb3..75a3484 100644 (file)
@@ -37,7 +37,7 @@
             "properties": {
                 "verb": "GET",
                 "type": "JSON",
-                "url-path": "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+                "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
                 "path": "",
                 "input-key-mapping": {
                     "vnf-id": "vnf-id"
index c672969..9108ef8 100644 (file)
@@ -16,7 +16,7 @@
                 "headers": {
                     "Content-Type": "application/merge-patch+json"
                 },
-                "url-path": "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id/vf-modules/vf-module/$vf-module-id",
+                "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id/vf-modules/vf-module/$vf-module-id",
                 "payload": "{\r\n\"vf-module-name\":\"${vf-module-name}\", \r\n\"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/${service-instance-id}/service-data/vnfs/vnf/${vnf-id}/vnf-data/vf-modules/vf-module/${vf-module-id}/vf-module-data/vf-module-topology/\"\r\n  \r\n}",
                 "path": "",
                 "input-key-mapping": {
index 7297869..133df84 100644 (file)
@@ -16,7 +16,7 @@
                 "headers": {
                     "Content-Type": "application/merge-patch+json"
                 },
-                "url-path": "/aai/v21/network/generic-vnfs/generic-vnf/$vnf-id",
+                "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id",
                 "payload": "{\r\n\"vnf-name\":\"${vnf_name}\", \r\n \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/${service-instance-id}/service-data/vnfs/vnf/${vnf-id}/vnf-data/vnf-topology/\"\r\n}",
                 "path": "",
                 "input-key-mapping": {
index 3160174..86a9ed0 100644 (file)
@@ -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/" +
index f38c188..23ac163 100644 (file)
@@ -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,