*** Variables ***
${success_return_code} 0
-${ns_launch_max_wait_time} 5min
${ns_launch_pol_time} 30sec
${ns_delete_max_wait_time} 1min
${ns_delete_pol_time} 15sec
*** Keywords ***
Create Network Service
- [Arguments] ${nsd} ${vim_name} ${ns_name} ${ns_config} ${publickey}
+ [Arguments] ${nsd} ${vim_name} ${ns_name} ${ns_config} ${publickey} ${ns_launch_max_wait_time}=5min
${config_attr} Set Variable If '${ns_config}'!='${EMPTY}' --config '${ns_config}' \
${sshkeys_attr} Set Variable If '${publickey}'!='${EMPTY}' --ssh_keys ${publickey} \
${day_1_file_name} /home/ubuntu/first-touch
${day_2_file_name_1} /home/ubuntu/mytouch1
${day_2_file_name_2} /home/ubuntu/mytouch2
+${ns_timeout} 15min
*** Test Cases ***
Instantiate Charm Network Service
[Tags] charm
- ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey}
+ ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey} ${ns_timeout}
Set Suite Variable ${ns_id} ${id}
${vnf_member_index} 1
${day_1_file_name} /home/ubuntu/first-touch
${day_2_file_name} /home/ubuntu/mytouch1
+${ns_timeout} 15min
*** Test Cases ***
Instantiate Nopasswd Charm Network Service
[Tags] nopasswd
- ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${EMPTY}
+ ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${EMPTY} ${ns_timeout}
Set Suite Variable ${ns_id} ${id}
${vnf_member_index} 1
${vnf_ip_addr} ${EMPTY}
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${wait_guard_for_vm_boot} 50s
# ${ns_config} ${EMPTY}
*** Test Cases ***
Run Keyword If "${status}" == "FAIL" Set Global Variable ${publickey} ${EMPTY}
${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey}
Set Suite Variable ${ns_id} ${id}
-
+ Sleep ${wait_guard_for_vm_boot} Waiting for VM's daemons to be up and running
Get Vnf Ip Address
[Tags] hackfest_multivdu
Test SSH Access
[Tags] hackfest_multivdu
- Sleep 30s Waiting ssh daemon to be up
${status} ${message}= Run Keyword And Ignore Error Variable Should Exist ${privatekey}
Run Keyword If "${status}" == "FAIL" Set Global Variable ${privatekey} ${EMPTY}
Test SSH Connection ${vnf_ip_addr} ${username} ${password} ${privatekey}