Skip to content

Commit 57cf7aa

Browse files
authored
Updating api version for api key tests (microsoft#677)
1 parent 7eedb0b commit 57cf7aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-quantum/tests/unit/test_authentication.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def _get_workspace(self, token: str):
240240
workspace_name=connection_params.workspace_name,
241241
)
242242
url = (connection_params.arm_endpoint.rstrip('/') +
243-
f"{resource_id}?api-version=2023-11-13-preview")
243+
f"{resource_id}?api-version=2025-01-01-preview")
244244

245245
# Get workspace object
246246
response = http.request(
@@ -272,7 +272,7 @@ def _enable_workspace_api_keys(self, token: str, workspace: dict, enable_api_key
272272
workspace_name=connection_params.workspace_name,
273273
)
274274
url = (connection_params.arm_endpoint.rstrip('/') +
275-
f"{resource_id}?api-version=2023-11-13-preview")
275+
f"{resource_id}?api-version=2025-01-01-preview")
276276
response = http.request(
277277
method="PUT",
278278
url=url,
@@ -298,7 +298,7 @@ def _get_current_primary_connection_string(self, token: str):
298298
workspace_name=connection_params.workspace_name,
299299
)
300300
url = (connection_params.arm_endpoint.rstrip('/') +
301-
f"{resource_id}/listKeys?api-version=2023-11-13-preview")
301+
f"{resource_id}/listKeys?api-version=2025-01-01-preview")
302302
response = http.request(
303303
method="POST",
304304
url=url,

0 commit comments

Comments
 (0)