-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for endpoint entities (#39604)
* add tests for kubenetes online endpoint * add tests for managed online endpoint * code fotmatting * add test for EndpointAuthKeys * add unit tests for online endpoint * code formatting * add unit tests for batch endpoint * add tests for identity validation * add tests for EndpointAuthToken * add equality tests for ManagedOnlineEndpoint * git fix failing test * add defaults to merge with
- Loading branch information
Showing
4 changed files
with
376 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
sdk/ml/azure-ai-ml/tests/test_configs/endpoints/batch/batch_endpoint_rest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"id": "/subscriptions/some-sub-id/resourceGroups/some-rg/providers/Microsoft.MachineLearningServices/workspaces/some-ws/batchEndpoints/some-batch-endpoint-name", | ||
"name": "some-batch-endpoint-name", | ||
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints", | ||
"properties": { | ||
"description": "A hello world endpoint for component deployments", | ||
"properties": { | ||
"BatchEndpointCreationApiVersion": "2023-10-01", | ||
"azureml.onlineendpointid": "/subscriptions/some-sub-id/resourceGroups/some-rg/providers/Microsoft.MachineLearningServices/workspaces/some-ws/batchEndpoints/some-batch-endpoint-name" | ||
}, | ||
"scoringUri": "https://some-batch-endpoint-name.eastus.inference.ml.azure.com/jobs", | ||
"swaggerUri": null, | ||
"authMode": "AADToken", | ||
"defaults": { | ||
"deploymentName": "hello-world-1" | ||
}, | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdAt": "2025-01-29T06:39:10.8357986+00:00", | ||
"createdBy": "Someone", | ||
"lastModifiedAt": "2025-02-01T17:53:36.0766595+00:00" | ||
}, | ||
"tags": {}, | ||
"location": "eastus", | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "d6133098-1d22-4ea2-a875-709b47f277d1", | ||
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" | ||
} | ||
} |
Oops, something went wrong.