| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 1 | # Licensed under the Apache License, Version 2.0 (the "License");
|
| 2 | # you may not use this file except in compliance with the License.
|
| 3 | # You may obtain a copy of the License at
|
| 4 | #
|
| 5 | # http://www.apache.org/licenses/LICENSE-2.0
|
| 6 | #
|
| 7 | # Unless required by applicable law or agreed to in writing, software
|
| 8 | # distributed under the License is distributed on an "AS IS" BASIS,
|
| 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 10 | # See the License for the specific language governing permissions and
|
| 11 | # limitations under the License.
|
| 12 |
|
| 13 | *** Settings ***
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 14 | Documentation [K8s-07] Openldap Helm in isolated cluster with dummy VIM.
|
| 15 |
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 16 | Library OperatingSystem
|
| 17 | Library String
|
| 18 | Library Collections
|
| 19 | Library Process
|
| 20 |
|
| 21 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/vim_lib.robot
|
| 22 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
|
| 23 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
|
| 24 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
|
| 25 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
|
| 26 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
|
| 27 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
|
| 28 |
|
| aguilarherna | c0b3a8e | 2021-05-12 08:56:23 +0000 | [diff] [blame] | 29 | Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_07-dummy_helm_data.py
|
| 30 |
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 31 | Force Tags k8s_07 cluster_k8s daily regression
|
| 32 |
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 33 | Suite Teardown Run Keyword And Ignore Error Suite Cleanup
|
| 34 |
|
| 35 |
|
| 36 | *** Variables ***
|
| 37 | ${ns_id} ${EMPTY}
|
| 38 | ${ns_config} ${EMPTY}
|
| 39 | ${publickey} ${EMPTY}
|
| 40 |
|
| 41 | *** Test Cases ***
|
| 42 | Create Package For OpenLDAP CNF
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 43 | Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}'
|
| 44 |
|
| 45 | Create Package For OpenLDAP NS
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 46 | Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
|
| 47 |
|
| 48 | Create Dummy VIM
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 49 | ${created_vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type}
|
| 50 |
|
| 51 | Add K8s Cluster To OSM
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 52 | Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} ${vim_name} ${k8scluster_net} ${k8scluster_name}
|
| 53 |
|
| 54 | Create Network Service Instance
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 55 | ${id}= Create Network Service ${nsd_name} ${vim_name} ${ns_name} ${ns_config} ${publickey}
|
| 56 | Set Suite Variable ${ns_id} ${id}
|
| 57 |
|
| 58 | Delete Network Service Instance
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 59 | [Tags] cleanup
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 60 | Delete NS ${ns_name}
|
| 61 |
|
| 62 | Remove K8s Cluster from OSM
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 63 | [Tags] cleanup
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 64 | Delete K8s Cluster ${k8scluster_name}
|
| 65 |
|
| 66 | Delete VIM
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 67 | [Tags] cleanup
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 68 | Delete VIM Target ${vim_name}
|
| 69 |
|
| 70 | Delete NS Descriptor Test
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 71 | [Tags] cleanup
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 72 | Delete NSD ${nsd_name}
|
| 73 |
|
| 74 | Delete VNF Descriptor Test
|
| garciadeblas | 4cf45d7 | 2021-04-08 13:52:22 +0200 | [diff] [blame] | 75 | [Tags] cleanup
|
| aguilarherna | 4751c62 | 2021-03-10 16:27:37 +0100 | [diff] [blame] | 76 | Delete VNFD ${vnfd_name}
|
| 77 |
|
| 78 |
|
| 79 | *** Keywords ***
|
| 80 | Suite Cleanup
|
| 81 | [Documentation] Test Suit Cleanup: Deleting Descriptor, instance, cluster and vim
|
| 82 | Run Keyword If Any Tests Failed Delete NS ${ns_name}
|
| 83 | Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
|
| 84 | Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}
|
| 85 | Run Keyword If Any Tests Failed Delete K8s Cluster ${k8scluster_name}
|
| 86 | Run Keyword If Any Tests Failed Delete VIM Target ${vim_name}
|