diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/workspace/connections/workspace_connection.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/workspace/connections/workspace_connection.py index 784020bbfe71..2c620897752d 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/workspace/connections/workspace_connection.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/workspace/connections/workspace_connection.py @@ -43,7 +43,6 @@ class WorkspaceConnectionSchema(PathAwareSchema): required=True, ) target = fields.Str() - expiryTime = fields.Str() credentials = UnionField( [ NestedField(PatTokenConfigurationSchema), diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/connections/workspace_connection.py b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/connections/workspace_connection.py index 6f0b284a2ab1..00ee45b72257 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/connections/workspace_connection.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/connections/workspace_connection.py @@ -9,7 +9,7 @@ from pathlib import Path from typing import IO, Any, AnyStr, Dict, Optional, Union -from azure.ai.ml._restclient.v2023_04_01_preview.models import ( +from azure.ai.ml._restclient.v2022_01_01_preview.models import ( ManagedIdentityAuthTypeWorkspaceConnectionProperties, NoneAuthTypeWorkspaceConnectionProperties, PATAuthTypeWorkspaceConnectionProperties, @@ -17,7 +17,7 @@ ServicePrincipalAuthTypeWorkspaceConnectionProperties, UsernamePasswordAuthTypeWorkspaceConnectionProperties, ) -from azure.ai.ml._restclient.v2023_04_01_preview.models import ( +from azure.ai.ml._restclient.v2022_01_01_preview.models import ( WorkspaceConnectionPropertiesV2BasicResource as RestWorkspaceConnection, ) from azure.ai.ml._restclient.v2023_04_01_preview.models import ( @@ -50,8 +50,6 @@ class WorkspaceConnection(Resource): :type name: str :param target: The URL or ARM resource ID of the external resource. :type target: str - :param expiryTime: The expiry time of the workspace connection secret - :type expiryTime: str :param credentials: The credentials for authenticating to the external resource. :type credentials: Union[ ~azure.ai.ml.entities.PatTokenConfiguration, ~azure.ai.ml.entities.SasTokenConfiguration, @@ -79,13 +77,11 @@ def __init__( ServicePrincipalConfiguration, AccessKeyConfiguration, ], - expiryTime: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, **kwargs, ): self.type = type self._target = target - self._expiryTime = expiryTime self._credentials = credentials self._metadata = json.loads(json.dumps(metadata)) super().__init__(**kwargs) @@ -105,15 +101,6 @@ def type(self, value: str): return self._type = camel_to_snake(value) - @property - def expiryTime(self) -> str: - """Secret expiry time for workspace connection. - - :return: Secret expiry time for workspace connection. - :rtype: str - """ - return self._expiryTime - @property def target(self) -> str: """Target url for the workspace connection. @@ -221,7 +208,6 @@ def _from_rest_object(cls, rest_obj: RestWorkspaceConnection) -> "WorkspaceConne id=rest_obj.id, name=rest_obj.name, target=properties.target, - expiryTime=properties.expiry_time, creation_context=SystemData._from_rest_object(rest_obj.system_data) if rest_obj.system_data else None, type=camel_to_snake(properties.category), credentials=credentials, @@ -256,7 +242,6 @@ def _to_rest_object(self) -> RestWorkspaceConnection: target=self.target, credentials=self.credentials._to_workspace_connection_rest_object(), metadata=self.metadata, - expiry_time=self.expiryTime, # auth_type=auth_type, category=_snake_to_camel(self.type), ) diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_workspace_connections_operations.py b/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_workspace_connections_operations.py index 74fb7a45630b..1f2bf82a1030 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_workspace_connections_operations.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_workspace_connections_operations.py @@ -6,7 +6,7 @@ from typing import Dict, Iterable, Optional -from azure.ai.ml._restclient.v2023_04_01_preview import AzureMachineLearningWorkspaces as ServiceClient042023Preview +from azure.ai.ml._restclient.v2022_05_01 import AzureMachineLearningWorkspaces as ServiceClient052022 from azure.ai.ml._scope_dependent_operations import ( OperationConfig, OperationsContainer, @@ -34,7 +34,7 @@ def __init__( self, operation_scope: OperationScope, operation_config: OperationConfig, - service_client: ServiceClient042023Preview, + service_client: ServiceClient052022, all_operations: OperationsContainer, credentials: Optional[TokenCredential] = None, **kwargs: Dict, diff --git a/sdk/ml/azure-ai-ml/tests/feature_store/unittests/test_feature_store_operations.py b/sdk/ml/azure-ai-ml/tests/feature_store/unittests/test_feature_store_operations.py index 0c66bb73f5ac..6d7f4d17f6f2 100644 --- a/sdk/ml/azure-ai-ml/tests/feature_store/unittests/test_feature_store_operations.py +++ b/sdk/ml/azure-ai-ml/tests/feature_store/unittests/test_feature_store_operations.py @@ -20,13 +20,13 @@ def mock_credential() -> Mock: @pytest.fixture def mock_feature_store_operation( mock_workspace_scope: OperationScope, - mock_aml_services_2023_04_01_preview: Mock, + mock_aml_services_2022_12_01_preview: Mock, mock_machinelearning_client: Mock, mock_credential: Mock, ) -> FeatureStoreOperations: yield FeatureStoreOperations( operation_scope=mock_workspace_scope, - service_client=mock_aml_services_2023_04_01_preview, + service_client=mock_aml_services_2022_12_01_preview, all_operations=mock_machinelearning_client._operation_container, credentials=mock_credential, ) diff --git a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_cr_msi.json b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_cr_msi.json index 3355e581e2ec..f44ef9cd132a 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_cr_msi.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_cr_msi.json @@ -1,56 +1,19 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/eastus2euap/workspaceOperationsStatus/3dc7f82f-7171-41c1-928a-df681ed9f66d?api-version=2023-04-01-preview\u0026type=async", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:17d65b70-e9ce-4ed5-9347-1f660ec782e9", - "Server-Timing": "traceparent;desc=\u002200-c15a3bf9ffb626265c0e72d0d1899d33-169695469266a527-01\u0022", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus2euap-02", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "53ad6e18-f050-49de-b5bc-044a14f9a273", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223900Z:53ad6e18-f050-49de-b5bc-044a14f9a273", - "x-request-time": "0.008" - }, - "ResponseBody": { - "status": "Succeeded", - "percentComplete": 100.0 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "223", + "Content-Length": "186", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { "authType": "ManagedIdentity", - "expiryTime": "01/05/2025 00:00:00", "category": "ContainerRegistry", "target": "https://test-feed.com", "credentials": { @@ -64,30 +27,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:00 GMT", + "Date": "Wed, 15 Mar 2023 15:02:35 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-b3cebd9906e53f500762de117dacc349-6692f938dafe47d6-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-1c5598dff2cc7675502fb8fd38fa86c4-efb589488b695111-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "71c385c4-bbf1-41e7-bc9e-3228846d096a", + "x-ms-correlation-request-id": "3a43e818-b59f-4a06-b084-264eadbdc25e", "x-ms-ratelimit-remaining-subscription-writes": "1195", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223900Z:71c385c4-bbf1-41e7-bc9e-3228846d096a", - "x-request-time": "0.191" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150235Z:3a43e818-b59f-4a06-b084-264eadbdc25e", + "x-request-time": "0.819" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781", - "name": "e2etest_wps_conn_test_67680941781", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441", + "name": "e2etest_wps_conn_test_191391113441", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "ManagedIdentity", @@ -95,13 +58,13 @@ "category": "ContainerRegistry", "expiryTime": null, "target": "https://test-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -109,7 +72,7 @@ "Connection": "keep-alive", "Content-Length": "200", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { @@ -127,30 +90,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:00 GMT", + "Date": "Wed, 15 Mar 2023 15:02:36 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-a608f897943f6e03a817f74e208029f5-6fe5a1b3f1df7200-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-aaf95ec09f0b328a5d801fa33ebc2b91-6beb03d29b5bdbc8-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "108f39c8-85d8-4f8b-8d02-f45e6ce44506", + "x-ms-correlation-request-id": "f95934d2-c4c4-4a1b-a98c-9cc77d64a50a", "x-ms-ratelimit-remaining-subscription-writes": "1194", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223901Z:108f39c8-85d8-4f8b-8d02-f45e6ce44506", - "x-request-time": "0.196" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150236Z:f95934d2-c4c4-4a1b-a98c-9cc77d64a50a", + "x-request-time": "0.441" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781", - "name": "e2etest_wps_conn_test_67680941781", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441", + "name": "e2etest_wps_conn_test_191391113441", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "ManagedIdentity", @@ -158,19 +121,19 @@ "category": "ContainerRegistry", "expiryTime": null, "target": "https://test-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -178,30 +141,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:00 GMT", + "Date": "Wed, 15 Mar 2023 15:02:36 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-1c882df672aa16ea987da3b284faddca-3fcd6ca4c0fa599a-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-b981d693fc8056b0bcd70f26624a74a2-8d5c23d063b57bf5-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "02a627f9-17ae-4f2b-8107-5f1dd119ae77", - "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-correlation-request-id": "fc040f00-2117-4f61-81a9-85a1a00dbcb1", + "x-ms-ratelimit-remaining-subscription-reads": "11993", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223901Z:02a627f9-17ae-4f2b-8107-5f1dd119ae77", - "x-request-time": "0.020" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150236Z:fc040f00-2117-4f61-81a9-85a1a00dbcb1", + "x-request-time": "0.025" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781", - "name": "e2etest_wps_conn_test_67680941781", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441", + "name": "e2etest_wps_conn_test_191391113441", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "ManagedIdentity", @@ -209,76 +172,76 @@ "category": "ContainerRegistry", "expiryTime": null, "target": "https://test-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441?api-version=2022-12-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 04 May 2023 22:39:01 GMT", + "Date": "Wed, 15 Mar 2023 15:02:37 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-41ad23067d2a3178a29b32b583ce7119-09595a90757a19e8-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-c2b24abe6ccf6cb4566506e28ed846b2-d7515f00ed944c2b-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "822fcf49-8262-4e75-929a-ea199e265781", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", + "x-ms-correlation-request-id": "589371fb-cb9e-41a8-88e6-efc0e290048a", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223901Z:822fcf49-8262-4e75-929a-ea199e265781", - "x-request-time": "0.204" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150237Z:589371fb-cb9e-41a8-88e6-efc0e290048a", + "x-request-time": "0.201" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_67680941781?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_191391113441?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "686", + "Content-Length": "688", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:01 GMT", + "Date": "Wed, 15 Mar 2023 15:02:37 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cc4e07a8-c093-4cb8-80f3-82b23f5117c7", - "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-correlation-request-id": "e39a0ba6-6e2a-4b38-bbb9-b65cdaffc728", + "x-ms-ratelimit-remaining-subscription-reads": "11992", "x-ms-response-type": "error", - "x-ms-routing-request-id": "WESTUS2:20230504T223901Z:cc4e07a8-c093-4cb8-80f3-82b23f5117c7", - "x-request-time": "0.037" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150237Z:e39a0ba6-6e2a-4b38-bbb9-b65cdaffc728", + "x-request-time": "0.022" }, "ResponseBody": { "error": { "code": "UserError", "severity": null, - "message": "Connection e2etest_wps_conn_test_67680941781 can\u0027t be found in this workspace", + "message": "Connection e2etest_wps_conn_test_191391113441 can\u0027t be found in this workspace", "messageFormat": null, "messageParameters": null, "referenceCode": null, @@ -293,23 +256,23 @@ "additionalInfo": null }, "correlation": { - "operation": "c3e211a4ab6adb989b80764b5c989a12", - "request": "11f5bf5e04176026" + "operation": "041b52ce156bd1c2f5ee8f3e4618e8d9", + "request": "ef9aa2bd248bf93b" }, - "environment": "eastus", - "location": "eastus", - "time": "2023-05-04T22:39:01.9411974\u002B00:00", + "environment": "master", + "location": "westus2", + "time": "2023-03-15T15:02:37.3686407\u002B00:00", "componentName": "account-rp" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=ContainerRegistry\u0026api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=ContainerRegistry\u0026api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -317,21 +280,21 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:01 GMT", + "Date": "Wed, 15 Mar 2023 15:02:37 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-f8036ca0d130642fae3df2bc1e65293b-4e61c70a3d08ef1f-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-d4899c025bdd6166232d07abde972693-da935df101e765bd-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bce482ad-3f7e-4dca-bd0b-398a9ece9461", - "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-correlation-request-id": "6373908f-65bd-4d3f-be65-3faa3e141431", + "x-ms-ratelimit-remaining-subscription-reads": "11991", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223902Z:bce482ad-3f7e-4dca-bd0b-398a9ece9461", - "x-request-time": "0.025" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150237Z:6373908f-65bd-4d3f-be65-3faa3e141431", + "x-request-time": "0.017" }, "ResponseBody": { "value": [] @@ -339,6 +302,6 @@ } ], "Variables": { - "wps_connection_name": "test_67680941781" + "wps_connection_name": "test_191391113441" } } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_pat.json b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_pat.json index 423a1fc4501a..d887ab0391d8 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_pat.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_pat.json @@ -1,20 +1,19 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "167", + "Content-Length": "130", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { "authType": "PAT", - "expiryTime": "01/05/2025 00:00:00", "category": "Git", "target": "https://test-git-feed.com", "credentials": { @@ -27,30 +26,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:56 GMT", + "Date": "Wed, 15 Mar 2023 15:02:31 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-47078694e81b86936246f864f8a71056-f771750001c95b08-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-27a9d2667827889b6f6be8525ec6a6a1-201114e18b1940c2-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ae0a13ee-477a-4c6f-b029-fb58ae402ffe", + "x-ms-correlation-request-id": "e04a5ce4-de5e-40e6-b795-5176aa82bc1e", "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223856Z:ae0a13ee-477a-4c6f-b029-fb58ae402ffe", - "x-request-time": "0.249" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150231Z:e04a5ce4-de5e-40e6-b795-5176aa82bc1e", + "x-request-time": "1.183" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475", - "name": "e2etest_wps_conn_test_835382260475", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930", + "name": "e2etest_wps_conn_test_805699089930", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "PAT", @@ -58,13 +57,13 @@ "category": "Git", "expiryTime": null, "target": "https://test-git-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -72,7 +71,7 @@ "Connection": "keep-alive", "Content-Length": "138", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { @@ -89,30 +88,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:57 GMT", + "Date": "Wed, 15 Mar 2023 15:02:32 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-c9f149a5a3b84feda8ed56723bb87fde-b1cfdcca0e41b3d3-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-d2b6d8f005d8f174a17690e8f6e1af3c-4871d393ccab7c52-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a101a37d-6ef2-4db4-8cf2-cac8a9efd0c1", + "x-ms-correlation-request-id": "3a945651-7e8c-4af0-a22c-7dd790b29dc9", "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223857Z:a101a37d-6ef2-4db4-8cf2-cac8a9efd0c1", - "x-request-time": "0.290" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150232Z:3a945651-7e8c-4af0-a22c-7dd790b29dc9", + "x-request-time": "0.269" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475", - "name": "e2etest_wps_conn_test_835382260475", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930", + "name": "e2etest_wps_conn_test_805699089930", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "PAT", @@ -120,19 +119,19 @@ "category": "Git", "expiryTime": null, "target": "https://test-git-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -140,30 +139,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:57 GMT", + "Date": "Wed, 15 Mar 2023 15:02:32 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-8189b6c313f841e566f0d8b8f512d1ac-0108ff588902284e-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-717832d323093d8d58cfdffb56f2ca1f-5db3e6f295c0d0ae-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d328c394-222c-49e9-bb85-3768b62600fd", - "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-correlation-request-id": "e914f192-45e7-46d9-8642-39bdd484cbf3", + "x-ms-ratelimit-remaining-subscription-reads": "11996", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223857Z:d328c394-222c-49e9-bb85-3768b62600fd", + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150232Z:e914f192-45e7-46d9-8642-39bdd484cbf3", "x-request-time": "0.021" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475", - "name": "e2etest_wps_conn_test_835382260475", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930", + "name": "e2etest_wps_conn_test_805699089930", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "PAT", @@ -171,76 +170,76 @@ "category": "Git", "expiryTime": null, "target": "https://test-git-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930?api-version=2022-12-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 04 May 2023 22:38:57 GMT", + "Date": "Wed, 15 Mar 2023 15:02:33 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-3b1375e2ca4c5ca67e1a739fb985bf62-26c193713786da79-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-a568a9fb1f9ea09acfdb3782047d15f1-6299cd56bb99fbad-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4212c210-6690-4e29-92df-aa7f2dcee853", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-correlation-request-id": "47a0ea0f-97cc-4725-83f8-65f679f99f97", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223858Z:4212c210-6690-4e29-92df-aa7f2dcee853", - "x-request-time": "0.213" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150233Z:47a0ea0f-97cc-4725-83f8-65f679f99f97", + "x-request-time": "0.287" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_835382260475?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_805699089930?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "687", + "Content-Length": "688", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:58 GMT", + "Date": "Wed, 15 Mar 2023 15:02:33 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ccab672a-e645-4dca-88dd-0439fb73e464", - "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-correlation-request-id": "160d1de4-577d-45cd-ad4a-73d6bd6d49a8", + "x-ms-ratelimit-remaining-subscription-reads": "11995", "x-ms-response-type": "error", - "x-ms-routing-request-id": "WESTUS2:20230504T223858Z:ccab672a-e645-4dca-88dd-0439fb73e464", - "x-request-time": "0.042" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150233Z:160d1de4-577d-45cd-ad4a-73d6bd6d49a8", + "x-request-time": "0.038" }, "ResponseBody": { "error": { "code": "UserError", "severity": null, - "message": "Connection e2etest_wps_conn_test_835382260475 can\u0027t be found in this workspace", + "message": "Connection e2etest_wps_conn_test_805699089930 can\u0027t be found in this workspace", "messageFormat": null, "messageParameters": null, "referenceCode": null, @@ -255,23 +254,23 @@ "additionalInfo": null }, "correlation": { - "operation": "418a7060b48555a1781734ab9b6ba01b", - "request": "badd6d5b3426237b" + "operation": "6adb629774ff8e25f4a02e8117c7b171", + "request": "a189b3547e467941" }, - "environment": "eastus", - "location": "eastus", - "time": "2023-05-04T22:38:58.6252647\u002B00:00", + "environment": "master", + "location": "westus2", + "time": "2023-03-15T15:02:33.2675796\u002B00:00", "componentName": "account-rp" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=Git\u0026api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=Git\u0026api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -279,21 +278,21 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:58 GMT", + "Date": "Wed, 15 Mar 2023 15:02:33 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-25e1c9aa21e1f4ee2a8d047a93d6d4e1-298c965d9552a93c-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-033a12d09416a8b4d02d5d22b2108656-f89e28b5eb4efe99-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "33f5778d-5abc-46aa-bb31-689d214e8b57", - "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-correlation-request-id": "d3da2013-3bbb-4f97-8c14-2a4f1f68e758", + "x-ms-ratelimit-remaining-subscription-reads": "11994", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223858Z:33f5778d-5abc-46aa-bb31-689d214e8b57", - "x-request-time": "0.020" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150233Z:d3da2013-3bbb-4f97-8c14-2a4f1f68e758", + "x-request-time": "0.016" }, "ResponseBody": { "value": [] @@ -301,6 +300,6 @@ } ], "Variables": { - "wps_connection_name": "test_835382260475" + "wps_connection_name": "test_805699089930" } } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_user_pwd.json b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_user_pwd.json index 35551912363e..ef056412566e 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_user_pwd.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_git_user_pwd.json @@ -1,20 +1,19 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "202", + "Content-Length": "165", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { "authType": "UsernamePassword", - "expiryTime": "01/05/2025 00:00:00", "category": "Git", "target": "https://test-git-feed.com", "credentials": { @@ -28,30 +27,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:03 GMT", + "Date": "Wed, 15 Mar 2023 15:02:39 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-90909fce21685dbac7ccf4925d6b066f-d687a1014887d169-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-b52b9162817420c838213b9387b3d071-50976d596bddd1f0-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d5ff25c2-912d-412a-a9dd-147968ae6b25", + "x-ms-correlation-request-id": "02b91227-a70c-49f0-bd83-f2ddb888fa43", "x-ms-ratelimit-remaining-subscription-writes": "1193", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223903Z:d5ff25c2-912d-412a-a9dd-147968ae6b25", - "x-request-time": "0.254" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150239Z:02b91227-a70c-49f0-bd83-f2ddb888fa43", + "x-request-time": "0.206" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917", - "name": "e2etest_wps_conn_test_855635493917", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499", + "name": "e2etest_wps_conn_test_579060790499", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "UsernamePassword", @@ -59,13 +58,13 @@ "category": "Git", "expiryTime": null, "target": "https://test-git-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -73,7 +72,7 @@ "Connection": "keep-alive", "Content-Length": "171", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { @@ -91,30 +90,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:03 GMT", + "Date": "Wed, 15 Mar 2023 15:02:39 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-83cdcbab473270b5993d10fd964dd0cc-958c499ecc739212-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-558ba0d9b94113f35bccf94dee76a0b7-d70661644ad9e24d-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7add9d95-5cda-4fe5-89b3-3f1055e8aeb7", + "x-ms-correlation-request-id": "62280dd7-3818-4451-8e13-76fe9d858b86", "x-ms-ratelimit-remaining-subscription-writes": "1192", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223904Z:7add9d95-5cda-4fe5-89b3-3f1055e8aeb7", - "x-request-time": "0.279" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150239Z:62280dd7-3818-4451-8e13-76fe9d858b86", + "x-request-time": "0.246" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917", - "name": "e2etest_wps_conn_test_855635493917", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499", + "name": "e2etest_wps_conn_test_579060790499", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "UsernamePassword", @@ -122,19 +121,19 @@ "category": "Git", "expiryTime": null, "target": "https://test-git-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -142,30 +141,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:04 GMT", + "Date": "Wed, 15 Mar 2023 15:02:39 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-de1b7365ae4af4517ab20d24d9aafb6a-7a5312cc4bdf63b9-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-7a765df4bc7d28c896c277165939c046-816cf888845a4059-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "235b7389-9f76-49ac-8356-dd63677e3dc8", - "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-correlation-request-id": "07702c88-8d6e-453b-8ae3-6aaad2b8239c", + "x-ms-ratelimit-remaining-subscription-reads": "11990", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223904Z:235b7389-9f76-49ac-8356-dd63677e3dc8", - "x-request-time": "0.024" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150239Z:07702c88-8d6e-453b-8ae3-6aaad2b8239c", + "x-request-time": "0.015" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917", - "name": "e2etest_wps_conn_test_855635493917", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499", + "name": "e2etest_wps_conn_test_579060790499", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "UsernamePassword", @@ -173,76 +172,76 @@ "category": "Git", "expiryTime": null, "target": "https://test-git-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499?api-version=2022-12-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 04 May 2023 22:39:04 GMT", + "Date": "Wed, 15 Mar 2023 15:02:40 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-72735daf70ac280f44cf42a2bd01e7e5-8bcba7de3ee7ac61-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-4da230e80dbba88d32c14e0aa2bbb12c-e8dc20d8d7dc9c3f-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "11ff1a89-ff79-48ce-bc8b-0ba8f8bd41ad", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", + "x-ms-correlation-request-id": "c0f6b01a-621e-4026-b4b4-ba5f8ae97614", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223905Z:11ff1a89-ff79-48ce-bc8b-0ba8f8bd41ad", - "x-request-time": "0.205" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150240Z:c0f6b01a-621e-4026-b4b4-ba5f8ae97614", + "x-request-time": "0.398" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_855635493917?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_579060790499?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "687", + "Content-Length": "688", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:04 GMT", + "Date": "Wed, 15 Mar 2023 15:02:40 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "29d07193-fb09-4585-b38b-f43169f5ef59", - "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-correlation-request-id": "2fe55822-6d70-43b2-a791-8137559445ca", + "x-ms-ratelimit-remaining-subscription-reads": "11989", "x-ms-response-type": "error", - "x-ms-routing-request-id": "WESTUS2:20230504T223905Z:29d07193-fb09-4585-b38b-f43169f5ef59", - "x-request-time": "0.032" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150240Z:2fe55822-6d70-43b2-a791-8137559445ca", + "x-request-time": "0.050" }, "ResponseBody": { "error": { "code": "UserError", "severity": null, - "message": "Connection e2etest_wps_conn_test_855635493917 can\u0027t be found in this workspace", + "message": "Connection e2etest_wps_conn_test_579060790499 can\u0027t be found in this workspace", "messageFormat": null, "messageParameters": null, "referenceCode": null, @@ -257,23 +256,23 @@ "additionalInfo": null }, "correlation": { - "operation": "b7069fb640904b626769b86f790a1d1d", - "request": "bef803bd4707f7fd" + "operation": "8530844a8513f1a1f8877780c3a21eb5", + "request": "011c2f6489a4977c" }, - "environment": "eastus", - "location": "eastus", - "time": "2023-05-04T22:39:05.2693199\u002B00:00", + "environment": "master", + "location": "westus2", + "time": "2023-03-15T15:02:40.9168618\u002B00:00", "componentName": "account-rp" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=Git\u0026api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=Git\u0026api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -281,21 +280,21 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:05 GMT", + "Date": "Wed, 15 Mar 2023 15:02:40 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-185a9e144fb5280c40181dd7354a48a8-17f3ec6f93acff3f-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-69e703b7ecfe0841c7b3fdde62cc778e-bd2c353479bb8c26-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e8cc0d31-1657-4723-b7de-b022125e01c1", - "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-correlation-request-id": "d2d9ebc2-b236-4694-983f-b51a208151e2", + "x-ms-ratelimit-remaining-subscription-reads": "11988", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223905Z:e8cc0d31-1657-4723-b7de-b022125e01c1", - "x-request-time": "0.055" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150241Z:d2d9ebc2-b236-4694-983f-b51a208151e2", + "x-request-time": "0.021" }, "ResponseBody": { "value": [] @@ -303,6 +302,6 @@ } ], "Variables": { - "wps_connection_name": "test_855635493917" + "wps_connection_name": "test_579060790499" } } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_python_feed.json b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_python_feed.json index 65ef5d3e4dde..45da0d181ac4 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_python_feed.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_python_feed.json @@ -1,20 +1,19 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "170", + "Content-Length": "133", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { "authType": "PAT", - "expiryTime": "01/05/2025 00:00:00", "category": "PythonFeed", "target": "https://test-feed.com", "credentials": { @@ -27,30 +26,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:52 GMT", + "Date": "Wed, 15 Mar 2023 15:02:25 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-6a3d25d1ca3d41a08cd78f16c0da3249-adad2f277bd46db1-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-e270db35dedde59919229dfb70405089-b4eaaa5d33ba196d-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e70b8b93-0306-4b38-a638-4ec6f378c88f", + "x-ms-correlation-request-id": "0201d2c1-020d-4383-a0e0-8daeba9f2a76", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223852Z:e70b8b93-0306-4b38-a638-4ec6f378c88f", - "x-request-time": "0.650" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150225Z:0201d2c1-020d-4383-a0e0-8daeba9f2a76", + "x-request-time": "2.639" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688", - "name": "e2etest_wps_conn_test_46937178688", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515", + "name": "e2etest_wps_conn_test_33231107515", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "PAT", @@ -58,13 +57,13 @@ "category": "PythonFeed", "expiryTime": null, "target": "https://test-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -72,7 +71,7 @@ "Connection": "keep-alive", "Content-Length": "141", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { @@ -89,30 +88,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:52 GMT", + "Date": "Wed, 15 Mar 2023 15:02:27 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-e847b445046cb62989e57f738176786c-077900dedabd0b19-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-48d359933704336d366cec32de9c4b36-72fc4638e5c9cefa-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "99f3ce0e-90c3-4d3f-98dd-4a6aecb8cf75", + "x-ms-correlation-request-id": "0561c64d-025b-4fcc-9ed7-b85d80a83809", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223853Z:99f3ce0e-90c3-4d3f-98dd-4a6aecb8cf75", - "x-request-time": "0.359" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150227Z:0561c64d-025b-4fcc-9ed7-b85d80a83809", + "x-request-time": "0.921" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688", - "name": "e2etest_wps_conn_test_46937178688", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515", + "name": "e2etest_wps_conn_test_33231107515", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "PAT", @@ -120,19 +119,19 @@ "category": "PythonFeed", "expiryTime": null, "target": "https://test-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -140,30 +139,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:53 GMT", + "Date": "Wed, 15 Mar 2023 15:02:27 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-2d955b105445e081c6648e1966860814-15213bf1a3a4c8ae-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-64aadf7f39f85e6c2b0c8ed87d0da54f-ca0c74a543f04e27-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "41153cd4-643b-4910-946b-bc297d2d9188", - "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-correlation-request-id": "7413b280-36ce-471b-9eee-2d8a1ca9a532", + "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223853Z:41153cd4-643b-4910-946b-bc297d2d9188", - "x-request-time": "0.035" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150227Z:7413b280-36ce-471b-9eee-2d8a1ca9a532", + "x-request-time": "0.052" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688", - "name": "e2etest_wps_conn_test_46937178688", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515", + "name": "e2etest_wps_conn_test_33231107515", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "PAT", @@ -171,76 +170,76 @@ "category": "PythonFeed", "expiryTime": null, "target": "https://test-feed.com", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515?api-version=2022-12-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 04 May 2023 22:38:53 GMT", + "Date": "Wed, 15 Mar 2023 15:02:28 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-b43f5f0ec3e1359b5a60f0d75e7f2a2b-b04fafd7e1636143-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-324e5469e0fc97ffdabda93c9715e806-7dbaf8544244db8d-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e008f0ab-5531-4df7-8aba-a635ec44356d", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-correlation-request-id": "5ae55ef7-c28f-4548-85a6-b7b7607f83aa", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223854Z:e008f0ab-5531-4df7-8aba-a635ec44356d", - "x-request-time": "0.438" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150228Z:5ae55ef7-c28f-4548-85a6-b7b7607f83aa", + "x-request-time": "0.871" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_46937178688?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_33231107515?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "686", + "Content-Length": "687", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:54 GMT", + "Date": "Wed, 15 Mar 2023 15:02:28 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "231eb33c-44dd-4d26-8613-e02248937afd", - "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-correlation-request-id": "ef43bc4c-774f-4672-9de6-2b97605fdd62", + "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-response-type": "error", - "x-ms-routing-request-id": "WESTUS2:20230504T223854Z:231eb33c-44dd-4d26-8613-e02248937afd", - "x-request-time": "0.108" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150228Z:ef43bc4c-774f-4672-9de6-2b97605fdd62", + "x-request-time": "0.043" }, "ResponseBody": { "error": { "code": "UserError", "severity": null, - "message": "Connection e2etest_wps_conn_test_46937178688 can\u0027t be found in this workspace", + "message": "Connection e2etest_wps_conn_test_33231107515 can\u0027t be found in this workspace", "messageFormat": null, "messageParameters": null, "referenceCode": null, @@ -255,23 +254,23 @@ "additionalInfo": null }, "correlation": { - "operation": "da16e32b5865a7a634c28f947e90a202", - "request": "4ee9108279edb31c" + "operation": "a06f328a26f7887afd9b0bd97f023531", + "request": "97b758359f8d4019" }, - "environment": "eastus", - "location": "eastus", - "time": "2023-05-04T22:38:54.6263621\u002B00:00", + "environment": "master", + "location": "westus2", + "time": "2023-03-15T15:02:28.7977571\u002B00:00", "componentName": "account-rp" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=PythonFeed\u0026api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=PythonFeed\u0026api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -279,28 +278,80 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:38:54 GMT", + "Date": "Wed, 15 Mar 2023 15:02:28 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-6030f4443491cb5c388a52c2490be37b-4393f5e886fb431c-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-4203a604e702188047458b9029182294-006c8cd386336f6c-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e8a38af0-52d8-4d2a-9061-2a0ffd570f3c", - "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-correlation-request-id": "174fc305-37d6-444e-8302-84ccaa688c3a", + "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223854Z:e8a38af0-52d8-4d2a-9061-2a0ffd570f3c", + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150228Z:174fc305-37d6-444e-8302-84ccaa688c3a", "x-request-time": "0.019" }, "ResponseBody": { - "value": [] + "value": [ + { + "tags": null, + "location": null, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/data_import_test_azuresqldb_connection", + "name": "data_import_test_azuresqldb_connection", + "type": "Microsoft.MachineLearningServices/workspaces/connections", + "properties": { + "authType": "UsernamePassword", + "credentials": null, + "category": "PythonFeed", + "expiryTime": null, + "target": "Server=tcp:dataintegrationtest.database.windows.net,1433;Database=testdb;Trusted_Connection=False;Encrypt=True;Connection Timeout=30", + "metadata": null + }, + "systemData": null + }, + { + "tags": null, + "location": null, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/data_import_test_s3_connection", + "name": "data_import_test_s3_connection", + "type": "Microsoft.MachineLearningServices/workspaces/connections", + "properties": { + "authType": "AccessKey", + "credentials": null, + "category": "PythonFeed", + "expiryTime": null, + "target": "amldataimport", + "metadata": null + }, + "systemData": null + }, + { + "tags": null, + "location": null, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/data_import_test_snowflake_connection", + "name": "data_import_test_snowflake_connection", + "type": "Microsoft.MachineLearningServices/workspaces/connections", + "properties": { + "authType": "UsernamePassword", + "credentials": null, + "category": "PythonFeed", + "expiryTime": null, + "target": "jdbc:snowflake://microsoft_partner.east-us-2.azure.snowflakecomputing.com/?db=SNOWFLAKE_SAMPLE_DATA\u0026warehouse=AZUREMLPM_WH", + "metadata": null + }, + "systemData": null + } + ] } } ], "Variables": { - "wps_connection_name": "test_46937178688" + "wps_connection_name": "test_33231107515" } } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_s3_access_key.json b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_s3_access_key.json index 691be8a79bdd..7d4b1c7b3422 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_s3_access_key.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_s3_access_key.json @@ -1,20 +1,19 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "184", + "Content-Length": "147", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { "authType": "AccessKey", - "expiryTime": "01/05/2025 00:00:00", "category": "S3", "target": "dummy", "credentials": { @@ -28,30 +27,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:10 GMT", + "Date": "Wed, 15 Mar 2023 15:02:46 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-30233c9800dbe9e86919ab550847b2ce-820546059f7f4792-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-0b391c600f8d7238e6f5da47f1d7922b-6e7060556a71ddd1-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6fe1df7b-e81c-4924-a076-e448bc49f3d2", + "x-ms-correlation-request-id": "ebf422a3-4444-40df-b6cb-1ffcee4a2cbb", "x-ms-ratelimit-remaining-subscription-writes": "1189", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223910Z:6fe1df7b-e81c-4924-a076-e448bc49f3d2", - "x-request-time": "0.227" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150246Z:ebf422a3-4444-40df-b6cb-1ffcee4a2cbb", + "x-request-time": "0.222" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720", - "name": "e2etest_wps_conn_test_830600602720", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550", + "name": "e2etest_wps_conn_test_660365073550", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "AccessKey", @@ -59,13 +58,13 @@ "category": "S3", "expiryTime": null, "target": "dummy", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -73,7 +72,7 @@ "Connection": "keep-alive", "Content-Length": "147", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { @@ -91,30 +90,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:10 GMT", + "Date": "Wed, 15 Mar 2023 15:02:46 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-52316f94eb2c4e1e02200c01715f4eba-c60c92da91ef44dc-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-7b24de6f367d7bbf4a00ed3547b495b3-a2238ffd9bc20b13-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0f891137-02f1-41f8-ad36-63eac794ca3d", + "x-ms-correlation-request-id": "9f9926a5-c03b-4dc4-a7a1-a51a0cffd582", "x-ms-ratelimit-remaining-subscription-writes": "1188", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223911Z:0f891137-02f1-41f8-ad36-63eac794ca3d", - "x-request-time": "0.274" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150246Z:9f9926a5-c03b-4dc4-a7a1-a51a0cffd582", + "x-request-time": "0.173" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720", - "name": "e2etest_wps_conn_test_830600602720", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550", + "name": "e2etest_wps_conn_test_660365073550", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "AccessKey", @@ -122,19 +121,19 @@ "category": "S3", "expiryTime": null, "target": "dummy", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -142,30 +141,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:10 GMT", + "Date": "Wed, 15 Mar 2023 15:02:46 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-feec24ccd60cc095c2a1b60d98168283-a900ce501d47f6e2-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-678c640225b760918500bbfc8153ee26-5f5a46acc520d738-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3fea50b2-f780-42f9-9c64-5d6ab6c82d0a", - "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-correlation-request-id": "ff04a99c-d431-4e76-92a5-2ea0962328c0", + "x-ms-ratelimit-remaining-subscription-reads": "11984", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223911Z:3fea50b2-f780-42f9-9c64-5d6ab6c82d0a", - "x-request-time": "0.042" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150246Z:ff04a99c-d431-4e76-92a5-2ea0962328c0", + "x-request-time": "0.021" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720", - "name": "e2etest_wps_conn_test_830600602720", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550", + "name": "e2etest_wps_conn_test_660365073550", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "AccessKey", @@ -173,76 +172,76 @@ "category": "S3", "expiryTime": null, "target": "dummy", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550?api-version=2022-12-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 04 May 2023 22:39:11 GMT", + "Date": "Wed, 15 Mar 2023 15:02:47 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-5d1e2ea865f3a6159e89aae4b7923d9d-fd609ce8e830997d-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-a46d342c4e6d57e73060ebf097eb4205-072b4e75f5880850-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4012e3b9-8891-4a4c-8ea9-f8bcd45d5273", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", + "x-ms-correlation-request-id": "e8131d91-c6b3-453f-985b-b0cd0dbd22b5", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223911Z:4012e3b9-8891-4a4c-8ea9-f8bcd45d5273", - "x-request-time": "0.186" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150247Z:e8131d91-c6b3-453f-985b-b0cd0dbd22b5", + "x-request-time": "0.254" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_830600602720?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_660365073550?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "687", + "Content-Length": "688", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:11 GMT", + "Date": "Wed, 15 Mar 2023 15:02:47 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "47156338-24e7-4e0d-b12b-fefbbce52b5e", - "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-correlation-request-id": "982c1e67-e1c8-43bc-8eeb-4180abb9ce19", + "x-ms-ratelimit-remaining-subscription-reads": "11983", "x-ms-response-type": "error", - "x-ms-routing-request-id": "WESTUS2:20230504T223912Z:47156338-24e7-4e0d-b12b-fefbbce52b5e", - "x-request-time": "0.050" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150247Z:982c1e67-e1c8-43bc-8eeb-4180abb9ce19", + "x-request-time": "0.019" }, "ResponseBody": { "error": { "code": "UserError", "severity": null, - "message": "Connection e2etest_wps_conn_test_830600602720 can\u0027t be found in this workspace", + "message": "Connection e2etest_wps_conn_test_660365073550 can\u0027t be found in this workspace", "messageFormat": null, "messageParameters": null, "referenceCode": null, @@ -257,23 +256,23 @@ "additionalInfo": null }, "correlation": { - "operation": "24661e5f459f207110f536dfd235aec3", - "request": "2ec8fd3e52c80444" + "operation": "5b0e0bde420ff38588128b704e620e65", + "request": "01f48fba2a5dc2cb" }, - "environment": "eastus", - "location": "eastus", - "time": "2023-05-04T22:39:12.2821163\u002B00:00", + "environment": "master", + "location": "westus2", + "time": "2023-03-15T15:02:47.7005272\u002B00:00", "componentName": "account-rp" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=S3\u0026api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=S3\u0026api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -281,28 +280,48 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:12 GMT", + "Date": "Wed, 15 Mar 2023 15:02:47 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-2aab8a94ebe9ab9db67e5b66e57dc68a-39f3f2eb24366649-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-bd49e5808c4d7299d91934ffda2176ab-c3a7a94d23c2766f-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6fa5d5ad-8bfc-49d9-a1b1-201e2573d837", - "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-correlation-request-id": "6e0e495f-8648-4b7e-b9a1-832a43cc15fb", + "x-ms-ratelimit-remaining-subscription-reads": "11982", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223912Z:6fa5d5ad-8bfc-49d9-a1b1-201e2573d837", - "x-request-time": "0.020" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150247Z:6e0e495f-8648-4b7e-b9a1-832a43cc15fb", + "x-request-time": "0.014" }, "ResponseBody": { - "value": [] + "value": [ + { + "tags": null, + "location": null, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/my_s3_connection", + "name": "my_s3_connection", + "type": "Microsoft.MachineLearningServices/workspaces/connections", + "properties": { + "authType": "UsernamePassword", + "credentials": null, + "category": "S3", + "expiryTime": null, + "target": "amldataimport", + "metadata": null + }, + "systemData": null + } + ] } } ], "Variables": { - "wps_connection_name": "test_830600602720" + "wps_connection_name": "test_660365073550" } } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_snowflake_user_pwd.json b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_snowflake_user_pwd.json index cd8fb0b5c50e..7712ca7aac43 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_snowflake_user_pwd.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/workspace/e2etests/test_workspace_connections.pyTestWorkspaceConnectionstest_workspace_connections_create_update_and_delete_snowflake_user_pwd.json @@ -1,20 +1,19 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "188", + "Content-Length": "151", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { "authType": "UsernamePassword", - "expiryTime": "01/05/2025 00:00:00", "category": "Snowflake", "target": "dummy", "credentials": { @@ -28,30 +27,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:06 GMT", + "Date": "Wed, 15 Mar 2023 15:02:42 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-e75e441ab5f8a6c710ebed93d082f160-79a14b17e66515fb-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-d2aa9f20fec8d3a540ef27ea4cde5d7a-7af2feb1c20394c7-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bc56b611-1e60-4665-ac2d-752e94d5a41a", + "x-ms-correlation-request-id": "c2b866a5-0190-40da-823b-2e51a02eb4e5", "x-ms-ratelimit-remaining-subscription-writes": "1191", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223907Z:bc56b611-1e60-4665-ac2d-752e94d5a41a", - "x-request-time": "0.197" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150243Z:c2b866a5-0190-40da-823b-2e51a02eb4e5", + "x-request-time": "0.284" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711", - "name": "e2etest_wps_conn_test_269508279711", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952", + "name": "e2etest_wps_conn_test_318535604952", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "UsernamePassword", @@ -59,13 +58,13 @@ "category": "Snowflake", "expiryTime": null, "target": "dummy", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952?api-version=2022-12-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -73,7 +72,7 @@ "Connection": "keep-alive", "Content-Length": "151", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "properties": { @@ -91,30 +90,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:07 GMT", + "Date": "Wed, 15 Mar 2023 15:02:43 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-f373d3b4bfd954504468f3833a58e455-c8b3d7cd53ef9739-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-62f1f4b2518c2c232c530c7114b8400d-3f6d36e0be97af51-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e06a4855-d3c6-48bc-ab80-4b71226364e5", + "x-ms-correlation-request-id": "ae7f0b63-99bf-43dc-bc04-eec4d27dc1ee", "x-ms-ratelimit-remaining-subscription-writes": "1190", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223907Z:e06a4855-d3c6-48bc-ab80-4b71226364e5", - "x-request-time": "0.152" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150243Z:ae7f0b63-99bf-43dc-bc04-eec4d27dc1ee", + "x-request-time": "0.237" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711", - "name": "e2etest_wps_conn_test_269508279711", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952", + "name": "e2etest_wps_conn_test_318535604952", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "UsernamePassword", @@ -122,19 +121,19 @@ "category": "Snowflake", "expiryTime": null, "target": "dummy", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -142,30 +141,30 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:07 GMT", + "Date": "Wed, 15 Mar 2023 15:02:43 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-cff4b5ad6363b955198991508032bd07-fae929a7cd3022a5-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-78c4db6cfd4ebd6bfc4fe083b7fba0a8-93f982998c8a58bc-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1a97e801-7dc9-415e-a03f-6223dff00189", - "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-correlation-request-id": "46f23735-c229-4cc8-9932-68a900a44958", + "x-ms-ratelimit-remaining-subscription-reads": "11987", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223907Z:1a97e801-7dc9-415e-a03f-6223dff00189", - "x-request-time": "0.031" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150243Z:46f23735-c229-4cc8-9932-68a900a44958", + "x-request-time": "0.028" }, "ResponseBody": { "tags": null, "location": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711", - "name": "e2etest_wps_conn_test_269508279711", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952", + "name": "e2etest_wps_conn_test_318535604952", "type": "Microsoft.MachineLearningServices/workspaces/connections", "properties": { "authType": "UsernamePassword", @@ -173,50 +172,50 @@ "category": "Snowflake", "expiryTime": null, "target": "dummy", - "metadata": {} + "metadata": null }, "systemData": null } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952?api-version=2022-12-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Thu, 04 May 2023 22:39:07 GMT", + "Date": "Wed, 15 Mar 2023 15:02:44 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-a5aae4d18ef07be027d5c90806e696df-108c3fbf880e16bc-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-e4f50346ddff43a6efd409ebd9637822-b9cd9b013299e427-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1af5ad10-3c3f-46b1-8723-bd4f27244718", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", + "x-ms-correlation-request-id": "ac020dc8-1fc4-4f4d-ab24-fcb0dbf66190", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223908Z:1af5ad10-3c3f-46b1-8723-bd4f27244718", - "x-request-time": "0.254" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150244Z:ac020dc8-1fc4-4f4d-ab24-fcb0dbf66190", + "x-request-time": "0.224" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_269508279711?api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/e2etest_wps_conn_test_318535604952?api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 404, @@ -224,25 +223,25 @@ "Cache-Control": "no-cache", "Content-Length": "687", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:08 GMT", + "Date": "Wed, 15 Mar 2023 15:02:44 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d97680f2-d683-49d1-8863-43da74c70612", - "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-correlation-request-id": "5c4847d6-eb6f-4341-aad1-2889669bfc01", + "x-ms-ratelimit-remaining-subscription-reads": "11986", "x-ms-response-type": "error", - "x-ms-routing-request-id": "WESTUS2:20230504T223908Z:d97680f2-d683-49d1-8863-43da74c70612", - "x-request-time": "0.033" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150244Z:5c4847d6-eb6f-4341-aad1-2889669bfc01", + "x-request-time": "0.120" }, "ResponseBody": { "error": { "code": "UserError", "severity": null, - "message": "Connection e2etest_wps_conn_test_269508279711 can\u0027t be found in this workspace", + "message": "Connection e2etest_wps_conn_test_318535604952 can\u0027t be found in this workspace", "messageFormat": null, "messageParameters": null, "referenceCode": null, @@ -257,23 +256,23 @@ "additionalInfo": null }, "correlation": { - "operation": "6a52f271f50f5a21563d7d2fea71f33e", - "request": "5d4d0b890c79a605" + "operation": "0741649845fd7b67734f5ff6cf4f14f5", + "request": "78493787c4080fb4" }, - "environment": "eastus", - "location": "eastus", - "time": "2023-05-04T22:39:08.6775284\u002B00:00", + "environment": "master", + "location": "westus2", + "time": "2023-03-15T15:02:44.578839\u002B00:00", "componentName": "account-rp" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=Snowflake\u0026api-version=2023-04-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections?category=Snowflake\u0026api-version=2022-12-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.7.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.6.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.6 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -281,28 +280,48 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 04 May 2023 22:39:08 GMT", + "Date": "Wed, 15 Mar 2023 15:02:44 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Server-Timing": "traceparent;desc=\u002200-27f999170bfa333dc29bfe361c361451-3c10080dc1e62bcc-01\u0022", + "request-context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-d8ee0dd30192f6592e9dbf4c5db56190-74ea419676f89f7d-01\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-eastus-01", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "37144632-2892-4269-9268-bea4b20bf57c", - "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-correlation-request-id": "bef34de9-f591-4df1-a70d-0fe04e103c6a", + "x-ms-ratelimit-remaining-subscription-reads": "11985", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "WESTUS2:20230504T223908Z:37144632-2892-4269-9268-bea4b20bf57c", - "x-request-time": "0.019" + "x-ms-routing-request-id": "WESTCENTRALUS:20230315T150244Z:bef34de9-f591-4df1-a70d-0fe04e103c6a", + "x-request-time": "0.014" }, "ResponseBody": { - "value": [] + "value": [ + { + "tags": null, + "location": null, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/connections/my_snowflake_connection", + "name": "my_snowflake_connection", + "type": "Microsoft.MachineLearningServices/workspaces/connections", + "properties": { + "authType": "UsernamePassword", + "credentials": null, + "category": "Snowflake", + "expiryTime": null, + "target": "jdbc:snowflake://microsoft_partner.east-us-2.azure.snowflakecomputing.com/?db=SNOWFLAKE_SAMPLE_DATA\u0026warehouse=AZUREMLPM_WH", + "metadata": null + }, + "systemData": null + } + ] } } ], "Variables": { - "wps_connection_name": "test_269508279711" + "wps_connection_name": "test_318535604952" } } diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_my_sql_db_user_pwd.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_my_sql_db_user_pwd.yaml index cb2d39a26f78..54fd5302003c 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_my_sql_db_user_pwd.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_my_sql_db_user_pwd.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_azure_my_sql_db type: azure_my_sql_db target: dummy -expiryTime: 01/05/2025 00:00:00 credentials: type: username_password username: dummy diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_postgres_db_user_pwd.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_postgres_db_user_pwd.yaml index 5896c7742122..dd296ea17551 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_postgres_db_user_pwd.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_postgres_db_user_pwd.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_azure_postgres_db type: azure_postgres_db target: dummy -expiryTime: 01/05/2025 00:00:00 credentials: type: username_password username: dummy diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_sql_db_user_pwd.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_sql_db_user_pwd.yaml index fe41ba1f5fc6..826535f9c7d3 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_sql_db_user_pwd.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_sql_db_user_pwd.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_azure_sql_db type: azure_sql_db target: dummy -expiryTime: 01/05/2025 00:00:00 credentials: type: username_password username: dummy diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_synapse_analytics_user_pwd.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_synapse_analytics_user_pwd.yaml index bebd6d73c8fe..51a3a1085326 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_synapse_analytics_user_pwd.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/azure_synapse_analytics_user_pwd.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_azure_synapse_analytics type: azure_synapse_analytics target: dummy -expiryTime: 01/05/2025 00:00:00 credentials: type: username_password username: dummy diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/container_registry_managed_identity.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/container_registry_managed_identity.yaml index 676660dc96d4..e3a0aae2290b 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/container_registry_managed_identity.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/container_registry_managed_identity.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_cr_managed type: container_registry target: https://test-feed.com -expiryTime: 01/05/2025 00:00:00 credentials: type: managed_identity client_id: client_id diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/fs_service_principal.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/fs_service_principal.yaml index a9196f961fd7..c9a1db22a65a 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/fs_service_principal.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/fs_service_principal.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_fs_sp type: feature_store target: azureml://featurestores/featurestore -expiryTime: 01/05/2025 00:00:00 credentials: type: service_principal client_id: client_id diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_pat.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_pat.yaml index 97d39f82343b..0a9b21a816f3 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_pat.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_pat.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_git_pat type: git target: https://test-git-feed.com -expiryTime: 01/05/2025 00:00:00 credentials: type: pat pat: dummy_pat diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_user_pwd.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_user_pwd.yaml index 80d14ffefe4f..4a189960242c 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_user_pwd.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/git_user_pwd.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_git_pat type: git target: https://test-git-feed.com -expiryTime: 01/05/2025 00:00:00 credentials: type: username_password username: dummy diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/python_feed_pat.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/python_feed_pat.yaml index cf4300ceed59..34e9f25a94bc 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/python_feed_pat.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/python_feed_pat.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_python_pat type: python_feed target: https://test-feed.com -expiryTime: "01/05/2025 00:00:00" credentials: type: pat pat: dummy_pat diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/s3_access_key.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/s3_access_key.yaml index 6d976b6041c8..31d1ea375357 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/s3_access_key.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/s3_access_key.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_s3 type: s3 target: dummy -expiryTime: 01/05/2025 00:00:00 credentials: type: access_key access_key_id: dummy diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/snowflake_user_pwd.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/snowflake_user_pwd.yaml index 797e3a8cb6dc..0a2906533fc3 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/snowflake_user_pwd.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/workspace_connection/snowflake_user_pwd.yaml @@ -1,7 +1,6 @@ name: test_ws_conn_snowflake type: snowflake target: dummy -expiryTime: 01/05/2025 00:00:00 credentials: type: username_password username: dummy diff --git a/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace.py b/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace.py index cca87637296f..b7d65b677816 100644 --- a/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace.py +++ b/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace.py @@ -77,8 +77,8 @@ def workspace_validation(wps): assert isinstance(workspace, Workspace) assert workspace.name == wps_name - static_acr = "/subscriptions/8f338f6e-4fce-44ae-969c-fc7d8fda030e/resourceGroups/rg-mhe-e2e-test-dont-remove/providers/Microsoft.ContainerRegistry/registries/sdktestconnectionacr" - static_appinsights = "/subscriptions/8f338f6e-4fce-44ae-969c-fc7d8fda030e/resourceGroups/rg-mhe-e2e-test-dont-remove/providers/microsoft.insights/components/sdktestconnect7425646050" + static_acr = "/subscriptions/8f338f6e-4fce-44ae-969c-fc7d8fda030e/resourceGroups/rg-mhe-e2e-test-dont-remove/providers/Microsoft.ContainerRegistry/registries/acrmhetest2" + static_appinsights = "/subscriptions/8f338f6e-4fce-44ae-969c-fc7d8fda030e/resourceGroups/rg-mhe-e2e-test-dont-remove/providers/microsoft.insights/components/aimhetest2" param_image_build_compute = "compute" param_display_name = "Test display name" param_description = "Test description" diff --git a/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace_connections.py b/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace_connections.py index 8bf3f21ca8c1..ee76ed5d5ff0 100644 --- a/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace_connections.py +++ b/sdk/ml/azure-ai-ml/tests/workspace/e2etests/test_workspace_connections.py @@ -7,7 +7,7 @@ from devtools_testutils import AzureRecordedTestCase from azure.ai.ml import MLClient, load_workspace_connection -from azure.ai.ml._restclient.v2023_04_01_preview.models import ConnectionAuthType, ConnectionCategory +from azure.ai.ml._restclient.v2022_12_01_preview.models import ConnectionAuthType, ConnectionCategory from azure.ai.ml._utils.utils import camel_to_snake from azure.ai.ml.entities import WorkspaceConnection @@ -28,8 +28,6 @@ def test_workspace_connections_create_update_and_delete_python_feed( source="./tests/test_configs/workspace_connection/python_feed_pat.yaml" ) - assert wps_connection.expiryTime == "01/05/2025 00:00:00" - wps_connection.name = wps_connection_name wps_connection = client.connections.create_or_update(workspace_connection=wps_connection) @@ -38,7 +36,6 @@ def test_workspace_connections_create_update_and_delete_python_feed( assert wps_connection.credentials.type == camel_to_snake(ConnectionAuthType.PAT) assert wps_connection.type == camel_to_snake(ConnectionCategory.PYTHON_FEED) assert wps_connection.metadata is None - # TODO : Uncomment once service side returns creds correctly # assert wps_connection.credentials.pat == "dummy_pat" @@ -76,8 +73,6 @@ def test_workspace_connections_create_update_and_delete_git_pat( wps_connection = load_workspace_connection(source="./tests/test_configs/workspace_connection/git_pat.yaml") - assert wps_connection.expiryTime == "01/05/2025 00:00:00" - wps_connection.name = wps_connection_name wps_connection = client.connections.create_or_update(workspace_connection=wps_connection) diff --git a/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_entity.py b/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_entity.py index 01005de32d38..9ab0d3fb2a95 100644 --- a/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_entity.py +++ b/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_entity.py @@ -4,7 +4,7 @@ from test_utilities.utils import verify_entity_load_and_dump from azure.ai.ml import load_workspace_connection -from azure.ai.ml._restclient.v2023_04_01_preview.models import ConnectionAuthType, ConnectionCategory +from azure.ai.ml._restclient.v2022_12_01_preview.models import ConnectionAuthType, ConnectionCategory from azure.ai.ml._utils.utils import camel_to_snake from azure.ai.ml.entities import WorkspaceConnection from azure.ai.ml.entities._credentials import PatTokenConfiguration @@ -19,7 +19,6 @@ def test_workspace_connection_constructor(self): type=camel_to_snake(ConnectionCategory.PYTHON_FEED), credentials=PatTokenConfiguration(pat="dummy_pat"), name="dummy_connection", - expiryTime="01/05/2025 00:00:00", metadata=None, ) @@ -28,7 +27,6 @@ def test_workspace_connection_constructor(self): assert ws_connection.credentials.type == camel_to_snake(ConnectionAuthType.PAT) assert ws_connection.credentials.pat == "dummy_pat" assert ws_connection.target == "dummy_target" - assert ws_connection.expiryTime == "01/05/2025 00:00:00" assert ws_connection.metadata is None def test_workspace_connection_entity_load_and_dump(self): @@ -38,7 +36,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.type == camel_to_snake(ConnectionCategory.GIT) assert ws_connection.credentials.type == camel_to_snake(ConnectionAuthType.PAT) assert ws_connection.credentials.pat == "dummy_pat" - assert ws_connection.expiryTime == "01/05/2025 00:00:00" assert ws_connection.metadata is None verify_entity_load_and_dump( @@ -58,7 +55,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_cr_managed" assert ws_connection.target == "https://test-feed.com" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" ws_connection = load_workspace_connection( source="./tests/test_configs/workspace_connection/python_feed_pat.yaml" @@ -69,7 +65,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.credentials.pat == "dummy_pat" assert ws_connection.name == "test_ws_conn_python_pat" assert ws_connection.target == "https://test-feed.com" - assert ws_connection.expiryTime == "01/05/2025 00:00:00" assert ws_connection.metadata is None ws_connection = load_workspace_connection( @@ -98,7 +93,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_s3" assert ws_connection.target == "dummy" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" ws_connection = load_workspace_connection( source="./tests/test_configs/workspace_connection/snowflake_user_pwd.yaml" @@ -111,7 +105,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_snowflake" assert ws_connection.target == "dummy" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" ws_connection = load_workspace_connection( source="./tests/test_configs/workspace_connection/azure_sql_db_user_pwd.yaml" @@ -124,7 +117,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_azure_sql_db" assert ws_connection.target == "dummy" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" ws_connection = load_workspace_connection( source="./tests/test_configs/workspace_connection/azure_synapse_analytics_user_pwd.yaml" @@ -137,7 +129,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_azure_synapse_analytics" assert ws_connection.target == "dummy" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" ws_connection = load_workspace_connection( source="./tests/test_configs/workspace_connection/azure_my_sql_db_user_pwd.yaml" @@ -150,7 +141,6 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_azure_my_sql_db" assert ws_connection.target == "dummy" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" ws_connection = load_workspace_connection( source="./tests/test_configs/workspace_connection/azure_postgres_db_user_pwd.yaml" @@ -163,4 +153,3 @@ def simple_workspace_connection_validation(ws_connection): assert ws_connection.name == "test_ws_conn_azure_postgres_db" assert ws_connection.target == "dummy" assert ws_connection.metadata is None - assert ws_connection.expiryTime == "01/05/2025 00:00:00" diff --git a/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_operations.py b/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_operations.py index 1534aa37f42f..266abe51d7d4 100644 --- a/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_operations.py +++ b/sdk/ml/azure-ai-ml/tests/workspace/unittests/test_workspace_connection_operations.py @@ -20,14 +20,14 @@ def mock_credential() -> Mock: def mock_workspace_connection_operation( mock_workspace_scope: OperationScope, mock_operation_config: OperationConfig, - mock_aml_services_2023_04_01_preview: Mock, + mock_aml_services_2022_01_01_preview: Mock, mock_machinelearning_client: Mock, mock_credential: Mock, ) -> WorkspaceConnectionsOperations: yield WorkspaceConnectionsOperations( operation_scope=mock_workspace_scope, operation_config=mock_operation_config, - service_client=mock_aml_services_2023_04_01_preview, + service_client=mock_aml_services_2022_01_01_preview, all_operations=mock_machinelearning_client._operation_container, credentials=mock_credential, ) @@ -52,7 +52,6 @@ def test_get( mock_from_rest.return_value = WorkspaceConnection( target="dummy_target", type=ConnectionCategory.PYTHON_FEED, - expiryTime="01/05/2025 00:00:00", credentials=PatTokenConfiguration(pat="dummy_pat"), name="dummy_connection", ) @@ -68,7 +67,6 @@ def test_create_or_update( mock_from_rest.return_value = WorkspaceConnection( target="dummy_target", type=camel_to_snake(ConnectionCategory.PYTHON_FEED), - expiryTime="01/05/2025 00:00:00", credentials=PatTokenConfiguration(pat="dummy_pat"), name="dummy_connection", metadata=None,