summaryrefslogtreecommitdiffstats
path: root/vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml
diff options
context:
space:
mode:
authorMoshe <moshehoa@amdocs.com>2019-01-09 09:40:40 +0200
committerMoshe <moshehoa@amdocs.com>2019-01-09 11:53:20 +0200
commitce6df7403af5694aee412836cd3c86e33307e190 (patch)
treecd9799665cba2c44e517419d4d5570f2198939ff /vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml
parent6affd662a7793fda0be64ee103d7239702b9722b (diff)
refactor input parameters handling
Change-Id: I599be7b0c0f9724f954fb4790dcd7d03538fdcb7 Issue-ID: VNFSDK-350 Signed-off-by: Moshe <moshehoa@amdocs.com> fix test Issue-ID: VNFSDK-350 Change-Id: I8f3c0b80220e88660f0a0d00c1207abd30ed2208 Signed-off-by: Moshe <moshehoa@amdocs.com> fix test Issue-ID: VNFSDK-350 Change-Id: Ica479453d60129ed033dfcf613dbe73bb1c60bd0 Signed-off-by: Moshe <moshehoa@amdocs.com> fix test Issue-ID: VNFSDK-350 Change-Id: If9470517623074708e1c602b4683a958227d16c6 Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml')
-rw-r--r--vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml16
1 files changed, 10 insertions, 6 deletions
diff --git a/vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml b/vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml
index addee64..c58659f 100644
--- a/vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml
+++ b/vnftest/test_config/onap/test_cases/onap_vnftest_instantiate-v1.yaml
@@ -40,7 +40,11 @@ description: >
{% set resource_model_customization_name = resource_model_customization_name or '\"\u007Bresource_model_customization_name\u007D\"' %}
{% set distributed_service_id = distributed_service_id or '\"\u007Bdistributed_service_id\u007D\"' %}
{% set resource_instance_model_name = resource_instance_model_name or '\"\u007Bresource_instance_model_name\u007D\"' %}
+{% set vf_modules = vf_modules or {} %}
{% set vf_modules_list = vf_modules_list or {}%}
+{% set tenant_id = tenant_id or none %}
+{% set tenant_name = tenant_name or none %}
+
steps:
-
@@ -53,10 +57,10 @@ steps:
value: {{cloud_owner}}
-
parameter_name: "tenant_id"
- value: "{context.creds.tenant_id}"
+ value: {{tenant_id}}
-
parameter_name: "tenant_name"
- value: "{context.creds.tenant_name}"
+ value: {{tenant_name}}
runner:
type: Iteration
run_step: "setup,run"
@@ -82,7 +86,7 @@ steps:
value: {{cloud_owner}}
-
parameter_name: "tenant_id"
- value: "{context.creds.tenant_id}"
+ value: {{tenant_id}}
-
type: RestCall
options:
@@ -169,7 +173,7 @@ steps:
value: {{resource_model_customization_name}}
-
parameter_name: "tenant_id"
- value: "{context.creds.tenant_id}"
+ value: {{tenant_id}}
-
parameter_name: "service_model_name"
value: {{service_model_name}}
@@ -216,7 +220,7 @@ steps:
type: Iteration
run_step: "setup,run"
-{% for vf_module_definition in vnf_descriptor.vf_modules %}
+{% for vf_module_definition in vf_modules %}
{% set vf_module = vf_modules_list[vf_module_definition.module_name] %}
{% set vnf_name = ['test_vnf_', rnd, '_', vf_module_definition.module_name ]|join %}
-
@@ -284,7 +288,7 @@ steps:
value: {{vf_module.customizationUUID}}
-
parameter_name: "tenant_id"
- value: "{context.creds.tenant_id}"
+ value: {{tenant_id}}
-
parameter_name: "service_model_name"
value: {{service_model_name}}