Skip to content

Commit

Permalink
[Monitor] Fix live tests (Azure#27353)
Browse files Browse the repository at this point in the history
Live tests fail due to a missing required positional argument error.
This fixes that.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
  • Loading branch information
pvaneck authored Nov 8, 2022
1 parent b2d5a9a commit 5753c19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TestLogsIngestionClient(AzureRecordedTestCase):
@pytest.mark.live_test_only
@IngestionPreparer()
@recorded_by_proxy
def test_send_logs(self, variables, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
def test_send_logs(self, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
credential = ClientSecretCredential(
client_id = monitor_client_id,
client_secret = monitor_client_secret,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class TestLogsIngestionClientAsync(AzureRecordedTestCase):
@IngestionPreparer()
@recorded_by_proxy_async
async def test_send_logs_async(self, variables, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
async def test_send_logs_async(self, azure_monitor_dce, azure_monitor_dcr_id, monitor_client_id, monitor_client_secret, monitor_tenant_id):
credential = ClientSecretCredential(
client_id = monitor_client_id,
client_secret = monitor_client_secret,
Expand Down
1 change: 1 addition & 0 deletions sdk/monitor/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ stages:
SECONDARY_WORKSPACE_ID: $(python-query-secondary-workspace-id)
METRICS_RESOURCE_URI: $(azure-monitor-query-metrics-uri)
AZURE_TEST_RUN_LIVE: 'true'
AZURE_SKIP_LIVE_RECORDING: 'true'

0 comments on commit 5753c19

Please sign in to comment.