# Get ${HOME} from local machine
home = str(Path.home())
# NS and VNF descriptor package files
-vnfd_pkg1 = 'charm-packages/nscharm_policy_vnf'
-vnfd_pkg2 = 'charm-packages/nscharm_user_vnf'
-nsd_pkg = 'charm-packages/native_charm_ns'
+vnfd_pkg1 = 'nscharm_policy_vnf'
+vnfd_pkg2 = 'nscharm_user_vnf'
+nsd_pkg = 'nscharm_ns'
# NSD and VNFD names in OSM
vnfd_name1 = 'nscharm-policy-vnf'
vnfd_name2 = 'nscharm-user-vnf'
nsd_name = 'nscharm-ns'
# NS Descriptor file
-nsd_file = 'native_charm_nsd.yaml'
+nsd_file = 'nscharm_nsd.yaml'
# NS instance name
ns_name = 'test_nscharm'
# SSH keys to be used
publickey = home + '/.ssh/id_rsa.pub'
privatekey = home + '/.ssh/id_rsa'
# Juju variables
-old_juju_password = 'd55ce8ab4efa59e7f1b865bce53f55ed'
+old_juju_password = 'a5611fc6452349cc6e45705d34c501d4'
*** Test Cases ***
Create Nopasswd Charm VNF Descriptor
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}'
Create Nopasswd Charm NS Descriptor
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
Instantiate Nopasswd Charm Network Service
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${EMPTY} ${ns_timeout}
Set Suite Variable ${ns_id} ${id}
Get Management Ip Addresses
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
${ip_addr} Get Vnf Management Ip Address ${ns_id} ${vnf_member_index}
log ${ip_addr}
Test SSH Access
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
Variable Should Exist ${vnf_ip_addr} msg=IP address of the management VNF is not available
Sleep 30s Waiting ssh daemon to be up
Check Remote Files Created Via Day 1 Operations
[Documentation] The Nopasswd VNF has a Day 1 operation that creates a file named ${day_1_file_name} and performs it without password.
... This test checks whether that files have been created or not.
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
Check If remote File Exists ${vnf_ip_addr} ${username} ${password} ${EMPTY} ${day_1_file_name}
Execute Day 2 Operations
[Documentation] Performs one Day 2 operation that creates a new file, this action is executed without password too.
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
Variable Should Exist ${ns_id} msg=Network service instance is not available
${ns_op_id}= Execute NS Action ${ns_name} ${action_name} ${vnf_member_index} filename=${day_2_file_name}
Check Remote Files Created Via Day 2 Operations
[Documentation] Check whether the file created in the previous test via Day 2 operation exists or not.
- [Tags] nopasswd sanity regression
+ [Tags] nopasswd charm sanity regression
Check If remote File Exists ${vnf_ip_addr} ${username} ${password} ${EMPTY} ${day_2_file_name}
Delete NS Instance
- [Tags] nopasswd sanity regression cleanup
+ [Tags] nopasswd charm sanity regression cleanup
Delete NS ${ns_name}
Delete NS Descriptor
- [Tags] nopasswd sanity regression cleanup
+ [Tags] nopasswd charm sanity regression cleanup
Delete NSD ${nsd_name}
Delete VNF Descriptor
- [Tags] nopasswd sanity regression cleanup
+ [Tags] nopasswd charm sanity regression cleanup
Delete VNFD ${vnfd_name}