# NS instance name and configuration
${ns_name} basic_20_manual_vdu_scaling_test
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
-${vnf_member_index} 1
+${vnf_member_index} vnf
# SSH public key file
${publickey} %{HOME}/.ssh/id_rsa.pub
# Scaling group name of VDU instances
${scaling_group} manual-scaling_mgmtVM
+${scale_wait_time} 4min
+
*** Test Cases ***
Create VNF Descriptor
Run Keyword Unless ${count_duplicated} == 2 Fail msg=There are not 2 application name in the application list before Scale Out
-Check Number of not Duplicated Application Name Before Scale Out
- [Documentation] Check the application if there is only one application in the Juju model.
-
- ${app_list}= Remove Duplicates ${application_list}
- Log List ${app_list}
- ${count}= Get Length ${app_list}
- Run Keyword Unless 1 == ${count} Fail msg=There is not only 1 application in the Juju model before Scale Out
-
-
Perform Manual Vdu 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
+ ${ns_op_id}= Execute Manual VNF Scale ${ns_name} ${vnf_member_index} ${scaling_group} SCALE_OUT ${scale_wait_time}
Check Vdus After Scale Out
Run Keyword Unless ${count_duplicated} == 3 Fail msg=There are not 2 application name in the application list after Scale Out
-Check Number of not Duplicated Application Name After Scale Out
- [Documentation] Check the application if there is only one application in the Juju model.
-
- ${app_list}= Remove Duplicates ${application_list}
- Log List ${app_list}
- ${count}= Get Length ${app_list}
- Run Keyword Unless 1 == ${count} Fail msg=There is not only 1 application in the Juju model after Scale Out
-
-
Perform Manual Vdu Scale In
Variable Should Exist ${ns_id} msg=Network service instance is not available
Run Keyword Unless ${count_duplicated} == 2 Fail msg=There are not 2 application name in the application list after Scale In
-Check Number of not Duplicated Application Name After Scale In
- [Documentation] Check the application if there is only one application in the Juju model.
-
- ${app_list}= Remove Duplicates ${application_list}
- Log List ${app_list}
- ${count}= Get Length ${app_list}
- Run Keyword Unless 1 == ${count} Fail msg=There is not only 1 application in the Juju model after Scale In
-
-
Delete NS Instance
[Tags] cleanup