Remove unit test that is not relevant anymore

'test_to_dict_works_w_missing_meteos_context_attributes'
fails with latest release of oslo.context lib which is 2.12.0.

Remove this test as irrelevant and unblock CI doing it.

Change-Id: Icf0d893cb03793fc8a6d1adfcc293da96280b47e
This commit is contained in:
Hiroyuki Eguchi 2017-02-01 09:48:31 +09:00
parent 750ffb0501
commit 0f813fc1c1
1 changed files with 0 additions and 19 deletions

View File

@ -51,22 +51,3 @@ class ContextTestCase(test.TestCase):
ctxt,
'read_deleted',
True)
def test_to_dict_works_w_missing_meteos_context_attributes(self):
meteos_context_attributes = ['user_id', 'project_id', 'read_deleted',
'remote_address', 'timestamp',
'quota_class', 'service_catalog']
ctxt = context.RequestContext('111', '222', roles=['admin', 'weasel'])
# Early in context initialization to_dict() can be triggered
# before all meteos specific context attributes have been set.
# Set up this situation here.
for attr in meteos_context_attributes:
delattr(ctxt, attr)
# We should be able to run to_dict() without getting an
# AttributeError exception
res = ctxt.to_dict()
for attr in meteos_context_attributes:
self.assertIsNone(res[attr])