blob: 0ccb75d226a5473bb3dcea16c68c6bcf96ced7b6 [file] [log] [blame]
vrovachevbc2f5ce2017-05-22 19:37:24 +04001# 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.
14import copy
15import time
16
17import pytest
18
19from tcp_tests import settings
20from tcp_tests.helpers import ext
21from tcp_tests import logger
22
23LOG = logger.logger
24
25
26@pytest.mark.deploy
27class TestVirtletInstall(object):
28 """Test class for testing Virtlet deploy"""
29
30 #salt_cmd = 'salt -l debug ' # For debug output
31 #salt_call_cmd = 'salt-call -l debug ' # For debug output
32 salt_cmd = 'salt --hard-crash --state-output=mixed --state-verbose=False ' # For cause only output
33 salt_call_cmd = 'salt-call --hard-crash --state-output=mixed --state-verbose=False ' # For cause only output
34 #salt_cmd = 'salt --state-output=terse --state-verbose=False ' # For reduced output
35 #salt_call_cmd = 'salt-call --state-output=terse --state-verbose=False ' # For reduced output
36
37 # @pytest.mark.snapshot_needed
38 # @pytest.mark.fail_snapshot
39 def test_virtlet_install(self, underlay, virtlet_deployed,
40 show_step):
41 """Test for deploying an mcp environment with virtlet
42
43 Scenario:
44 1. Prepare salt on hosts
45 2. Setup controller nodes
46 3. Setup compute nodes
47 4. Setup virtlet
48
49 """
50 LOG.info("*************** DONE **************")
Victor Ryzhenkin655587f2017-05-24 20:00:07 +040051
52 def test_virtlet_install_with_ceph(self, underlay, virtlet_ceph_deployed,
53 show_step):
54 """Test for deploying an mcp environment with virtlet and one-node
55 Ceph cluster.
56
57 Scenario:
58 1. Prepare salt on hosts
59 2. Setup controller nodes
60 3. Setup compute nodes
61 4. Setup virtlet
62 5. Launch Ceph one-node cluster in docker
63
64 """
Victor Ryzhenkin42cfc312017-06-13 12:51:39 +040065 LOG.info("*************** DONE **************")