blob: 02aa73ee8564c39adf77ef9f20a2e963145b3d95 [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001# Copyright 2016 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
Dennis Dmitrieva982b2d2016-10-21 16:52:50 +030015import time
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030016
17import pytest
18
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030019from tcp_tests import settings
20from tcp_tests.helpers import ext
Dennis Dmitriev474e3f72016-10-21 16:46:09 +030021from tcp_tests import logger
22
23LOG = logger.logger
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030024
25
26@pytest.mark.deploy
27class TestTCPInstaller(object):
28 """Test class for testing TCP deployment"""
29
Dennis Dmitriev4be178c2016-10-25 13:17:46 +030030 #salt_cmd = 'salt -l debug ' # For debug output
31 #salt_call_cmd = 'salt-call -l debug ' # For debug output
Dennis Dmitriev23e5d192016-10-31 11:27:10 +020032 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
Dennis Dmitriev4be178c2016-10-25 13:17:46 +030034 #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
Dennis Dmitriev474e3f72016-10-21 16:46:09 +030036
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020037 @pytest.mark.revert_snapshot(ext.SNAPSHOT.openstack_deployed)
Dennis Dmitriev474e3f72016-10-21 16:46:09 +030038 # @pytest.mark.snapshot_needed
39 # @pytest.mark.fail_snapshot
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020040 def test_tcp_install_default(self, underlay, openstack_deployed, show_step):
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030041 """Test for deploying an tcp environment and check it
42
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030043 Scenario:
Dennis Dmitriev4be178c2016-10-25 13:17:46 +030044 1. Prepare salt on hosts
45 2. Setup controller nodes
46 3. Setup compute nodes
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030047
Dennis Dmitriev75fce1b2016-10-18 15:04:28 +030048 """
Dennis Dmitriev010f4cd2016-11-01 20:43:51 +020049 underlay.check_call("ip a")