# NS instance name and configuration
${ns_name} basic_20_manual_vdu_scaling_test
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
# NS instance name and configuration
${ns_name} basic_20_manual_vdu_scaling_test
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
- ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey}
- Set Suite Variable ${ns_id} ${id}
+ ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey}
+ Set Suite Variable ${ns_id} ${id}
- Variable Should Exist ${ns_id} msg=Network service instance is not available
- @{vnfr_list}= Get Ns Vnfr Ids ${ns_id}
- Log List ${vnfr_list}
- Set Suite Variable ${vnf_id} ${vnfr_list}[0]
+ Variable Should Exist ${ns_id} msg=Network service instance is not available
+ @{vnfr_list}= Get Ns Vnfr Ids ${ns_id}
+ Log List ${vnfr_list}
+ Set Suite Variable ${vnf_id} ${vnfr_list}[0]
- @{vdur_list}= Get Vnf Vdur Names ${vnf_id}
- Log List ${vdur_list}
- ${vdurs}= Get Length ${vdur_list}
- Set Suite Variable ${initial_vdur_count} ${vdurs}
+ @{vdur_list}= Get Vnf Vdur Names ${vnf_id}
+ Log List ${vdur_list}
+ ${vdurs}= Get Length ${vdur_list}
+ Set Suite Variable ${initial_vdur_count} ${vdurs}
- @{name_list}= Get Application Names ${ns_name}
- Log List ${name_list}
- Set Suite Variable ${application_list} ${name_list}
+ @{name_list}= Get Application Names ${ns_name}
+ Log List ${name_list}
+ Set Suite Variable ${application_list} ${name_list}
- ${count_duplicated}= Get Length ${application_list}
- Run Keyword Unless ${count_duplicated} == 2 Fail msg=There are not 2 application name in the application list before Scale Out
+ ${count_duplicated}= Get Length ${application_list}
+ Run Keyword Unless ${count_duplicated} == 2 Fail msg=There are not 2 application name in the application list before Scale Out
- Variable Should Exist ${ns_id} msg=Network service instance is not available
- ${ns_op_id}= Execute Manual VNF Scale ${ns_name} ${vnf_member_index} ${scaling_group} SCALE_OUT ${scale_wait_time}
+ Variable Should Exist ${ns_id} msg=Network service instance is not available
+ ${ns_op_id}= Execute Manual VNF Scale ${ns_name} ${vnf_member_index} ${scaling_group} SCALE_OUT ${scale_wait_time}
- Variable Should Exist ${ns_id} msg=Network service instance is not available
- @{vdur_list}= Get Vnf Vdur Names ${vnf_id}
- Log List ${vdur_list}
- ${vdurs}= Get Length ${vdur_list}
- Run Keyword Unless ${vdurs} == ${initial_vdur_count} + 1 Fail msg=There is no new VDU records in the VNF after Scale Out
+ Variable Should Exist ${ns_id} msg=Network service instance is not available
+ @{vdur_list}= Get Vnf Vdur Names ${vnf_id}
+ Log List ${vdur_list}
+ ${vdurs}= Get Length ${vdur_list}
+ Run Keyword Unless ${vdurs} == ${initial_vdur_count} + 1 Fail msg=There is no new VDU records in the VNF after Scale Out
- @{name_list}= Get Application Names ${ns_name}
- Log List ${name_list}
- Set Suite Variable ${application_list} ${name_list}
+ @{name_list}= Get Application Names ${ns_name}
+ Log List ${name_list}
+ Set Suite Variable ${application_list} ${name_list}
- ${count_duplicated}= Get Length ${application_list}
- Run Keyword Unless ${count_duplicated} == 3 Fail msg=There are not 2 application name in the application list after Scale Out
+ ${count_duplicated}= Get Length ${application_list}
+ Run Keyword Unless ${count_duplicated} == 3 Fail msg=There are not 2 application name in the application list after Scale Out
- Variable Should Exist ${ns_id} msg=Network service instance is not available
- ${ns_op_id}= Execute Manual VNF Scale ${ns_name} ${vnf_member_index} ${scaling_group} SCALE_IN
+ Variable Should Exist ${ns_id} msg=Network service instance is not available
+ ${ns_op_id}= Execute Manual VNF Scale ${ns_name} ${vnf_member_index} ${scaling_group} SCALE_IN
- Variable Should Exist ${ns_id} msg=Network service instance is not available
- @{vdur_list}= Get Vnf Vdur Names ${vnf_id}
- Log List ${vdur_list}
- ${vdurs}= Get Length ${vdur_list}
- Run Keyword Unless ${vdurs} == ${initial_vdur_count} Fail msg=There is the same number of VDU records in the VNF after Scale In
+ Variable Should Exist ${ns_id} msg=Network service instance is not available
+ @{vdur_list}= Get Vnf Vdur Names ${vnf_id}
+ Log List ${vdur_list}
+ ${vdurs}= Get Length ${vdur_list}
+ Run Keyword Unless ${vdurs} == ${initial_vdur_count} Fail msg=There is the same number of VDU records in the VNF after Scale In
- @{name_list}= Get Application Names ${ns_name}
- Log List ${name_list}
- Set Suite Variable ${application_list} ${name_list}
+ @{name_list}= Get Application Names ${ns_name}
+ Log List ${name_list}
+ Set Suite Variable ${application_list} ${name_list}
- ${count_duplicated}= Get Length ${application_list}
- Run Keyword Unless ${count_duplicated} == 2 Fail msg=There are not 2 application name in the application list after Scale In
+ ${count_duplicated}= Get Length ${application_list}
+ Run Keyword Unless ${count_duplicated} == 2 Fail msg=There are not 2 application name in the application list after Scale In