Remove legacy policy file test
This test is old and not testing much as this is just a custom policy file. Change-Id: Ibebe6d4d8b6a27fab3b2513568cb191c815311b0
This commit is contained in:
parent
0bfcb468cf
commit
aa9f7df75d
@ -138,16 +138,6 @@ def default_alarms(auth_headers):
|
||||
]
|
||||
|
||||
|
||||
class LegacyPolicyFileMixin(object):
|
||||
def setUp(self):
|
||||
super(LegacyPolicyFileMixin, self).setUp()
|
||||
self.CONF.set_override(
|
||||
'policy_file',
|
||||
os.path.abspath('aodh/tests/policy.json-pre-mikita'),
|
||||
group='oslo_policy')
|
||||
self.app = self._make_app()
|
||||
|
||||
|
||||
class TestAlarmsBase(v2.FunctionalTest):
|
||||
|
||||
def setUp(self):
|
||||
@ -1772,10 +1762,6 @@ class TestAlarms(TestAlarmsBase):
|
||||
'user_id']).issubset(payload.keys()))
|
||||
|
||||
|
||||
class TestAlarmsLegacy(LegacyPolicyFileMixin, TestAlarms):
|
||||
pass
|
||||
|
||||
|
||||
class TestAlarmsHistory(TestAlarmsBase):
|
||||
|
||||
def setUp(self):
|
||||
@ -2146,10 +2132,6 @@ class TestAlarmsHistory(TestAlarmsBase):
|
||||
self._get_alarm_history('foobar', expect_errors=True, status=404)
|
||||
|
||||
|
||||
class TestAlarmsHistoryLegacy(LegacyPolicyFileMixin, TestAlarmsHistory):
|
||||
pass
|
||||
|
||||
|
||||
class TestAlarmsQuotas(TestAlarmsBase):
|
||||
|
||||
def _test_alarm_quota(self):
|
||||
@ -2836,11 +2818,6 @@ class TestAlarmsRuleCombination(TestAlarmsBase):
|
||||
self.assertEqual(['c', 'a', 'b'], alarms[0].rule.get('alarm_ids'))
|
||||
|
||||
|
||||
class TestAlarmsRuleCombinationLegacy(LegacyPolicyFileMixin,
|
||||
TestAlarmsRuleCombination):
|
||||
pass
|
||||
|
||||
|
||||
class TestAlarmsRuleGnocchi(TestAlarmsBase):
|
||||
|
||||
def setUp(self):
|
||||
@ -3085,11 +3062,6 @@ class TestAlarmsRuleGnocchi(TestAlarmsBase):
|
||||
self._verify_alarm(json, alarms[0])
|
||||
|
||||
|
||||
class TestAlarmsRuleGnocchiLegacy(LegacyPolicyFileMixin,
|
||||
TestAlarmsRuleGnocchi):
|
||||
pass
|
||||
|
||||
|
||||
class TestAlarmsEvent(TestAlarmsBase):
|
||||
|
||||
def test_list_alarms(self):
|
||||
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"context_is_admin": "role:admin",
|
||||
"segregation": "rule:context_is_admin",
|
||||
"default": ""
|
||||
}
|
Loading…
Reference in New Issue
Block a user