| 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 ***
|
| 14 | Library OperatingSystem
|
| 15 | Library String
|
| 16 | Library Collections
|
| 17 | Library Process
|
| 18 |
|
| 19 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/vim_lib.robot
|
| 20 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/vnfd_lib.robot
|
| 21 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/nsd_lib.robot
|
| 22 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/ns_lib.robot
|
| 23 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/connectivity_lib.robot
|
| 24 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
|
| 25 | Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
|
| 26 |
|
| 27 | Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_07-dummy_helm_data.py
|
| 28 |
|
| 29 | Suite Teardown Run Keyword And Ignore Error Suite Cleanup
|
| 30 |
|
| 31 |
|
| 32 | *** Variables ***
|
| 33 | ${ns_id} ${EMPTY}
|
| 34 | ${ns_config} ${EMPTY}
|
| 35 | ${publickey} ${EMPTY}
|
| 36 |
|
| 37 | *** Test Cases ***
|
| 38 | Create Package For OpenLDAP CNF
|
| 39 | [Tags] dummy_vim sanity regression
|
| 40 | Create VNFD '%{PACKAGES_FOLDER}/${vnfd_pkg}'
|
| 41 |
|
| 42 | Create Package For OpenLDAP NS
|
| 43 | [Tags] dummy_vim sanity regression
|
| 44 | Create NSD '%{PACKAGES_FOLDER}/${nsd_pkg}'
|
| 45 |
|
| 46 | Create Dummy VIM
|
| 47 | [Tags] dummy_vim sanity regression
|
| 48 | ${created_vim_account_id}= Create VIM Target ${vim_name} ${vim_user} ${vim_password} ${vim_auth_url} ${vim_tenant} ${vim_account_type}
|
| 49 |
|
| 50 | Add K8s Cluster To OSM
|
| 51 | [Tags] dummy_vim sanity regression
|
| 52 | Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} ${vim_name} ${k8scluster_net} ${k8scluster_name}
|
| 53 |
|
| 54 | Create Network Service Instance
|
| 55 | [Tags] dummy_vim sanity regression
|
| 56 | ${id}= Create Network Service ${nsd_name} ${vim_name} ${ns_name} ${ns_config} ${publickey}
|
| 57 | Set Suite Variable ${ns_id} ${id}
|
| 58 |
|
| 59 | Delete Network Service Instance
|
| 60 | [Tags] dummy_vim sanity regression cleanup
|
| 61 | Delete NS ${ns_name}
|
| 62 |
|
| 63 | Remove K8s Cluster from OSM
|
| 64 | [Tags] dummy_vim sanity regression
|
| 65 | Delete K8s Cluster ${k8scluster_name}
|
| 66 |
|
| 67 | Delete VIM
|
| 68 | [Tags] dummy_vim sanity regression cleanup
|
| 69 | Delete VIM Target ${vim_name}
|
| 70 |
|
| 71 | Delete NS Descriptor Test
|
| 72 | [Tags] dummy_vim sanity regression cleanup
|
| 73 | Delete NSD ${nsd_name}
|
| 74 |
|
| 75 | Delete VNF Descriptor Test
|
| 76 | [Tags] dummy_vim sanity regression cleanup
|
| 77 | Delete VNFD ${vnfd_name}
|
| 78 |
|
| 79 |
|
| 80 | *** Keywords ***
|
| 81 | Suite Cleanup
|
| 82 | [Documentation] Test Suit Cleanup: Deleting Descriptor, instance, cluster and vim
|
| 83 | Run Keyword If Any Tests Failed Delete NS ${ns_name}
|
| 84 | Run Keyword If Any Tests Failed Delete NSD ${nsd_name}
|
| 85 | Run Keyword If Any Tests Failed Delete VNFD ${vnfd_name}
|
| 86 | Run Keyword If Any Tests Failed Delete K8s Cluster ${k8scluster_name}
|
| 87 | Run Keyword If Any Tests Failed Delete VIM Target ${vim_name}
|