X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=robot-systest%2Ftestsuite%2Fsa_02-vnf_with_vim_metrics_and_autoscaling.robot;h=e769f55a506e73fa17b2ebbb13a3c37fcb9370b5;hb=f25782945b1e3db0a2442c572a5f8607bb42460e;hp=77b87b2f3094233831c65025c3b983d99a9eb919;hpb=4cf45d797499817b5f639bd6245c3f84e762de14;p=osm%2Ftests.git diff --git a/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot b/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot index 77b87b2..e769f55 100644 --- a/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot +++ b/robot-systest/testsuite/sa_02-vnf_with_vim_metrics_and_autoscaling.robot @@ -35,10 +35,11 @@ Suite Teardown Run Keyword And Ignore Error Suite Cleanup ${ns_id} ${EMPTY} ${username} ubuntu ${password} osm4u -${vnf_member_index} 1 +${vnf_member_index} vnf ${vnf_ip_addr} ${EMPTY} ${vnf_id} ${EMPTY} ${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] } +${success_return_code} 0 *** Test Cases *** @@ -47,6 +48,15 @@ Create VNF Descriptor Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}' +Get Scale-Out Threshold From VNF + + ${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-show ${vnfd_name} --literal | yq '.df[0]."scaling-aspect"[0]."scaling-policy"[0]."scaling-criteria"[0]."scale-out-threshold"' | tr -d \\" + Should Be Equal As Integers ${rc} ${success_return_code} msg=${stdout} values=False + ${scaleout_threshold}= Convert To Number ${stdout} + Set Suite Variable ${metric_threshold} ${scaleout_threshold} + log ${metric_threshold} + + Create NS Descriptor Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'