Remove checks for auth_token in JSON-based formatter tests

the auth_token will no longer be returned as-is, as a result of a recent
patch to oslo.context [1]. So this removes these checks from here as
they will break when we get a newer oslo.context.

[1] I2b245c1665c3587be3c476b803122788d186e5d5

Change-Id: Ib3fea55976fb7c469d7b86644cacb802046e561a
changes/69/518469/1
Juan Antonio Osorio Robles 5 years ago
parent 215cc3a8ec
commit 527e9fbb1b

@ -426,7 +426,6 @@ class JSONFormatterTestCase(LogTestBase):
self.assertIn('extra', data)
extra = data['extra']
self.assertEqual('value', extra['key'])
self.assertEqual(local_context.auth_token, extra['auth_token'])
self.assertEqual(local_context.user, extra['user'])
self.assertEqual('test-json', data['name'])
@ -565,7 +564,6 @@ class FluentFormatterTestCase(LogTestBase):
self.assertIn('extra', data)
extra = data['extra']
self.assertEqual('value', extra['key'])
self.assertEqual(local_context.auth_token, extra['auth_token'])
self.assertEqual(local_context.user, extra['user'])
self.assertEqual('test-fluent', data['name'])

Loading…
Cancel
Save