Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 1 | # 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. |
| 14 | import copy |
| 15 | import time |
| 16 | |
| 17 | import pytest |
| 18 | |
| 19 | from tcp_tests import settings |
| 20 | from tcp_tests.helpers import ext |
| 21 | from tcp_tests import logger |
| 22 | |
| 23 | LOG = logger.logger |
| 24 | |
| 25 | |
| 26 | @pytest.mark.deploy |
| 27 | class Testk8sInstall(object): |
| 28 | """Test class for testing mcp10 vxlan 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 |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 39 | def test_k8s_install(self, underlay, sl_deployed, openstack_deployed, |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 40 | show_step): |
| 41 | """Test for deploying an mcp environment and check it |
| 42 | |
| 43 | Scenario: |
| 44 | 1. Prepare salt on hosts |
| 45 | 2. Setup controller nodes |
| 46 | 3. Setup compute nodes |
Tatyana Leontovich | 5acc82a | 2017-05-23 15:41:35 +0300 | [diff] [blame] | 47 | 4. Setup stack light nodes |
Tatyana Leontovich | b740459 | 2017-04-07 11:52:28 +0300 | [diff] [blame] | 48 | |
| 49 | """ |
| 50 | LOG.info("*************** DONE **************") |
vrovachev | 0a2f635 | 2017-06-09 12:48:59 +0400 | [diff] [blame^] | 51 | |
| 52 | def test_only_k8s_install(self, underlay, openstack_deployed, show_step): |
| 53 | """Test for deploying an mcp environment and check it |
| 54 | |
| 55 | Scenario: |
| 56 | 1. Prepare salt on hosts |
| 57 | 2. Setup controller nodes |
| 58 | 3. Setup compute nodes |
| 59 | |
| 60 | """ |
| 61 | LOG.info("*************** DONE **************") |