blob: 9452bdacbbfa0023f52a12bc21ea142f81b6d35a [file] [log] [blame]
Dennis Dmitriev2cbf2352016-11-11 15:34:21 +02001# 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
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 TestOpenContrail(object):
28 """Test class for testing OpenContrail on a TCP lab"""
29
Dennis Dmitriev2cbf2352016-11-11 15:34:21 +020030 # @pytest.mark.snapshot_needed
Dennis Dmitriev99b26fe2017-04-26 12:34:44 +030031 @pytest.mark.fail_snapshot
Dennis Dmitriev2cbf2352016-11-11 15:34:21 +020032 def test_opencontrail(self, config, openstack_deployed,
33 show_step, opencontrail):
34 """Runner for Juniper contrail-tests
35
36 Scenario:
37 1. Prepare salt on hosts
38 2. Setup controller nodes
39 3. Setup compute nodes
40 4. Prepare contrail-tests on ctl01 node
41 5. Run contrail-tests
42 """
43 opencontrail.prepare_tests(
44 config.opencontrail.opencontrail_prepare_tests_steps_path)
45
46 opencontrail.run_tests(
47 tags=config.opencontrail.opencontrail_tags,
48 features=config.opencontrail.opencontrail_features)