projects
/
osm
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 2198 - NBI authentication uses fix username, password and project
[osm/tests.git]
/
robot-systest
/
testsuite
/
slice_02-shared_network_slicing.robot
diff --git
a/robot-systest/testsuite/slice_02-shared_network_slicing.robot
b/robot-systest/testsuite/slice_02-shared_network_slicing.robot
index
0595480
..
869eb45
100644
(file)
--- a/
robot-systest/testsuite/slice_02-shared_network_slicing.robot
+++ b/
robot-systest/testsuite/slice_02-shared_network_slicing.robot
@@
-13,7
+13,7
@@
# limitations under the License.
*** Settings ***
# limitations under the License.
*** Settings ***
-Documentation
[SLICE-02] Shared Network Slicing.
+Documentation [SLICE-02] Shared Network Slicing.
Library OperatingSystem
Library String
Library OperatingSystem
Library String
@@
-93,23
+93,23
@@
Network Slice First Instance
[Documentation] Instantiates the First NST recently onboarded (nst_name) and sets the instantiation id as a suite variable (nsi_id)
... The slice contains 3 NS (1 shared)
[Documentation] Instantiates the First NST recently onboarded (nst_name) and sets the instantiation id as a suite variable (nsi_id)
... The slice contains 3 NS (1 shared)
- ${id}= Create Network Slice
${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey}
+ ${id}= Create Network Slice ${nst_name} %{VIM_TARGET} ${slice_name} ${nst_config} ${publickey}
Set Suite Variable ${nsi_id} ${id}
Network Slice Second Instance
Set Suite Variable ${nsi_id} ${id}
Network Slice Second Instance
-
[Documentation] Instantiates the Second NST recently onboarded (nst2_name) and sets the instantiation id as a suite variable (nsi2_id)
+ [Documentation] Instantiates the Second NST recently onboarded (nst2_name) and sets the instantiation id as a suite variable (nsi2_id)
... The slice contains 2 NS (1 shared)
... The slice contains 2 NS (1 shared)
- ${id}= Create Network Slice
${nst2_name} %{VIM_TARGET} ${slice2_name} ${nst_config} ${publickey}
+ ${id}= Create Network Slice ${nst2_name} %{VIM_TARGET} ${slice2_name} ${nst_config} ${publickey}
Set Suite Variable ${nsi2_id} ${id}
First Network Slice Ns Count
[Documentation] Counts the NS in both slice instances and shoul be equal to 4
Set Suite Variable ${nsi2_id} ${id}
First Network Slice Ns Count
[Documentation] Counts the NS in both slice instances and shoul be equal to 4
- ${slice1_count}= Get Slice Ns Count
${slice_name}
- ${slice2_count}= Get Slice Ns Count
${slice2_name}
+ ${slice1_count}= Get Slice Ns Count ${slice_name}
+ ${slice2_count}= Get Slice Ns Count ${slice2_name}
${together}= Evaluate ${slice1_count} + ${slice2_count}
Should Be Equal As Integers ${together} 4
${together}= Evaluate ${slice1_count} + ${slice2_count}
Should Be Equal As Integers ${together} 4
@@
-119,7
+119,7
@@
Get Middle Vnf Management Ip
${middle_ns_id}= Run and Return RC and Output osm ns-list | grep ${middle_ns_name} | awk '{print $4}' 2>&1
${vnf_ip} Get Vnf Management Ip Address ${middle_ns_id}[1] ${vnf_member_index}
${middle_ns_id}= Run and Return RC and Output osm ns-list | grep ${middle_ns_name} | awk '{print $4}' 2>&1
${vnf_ip} Get Vnf Management Ip Address ${middle_ns_id}[1] ${vnf_member_index}
- Run Keyword If '${vnf_ip}' == '${EMPTY}'
Fatal Error
Variable \$\{ vnf_ip\} Empty
+ Run Keyword If '${vnf_ip}' == '${EMPTY}'
Fatal Error
Variable \$\{ vnf_ip\} Empty
Set Suite Variable ${mgmt_vnf_ip} ${vnf_ip}
Set Suite Variable ${mgmt_vnf_ip} ${vnf_ip}
@@
-137,21
+137,21
@@
Test Middle Ns Ping
Sleep 60s Waiting for the network to be up
# Ping to the middle VNF
Sleep 60s Waiting for the network to be up
# Ping to the middle VNF
- Test Connectivity ${mgmt_vnf_ip}
+ Test Connectivity
${mgmt_vnf_ip}
Test Middle Vnf SSH Access
[Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file
Sleep 30s Waiting ssh daemon to be up
Test Middle Vnf SSH Access
[Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file
Sleep 30s Waiting ssh daemon to be up
- Test SSH Connection
${mgmt_vnf_ip} ${username} ${password}
${privatekey}
+ Test SSH Connection
${mgmt_vnf_ip} ${username} ${password}
${privatekey}
Test First Slice Connectivity
[Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file
Test First Slice Connectivity
[Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file
- ...
and pings all the IP addresses in the list (slice1_vnfs_ips)
+ ... and pings all the IP addresses in the list (slice1_vnfs_ips)
- Ping Many ${mgmt_vnf_ip}
${username} ${password}
${privatekey} @{slice1_vnfs_ips}
+ Ping Many ${mgmt_vnf_ip}
${username} ${password}
${privatekey} @{slice1_vnfs_ips}
Delete Slice One Instance
Delete Slice One Instance
@@
-164,9
+164,9
@@
Delete Slice One Instance
Second Network Slice Ns Count
[Documentation] Counts the NS in both slice instances and should be equal to 2
Second Network Slice Ns Count
[Documentation] Counts the NS in both slice instances and should be equal to 2
-
- ${slice1_count}= Get Slice Ns Count
${slice_name}
- ${slice2_count}= Get Slice Ns Count
${slice2_name}
+
+ ${slice1_count}= Get Slice Ns Count ${slice_name}
+ ${slice2_count}= Get Slice Ns Count ${slice2_name}
${together}= Evaluate ${slice1_count} + ${slice2_count}
Should Be Equal As Integers ${together} 2
${together}= Evaluate ${slice1_count} + ${slice2_count}
Should Be Equal As Integers ${together} 2
@@
-181,9
+181,9
@@
Get Second Slice Vnf IPs
Test Second Slice Connectivity
[Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file
Test Second Slice Connectivity
[Documentation] SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file
- ...
and pings all the IP addresses in the list (slice2_vnfs_ips)
+ ... and pings all the IP addresses in the list (slice2_vnfs_ips)
- Ping Many ${mgmt_vnf_ip}
${username} ${password}
${privatekey} @{slice2_vnfs_ips}
+ Ping Many ${mgmt_vnf_ip}
${username} ${password}
${privatekey} @{slice2_vnfs_ips}
Delete Slice Two Instance
Delete Slice Two Instance
@@
-230,19
+230,18
@@
Delete VNF Descriptors
*** Keywords ***
Suite Cleanup
*** Keywords ***
Suite Cleanup
- [Documentation] Test Suit Cleanup: Deleting Descriptors, instance and templates
-
- Run Keyword If Any Tests Failed Delete NSI ${slice_name}
- Run Keyword If Any Tests Failed Delete NSI ${slice2_name}
+ [Documentation] Test Suit Cleanup: Deleting Descriptors, instance and templates
- Run Keyword If Any Tests Failed
Delete NST ${nst
_name}
- Run Keyword If Any Tests Failed
Delete NST ${nst
2_name}
+ Run Keyword If Any Tests Failed
Delete NSI ${slice
_name}
+ Run Keyword If Any Tests Failed
Delete NSI ${slice
2_name}
- Run Keyword If Any Tests Failed
Delete NSD ${nsd1
_name}
- Run Keyword If Any Tests Failed
Delete NSD ${nsd
2_name}
+ Run Keyword If Any Tests Failed
Delete NST ${nst
_name}
+ Run Keyword If Any Tests Failed
Delete NST ${nst
2_name}
- Run Keyword If Any Tests Failed
Delete VNFD ${vnf
d1_name}
- Run Keyword If Any Tests Failed
Delete VNFD ${vnf
d2_name}
+ Run Keyword If Any Tests Failed
Delete NSD ${ns
d1_name}
+ Run Keyword If Any Tests Failed
Delete NSD ${ns
d2_name}
+ Run Keyword If Any Tests Failed Delete VNFD ${vnfd1_name}
+ Run Keyword If Any Tests Failed Delete VNFD ${vnfd2_name}