From 7f3ac1ec967c0768c3807c1d980e4b6b658d7ec0 Mon Sep 17 00:00:00 2001 From: romaingimbert Date: Fri, 6 Jul 2018 11:54:49 +0200 Subject: adapt NBI to Beijing -change SO Url to "v6" -add xtransactionid in AAI request header -add fields Project and OwningEntity in SO request -fix tests Change-Id: I61f3ef9f99f4d200cc8f04e7f4929dc1fddf130a Issue-ID: EXTAPI-117 Signed-off-by: romaingimbert --- src/test/resources/application.properties | 4 ++++ src/test/resources/mappings/so_delete_service_instance.json | 2 +- src/test/resources/mappings/so_get_.json | 2 +- src/test/resources/mappings/so_post_create_service_instance.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/test/resources') diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index f6df654..1361d42 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -39,11 +39,15 @@ sdc.header.authorization=Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2Y aai.host=http://127.0.0.1:8091 aai.header.authorization=Basic QUFJOkFBSQ== aai.api.id=AAI +aai.header.transaction.id=808b54e3-e563-4144-a1b9-e24e2ed93d4f # SO so.host=http://127.0.0.1:8091 so.header.authorization= so.api.id=SO +so.owning.entity.id=6b5b6b70-4e9a-4f6f-8b7b-cbd7cf990c6e +so.owning.entity.name=OE-generic +so.project.name=Project-generic # H2 spring.datasource.url=jdbc:h2:mem:~/db;DB_CLOSE_ON_EXIT=false diff --git a/src/test/resources/mappings/so_delete_service_instance.json b/src/test/resources/mappings/so_delete_service_instance.json index b294d0b..141b877 100644 --- a/src/test/resources/mappings/so_delete_service_instance.json +++ b/src/test/resources/mappings/so_delete_service_instance.json @@ -1,7 +1,7 @@ { "request": { "method": "DELETE", - "url": "/ecomp/mso/infra/serviceInstances/v4/e4688e5f-61a0-4f8b-ae02-a2fbde623bcb" + "url": "/ecomp/mso/infra/serviceInstances/v6/e4688e5f-61a0-4f8b-ae02-a2fbde623bcb" }, "response": { "status": 202, diff --git a/src/test/resources/mappings/so_get_.json b/src/test/resources/mappings/so_get_.json index 5d4148f..6fc9c9c 100644 --- a/src/test/resources/mappings/so_get_.json +++ b/src/test/resources/mappings/so_get_.json @@ -1,7 +1,7 @@ { "request": { "method": "GET", - "url": "/ecomp/mso/infra/orchestrationRequests/v4/requestId" + "url": "/ecomp/mso/infra/orchestrationRequests/v6/requestId" }, "response": { "status": 200, diff --git a/src/test/resources/mappings/so_post_create_service_instance.json b/src/test/resources/mappings/so_post_create_service_instance.json index f5aaa90..7724860 100644 --- a/src/test/resources/mappings/so_post_create_service_instance.json +++ b/src/test/resources/mappings/so_post_create_service_instance.json @@ -1,7 +1,7 @@ { "request": { "method": "POST", - "url": "/ecomp/mso/infra/serviceInstances/v4" + "url": "/ecomp/mso/infra/serviceInstances/v6" }, "response": { "status": 201, -- cgit 1.2.3-korg