From dadd0e69a24c6a43534086cb04672dc6d4ddc18b Mon Sep 17 00:00:00 2001 From: krzysztof kuzmicki Date: Wed, 31 Jul 2019 20:08:36 +0200 Subject: ROBOT test cases improvements for PnP PNF in El Alto release Issue-ID: INT-1179 Signed-off-by: Krzysztof Kuzmicki Change-Id: I7b840e4fa53c9058d74872cbaf3e1922651b7997 --- .../templates/openstack/keystone_get_v3_auth.jinja | 2 +- robot/assets/templates/sdc/catalog_resource.jinja | 2 +- robot/assets/templates/sdc/catalog_service.jinja | 2 +- robot/assets/templates/so/service_recipe.jinja | 22 ++++++++++++++++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 robot/assets/templates/so/service_recipe.jinja (limited to 'robot/assets/templates') diff --git a/robot/assets/templates/openstack/keystone_get_v3_auth.jinja b/robot/assets/templates/openstack/keystone_get_v3_auth.jinja index 30b15568..0d827a85 100644 --- a/robot/assets/templates/openstack/keystone_get_v3_auth.jinja +++ b/robot/assets/templates/openstack/keystone_get_v3_auth.jinja @@ -6,7 +6,7 @@ ], "password": { "user": { - "name": "{{username}", + "name": "{{username}}", "domain": { "id": "{{domain_id}}" }, diff --git a/robot/assets/templates/sdc/catalog_resource.jinja b/robot/assets/templates/sdc/catalog_resource.jinja index 6839beda..5cab07f6 100644 --- a/robot/assets/templates/sdc/catalog_resource.jinja +++ b/robot/assets/templates/sdc/catalog_resource.jinja @@ -37,7 +37,7 @@ "properties": [], "attributes": [], "groups": [], - "resourceType": "VF", + "resourceType": "{{resource_type}}", "csarUUID": "{{software_product_id}}", "csarVersion": "1.0" } \ No newline at end of file diff --git a/robot/assets/templates/sdc/catalog_service.jinja b/robot/assets/templates/sdc/catalog_service.jinja index 09c56301..64a71ada 100644 --- a/robot/assets/templates/sdc/catalog_service.jinja +++ b/robot/assets/templates/sdc/catalog_service.jinja @@ -37,6 +37,6 @@ "forwardingPaths": {}, "ecompGeneratedNaming": true, "serviceApiArtifacts": {}, - "instantiationType": "A-la-carte", + "instantiationType": "{{instantiation_type}}", "environmentContext": "General_Revenue-Bearing" } \ No newline at end of file diff --git a/robot/assets/templates/so/service_recipe.jinja b/robot/assets/templates/so/service_recipe.jinja new file mode 100644 index 00000000..c7c3ebc8 --- /dev/null +++ b/robot/assets/templates/so/service_recipe.jinja @@ -0,0 +1,22 @@ +{ + "id" : "{{id}}", + "serviceModelUUID" : "{{service_model_UUID}}" , + "action" : "createInstance", + "description" : "Vnf api recipe to create service-instance", + "orchestrationUri" : "{{orchestrationUri}}", + "paramXsd" : null, + "recipeTimeout" : 180, + "serviceTimeoutInterim" : null, + "created" : "2017-10-05T18:52:03.000+0000", + "_links" : { + "self" : { + "href" : "http://so-catalog-db-adapter:8082/serviceRecipe/{{id}}" + }, + "serviceRecipe" : { + "href" : "http://so-catalog-db-adapter:8082/serviceRecipe/{{id}}" + }, + "service" : { + "href" : "http://so-catalog-db-adapter:8082/serviceRecipe/{{id}}/service" + } + } + } \ No newline at end of file -- cgit 1.2.3-korg