blob: 36f42b80d4e0dbbae23b042d06e5e28eeb039556 [file] [log] [blame]
Tatyana Leontovichb7404592017-04-07 11:52:28 +03001# Copyright 2017 Mirantis, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# 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, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
Tatyana Leontovichb7404592017-04-07 11:52:28 +030014
15import pytest
16
Tatyana Leontovichb7404592017-04-07 11:52:28 +030017from tcp_tests import logger
18
19LOG = logger.logger
20
21
22@pytest.mark.deploy
23class Testk8sInstall(object):
Artem Panchenko0594cd72017-06-12 13:25:26 +030024 """Test class for testing Kubernetes deploy"""
Tatyana Leontovichb7404592017-04-07 11:52:28 +030025
Artem Panchenko0594cd72017-06-12 13:25:26 +030026 @pytest.mark.fail_snapshot
27 def test_k8s_install(self, sl_deployed, k8s_deployed):
28 """Test for deploying MCP environment with k8s+stacklight and check it
Tatyana Leontovichb7404592017-04-07 11:52:28 +030029
30 Scenario:
31 1. Prepare salt on hosts
32 2. Setup controller nodes
33 3. Setup compute nodes
Tatyana Leontovich5acc82a2017-05-23 15:41:35 +030034 4. Setup stack light nodes
Artem Panchenko0594cd72017-06-12 13:25:26 +030035 5. Setup Kubernetes cluster
Tatyana Leontovichb7404592017-04-07 11:52:28 +030036
37 """
38 LOG.info("*************** DONE **************")
vrovachev0a2f6352017-06-09 12:48:59 +040039
Artem Panchenko0594cd72017-06-12 13:25:26 +030040 @pytest.mark.fail_snapshot
41 def test_only_k8s_install(self, k8s_deployed):
42 """Test for deploying MCP environment with k8s and check it
vrovachev0a2f6352017-06-09 12:48:59 +040043
44 Scenario:
45 1. Prepare salt on hosts
46 2. Setup controller nodes
47 3. Setup compute nodes
Artem Panchenko0594cd72017-06-12 13:25:26 +030048 4. Setup Kubernetes cluster
vrovachev0a2f6352017-06-09 12:48:59 +040049
50 """
51 LOG.info("*************** DONE **************")