From 13e6efee8ce42ad04bc96b3e1e359b6b4b7e7094 Mon Sep 17 00:00:00 2001 From: Eugene Orlovsky Date: Thu, 29 Aug 2024 13:35:38 +0200 Subject: [PATCH] fixing test_logging related to fix in https://github.com/open-telemetry/opentelemetry-python/pull/3346 --- src/test/integration/logging/tests/test_logging.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/integration/logging/tests/test_logging.py b/src/test/integration/logging/tests/test_logging.py index 8d39c922..ecb2b7bc 100644 --- a/src/test/integration/logging/tests/test_logging.py +++ b/src/test/integration/logging/tests/test_logging.py @@ -60,10 +60,9 @@ def test_logging_enabled(self): ) for log in logs: - # "resource" is currently not a proper dictionary, but a string from a repr(...) call over the resource attributes. - # Pending a fix in https://github.com/open-telemetry/opentelemetry-python/pull/3346 - self.assertIn("'service.name': 'logging-app'", log["resource"]) - # self.assertEqual(log["resource"]["service.name"], "logging-app") + self.assertEqual( + log["resource"]["attributes"]["service.name"], "logging-app" + ) self.assertIn("attributes", logs[0])