Skip flavor_access_add/remove related tests
This patch add skip decorator for flavor_access_add/remove related tests.
After use project instead of tenant in the flavor_access extensions, will
fix those tests.
Related patch:
https://review.openstack.org/#/c/58450/
Change-Id: Ibf741059c3a7a94543f1a2230fe7048692e1db0c
Related-Bug: #1265416
diff --git a/tempest/api/compute/v3/admin/test_flavors_access.py b/tempest/api/compute/v3/admin/test_flavors_access.py
index 86194af..b09fe9d 100644
--- a/tempest/api/compute/v3/admin/test_flavors_access.py
+++ b/tempest/api/compute/v3/admin/test_flavors_access.py
@@ -46,6 +46,7 @@
cls.vcpus = 1
cls.disk = 10
+ @test.skip_because(bug='1265416')
@test.attr(type='gate')
def test_flavor_access_list_with_private_flavor(self):
# Test to list flavor access successfully by querying private flavor
@@ -65,6 +66,7 @@
self.assertEqual(str(new_flavor_id), str(first_flavor['flavor_id']))
self.assertEqual(self.adm_tenant_id, first_flavor['tenant_id'])
+ @test.skip_because(bug='1265416')
@test.attr(type='gate')
def test_flavor_access_add_remove(self):
# Test to add and remove flavor access to a given tenant.
diff --git a/tempest/api/compute/v3/admin/test_flavors_access_negative.py b/tempest/api/compute/v3/admin/test_flavors_access_negative.py
index df6557e..e1a35e9 100644
--- a/tempest/api/compute/v3/admin/test_flavors_access_negative.py
+++ b/tempest/api/compute/v3/admin/test_flavors_access_negative.py
@@ -65,6 +65,7 @@
self.client.list_flavor_access,
new_flavor_id)
+ @test.skip_because(bug='1265416')
@test.attr(type=['negative', 'gate'])
def test_flavor_non_admin_add(self):
# Test to add flavor access as a user without admin privileges.
@@ -81,6 +82,7 @@
new_flavor['id'],
self.tenant_id)
+ @test.skip_because(bug='1265416')
@test.attr(type=['negative', 'gate'])
def test_flavor_non_admin_remove(self):
# Test to remove flavor access as a user without admin privileges.
@@ -101,6 +103,7 @@
new_flavor['id'],
self.tenant_id)
+ @test.skip_because(bug='1265416')
@test.attr(type=['negative', 'gate'])
def test_add_flavor_access_duplicate(self):
# Create a new flavor.
@@ -125,6 +128,7 @@
new_flavor['id'],
self.tenant_id)
+ @test.skip_because(bug='1265416')
@test.attr(type=['negative', 'gate'])
def test_remove_flavor_access_not_found(self):
# Create a new flavor.