From 87b672d46cd2481261ac3489c567484a41f055e3 Mon Sep 17 00:00:00 2001 From: eleonorali Date: Sun, 11 Feb 2018 16:06:15 +0200 Subject: [PATCH] SRIOV - add annotations add SRIOV - add Full flow Test Change-Id: I82a159490d4be3e7028a5778d72308d951268ff7 Issue-ID: SDC-996 Signed-off-by: eleonorali --- .../features/TOSCA/HeatToToscaTranslation.feature | 47 +++++++++++++++++++++ .../resources/uploads/inputsForNestedHeat.zip | Bin 0 -> 3576 bytes 2 files changed, 47 insertions(+) create mode 100644 openecomp-bdd/resources/uploads/inputsForNestedHeat.zip diff --git a/openecomp-bdd/features/TOSCA/HeatToToscaTranslation.feature b/openecomp-bdd/features/TOSCA/HeatToToscaTranslation.feature index 29d87cd2c2..2757381d91 100644 --- a/openecomp-bdd/features/TOSCA/HeatToToscaTranslation.feature +++ b/openecomp-bdd/features/TOSCA/HeatToToscaTranslation.feature @@ -18,3 +18,50 @@ Feature: Tosca Validation Flow Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip" Then I want to create a VF for this Item + + Scenario: Full - Input parameter annotation validation. + When I want to create a VSP with onboarding type "NetworkPackage" + + Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip" + And I want to process the NetworkPackage file for this VSP + + Then I want to commit this Item + And I want to submit this VSP + And I want to package this VSP + + Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip" + When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context + + Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.type" for value "org.openecomp.annotations.Source" + Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label" to have length 2 + Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[0]" for value "main-heat2" + Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[1]" for value "main-heat1" + Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.param_name" for value "pcm_flavor_name" + + + Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.type" for value "org.openecomp.annotations.Source" + Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label" to have length 1 + Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label[0]" for value "main-heat1" + Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.param_name" for value "sm_server_names" + + Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.type" for value "org.openecomp.annotations.Source" + Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label" to have length 1 + Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label[0]" for value "main-heat2" + Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.param_name" for value "dummy_net_netmask_1" + + When I want to load the yaml content of the entry "Definitions/nested-pcm_v0.1ServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context + Then I want to check property "topology_template.inputs.port_pcm_port_0_network_role.annotations" does not exist + Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist + Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist + + When I want to load the yaml content of the entry "Definitions/nested-pcm_v0.2ServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context + Then I want to check property "topology_template.inputs.port_pcm_port_13_mac_requirements.annotations" does not exist + Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist + Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist + + When I want to load the yaml content of the entry "Definitions/Nested_computeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context + Then I want to check property "topology_template.inputs.compute_compute_user_data_format.annotations" does not exist + Then I want to check property "topology_template.inputs.vm_image_name.annotations" does not exist + Then I want to check property "topology_template.inputs.compute_compute_name.annotations" does not exist + + Then I want to create a VF for this Item \ No newline at end of file diff --git a/openecomp-bdd/resources/uploads/inputsForNestedHeat.zip b/openecomp-bdd/resources/uploads/inputsForNestedHeat.zip new file mode 100644 index 0000000000000000000000000000000000000000..f00ff566559eda659fe00921c0cc39c5b5c8be23 GIT binary patch literal 3576 zcmZ{nc{J2f8^?#S?+P)9?2NHZma;El$S`)wQW{%^3ZW@Pwi#Pv8l2z}b)e4q_(Qyr=Yo_Kkp5S}rt)Up77!Rj?&-%FYbzPkH%W?ch@3eD^A?CXaz@sO zzHSr5put!t0D!pxfrc4X-S1l|wiR;Vm`8~NLgE=l&hYb2;oP=TbvgVJ4;%>@nQ0mL z%rqx!r#sn<{psm$1SXt9yKhN(Bl_0OhXG0*_QFBj;sC3^&Uhz8Xk>#104QSw0670X zW7s*A--2yd@|Y4^J!6ONGEj|G8tWRw-g9Qm{l;0kC|_uD1p#SFj3&N|D4!;`n@#66 zeD}t^6i9{%BewgrCoqXkr4&DTf?y46xtHE& zovqkrDL>M*%)ZUh6FkdGo20|BJvlHXZDbF(zB46bAct@-JeKO-*-;#iyBc2>a!bW^ zI)NkKo3tfea8$)awR8KJ2M}X#I&4G0y=e?u4+(UQ{=DfmN3^Op_}KQ9d+=&{REd_) z8b{37{WJ}ec+cYZgn^{7p}2^ii*;#Fdo8ZlVm`6?__2Tau5^Fz;Y>@;U{WW;sD7MV zx`Y$sH83$bV#WrwS|6^%YPYd9ItyaT$w&MynHco~F5vrUwxEHUG>ub*x{Y-#A1 z!KUBO-gwHQ>WJfYeZxz{_L|zueu3o5*AZk|a_k(l(9Ug@4VRjzN+S4fFt~qEpHEA@ zYW@8KXD$J+flxe2tu^gO;XGm{gEQ{iZXM|3M!n*C1GGOJQ4UfEzolmm?=fZu2{4pS zk(&Fbr$$ZgzCX3Z81ix}V7x6h5q;?0n;EYK;iJ#NhV5Q#I(vU0Vn)Sy9Oum(PDP{W zAjT>`F;>Mkv$QC287)Qarz*<89;Tn=4WR#8nO;#^!cYx+*Q)p9nxJxA=1Vk`o1Y1K zrH>rVby+ekm9=U`)6%)SKg@QxKj=0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