blob: 6225913572d841fb1f3829af18409d63a67bd84c [file] [log] [blame]
Felipe Vicens5c54d272020-06-23 15:55:08 +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 ***
garciadeblasf4ebaa82022-06-23 13:33:26 +020016Documentation [K8s-02] K8s cluster addition.
garciadeblas4cf45d72021-04-08 13:52:22 +020017
Felipe Vicens5c54d272020-06-23 15:55:08 +020018Library OperatingSystem
19Library String
20Library Collections
21Library Process
22
23Resource %{ROBOT_DEVOPS_FOLDER}/lib/k8scluster_lib.robot
24
garciadeblas4cf45d72021-04-08 13:52:22 +020025Force Tags k8s_02 cluster_k8s daily regression
26
garciadeblasd225e552020-10-02 16:10:14 +000027Suite Teardown Run Keyword And Ignore Error Suite Cleanup
Felipe Vicens5c54d272020-06-23 15:55:08 +020028
garciadeblas4cf45d72021-04-08 13:52:22 +020029
almagiab4697d32021-05-25 08:56:17 +020030*** Variables ***
31# K8s cluster name and version
aguilardd6a44ef2021-09-14 17:46:17 +020032${k8scluster_name} k8s02
almagiab4697d32021-05-25 08:56:17 +020033${k8scluster_version} v1
34
Felipe Vicens5c54d272020-06-23 15:55:08 +020035*** Test Cases ***
36Add K8s Cluster To OSM
almagiab4697d32021-05-25 08:56:17 +020037
garciadeblasf4ebaa82022-06-23 13:33:26 +020038 Create K8s Cluster %{K8S_CREDENTIALS} ${k8scluster_version} %{VIM_TARGET} %{VIM_MGMT_NET} ${k8scluster_name}
Felipe Vicens5c54d272020-06-23 15:55:08 +020039
Felipe Vicens5c54d272020-06-23 15:55:08 +020040Remove K8s Cluster from OSM
garciadeblas4cf45d72021-04-08 13:52:22 +020041 [Tags] cleanup
almagiab4697d32021-05-25 08:56:17 +020042
garciadeblasf4ebaa82022-06-23 13:33:26 +020043 Delete K8s Cluster ${k8scluster_name}
Felipe Vicens5c54d272020-06-23 15:55:08 +020044
45*** Keywords ***
garciadeblasd225e552020-10-02 16:10:14 +000046Suite Cleanup
garciadeblasf4ebaa82022-06-23 13:33:26 +020047 [Documentation] Test Suit Cleanup: Deleting K8s Cluster
almagiab4697d32021-05-25 08:56:17 +020048
garciadeblasf4ebaa82022-06-23 13:33:26 +020049 Run Keyword If Any Tests Failed Delete K8s Cluster ${k8scluster_name}