Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
575 changes: 324 additions & 251 deletions src/VMware/VMware.Autorest/test/AzVMwareAuthorization.Recording.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Describe 'AzVMwareAuthorization' {
It 'List' {
{
$config = New-AzVMwareAuthorization -Name $env.rstr3 -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1
$config.Name | Should -Be "authorization1"
$config.Name | Should -Be $env.rstr3

$config = Get-AzVMwareAuthorization -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1
$config.Count | Should -BeGreaterThan 0
Expand All @@ -25,14 +25,14 @@ Describe 'AzVMwareAuthorization' {
It 'Get' {
{
$config = Get-AzVMwareAuthorization -Name $env.rstr3 -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1
$config.Name | Should -Be "authorization1"
$config.Name | Should -Be $env.rstr3
} | Should -Not -Throw
}

It 'CreateExpanded' {
{
$config = New-AzVMwareAuthorization -Name $env.rstr4 -PrivateCloudName $env.privateCloudName3 -ResourceGroupName $env.resourceGroup3
$config.Name | Should -Be "authorization1"
$config.Name | Should -Be $env.rstr4
} | Should -Not -Throw
}

Expand Down
5,735 changes: 5,522 additions & 213 deletions src/VMware/VMware.Autorest/test/AzVMwareCloudLink.Recording.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/VMware/VMware.Autorest/test/AzVMwareCloudLink.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Describe 'AzVMwareCloudLink' {
{
$Id2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup2)/providers/Microsoft.AVS/privateClouds/$($env.privateCloudName2)"
$config = New-AzVMwareCloudLink -Name $env.rstr3 -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1 -LinkedCloud $Id2
$config.Name | Should -Be "cloudLink1"
$config.Name | Should -Be $env.rstr3

$config = Get-AzVMwareCloudLink -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1
$config.Count | Should -BeGreaterThan 0
Expand All @@ -26,7 +26,7 @@ Describe 'AzVMwareCloudLink' {
It 'Get' {
{
$config = Get-AzVMwareCloudLink -Name $env.rstr3 -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1
$config.Name | Should -Be "cloudLink1"
$config.Name | Should -Be $env.rstr3
} | Should -Not -Throw
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
{
"AzVMwareLocationQuotaAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-12-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-12-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "61" ],
"x-ms-client-request-id": [ "53a0e0d7-e475-48d0-b750-582c054c4e42" ],
"CommandName": [ "Test-AzVMwareLocationQuotaAvailability" ],
"FullCommandName": [ "Test-AzVMwareLocationQuotaAvailability_Check" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.2", "Az.VMware/0.4.0" ],
"Authorization": [ "[Filtered]" ]
"AzVMwareLocationQuotaAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/33b83be5-faf7-42ea-a712-320a5f9dd111/providers/Microsoft.AVS/locations/canadacentral/checkQuotaAvailability?api-version=2023-03-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/33b83be5-faf7-42ea-a712-320a5f9dd111/providers/Microsoft.AVS/locations/canadacentral/checkQuotaAvailability?api-version=2023-03-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "1" ],
"x-ms-client-request-id": [ "fa0cec7c-8a25-412d-aa28-ffcf68f9941c" ],
"CommandName": [ "Test-AzVMwareLocationQuotaAvailability" ],
"FullCommandName": [ "Test-AzVMwareLocationQuotaAvailability_Check" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"ContentHeaders": {
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
"x-ms-request-id": [ "14715dd3-1a1c-4cf2-9541-ca0af4e5a1b7" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"x-ms-correlation-request-id": [ "b69540d3-f3b8-43e5-afde-efa8432da8b3" ],
"x-ms-routing-request-id": [ "EASTUS:20231221T164555Z:b69540d3-f3b8-43e5-afde-efa8432da8b3" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 21 Dec 2023 16:45:55 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "83" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"hostsRemaining\":{\"av64\":0,\"gp\":0,\"he\":0,\"he2\":1,\"hv\":0},\"quotaEnabled\":\"Enabled\"}",
"isContentBase64": false
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Date": [ "Thu, 22 Sep 2022 07:16:21 GMT" ],
"Server": [ "Rocket" ]
},
"ContentHeaders": {
"Content-Length": [ "65" ],
"Content-Type": [ "application/json" ]
},
"Content": "{\"hostsRemaining\":{\"AV20\":0,\"AV36\":999},\"quotaEnabled\":\"Enabled\"}",
"isContentBase64": false
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ while(-not $mockingPath) {
Describe 'AzVMwareLocationQuotaAvailability' {
It 'Check' {
{
$config = Test-AzVMwareLocationQuotaAvailability -Location $env.location1
$config = Test-AzVMwareLocationQuotaAvailability -Location $env.location2
$config.Enabled | Should -Be "Enabled"
} | Should -Not -Throw
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
{
"AzVMwareLocationTrialAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2021-12-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2021-12-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "62" ],
"x-ms-client-request-id": [ "cea0dcf0-1095-44c2-a326-54e891078ae6" ],
"CommandName": [ "Test-AzVMwareLocationTrialAvailability" ],
"FullCommandName": [ "Test-AzVMwareLocationTrialAvailability_Check" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.2", "Az.VMware/0.4.0" ],
"Authorization": [ "[Filtered]" ]
"AzVMwareLocationTrialAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/33b83be5-faf7-42ea-a712-320a5f9dd111/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2023-03-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/33b83be5-faf7-42ea-a712-320a5f9dd111/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2023-03-01",
"Content": "{\r\n \"name\": \"av36\"\r\n}",
"isContentBase64": false,
"Headers": {
},
"ContentHeaders": {
"Content-Type": [ "application/json" ],
"Content-Length": [ "22" ]
}
},
"ContentHeaders": {
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
"x-ms-request-id": [ "60327107-8c3c-415a-9f6c-4a64b4f751c1" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"x-ms-correlation-request-id": [ "167c4a26-12d7-43e0-9eaf-ac577762c477" ],
"x-ms-routing-request-id": [ "EASTUS:20231221T164724Z:167c4a26-12d7-43e0-9eaf-ac577762c477" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 21 Dec 2023 16:47:23 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "45" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"availableHosts\":0,\"status\":\"TrialDisabled\"}",
"isContentBase64": false
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Date": [ "Thu, 22 Sep 2022 07:16:21 GMT" ],
"Server": [ "Rocket" ]
},
"ContentHeaders": {
"Content-Length": [ "46" ],
"Content-Type": [ "application/json" ]
},
"Content": "{\"status\":\"TrialAvailable\",\"availableHosts\":4}",
"isContentBase64": false
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ while(-not $mockingPath) {
Describe 'AzVMwareLocationTrialAvailability' {
It 'Check' {
{
$config = Test-AzVMwareLocationTrialAvailability -Location "eastus2"
$config.Status | Should -Be "TrialAvailable"
$config = Test-AzVMwareLocationTrialAvailability -Location "eastus2" -Name av36
$config.Status | Should -Be "TrialDisabled"
} | Should -Not -Throw
}
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
{
"AzVMwarePrivateCloudAdminCredential+[NoContext]+List+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroup5q2kvd/providers/Microsoft.AVS/privateClouds/azps_test_cloudme6g/listAdminCredentials?api-version=2021-12-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroup5q2kvd/providers/Microsoft.AVS/privateClouds/azps_test_cloudme6g/listAdminCredentials?api-version=2021-12-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "89" ],
"x-ms-client-request-id": [ "34fd3299-909c-4a5d-91a8-ffebf354082b" ],
"CommandName": [ "Get-AzVMwarePrivateCloudAdminCredential" ],
"FullCommandName": [ "Get-AzVMwarePrivateCloudAdminCredential_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.2", "Az.VMware/0.4.0" ],
"Authorization": [ "[Filtered]" ]
"AzVMwarePrivateCloudAdminCredential+[NoContext]+List+$POST+https://management.azure.com/subscriptions/33b83be5-faf7-42ea-a712-320a5f9dd111/resourceGroups/testgroup5q2kvd/providers/Microsoft.AVS/privateClouds/azps_test_cloudme6g/listAdminCredentials?api-version=2023-03-01+1": {
"Request": {
"Method": "POST",
"RequestUri": "https://management.azure.com/subscriptions/33b83be5-faf7-42ea-a712-320a5f9dd111/resourceGroups/testgroup5q2kvd/providers/Microsoft.AVS/privateClouds/azps_test_cloudme6g/listAdminCredentials?api-version=2023-03-01",
"Content": null,
"isContentBase64": false,
"Headers": {
"x-ms-unique-id": [ "1" ],
"x-ms-client-request-id": [ "6a1f4698-39cf-4606-a831-2c32ca11fa55" ],
"CommandName": [ "Get-AzVMwarePrivateCloudAdminCredential" ],
"FullCommandName": [ "Get-AzVMwarePrivateCloudAdminCredential_List" ],
"ParameterSetName": [ "__AllParameterSets" ],
"User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ],
"Authorization": [ "[Filtered]" ]
},
"ContentHeaders": {
}
},
"ContentHeaders": {
"Response": {
"StatusCode": 200,
"Headers": {
"Cache-Control": [ "no-cache" ],
"Pragma": [ "no-cache" ],
"x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ],
"x-ms-request-id": [ "d08d6a5f-c1dc-4e79-85e1-ea6c2cd980da" ],
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
"x-ms-correlation-request-id": [ "bc74918d-f89b-471e-a6e0-34e38f3332e2" ],
"x-ms-routing-request-id": [ "EASTUS:20231221T162957Z:bc74918d-f89b-471e-a6e0-34e38f3332e2" ],
"X-Content-Type-Options": [ "nosniff" ],
"Date": [ "Thu, 21 Dec 2023 16:29:57 GMT" ]
},
"ContentHeaders": {
"Content-Length": [ "137" ],
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"nsxtPassword\":\"qg1A$D52d$6e\",\"nsxtUsername\":\"cloudadmin\",\"vcenterPassword\":\"u0PwXq0\u002621@f\",\"vcenterUsername\":\"[email protected]\"}",
"isContentBase64": false
}
},
"Response": {
"StatusCode": 200,
"Headers": {
"Date": [ "Thu, 22 Sep 2022 07:18:35 GMT" ],
"Server": [ "Rocket" ]
},
"ContentHeaders": {
"Content-Length": [ "133" ],
"Content-Type": [ "application/json" ]
},
"Content": "{\"nsxtUsername\":\"admin\",\"nsxtPassword\":\"$(1X4Dkk\",\"vcenterUsername\":\"[email protected]\",\"vcenterPassword\":\"\u003cvcenterPassword\u003e\"}",
"isContentBase64": false
}
}
}
}