@@ -53,6 +53,8 @@ function Test-CustomDomainGetRemoveWithRunningEndpoint
53
53
Assert-ThrowsContains { Remove-AzureRmCdnCustomDomain - CustomDomainName $customDomainName - EndpointName $endpointName - ProfileName $profileName - ResourceGroupName $resourceGroup.ResourceGroupName - Confirm:$false } " does not exist"
54
54
55
55
Assert-ThrowsContains { Get-AzureRmCdnCustomDomain - CustomDomainName $customDomainName - EndpointName $endpointName - ProfileName $profileName - ResourceGroupName $resourceGroup.ResourceGroupName } " NotFound"
56
+
57
+ Remove-AzureRmResourceGroup - Name $resourceGroup.ResourceGroupName - Force
56
58
}
57
59
58
60
<#
@@ -61,23 +63,8 @@ Gets and removes custom domain with stopped endpoint
61
63
#>
62
64
function Test-CustomDomainGetRemoveWithStoppedEndpoint
63
65
{
64
- <#
65
- $endpointName = "sdktest-3d96e37e-79bd-440d-a84b-d71a8bb3bed6"
66
- $hostName = "sdktest-aef2f35e-01ca-4230-add5-5075b1506915.azureedge-test.net"
67
-
68
- - casoper
69
- #>
70
-
71
- <#
72
-
73
- So apparently the above endpoint name already exists, because it bombs when I try
74
- to create it. I don't have access to DNS for azureedge-test.net, so I can't add
75
- a CNAME pointed to a different endpoint. So I'm using my own domain to record this one...
76
-
77
- #>
78
-
79
- $endpointName = " camtest" # belongs to casoper (see above)
80
- $hostName = " cdn.camthegeek.com" # belongs to casoper (see above)
66
+ $endpointName = " sdktest-b0939e74-75ba-4558-afe6-edc5c19ea713"
67
+ $hostName = " sdktest-d8163a47-2912-4b95-8453-1588ca2d014f.azureedge-test.net"
81
68
82
69
$customDomainName = getAssetName
83
70
@@ -114,4 +101,6 @@ function Test-CustomDomainGetRemoveWithStoppedEndpoint
114
101
Assert-ThrowsContains { Remove-AzureRmCdnCustomDomain - CustomDomainName $customDomainName - EndpointName $endpointName - ProfileName $profileName - ResourceGroupName $resourceGroup.ResourceGroupName - Confirm:$false } " does not exist"
115
102
116
103
Assert-ThrowsContains { Get-AzureRmCdnCustomDomain - CustomDomainName $customDomainName - EndpointName $endpointName - ProfileName $profileName - ResourceGroupName $resourceGroup.ResourceGroupName } " NotFound"
104
+
105
+ Remove-AzureRmResourceGroup - Name $resourceGroup.ResourceGroupName - Force
117
106
}
0 commit comments