Revert "Check RBAC policy for nested stacks"
This is causing issues with tripleo failures
with ValueError, when trying do stack-preview as
part of policy enforcement for stack DELETE.
This reverts commit a8accbba98b5fc15562864030f49d20570bf8412.
Change-Id: I366316f27f24c650bd435e67dd17abd8676cedf4
Closes-Bug: #1561172
(cherry picked from commit 354f1bcef038340d95f7dc4bc29268c9efed642e)
diff --git a/functional/test_conditional_exposure.py b/functional/test_conditional_exposure.py
index 77159fe..c1175f1 100644
--- a/functional/test_conditional_exposure.py
+++ b/functional/test_conditional_exposure.py
@@ -76,19 +76,6 @@
ram: 20000
vcpus: 10
"""
- fl_tmpl_nested = """
-heat_template_version: 2015-10-15
-resources:
- not4everyonerg:
- type: OS::Heat::ResourceGroup
- properties:
- count: 1
- resource_def:
- type: OS::Nova::Flavor
- properties:
- ram: 20000
- vcpus: 10
-"""
def test_non_admin_forbidden_create_flavors(self):
"""Fail to create Flavor resource w/o admin role.
@@ -108,11 +95,3 @@
resources = self.client.resource_types.list()
self.assertNotIn(self.forbidden_resource_type,
(r.resource_type for r in resources))
-
- def test_non_admin_forbidden_create_flavors_nested(self):
- stack_name = self._stack_rand_name()
- ex = self.assertRaises(exc.Forbidden,
- self.client.stacks.create,
- stack_name=stack_name,
- template=self.fl_tmpl_nested)
- self.assertIn(self.forbidden_resource_type, ex.message)