From 8ffbd09d400269136470ed0379a2462129d05b8b Mon Sep 17 00:00:00 2001
From: Michael Polenchuk <mpolenchuk@mirantis.com>
Date: Mon, 30 Jan 2017 15:06:28 +0400
Subject: Support newton in tempest

* newton release support is started from 13.0.0
* set swift operator role to existing one
* unblacklist server_basic_ops test

JIRA: FUNCTEST-712
Change-Id: Ieb3d9477db3dfa98f940c3732b64f6eb7515f6e6
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
---
 functest/ci/config_functest.yaml                     |  2 ++
 functest/opnfv_tests/openstack/tempest/conf_utils.py |  2 ++
 .../openstack/tempest/custom_tests/blacklist.txt     | 20 --------------------
 functest/utils/functest_constants.py                 |  2 ++
 4 files changed, 6 insertions(+), 20 deletions(-)

(limited to 'functest')

diff --git a/functest/ci/config_functest.yaml b/functest/ci/config_functest.yaml
index f1efd904..2820f8b0 100755
--- a/functest/ci/config_functest.yaml
+++ b/functest/ci/config_functest.yaml
@@ -97,6 +97,8 @@ tempest:
         user_password: tempest
     validation:
         ssh_timeout: 130
+    object_storage:
+        operator_role: SwiftOperator
     private_net_name: tempest-net
     private_subnet_name: tempest-subnet
     private_subnet_cidr: 192.168.150.0/24
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py
index 67b52796..88085d9a 100644
--- a/functest/opnfv_tests/openstack/tempest/conf_utils.py
+++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py
@@ -82,6 +82,8 @@ def configure_tempest(logger, deployment_dir, IMAGE_ID=None, FLAVOR_ID=None):
     config.set('identity', 'password', CONST.tempest_identity_user_password)
     config.set(
         'validation', 'ssh_timeout', CONST.tempest_validation_ssh_timeout)
+    config.set('object-storage', 'operator_role',
+               CONST.tempest_object_storage_operator_role)
 
     if CONST.OS_ENDPOINT_TYPE is not None:
         services_list = ['compute',
diff --git a/functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.txt b/functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.txt
index 5c8581f6..0a4256ce 100644
--- a/functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.txt
+++ b/functest/opnfv_tests/openstack/tempest/custom_tests/blacklist.txt
@@ -74,23 +74,3 @@
         - tempest.scenario.test_server_basic_ops.TestServerBasicOps.test_server_basic_ops
         - tempest.scenario.test_volume_boot_pattern.TestVolumeBootPattern.test_volume_boot_pattern
         - tempest.scenario.test_volume_boot_pattern.TestVolumeBootPatternV2.test_volume_boot_pattern
-
--
-    # https://bugs.launchpad.net/tempest/+bug/1586931
-    scenarios:
-        - os-odl_l2-nofeature-ha
-        - os-odl_l2-nofeature-noha
-        - os-odl_l2-sfc-ha
-        - os-odl_l2-sfc-noha
-        - os-odl_l3-nofeature-ha
-        - os-odl_l3-nofeature-noha
-        - os-nosdn-kvm-ha
-        - os-nosdn-kvm-noha
-        - os-nosdn-nofeature-ha
-        - os-nosdn-nofeature-noha
-        - os-nosdn-ovs-ha
-        - os-nosdn-ovs-noha
-    installers:
-        - fuel
-    tests:
-        - tempest.scenario.test_server_basic_ops.TestServerBasicOps.test_server_basic_ops
diff --git a/functest/utils/functest_constants.py b/functest/utils/functest_constants.py
index 7fb03e8a..3cc744c6 100644
--- a/functest/utils/functest_constants.py
+++ b/functest/utils/functest_constants.py
@@ -146,6 +146,8 @@ TEMPEST_USER_PASSWORD = get_value('tempest.identity.user_password',
                                   'TEMPEST_USER_PASSWORD')
 TEMPEST_SSH_TIMEOUT = get_value('tempest.validation.ssh_timeout',
                                 'TEMPEST_SSH_TIMEOUT')
+TEMPEST_OPERATOR_ROLE = get_value('tempest.object_storage.operator_role',
+                                  'TEMPEST_OPERATOR_ROLE')
 TEMPEST_USE_CUSTOM_IMAGES = get_value('tempest.use_custom_images',
                                       'TEMPEST_USE_CUSTOM_IMAGES')
 TEMPEST_USE_CUSTOM_FLAVORS = get_value('tempest.use_custom_flavors',
-- 
cgit