+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# NS and VNF descriptor package folder
-vnfd_pkg = 'ubuntu_cloudinit_vnf'
-nsd_pkg = 'ubuntu_cloudinit_ns'
-# NS and VNF descriptor id
-vnfd_name = 'ubuntu_cloudinit-vnf'
-nsd_name = 'ubuntu_cloudinit-ns'
-# NS instance name
-ns_name = 'basic_05_instantiation_params_cloud_init'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'charm-packages/ha_proxy_charm_vnf'
-nsd_pkg = 'charm-packages/ha_proxy_charm_ns'
-# NS and VNF descriptor id
-vnfd_name = 'ha_proxy_charm-vnf'
-nsd_name = 'ha_proxy_charm-ns'
-# NS instance name
-ns_name = 'basic_06_charm_test'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# NS and VNF descriptor package folder
-vnfd_pkg = 'charm-packages/nopasswd_proxy_charm_vnf'
-nsd_pkg = 'charm-packages/nopasswd_proxy_charm_ns'
-# NS and VNF descriptor id
-vnfd_name = 'nopasswd_proxy_charm-vnf'
-nsd_name = 'nopasswd_proxy_charm-ns'
-# NS instance name
-ns_name = 'basic_07_secure_key_management'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_basic_metrics_vnf'
-nsd_pkg = 'hackfest_basic_metrics_ns'
-# NS and VNF descriptor id
-vnfd_name = 'hackfest_basic_metrics-vnf'
-nsd_name = 'hackfest_basic-ns-metrics'
-# NS instance name
-ns_name = 'basic_09_manual_scaling_test'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'charm-packages/native_charm_vnf'
-nsd_pkg = 'charm-packages/native_charm_ns'
-# NS and VNF descriptor id
-vnfd_name = 'native_charm-vnf'
-nsd_name = 'native_charm-ns'
-# NS instance name
-ns_name = 'basic_11_native_charms'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Copyright 2020 Canonical Ltd.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package files
-vnfd_pkg1 = 'nscharm_policy_vnf'
-vnfd_pkg2 = 'nscharm_user_vnf'
-nsd_pkg = 'nscharm_ns'
-new_nsd_pkg = 'new_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 = '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 = 'a5611fc6452349cc6e45705d34c501d4'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg1 = 'charm-packages/ns_relations_provides_vnf'
-vnfd_pkg2 = 'charm-packages/ns_relations_requires_vnf'
-nsd_pkg = 'charm-packages/ns_relations_ns'
-# NS and VNF descriptor id
-vnfd_name1 = 'ns_relations_provides-vnf'
-vnfd_name2 = 'ns_relations_requires-vnf'
-nsd_name = 'ns_relations-ns'
-# NS instance name
-ns_name = 'basic_13_ns_relations_test'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'charm-packages/vnf_relations_vnf'
-nsd_pkg = 'charm-packages/vnf_relations_ns'
-# NS and VNF descriptor id
-vnfd_name = 'vnf_relations-vnf'
-nsd_name = 'vnf_relations-ns'
-# NS instance name
-ns_name = 'basic_14_vnf_relations_test'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# User, project and roles to use
-user_name = 'basic_15_test_user'
-user_password = 'basic_15_user_pass'
-user_role = 'project_user'
-user_project = 'admin'
-project_name = 'basic_15_test_project'
-new_project_name = 'basic_15_project_test'
-role_name = 'test_role'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_basic_metrics_vnf'
-nsd_pkg = 'hackfest_basic_metrics_ns'
-# NS and VNF descriptor id
-vnfd_name = 'hackfest_basic_metrics-vnf'
-nsd_name = 'hackfest_basic-ns-metrics'
-# NS instance name
-ns_name = 'basic_16'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
-# Initial, delta, min and max number of VDU instances
-init_instances = 3
-min_instances = 3
-max_instances = 5
-delta_instances = 2
-
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_basic_vnf'
-nsd_pkg = 'hackfest_basic_ns'
-# NS and VNF descriptor package id
-vnfd_name = 'hackfest_basic-vnf'
-nsd_name = 'hackfest_basic-ns'
-
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_basic_sriov_vnf'
-nsd_pkg = 'hackfest_basic_sriov_ns'
-# NS and VNF descriptor id
-vnfd_name = 'hackfest_basic_sriov-vnf'
-nsd_name = 'hackfest_basic_sriov-ns'
-# NS instance name
-ns_name = 'epa_01-epa_sriov_test'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'epa_quota_vnf'
-nsd_pkg = 'epa_quota_ns'
-# NS and VNF descriptor id
-vnfd_name = 'epa_quota-vnf'
-nsd_name = 'epa_quota-ns'
-# NS instance name
-ns_name = 'epa_02-epa_quota_test'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'epa_1vm_sriov_vnf'
-nsd_pkg = 'epa_1vm_sriov_ns'
-# NS and VNF descriptor id
-vnfd_name = 'epa_1vm_sriov-vnf'
-nsd_name = 'epa_1vm_sriov-ns'
-# NS instance name
-ns_name = 'epa_04'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
-# Fixed IPs and subnet for datanet VL
-datanet_subnet = '192.168.100.0/24'
-datanet_ip1 = '192.168.100.11'
-datanet_ip2 = '192.168.100.22'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'epa_1vm_passthrough_vnf'
-nsd_pkg = 'epa_1vm_passthrough_ns'
-# NS and VNF descriptor id
-vnfd_name = 'epa_1vm_passthrough-vnf'
-nsd_name = 'epa_1vm_passthrough-ns'
-# NS instance name
-ns_name = 'epa_05'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
-# Fixed IPs and subnet for datanet VL
-datanet_subnet = '192.168.110.0/24'
-datanet_ip1 = '192.168.110.11'
-datanet_ip2 = '192.168.110.22'
-
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_basic_vnf'
-nsd_pkg = 'hackfest_basic_ns'
-# NS and VNF descriptor package id
-vnfd_name = 'hackfest_basic-vnf'
-nsd_name = 'hackfest_basic-ns'
-# NS instance name
-ns_name = 'hfbasic'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_cloudinit_vnf'
-nsd_pkg = 'hackfest_cloudinit_ns'
-# NS and VNF descriptor package id
-vnfd_name = 'hackfest_cloudinit-vnf'
-nsd_name = 'hackfest_cloudinit-ns'
-# NS instance name
-ns_name = 'hfcloudinit'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'hackfest_multivdu_vnf'
-nsd_pkg = 'hackfest_multivdu_ns'
-# NS and VNF descriptor package id
-vnfd_name = 'hackfest_multivdu-vnf'
-nsd_name = 'hackfest_multivdu-ns'
-# NS instance name
-ns_name = 'hfmultivdu'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Copyright 2020 Canonical Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package files
-vnfd_pkg1 = 'k8s_jujucontroller_vnf.tar.gz'
-vnfd_pkg2 = 'k8s_jujumachine_vnf.tar.gz'
-nsd_pkg = 'k8s_juju_ns.tar.gz'
-# NS and VNF descriptor package files
-vnfd_name1 = 'k8s_jujucontroller_vnf'
-vnfd_name2 = 'k8s_jujumachine_vnf'
-nsd_name = 'k8s_juju'
-# VNF Member indexes
-vnf_member_index_1 = 'k8s_vnf1'
-vnf_member_index_2 = 'k8s_vnf2'
-vnf_member_index_3 = 'k8s_vnf3'
-vnf_member_index_4 = 'k8s_vnf4'
-vnf_member_index_5 = 'k8s_juju'
-# Username
-username = 'ubuntu'
-# Kubeconfig file
-kubeconfig_file = '/home/ubuntu/.kube/config'
-# NS instance name
-ns_name = 'k8s-cluster'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
-# Template and config file to use
-template = 'k8s_juju_template.yaml'
-config_file = 'config.yaml'
+++ /dev/null
-# Copyright 2020 Canonical Ltd.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# K8s cluster name
-k8scluster_name = 'k8s-test'
-k8scluster_version = 'v1'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# K8s cluster name
-k8scluster_name = 'k8s-test'
-k8scluster_version = 'v1'
-# NS and VNF descriptor package files
-vnfd_pkg = 'charm-packages/native_k8s_charm_vnf'
-nsd_pkg = 'charm-packages/native_k8s_charm_ns'
-# NS and VNF descriptor package files
-vnfd_name = 'native_k8s_charm-vnf'
-nsd_name = 'native_k8s_charm-ns'
-# NS instance name
-ns_name = 'native-k8s'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# K8s cluster name
-k8scluster_name = 'k8s-test'
-k8scluster_version = 'v1'
-# NS and VNF descriptor package files
-vnfd_pkg = 'openldap_knf'
-nsd_pkg = 'openldap_ns'
-# NS and VNF descriptor package files
-vnfd_name = 'openldap_knf'
-nsd_name = 'openldap_ns'
-# NS instance name
-ns_name = 'ldap'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'charm-packages/k8s_proxy_charm_vnf'
-nsd_pkg = 'charm-packages/k8s_proxy_charm_ns'
-# NS and VNF descriptor id
-vnfd_name = 'k8s_proxy_charm-vnf'
-nsd_name = 'k8s_proxy_charm-ns'
-# NS instance name
-ns_name = 'k8s_05-k8s_proxy_charm'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package folder
-vnfd_pkg = 'charm-packages/nopasswd_k8s_proxy_charm_vnf'
-nsd_pkg = 'charm-packages/nopasswd_k8s_proxy_charm_ns'
-# NS and VNF descriptor id
-vnfd_name = 'nopasswd_k8s_proxy_charm-vnf'
-nsd_name = 'nopasswd_k8s_proxy_charm-ns'
-# NS instance name
-ns_name = 'k8s_06-nopasswd_k8s_proxy_charm'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-
-# VIM Configuration
-vim_name = 'k8s07_dummy'
-vim_user = 'user'
-vim_password = 'pass'
-vim_auth_url = 'http://localhost/dummy'
-vim_tenant = 'tenant'
-vim_account_type = 'dummy'
-
-# K8s cluster name
-k8scluster_name = 'k8s07'
-k8scluster_version = 'v1'
-k8scluster_net = 'null'
-
-# NS and VNF descriptor package files
-vnfd_pkg = 'openldap_knf'
-nsd_pkg = 'openldap_ns'
-vnfd_name = 'openldap_knf'
-nsd_name = 'openldap_ns'
-
-# NS instance name
-ns_name = 'ldap'
-
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# VNFD package to use during test
-vnfd_name = 'hackfest_basic_vnf'
-# Project names to use
-project_1_name = 'quotas_01_proj_1'
-project_2_name = 'quotas_01_proj_2'
-project_3_name = 'quotas_01_proj_3'
-# User name and password for project
-user_name = 'quotas_01_user'
-user_password = 'quotas_01_pass'
+++ /dev/null
-# Copyright 2020 Atos
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package files
-vnfd1_pkg = 'slice_basic_vnf'
-vnfd2_pkg = 'slice_basic_middle_vnf'
-nsd1_pkg = 'slice_basic_ns'
-nsd2_pkg = 'slice_basic_middle_ns'
-nst = 'slice_basic_nst/slice_basic_nst.yaml'
-# Instance names
-slice_name = 'slicebasic'
-middle_ns_name = 'slicebasic.slice_basic_nsd_2'
-# Descriptor names
-nst_name = 'slice_basic_nst'
-vnfd1_name = 'slice_basic_vnf'
-vnfd2_name = 'slice_basic_middle_vnf'
-nsd1_name = 'slice_basic_ns'
-nsd2_name = 'slice_basic_middle_ns'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
-
+++ /dev/null
-# Copyright 2020 Atos
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package files
-vnfd1_pkg = 'slice_basic_vnf'
-vnfd2_pkg = 'slice_basic_middle_vnf'
-nsd1_pkg = 'slice_basic_ns'
-nsd2_pkg = 'slice_basic_middle_ns'
-nst = 'slice_basic_nst/slice_basic_nst.yaml'
-nst2 = 'slice_basic_nst/slice_basic_2nd_nst.yaml'
-# Instance names
-slice_name = 'slicebasic'
-slice2_name = 'sliceshared'
-middle_ns_name = 'slicebasic.slice_basic_nsd_2'
-# Descriptor names
-nst_name = 'slice_basic_nst'
-nst2_name = 'slice_basic_nst2'
-vnfd1_name = 'slice_basic_vnf'
-vnfd2_name = 'slice_basic_middle_vnf'
-nsd1_name = 'slice_basic_ns'
-nsd2_name = 'slice_basic_middle_ns'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
-
+++ /dev/null
-# Copyright 2020 Atos
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from pathlib import Path
-
-# Get ${HOME} from local machine
-home = str(Path.home())
-# NS and VNF descriptor package files
-vnfd1_pkg = 'slice_hackfest_vnf.tar.gz'
-vnfd2_pkg = 'slice_hackfest_middle_vnfd.tar.gz'
-nsd1_pkg = 'slice_hackfest_ns.tar.gz'
-nsd2_pkg = 'slice_hackfest_middle_nsd.tar.gz'
-nst = 'slice_hackfest_nst.yaml'
-nst2 = 'slice_hackfest2_nst.yaml'
-# Instance names
-slice_name = 'slicehfbasic'
-slice2_name = 'sliceshared'
-middle_ns_name = 'slicehfbasic.slice_hackfest_nsd_2'
-# Descriptor names
-nst_name = 'slice_hackfest_nst'
-nst2_name = 'slice_hackfest2_nst'
-vnfd1_name = 'slice_hackfest_vnf'
-vnfd2_name = 'slice_hackfest_middle_vnf'
-nsd1_name = 'slice_hackfest_ns'
-nsd2_name = 'slice_hackfest_middle_ns'
-# SSH keys to be used
-publickey = home + '/.ssh/id_rsa.pub'
-privatekey = home + '/.ssh/id_rsa'
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_05-instantiation_parameters_in_cloud_init_data.py
-
Force Tags basic_05 cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${username} ubuntu
-${new_password} newpassword
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} ubuntu_cloudinit_vnf
+${vnfd_name} ubuntu_cloudinit-vnf
+${nsd_pkg} ubuntu_cloudinit_ns
+${nsd_name} ubuntu_cloudinit-ns
+
+# NS instance name and configuration
+${ns_name} basic_05_instantiation_params_cloud_init
${vnf_member_index} 1
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ], additionalParamsForVnf: [ { member-vnf-index: "${vnf_member_index}", additionalParams: { password: "${new_password}" } } ] }
+# SSH user and password
+${username} ubuntu
+${new_password} newpassword
+
*** Test Cases ***
Create Cloudinit VNF Descriptor
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_06-vnf_with_charm_data.py
-
Force Tags basic_06 cluster_ee_config daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/ha_proxy_charm_vnf
+${vnfd_name} ha_proxy_charm-vnf
+${nsd_pkg} charm-packages/ha_proxy_charm_ns
+${nsd_name} ha_proxy_charm-ns
+
+# NS instance name and configuration
+${ns_name} basic_06_charm_test
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
${action_name} touch
${vnf_member_index_1} 1
${vnf_member_index_2} 2
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_07-secure_key_management_data.py
-
Force Tags basic_07 cluster_ee_config daily regression sanity
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/nopasswd_proxy_charm_vnf
+${vnfd_name} nopasswd_proxy_charm-vnf
+${nsd_pkg} charm-packages/nopasswd_proxy_charm_ns
+${nsd_name} nopasswd_proxy_charm-ns
+
+# NS instance name and configuration
+${ns_name} basic_07_secure_key_management
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_timeout} 15min
+
+# SSH username and passwod
${username} ubuntu
${password} osm4u
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
${action_name} touch
${vnf_member_index} 1
${day_1_file_name} /home/ubuntu/first-touch
${day_2_file_name} /home/ubuntu/mytouch1
-${ns_timeout} 15min
*** Test Cases ***
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_09-manual_vdu_scaling_data.py
-
Force Tags basic_09 cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_basic_metrics_vnf
+${vnfd_name} hackfest_basic_metrics-vnf
+${nsd_pkg} hackfest_basic_metrics_ns
+${nsd_name} hackfest_basic-ns-metrics
+
+# NS instance name and configuration
+${ns_name} basic_09_manual_scaling_test
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
${scaling_group} vdu_autoscale
${vnf_member_index} 1
+# SSH public key file
+${publickey} %{HOME}/.ssh/id_rsa.pub
+
*** Test Cases ***
Create Scaling VNF Descriptor
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_11-native_charms.py
-
Force Tags basic_11 cluster_ee_config cluster_relations daily regression sanity
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/native_charm_vnf
+${vnfd_name} native_charm-vnf
+${nsd_pkg} charm-packages/native_charm_ns
+${nsd_name} native_charm-ns
+
+# NS instance name and configuration
+${ns_name} basic_11_native_charms
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_timeout} 15min
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
${action_name} touch
${vnf_member_index_1} 1
${vnf_member_index_2} 2
${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 ***
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/packages_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_12-ns_primitives_data.py
-
Force Tags basic_12 cluster_ee_config daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg1} nscharm_policy_vnf
+${vnfd_pkg2} nscharm_user_vnf
+${vnfd_name1} nscharm-policy-vnf
+${vnfd_name2} nscharm-user-vnf
+${nsd_pkg} nscharm_ns
+${new_nsd_pkg} new_nscharm_ns
+${nsd_name} nscharm-ns
+${nsd_file} nscharm_nsd.yaml
+
+# NS instance name and configuration
+${ns_name} test_nscharm
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_timeout} 40min
+
+${old_juju_password} a5611fc6452349cc6e45705d34c501d4
${publickey} ${EMPTY}
${success_return_code} 0
Instantiate NS
- ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey} ns_launch_max_wait_time=40min
+ ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey} ns_launch_max_wait_time=${ns_timeout}
Set Suite Variable ${ns_id} ${id}
# TODO: Check Initial Config Primitives Status
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_13-ns_relations.py
-
Force Tags basic_13 cluster_ee_config cluster_relations daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg1} charm-packages/ns_relations_provides_vnf
+${vnfd_pkg2} charm-packages/ns_relations_requires_vnf
+${vnfd_name1} ns_relations_provides-vnf
+${vnfd_name2} ns_relations_requires-vnf
+${nsd_pkg} charm-packages/ns_relations_ns
+${nsd_name} ns_relations-ns
+
+# NS instance name and configuration
+${ns_name} basic_13_ns_relations_test
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_timeout} 15min
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
${action_name} touch
${vnf_member_index_1} 1
${vnf_member_index_2} 2
${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 ***
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_14-vnf_relations.py
-
Force Tags basic_14 cluster_ee_config cluster_relations daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${username} ubuntu
-${password} ${EMPTY}
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/vnf_relations_vnf
+${vnfd_name} vnf_relations-vnf
+${nsd_pkg} charm-packages/vnf_relations_ns
+${nsd_name} vnf_relations-ns
+
+# NS instance name and configuration
+${ns_name} basic_14_vnf_relations_test
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
-${action_name} touch
-${vnf_member_index_1} 1
-${vnf_member_index_2} 2
-${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
+# SSH public keys file
+${publickey} %{HOME}/.ssh/id_rsa.pub
+
*** Test Cases ***
Create Charm VNF Descriptor
Resource %{ROBOT_DEVOPS_FOLDER}/lib/project_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/role_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_15-rbac_configurations_data.py
-
Force Tags basic_15 cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# User, project and roles to use
+${user_name} basic_15_test_user
+${user_password} basic_15_user_pass
+${user_role} project_user
+${user_project} admin
+${project_name} basic_15_test_project
+${new_project_name} basic_15_project_test
+${role_name} test_role
${success_return_code} 0
+
*** Test Cases ***
Create And Validate User
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_16-advanced_onboarding_and_scaling_data.py
-
Force Tags basic_16 cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_basic_metrics_vnf
+${vnfd_name} hackfest_basic_metrics-vnf
+${nsd_pkg} hackfest_basic_metrics_ns
+${nsd_name} hackfest_basic-ns-metrics
+
+# NS instance name and configuration
+${ns_name} basic_16
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+# SSH public keys file
+${publickey} %{HOME}/.ssh/id_rsa.pub
+
+# Initial, delta, min and max number of VDU instances
+${init_instances} 3
+${min_instances} 3
+${max_instances} 5
+${delta_instances} 2
${scaling_group} vdu_autoscale
${vnf_member_index} 1
Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/basic_17-delete_vnf_package_data.py
-
Force Tags basic_17 cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
+*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_basic_vnf
+${vnfd_name} hackfest_basic-vnf
+${nsd_pkg} hackfest_basic_ns
+${nsd_name} hackfest_basic-ns
+
+
*** Test Cases ***
Create VNF Package
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/epa_01-epa_sriov_data.py
-
Force Tags epa_01 cluster_epa daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_basic_sriov_vnf
+${vnfd_name} hackfest_basic_sriov-vnf
+${nsd_pkg} hackfest_basic_sriov_ns
+${nsd_name} hackfest_basic_sriov-ns
+
+# NS instance name and configuration
+${ns_name} epa_01-epa_sriov_test
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
${ns_id} ${EMPTY}
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} osm4u
${vnf_member_index} 1
${vnf_ip_addr} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
*** Test Cases ***
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/openstack_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/epa_02-additional_capabilities_data.py
-
Force Tags epa_02 cluster_epa daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} epa_quota_vnf
+${vnfd_name} epa_quota-vnf
+${nsd_pkg} epa_quota_ns
+${nsd_name} epa_quota-ns
+
+# NS instance name and configuration
+${ns_name} epa_02-epa_quota_test
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+# SSH public keys file
+${publickey} %{HOME}/.ssh/id_rsa.pub
+
${ns_id} ${EMPTY}
${vnf_server_id} ${EMPTY}
${flavor_properties} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
${success_return_code} 0
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot\r
Resource %{ROBOT_DEVOPS_FOLDER}/lib/openstack_lib.robot\r
\r
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/epa_04-epa_underlay_sriov.py\r
-\r
Force Tags epa_04 cluster_epa daily regression\r
\r
Suite Teardown Run Keyword And Ignore Error Suite Cleanup\r
\r
\r
*** Variables ***\r
+# NS and VNF descriptor package folder and ids\r
+${vnfd_pkg} epa_1vm_sriov_vnf\r
+${vnfd_name} epa_1vm_sriov-vnf\r
+${nsd_pkg} epa_1vm_sriov_ns\r
+${nsd_name} epa_1vm_sriov-ns\r
+${ns_name} epa_04\r
+\r
+# Fixed IPs and subnet for datanet VL\r
+${datanet_subnet} 192.168.100.0/24\r
+${datanet_ip1} 192.168.100.11\r
+${datanet_ip2} 192.168.100.22\r
+\r
${vnf_member_index_1} 1\r
${vnf_member_index_2} 2\r
${username} ubuntu\r
\r
Instantiate Network Service\r
\r
- ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${publickey}\r
+ ${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ${ns_config} ${EMPTY}\r
Set Suite Variable ${ns_id} ${id}\r
\r
\r
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} epa_1vm_passthrough_vnf
+${vnfd_name} epa_1vm_passthrough-vnf
+${nsd_pkg} epa_1vm_passthrough_ns
+${nsd_name} epa_1vm_passthrough-ns
+${ns_name} epa_05
+
+# Fixed IPs and subnet for datanet VL
+${datanet_subnet} 192.168.110.0/24
+${datanet_ip1} 192.168.110.11
+${datanet_ip2} 192.168.110.22
+
${vnf_member_index_1} 1
${vnf_member_index_2} 2
${username} ubuntu
Instantiate Network Service
- ${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} ${EMPTY}
Set Suite Variable ${ns_id} ${id}
Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/hackfest_basic_ns_data.py
-
Force Tags hackfest_basic cluster_main daily regression sanity
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${ns_id} ${EMPTY}
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_basic_vnf
+${vnfd_name} hackfest_basic-vnf
+${nsd_pkg} hackfest_basic_ns
+${nsd_name} hackfest_basic-ns
+
+# NS instance name and configuration
+${ns_name} hfbasic
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
+
+${ns_id} ${EMPTY}
${vnf_member_index} 1
${vnf_ip_addr} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
-# ${ns_config} ${EMPTY}
+
*** Test Cases ***
Create Hackfest Basic VNF Descriptor
Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/hackfest_cloudinit_ns_data.py
-
Force Tags hackfest_cloudinit cluster_main daily regression sanity
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${ns_id} ${EMPTY}
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_cloudinit_vnf
+${vnfd_name} hackfest_cloudinit-vnf
+${nsd_pkg} hackfest_cloudinit_ns
+${nsd_name} hackfest_cloudinit-ns
+
+# NS instance name and configuration
+${ns_name} hfcloudinit
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+# SSH user and password
${username} ubuntu
${password} osm4u
+
+${ns_id} ${EMPTY}
${vnf_member_index} 1
${vnf_ip_addr} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
-# ${ns_config} ${EMPTY}
+
*** Test Cases ***
Create Hackfest Cloudinit VNF Descriptor
Test SSH Access
Sleep 30s Waiting ssh daemon to be up
- Test SSH Connection ${vnf_ip_addr} ${username} ${password} ${privatekey}
+ Test SSH Connection ${vnf_ip_addr} ${username} ${password} ${EMPTY}
Check Remote File Injected Via Cloud-init
- ${stdout}= Execute Remote Command Check Rc Return Output ${vnf_ip_addr} ${username} ${password} ${privatekey} sudo cat /root/helloworld.txt
+ ${stdout}= Execute Remote Command Check Rc Return Output ${vnf_ip_addr} ${username} ${password} ${EMPTY} sudo cat /root/helloworld.txt
log ${stdout}
Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/hackfest_multivdu_ns_data.py
-
Force Tags hackfest_multivdu cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${ns_id} ${EMPTY}
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} hackfest_multivdu_vnf
+${vnfd_name} hackfest_multivdu-vnf
+${nsd_pkg} hackfest_multivdu_ns
+${nsd_name} hackfest_multivdu-ns
+
+# NS instance name and configuration
+${ns_name} hfmultivdu
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
+
+${ns_id} ${EMPTY}
${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 ***
Create Hackfest multivdu VNF Descriptor
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_01-create_k8s_cluster_data.py
-
Force Tags k8s_01 cluster_k8s regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package files
+${vnfd_pkg1} k8s_jujucontroller_vnf.tar.gz
+${vnfd_pkg2} k8s_jujumachine_vnf.tar.gz
+${nsd_pkg} k8s_juju_ns.tar.gz
+${vnfd_name1} k8s_jujucontroller_vnf
+${vnfd_name2} k8s_jujumachine_vnf
+${nsd_name} k8s_juju
+
+# VNF Member indexes
+${vnf_member_index_1} k8s_vnf1
+${vnf_member_index_2} k8s_vnf2
+${vnf_member_index_3} k8s_vnf3
+${vnf_member_index_4} k8s_vnf4
+${vnf_member_index_5} k8s_juju
+
+# Username
+${username} ubuntu
+
+# Kubeconfig file
+${kubeconfig_file} /home/ubuntu/.kube/config
+
+# NS instance name
+${ns_name} k8s-cluster
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
+# Template and config file to use
+${template} k8s_juju_template.yaml
+${config_file} config.yaml
+
*** Test Cases ***
Render a template
- ${stdout}= Render template %{ROBOT_DEVOPS_FOLDER}/resources/${template} %{ROBOT_DEVOPS_FOLDER}/resources/${config_file} IP_VM1=%{IP_VM1} IP_VM2=%{IP_VM2} IP_VM3=%{IP_VM3} IP_VM4=%{IP_VM4} IP_JUJU=%{IP_JUJU} NETWORK=%{VIM_MGMT_NET}
+ ${stdout}= Render template %{ROBOT_DEVOPS_FOLDER}/resources/${template} %{ROBOT_DEVOPS_FOLDER}/resources/${config_file} IP_VM1=%{IP_VM1} IP_VM2=%{IP_VM2} IP_VM3=%{IP_VM3} IP_VM4=%{IP_VM4} IP_JUJU=%{IP_JUJU} NETWORK=%{VIM_MGMT_NET}
Log To Console \n${stdout}
+
Create Controller VNF Descriptor
Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg1}'
+
Create Machines VNF Descriptor
Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg2}'
+
Create K8s Cluster NS Descriptor
Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
+
Instantiate K8s Cluster Network Service
${id}= Create Network Service ${nsd_name} %{VIM_TARGET} ${ns_name} ns_config=${EMPTY} publickey=${publickey} ns_launch_max_wait_time=70min config_file=%{ROBOT_DEVOPS_FOLDER}/resources/${config_file}
Set Suite Variable ${ns_id} ${id}
+
Get Management Ip Addresses
${ip_addr_1} Get Vnf Management Ip Address ${ns_id} ${vnf_member_index_1}
log ${ip_addr_5}
Set Suite Variable ${vnf_5_ip_addr} ${ip_addr_5}
+
Test SSH Access
Variable Should Exist ${vnf_1_ip_addr} msg=IP address of the management VNF '${vnf_member_index_1}' is not available
Test SSH Connection ${vnf_4_ip_addr} ${username} ${password} ${privatekey}
Test SSH Connection ${vnf_5_ip_addr} ${username} ${password} ${privatekey}
+
Check kubeconfig file
Check If remote File Exists ${vnf_5_ip_addr} ${username} ${password} ${privatekey} ${kubeconfig_file}
+
Delete NS Instance
[Tags] cleanup
Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_02-k8scluster_creation_data.py
-
Force Tags k8s_02 cluster_k8s daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
+*** Variables ***
+# K8s cluster name and version
+${k8scluster_name} k8s-test
+${k8scluster_version} v1
+
*** Test Cases ***
Add K8s Cluster To OSM
+
Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} %{VIM_TARGET} %{VIM_MGMT_NET} ${k8scluster_name}
Remove K8s Cluster from OSM
[Tags] cleanup
+
Delete K8s Cluster ${k8scluster_name}
*** Keywords ***
Suite Cleanup
[Documentation] Test Suit Cleanup: Deleting K8s Cluster
+
Run Keyword If Any Tests Failed Delete K8s Cluster ${k8scluster_name}
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_03-simple_k8s_data.py
-
Force Tags k8s_03 cluster_k8s daily regression sanity
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${ns_id} ${EMPTY}
+# K8s cluster name and version
+${k8scluster_name} k8s-test
+${k8scluster_version} v1
+
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/native_k8s_charm_vnf
+${vnfd_name} native_k8s_charm-vnf
+${nsd_pkg} charm-packages/native_k8s_charm_ns
+${nsd_name} native_k8s_charm-ns
+
+# NS instance name and configuration
+${ns_name} native-k8s
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+${ns_id} ${EMPTY}
${publickey} ${EMPTY}
${vnf_member_index} native_k8s_charm-vnf
${action_name} changecontent
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_04-openldap_helm_data.py
-
Force Tags k8s_04 cluster_k8s daily regression sanity
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${ns_id} ${EMPTY}
+# K8s cluster name and version
+${k8scluster_name} k8s-test
+${k8scluster_version} v1
+
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} openldap_knf
+${vnfd_name} openldap_knf
+${nsd_pkg} openldap_ns
+${nsd_name} openldap_ns
+
+# NS instance name and configuration
+${ns_name} ldap
${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
+${ns_id} ${EMPTY}
${publickey} ${EMPTY}
${vnf_member_index} openldap
${kdu_name} ldap
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_05-k8s_proxy_charms.py
-
Force Tags k8s_05 cluster_ee_config cluster_k8s_charms daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/k8s_proxy_charm_vnf
+${vnfd_name} k8s_proxy_charm-vnf
+${nsd_pkg} charm-packages/k8s_proxy_charm_ns
+${nsd_name} k8s_proxy_charm-ns
+
+# NS instance name and configuration
+${ns_name} k8s_05-k8s_proxy_charm
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_timeout} 15min
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
${action_name} touch
${vnf_member_index_1} 1
${vnf_member_index_2} 2
${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 ***
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_06-k8s_secure_key_management_data.py
-
Force Tags k8s_06 cluster_ee_config cluster_k8s_charms daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
+# NS and VNF descriptor package folder and ids
+${vnfd_pkg} charm-packages/nopasswd_k8s_proxy_charm_vnf
+${vnfd_name} nopasswd_k8s_proxy_charm-vnf
+${nsd_pkg} charm-packages/nopasswd_k8s_proxy_charm_ns
+${nsd_name} nopasswd_k8s_proxy_charm-ns
+
+# NS instance name and configuration
+${ns_name} k8s_06-nopasswd_k8s_proxy_charm
+${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_timeout} 15min
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
-${ns_config} {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+
${action_name} touch
${vnf_member_index_1} 1
${vnf_member_index_2} 2
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot\r
Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot\r
\r
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_07-dummy_helm_data.py\r
-\r
Force Tags k8s_07 cluster_k8s daily regression\r
\r
Suite Teardown Run Keyword And Ignore Error Suite Cleanup\r
\r
\r
*** Variables ***\r
+# VIM Configuration\r
+${vim_name} k8s07_dummy\r
+${vim_user} user\r
+${vim_password} pass\r
+${vim_auth_url} http://localhost/dummy\r
+${vim_tenant} tenant\r
+${vim_account_type} dummy\r
+\r
+# K8s cluster data\r
+${k8scluster_name} k8s07\r
+${k8scluster_version} v1\r
+${k8scluster_net} null\r
+\r
+# NS and VNF descriptor package files\r
+${vnfd_pkg} openldap_knf\r
+${nsd_pkg} openldap_ns\r
+${vnfd_name} openldap_knf\r
+${nsd_name} openldap_ns\r
+\r
+# NS instance name\r
+${ns_name} ldap\r
+\r
${ns_id} ${EMPTY}\r
${ns_config} ${EMPTY}\r
${publickey} ${EMPTY}\r
\r
+\r
*** Test Cases ***\r
Create Package For OpenLDAP CNF\r
Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}'\r
Resource %{ROBOT_DEVOPS_FOLDER}/lib/project_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/quotas_01-quota_enforcement_data.py
-
Force Tags quotas_01 cluster_main daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${success_return_code} 0
+# VNFD package to use during test
+${vnfd_name} hackfest_basic_vnf
+${vnfd_pkg} %{PACKAGES_FOLDER}/${vnfd_name}
+
+# Project names and quotas to use
+${project_1_name} quotas_01_proj_1
+${project_2_name} quotas_01_proj_2
+${project_3_name} quotas_01_proj_3
${project_1_quotas} vnfds=1,nsds=2,ns_instances=3
${project_2_quotas} vnfds=1,nsds=1,ns_instances=1
${project_3_quotas} vnfds=5,nsds=,ns_instances=
-${vnfd_pkg} %{PACKAGES_FOLDER}/${vnfd_name}
+
+# User name and password for project
+${user_name} quotas_01_user
+${user_password} quotas_01_pass
+
+${success_return_code} 0
+
*** Test Cases ***
Create First Project With Quotas
Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/slice_01-network_slicing_data.py
-
Force Tags slice_01 cluster_slices daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-
-${ns_id} ${EMPTY}
+# NS and VNF descriptor package files
+${vnfd1_pkg} slice_basic_vnf
+${vnfd2_pkg} slice_basic_middle_vnf
+${nsd1_pkg} slice_basic_ns
+${nsd2_pkg} slice_basic_middle_ns
+${nst} slice_basic_nst/slice_basic_nst.yaml
+
+# Descriptor names
+${nst_name} slice_basic_nst
+${vnfd1_name} slice_basic_vnf
+${vnfd2_name} slice_basic_middle_vnf
+${nsd1_name} slice_basic_ns
+${nsd2_name} slice_basic_middle_ns
+
+# Instance names
+${slice_name} slicebasic
+${middle_ns_name} slicebasic.slice_basic_nsd_2
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
+
+${ns_id} ${EMPTY}
${vnf_member_index} middle
${vnf_ip_addr} ${EMPTY}
${mgmt_vnf_ip} ${EMPTY}
${nst_config} {netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: %{VIM_MGMT_NET}} ] }
-*** Test Cases ***
+*** Test Cases ***
Create Slice VNF Descriptors
[Documentation] Onboards all the VNFDs required for the test: vnfd1_pkg and vnfd2_pkg (in the variables file)
Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
-Variables %{ROBOT_DEVOPS_FOLDER}/resources/slice_02-shared_network_slicing_data.py
-
Force Tags slice_02 cluster_slices daily regression
Suite Teardown Run Keyword And Ignore Error Suite Cleanup
*** Variables ***
-${ns_id} ${EMPTY}
+# NS and VNF descriptor package files
+${vnfd1_pkg} slice_basic_vnf
+${vnfd2_pkg} slice_basic_middle_vnf
+${nsd1_pkg} slice_basic_ns
+${nsd2_pkg} slice_basic_middle_ns
+${nst} slice_basic_nst/slice_basic_nst.yaml
+${nst2} slice_basic_nst/slice_basic_2nd_nst.yaml
+
+# Instance names
+${slice_name} slicebasic
+${slice2_name} sliceshared
+${middle_ns_name} slicebasic.slice_basic_nsd_2
+
+# Descriptor names
+${nst_name} slice_basic_nst
+${nst2_name} slice_basic_nst2
+${vnfd1_name} slice_basic_vnf
+${vnfd2_name} slice_basic_middle_vnf
+${nsd1_name} slice_basic_ns
+${nsd2_name} slice_basic_middle_ns
+
+# SSH keys and username to be used
+${publickey} %{HOME}/.ssh/id_rsa.pub
+${privatekey} %{HOME}/.ssh/id_rsa
${username} ubuntu
${password} ${EMPTY}
+
+${ns_id} ${EMPTY}
${vnf_member_index} middle
${vnf_ip_addr} ${EMPTY}
${nst_config} {netslice-vld: [ {name: slice_vld_mgmt, vim-network-name: %{VIM_MGMT_NET}} ] }
*** Test Cases ***
-
Create Slice VNF Descriptors
[Documentation] Onboards all the VNFDs required for the test: vnfd1_pkg and vnfd2_pkg (in the variables file)