summaryrefslogtreecommitdiff
path: root/oslo_context/tests/test_context.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_context/tests/test_context.py')
-rw-r--r--oslo_context/tests/test_context.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/oslo_context/tests/test_context.py b/oslo_context/tests/test_context.py
index eff31c9..6b18820 100644
--- a/oslo_context/tests/test_context.py
+++ b/oslo_context/tests/test_context.py
@@ -290,11 +290,6 @@ class ContextTest(test_base.BaseTestCase):
self.assertIn('request_id', d)
self.assertIn('resource_uuid', d)
self.assertIn('user_identity', d)
- self.assertIn('instance', d)
- self.assertIn('resource', d)
- self.assertIn('user_name', d)
- self.assertIn('project_name', d)
- self.assertIn('color', d)
self.assertEqual(auth_token, d['auth_token'])
self.assertEqual(tenant, d['tenant'])
@@ -309,22 +304,6 @@ class ContextTest(test_base.BaseTestCase):
user_identity = "%s %s %s %s %s" % (user, tenant, domain,
user_domain, project_domain)
self.assertEqual(user_identity, d['user_identity'])
- self.assertEqual("", d['instance'])
- self.assertEqual("", d['resource'])
- self.assertEqual("", d['user_name'])
- self.assertEqual("", d['project_name'])
- self.assertEqual("", d['color'])
-
- def test_get_logging_values_extra_attributes(self):
- ctx = context.RequestContext()
- d = ctx.get_logging_values()
- self.assertEqual("", d['color'])
- color = "red"
- setattr(ctx, "color", color)
- d = ctx.get_logging_values()
- # Regardless of setting attribute, this is not affected as this
- # is not included in to_dict().
- self.assertEqual("", d['color'])
def test_dict_empty_user_identity(self):
ctx = context.RequestContext()