Dennis Dmitriev | 2cbf235 | 2016-11-11 15:34:21 +0200 | [diff] [blame] | 1 | # 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. |
Dennis Dmitriev | 2cbf235 | 2016-11-11 15:34:21 +0200 | [diff] [blame] | 14 | |
| 15 | import pytest |
| 16 | |
Dennis Dmitriev | 2cbf235 | 2016-11-11 15:34:21 +0200 | [diff] [blame] | 17 | from tcp_tests import logger |
| 18 | |
| 19 | LOG = logger.logger |
| 20 | |
| 21 | |
| 22 | @pytest.mark.deploy |
| 23 | class TestOpenContrail(object): |
| 24 | """Test class for testing OpenContrail on a TCP lab""" |
| 25 | |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 26 | @pytest.mark.fail_snapshot |
Dennis Dmitriev | 2cbf235 | 2016-11-11 15:34:21 +0200 | [diff] [blame] | 27 | def test_opencontrail(self, config, openstack_deployed, |
Dina Belova | e6fdffb | 2017-09-19 13:58:34 -0700 | [diff] [blame] | 28 | show_step, opencontrail): |
Dennis Dmitriev | 2cbf235 | 2016-11-11 15:34:21 +0200 | [diff] [blame] | 29 | """Runner for Juniper contrail-tests |
| 30 | |
| 31 | Scenario: |
| 32 | 1. Prepare salt on hosts |
| 33 | 2. Setup controller nodes |
| 34 | 3. Setup compute nodes |
| 35 | 4. Prepare contrail-tests on ctl01 node |
| 36 | 5. Run contrail-tests |
| 37 | """ |
| 38 | opencontrail.prepare_tests( |
| 39 | config.opencontrail.opencontrail_prepare_tests_steps_path) |
| 40 | |
| 41 | opencontrail.run_tests( |
| 42 | tags=config.opencontrail.opencontrail_tags, |
| 43 | features=config.opencontrail.opencontrail_features) |