blob: 5f3dfadb9e00b7de30b107d34b7a10baf88dcab0 [file] [log] [blame]
calvinosanc12582fbd2020-06-12 10:52:29 +02001# Copyright 2020 Canonical Ltd.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15*** Settings ***
16Library OperatingSystem
17Library String
18Library Collections
19Library Process
20
21Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
22
23Variables %{ROBOT_DEVOPS_FOLDER}/resources/k8s_02-k8scluster_creation_data.py
24
25Suite Teardown Run Keyword And Ignore Error Test Cleanup
26
27*** Test Cases ***
28Add K8s Cluster To OSM
29 [Tags] k8scluster
30 Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} %{VIM_TARGET} %{VIM_MGMT_NET} ${k8scluster_name}
31
32List K8s Clusters
33 [Tags] k8scluster
34 ${stdout}= Get K8s Cluster
35 Log To Console \n${stdout}
36
37Remove K8s Cluster from OSM
38 [Tags] k8scluster
39 Delete K8s Cluster ${k8scluster_name}
40
41*** Keywords ***
42Test Cleanup
43 [Documentation] Test Suit Cleanup: Deleting K8s Cluster
44 Run Keyword If Test Failed Delete K8s Cluster ${k8scluster_name}