Skip to content

Commit d7d29d0

Browse files
committed
All tests pass
1 parent 4d1c254 commit d7d29d0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

azure-monitor-opentelemetry-distro/tests/diagnostics/test_diagnostic_logging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def set_up(
9696
TEST_DIAGNOSTIC_LOGGER_FILE_NAME,
9797
).start()
9898
patch(
99-
"azure.monitor.opentelemetry.distro._diagnostics._diagnostic_logging.get_customer_ikey",
99+
"azure.monitor.opentelemetry.distro._diagnostics._diagnostic_logging.ConnectionStringConstants.get_customer_ikey",
100100
return_value=TEST_CUSTOMER_IKEY,
101101
).start()
102102
patch(

azure-monitor-opentelemetry-distro/tests/diagnostics/test_status_logger.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def setUp(self) -> None:
8989
TEST_MACHINE_NAME,
9090
)
9191
@patch(
92-
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.get_customer_ikey",
92+
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.ConnectionStringConstants.get_customer_ikey",
9393
return_value=TEST_CUSTOMER_IKEY,
9494
)
9595
@patch(
@@ -122,7 +122,7 @@ def test_log_status_success(self, mock_get_customer_ikey, mock_getpid):
122122
TEST_MACHINE_NAME,
123123
)
124124
@patch(
125-
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.get_customer_ikey",
125+
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.ConnectionStringConstants.get_customer_ikey",
126126
return_value=TEST_CUSTOMER_IKEY,
127127
)
128128
@patch(
@@ -155,7 +155,7 @@ def test_log_status_failed_initialization(self, mock_get_customer_ikey, mock_get
155155
TEST_MACHINE_NAME,
156156
)
157157
@patch(
158-
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.get_customer_ikey",
158+
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.ConnectionStringConstants.get_customer_ikey",
159159
return_value=TEST_CUSTOMER_IKEY,
160160
)
161161
@patch(
@@ -188,7 +188,7 @@ def test_log_status_no_reason(self, mock_get_customer_ikey, mock_getpid):
188188
TEST_MACHINE_NAME,
189189
)
190190
@patch(
191-
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.get_customer_ikey",
191+
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.ConnectionStringConstants.get_customer_ikey",
192192
return_value=TEST_CUSTOMER_IKEY,
193193
)
194194
@patch(
@@ -221,7 +221,7 @@ def test_disabled_log_status_success(self, mock_get_customer_ikey, mock_getpid):
221221
TEST_MACHINE_NAME,
222222
)
223223
@patch(
224-
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.get_customer_ikey",
224+
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.ConnectionStringConstants.get_customer_ikey",
225225
return_value=TEST_CUSTOMER_IKEY,
226226
)
227227
@patch(
@@ -254,7 +254,7 @@ def test_disabled_log_status_failed_initialization(self, mock_get_customer_ikey,
254254
TEST_MACHINE_NAME,
255255
)
256256
@patch(
257-
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.get_customer_ikey",
257+
"azure.monitor.opentelemetry.distro._diagnostics._status_logger.ConnectionStringConstants.get_customer_ikey",
258258
return_value=TEST_CUSTOMER_IKEY,
259259
)
260260
@patch(

0 commit comments

Comments
 (0)