Skip to content

Commit 5753c19

Browse files
authored
[Monitor] Fix live tests (Azure#27353)
Live tests fail due to a missing required positional argument error. This fixes that. Signed-off-by: Paul Van Eck <[email protected]>
1 parent b2d5a9a commit 5753c19

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

sdk/monitor/azure-monitor-ingestion/tests/test_logs_ingestion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TestLogsIngestionClient(AzureRecordedTestCase):
99
@pytest.mark.live_test_only
1010
@IngestionPreparer()
1111
@recorded_by_proxy
12-
def test_send_logs(self, variables, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
12+
def test_send_logs(self, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
1313
credential = ClientSecretCredential(
1414
client_id = monitor_client_id,
1515
client_secret = monitor_client_secret,

sdk/monitor/azure-monitor-ingestion/tests/test_logs_ingestion_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class TestLogsIngestionClientAsync(AzureRecordedTestCase):
1212
@IngestionPreparer()
1313
@recorded_by_proxy_async
14-
async def test_send_logs_async(self, variables, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
14+
async def test_send_logs_async(self, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
1515
credential = ClientSecretCredential(
1616
client_id = monitor_client_id,
1717
client_secret = monitor_client_secret,

sdk/monitor/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ stages:
1616
SECONDARY_WORKSPACE_ID: $(python-query-secondary-workspace-id)
1717
METRICS_RESOURCE_URI: $(azure-monitor-query-metrics-uri)
1818
AZURE_TEST_RUN_LIVE: 'true'
19+
AZURE_SKIP_LIVE_RECORDING: 'true'

0 commit comments

Comments
 (0)