# limitations under the License.
*** Settings ***
-Documentation [K8s-03] Simple K8s.
+Documentation [K8s-03] Simple K8s.
Library OperatingSystem
Library String
*** Variables ***
# K8s cluster name and version
-${k8scluster_name} k8s-test
+${k8scluster_name} k8s03
${k8scluster_version} v1
# NS and VNF descriptor package folder and ids
Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
Add K8s Cluster To OSM
- Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} %{VIM_TARGET} %{VIM_MGMT_NET} ${k8scluster_name}
+ Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} %{VIM_TARGET} %{VIM_MGMT_NET} ${k8scluster_name}
Network Service K8s Instance Test
- ${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}
Set Suite Variable ${ns_id} ${id}
Execute Day 2 Operations
- [Documentation] Performs one Day 2 operation per VNF that creates a new file.
+ [Documentation] Performs one Day 2 operation per VNF that creates a new file.
- Variable Should Exist ${ns_id} msg=Network service instance is not available
- ${ns_op_id}= Execute NS K8s Action ${ns_name} ${action_name} ${vnf_member_index} ${kdu_name} application-name=${application_name} customtitle=${customtitle}
+ Variable Should Exist ${ns_id} msg=Network service instance is not available
+ ${ns_op_id}= Execute NS K8s Action ${ns_name} ${action_name} ${vnf_member_index} ${kdu_name} application-name=${application_name} customtitle=${customtitle}
Delete NS K8s Instance Test
[Tags] cleanup
Remove K8s Cluster from OSM
[Tags] cleanup
- Delete K8s Cluster ${k8scluster_name}
+ Delete K8s Cluster ${k8scluster_name}
Delete NS Descriptor Test
[Tags] cleanup
*** Keywords ***
Suite Cleanup
- [Documentation] Test Suit Cleanup: Deleting Descriptor, instance and vim
- Run Keyword If Any Tests Failed Delete NS ${ns_name}
- Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
- Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}
- Run Keyword If Any Tests Failed Delete K8s Cluster ${k8scluster_name}
+ [Documentation] Test Suit Cleanup: Deleting Descriptor, instance and vim
+ Run Keyword If Any Tests Failed Delete NS ${ns_name}
+ Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
+ Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}
+ Run Keyword If Any Tests Failed Delete K8s Cluster ${k8scluster_name}