Skip to content

Commit 445918f

Browse files
Jorin Mejiaaijemojisra-fel
authored
[Azure CDN] Cmdlets for Multi-Origin & Private Link Functionality (#13156)
* changes on md files for origins, origingroups, and private link * cmdlets for origin and origin groups * test new-azcdnorigin' * add try / catch block * CRUD operations for origins, origin groups, and private link * Add tests and small modifications to cmdlets * Update help directory * Add session records for modified tests * update change log * Add license headers to files * Update markdown files with synopsis, description, and examples * update online version field for markdown files * Update Get-AzCdnOrigin cmdlet and corresponding md file * Update session records with new API version * Remove extra 's' in origin group test namespace * Change type of ProbeInterval, modify origin group test, revert change log file * Add Skip parameter to Fact attribute * Add fixes for custom domain test and associated session records * Remove nuget from local feed * Update ChangeLog.md * Delete LocalNugetFeed Co-authored-by: Jorin Mejia <[email protected]> Co-authored-by: Yeming Liu <[email protected]>
1 parent 1cfab69 commit 445918f

File tree

73 files changed

+32764
-15351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+32764
-15351
lines changed

src/Cdn/Cdn.Test/Cdn.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.Cdn" Version="4.2.4-preview" />
14+
<PackageReference Include="Microsoft.Azure.Management.Cdn" Version="4.4.0" />
1515
</ItemGroup>
1616

1717
</Project>

src/Cdn/Cdn.Test/ScenarioTests/ChinaCdnProfileTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ChinaCdnProfileTests(Xunit.Abstractions.ITestOutputHelper output)
2828
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger);
2929
}
3030

31-
[Fact]
31+
[Fact(Skip = "Test needs to be run by the China CDN team")]
3232
[Trait(Category.AcceptanceType, Category.CheckIn)]
3333
public void TestProfileList()
3434
{

src/Cdn/Cdn.Test/ScenarioTests/CustomDomainTests.ps1

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,41 +66,46 @@ Enables custom domain with running endpoint.
6666
function Test-CustomDomainEnableDisableWithRunningEndpoint
6767
{
6868
# Hard-coding host and endpoint names due to requirement for DNS CNAME
69-
$endpointName = "testVerizonEP"
70-
$hostName = "testVerizon.dustydog.us"
69+
$endpointName = "cdn-ps-test-msft"
70+
$hostName = "a.cdn-ps-test-msft.azfdtest.xyz"
7171

7272
$customDomainName = getAssetName
7373

7474
$profileName = getAssetName
7575
$resourceGroup = TestSetup-CreateResourceGroup
7676
$resourceLocation = "EastUS"
77-
$profileSku = "Standard_Verizon"
77+
$profileSku = "Standard_Microsoft"
7878
$tags = @{"tag1" = "value1"; "tag2" = "value2"}
7979
$createdProfile = New-AzCdnProfile -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -Sku $profileSku -Tag $tags
8080

8181
$originName = getAssetName
8282
$originHostName = "www.microsoft.com"
8383
$createdEndpoint = New-AzCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName
84-
84+
if ($endpoint.HostName -Match "azureedge-test\.net$") {
85+
$hostName = 'a.cdn-ps-test-msft-df.azfdtest.xyz'
86+
}
8587
$endpoint = Get-AzCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
8688
$validateResult = Test-AzCdnCustomDomain -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -CustomDomainHostName $hostName
8789
Assert-True{$validateResult.CustomDomainValidated}
8890
$validateResultbyPiping = Test-AzCdnCustomDomain -CdnEndpoint $endpoint -CustomDomainHostName $hostName
8991
Assert-True{$validateResultbyPiping.CustomDomainValidated}
9092

91-
$createdCustomDomain = $endpoint | New-AzCdnCustomDomain -HostName $hostName -CustomDomainName $customDomainName
93+
$createdCustomDomain = $endpoint | New-AzCdnCustomDomain -HostName $hostName -CustomDomainName $customDomainName
9294
Assert-AreEqual $customDomainName $createdCustomDomain.Name
9395
Assert-AreEqual $hostName $createdCustomDomain.HostName
94-
95-
$customDomain = $endpoint | Get-AzCdnCustomDomain -CustomDomainName $customDomainName
96+
97+
$customDomain = $endpoint | Get-AzCdnCustomDomain -CustomDomainName $customDomainName
9698
Assert-AreEqual $customDomainName $customDomain.Name
9799
Assert-AreEqual $hostName $customDomain.HostName
98100

99101
$enabled = $customDomain | Enable-AzCdnCustomDomainHttps -PassThru
100102
Assert-True{$enabled}
101-
Assert-ThrowsContains { Enable-AzCdnCustomDomainHttps -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"
102103

103-
Assert-ThrowsContains { Disable-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName } "BadRequest"
104+
SleepInRecordMode 900
105+
106+
Disable-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
107+
$customDomain = $endpoint | Get-AzCdnCustomDomain -CustomDomainName $customDomainName
108+
Assert-AreEqual "Disabling" $customDomain.CustomHttpsProvisioningState
104109

105110
Remove-AzResourceGroup -Name $resourceGroup.ResourceGroupName -Force
106111
}
@@ -199,10 +204,6 @@ function Test-VerizonCustomDomainEnableHttpsWithRunningEndpoint
199204

200205
Assert-AreEqual $customDomain.CustomHttpsProvisioningState "Enabling"
201206

202-
Assert-ThrowsContains { $customDomain | Enable-AzCdnCustomDomainHttps } "BadRequest"
203-
204-
Assert-ThrowsContains { $customDomain | Disable-AzCdnCustomDomainHttps } "BadRequest"
205-
206207
Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force
207208
}
208209

@@ -241,8 +242,6 @@ function Test-AkamaiCustomDomainEnableHttpsWithRunningEndpoint
241242
$customDomain = Get-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
242243
Assert-AreEqual $customDomain.CustomHttpsProvisioningState "Enabling"
243244

244-
Assert-ThrowsContains { $customDomain | Enable-AzCdnCustomDomainHttps } "BadRequest"
245-
246245
Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force
247246
}
248247

@@ -253,8 +252,8 @@ Enable Https for custom domain with running endpoint
253252
function Test-MicrosoftCustomDomainEnableHttpsWithRunningEndpoint
254253
{
255254
# Hard-coding host and endpoint names due to requirement for DNS CNAME
256-
$endpointName = "testMicrosoftEP"
257-
$hostName = "testMicrosoft.dustydog.us"
255+
$endpointName = "cdn-ps-test-msft"
256+
$hostName = "a.cdn-ps-test-msft.azfdtest.xyz"
258257

259258
$customDomainName = getAssetName
260259

@@ -268,6 +267,10 @@ function Test-MicrosoftCustomDomainEnableHttpsWithRunningEndpoint
268267
$originName = getAssetName
269268
$originHostName = "www.microsoft.com"
270269
$endpoint = New-AzCdnEndpoint -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName
270+
if ($endpoint.HostName -Match "azureedge-test\.net$") {
271+
$hostName = 'a.cdn-ps-test-msft-df.azfdtest.xyz'
272+
}
273+
271274
$validateResult = Test-AzCdnCustomDomain -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName -CustomDomainHostName $hostName
272275
Assert-True{$validateResult.CustomDomainValidated}
273276

@@ -281,7 +284,5 @@ function Test-MicrosoftCustomDomainEnableHttpsWithRunningEndpoint
281284
$customDomain = Get-AzCdnCustomDomain -CustomDomainName $customDomainName -EndpointName $endpointName -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
282285
Assert-AreEqual $customDomain.CustomHttpsProvisioningState "Enabling"
283286

284-
Assert-ThrowsContains { $customDomain | Enable-AzCdnCustomDomainHttps } "BadRequest"
285-
286287
Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force
287288
}

src/Cdn/Cdn.Test/ScenarioTests/EndpointTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function Test-EndpointResourceUsage
552552

553553
$endpointResourceUsage = Get-AzCdnEndpointResourceUsage -EndpointName $endpointName1 -ProfileName $profileName -ResourceGroupName $resourceGroup.ResourceGroupName
554554

555-
Assert-True {$endpointResourceUsage.Count -eq 2}
555+
Assert-True {$endpointResourceUsage.Count -eq 3}
556556
Assert-True {$endpointResourceUsage[0].CurrentValue -eq 0}
557557
Assert-True {$endpointResourceUsage[1].CurrentValue -eq 0}
558558

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest;
16+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
17+
using Xunit;
18+
19+
namespace Microsoft.Azure.Commands.Cdn.Test.ScenarioTests.ScenarioTest
20+
{
21+
public class OriginGroupTests
22+
{
23+
private ServiceManagement.Common.Models.XunitTracingInterceptor _logger;
24+
25+
public OriginGroupTests(Xunit.Abstractions.ITestOutputHelper output)
26+
{
27+
_logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output);
28+
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger);
29+
}
30+
31+
[Fact]
32+
[Trait(Category.AcceptanceType, Category.CheckIn)]
33+
public void TestCreateOriginGroup()
34+
{
35+
TestController.NewInstance.RunPowerShellTest(_logger, "Test-CreateOriginGroup");
36+
}
37+
38+
[Fact]
39+
[Trait(Category.AcceptanceType, Category.CheckIn)]
40+
public void TestGetSetOriginGroup()
41+
{
42+
TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetSetOriginGroup");
43+
}
44+
45+
[Fact]
46+
[Trait(Category.AcceptanceType, Category.CheckIn)]
47+
public void TestRemoveOriginGroup()
48+
{
49+
TestController.NewInstance.RunPowerShellTest(_logger, "Test-RemoveOriginGroup");
50+
}
51+
52+
}
53+
}
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
# ----------------------------------------------------------------------------------
2+
#
3+
# Copyright Microsoft Corporation
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# ----------------------------------------------------------------------------------
14+
15+
<#
16+
.SYNOPSIS
17+
Creats an origin group and set the default origin group on a running endpoint
18+
#>
19+
function Test-CreateOriginGroup
20+
{
21+
# Set up required fields
22+
$subId = (Get-AzContext).Subscription.id
23+
$resourceGroup = TestSetup-CreateResourceGroup
24+
$resourceGroupName = $resourceGroup.ResourceGroupName
25+
$profileName = getAssetName
26+
27+
# Profile specific properties
28+
$resourceLocation = "Global"
29+
$profileSku = "Standard_Microsoft"
30+
31+
# Create a Microsoft CDN Profile
32+
$createdProfile = New-AzCdnProfile -ResourceGroupName $resourceGroupName -ProfileName $profileName -Location $resourceLocation -Sku $profileSku
33+
34+
# Endpoint specific properties
35+
$endpointName = getAssetName
36+
$originGroupName = getAssetName
37+
$originName = getAssetName
38+
$originHostName = "www.microsoft.com"
39+
$originGroupResourceId = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origingroups/$originGroupName"
40+
$defaultOriginGroup = $originGroupResourceId
41+
42+
# 1st origin group properties
43+
$probeInterval = 240
44+
$probePath = "/health.aspx"
45+
$probeProtocol = "Https"
46+
$probeRequestType = "GET"
47+
$originId = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origins/$originName"
48+
49+
# Create CDN endpoint, 1st origin group, and establish the default origin group
50+
$createdEndpoint = New-AzCdnEndpoint -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName -OriginGroupName $originGroupName -DefaultOriginGroup $defaultOriginGroup -OriginGroupProbeIntervalInSeconds $probeInterval -OriginGroupProbePath $probePath -OriginGroupProbeProtocol $probeProtocol -OriginGroupProbeRequestType $probeRequestType -OriginId $originId
51+
52+
# 2nd origin group properties
53+
$originGroupName2 = getAssetName
54+
$probeInterval2 = 120
55+
$probePath2 = "/check-health.aspx"
56+
$probeProtocol2 = "Http"
57+
$probeRequestType2 = "HEAD"
58+
59+
# create 2nd origin group
60+
$createdOriginGroup = New-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName2 -OriginId $originId -ProbeIntervalInSeconds $probeInterval2 -ProbePath $probePath2 -ProbeProtocol $probeProtocol2 -ProbeRequestType $probeRequestType2
61+
62+
# Test the default origin group on the endpoint
63+
Assert-AreEqual $defaultOriginGroup $createdEndpoint.DefaultOriginGroup.Id
64+
65+
# Test the properties on the 2nd origin group
66+
Assert-AreEqual $originGroupName2 $createdOriginGroup.Name
67+
Assert-AreEqual $probeInterval2 $createdOriginGroup.ProbeIntervalInSeconds
68+
Assert-AreEqual $probePath2 $createdOriginGroup.ProbePath
69+
Assert-AreEqual $probeProtocol2 $createdOriginGroup.ProbeProtocol
70+
Assert-AreEqual $probeRequestType2 $createdOriginGroup.ProbeRequestType
71+
Assert-AreEqual $originId $createdOriginGroup.Origins[0].Id
72+
73+
Remove-AzResourceGroup -Name $resourceGroup.ResourceGroupName -Force
74+
}
75+
76+
<#
77+
.SYNOPSIS
78+
Gets and sets an origin group with a running endpoint
79+
#>
80+
function Test-GetSetOriginGroup
81+
{
82+
# Set up required fields
83+
$subId = (Get-AzContext).Subscription.id
84+
$resourceGroup = TestSetup-CreateResourceGroup
85+
$resourceGroupName = $resourceGroup.ResourceGroupName
86+
$profileName = getAssetName
87+
88+
# Profile specific properties
89+
$resourceLocation = "Global"
90+
$profileSku = "Standard_Microsoft"
91+
92+
# Create a Microsoft CDN Profile
93+
$createdProfile = New-AzCdnProfile -ResourceGroupName $resourceGroupName -ProfileName $profileName -Location $resourceLocation -Sku $profileSku
94+
95+
# Endpoint specific properties
96+
$endpointName = getAssetName
97+
$originGroupName = getAssetName
98+
$originName = getAssetName
99+
$originHostName = "www.microsoft.com"
100+
$originGroupResourceId = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origingroups/$originGroupName"
101+
$defaultOriginGroup = $originGroupResourceId
102+
103+
# Origin id for the origin group
104+
$originId = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origins/$originName"
105+
106+
# Create CDN endpoint, origin group, and establish the default origin group
107+
$createdEndpoint = New-AzCdnEndpoint -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName -OriginGroupName $originGroupName -DefaultOriginGroup $defaultOriginGroup -OriginId $originId
108+
109+
# Get the origin group
110+
$originGroup = Get-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName
111+
112+
# Test the unmodified origin group
113+
Assert-AreEqual $originGroupResourceId $originGroup.Id
114+
Assert-AreEqual 0 $originGroup.ProbeIntervalInSeconds
115+
Assert-Null $originGroup.ProbePath
116+
Assert-Null $originGroup.ProbeProtocol
117+
Assert-Null $originGroup.ProbeRequestType
118+
119+
# Set new values on the origin group
120+
$probeInterval = 120
121+
$probePath = "/health-status.aspx"
122+
$probeProtocol = "Https"
123+
$probeRequestType = "GET"
124+
125+
# Update properties on origin group
126+
$updatedOriginGroup = Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName -OriginId $originId -ProbeIntervalInSeconds $probeInterval -ProbePath $probePath -ProbeProtocol $probeProtocol -ProbeRequestType $probeRequestType
127+
128+
# Test modified origin group
129+
Assert-AreEqual $probeInterval $updatedOriginGroup.ProbeIntervalInSeconds
130+
Assert-AreEqual $probePath $updatedOriginGroup.ProbePath
131+
Assert-AreEqual $probeProtocol $updatedOriginGroup.ProbeProtocol
132+
Assert-AreEqual $probeRequestType $updatedOriginGroup.ProbeRequestType
133+
134+
Remove-AzResourceGroup -Name $resourceGroup.ResourceGroupName -Force
135+
}
136+
137+
<#
138+
.SYNOPSIS
139+
Creates and removes an origin group with a running endpoint
140+
#>
141+
function Test-RemoveOriginGroup
142+
{
143+
# Set up required fields
144+
$subId = (Get-AzContext).Subscription.id
145+
$resourceGroup = TestSetup-CreateResourceGroup
146+
$resourceGroupName = $resourceGroup.ResourceGroupName
147+
$profileName = getAssetName
148+
149+
# Profile specific properties
150+
$resourceLocation = "Global"
151+
$profileSku = "Standard_Microsoft"
152+
153+
# Create a Microsoft CDN Profile
154+
$createdProfile = New-AzCdnProfile -ResourceGroupName $resourceGroupName -ProfileName $profileName -Location $resourceLocation -Sku $profileSku
155+
156+
# Endpoint specific properties
157+
$endpointName = getAssetName
158+
$originGroupName = getAssetName
159+
$originName = getAssetName
160+
$originHostName = "www.microsoft.com"
161+
$originGroupResourceId = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origingroups/$originGroupName"
162+
$defaultOriginGroup = $originGroupResourceId
163+
164+
# Origin id for the origin group
165+
$originId = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origins/$originName"
166+
167+
# Create CDN endpoint, origin group, and establish the default origin group
168+
$createdEndpoint = New-AzCdnEndpoint -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -Location $resourceLocation -OriginName $originName -OriginHostName $originHostName -OriginGroupName $originGroupName -DefaultOriginGroup $defaultOriginGroup -OriginId $originId
169+
170+
# 2nd origin group properties
171+
$originGroupName2 = getAssetName
172+
$probeInterval2 = 120
173+
$probePath2 = "/check-health.aspx"
174+
$probeProtocol2 = "Http"
175+
$probeRequestType2 = "HEAD"
176+
$originGroupResourceId2 = "/subscriptions/$subId/resourcegroups/$resourceGroupName/providers/Microsoft.Cdn/profiles/$profileName/endpoints/$endpointName/origingroups/$originGroupName2"
177+
178+
# create 2nd origin group
179+
$createdOriginGroup = New-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName2 -OriginId $originId -ProbeIntervalInSeconds $probeInterval2 -ProbePath $probePath2 -ProbeProtocol $probeProtocol2 -ProbeRequestType $probeRequestType2
180+
181+
# Remove the 2nd origin group
182+
Remove-AzCdnOriginGroup -ResourceId $originGroupResourceId2
183+
184+
# Update a property on the already deleted origin group
185+
$probeIntervalUpdate = 60
186+
187+
# Test origin group was removed correctly
188+
Assert-ThrowsContains { Get-AzCdnOriginGroup -ResourceId $originGroupResourceId2 } "NotFound"
189+
Assert-ThrowsContains { Set-AzCdnOriginGroup -ResourceGroupName $resourceGroupName -ProfileName $profileName -EndpointName $endpointName -OriginGroupName $originGroupName2 -OriginId $originId -ProbeIntervalInSeconds $probeIntervalUpdate } "NotFound"
190+
191+
Remove-AzResourceGroup -Name $resourceGroup.ResourceGroupName -Force
192+
}

src/Cdn/Cdn.Test/ScenarioTests/OriginTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,12 @@ public void TestOriginGetSetWhenEndpointDoesnotExist()
4848
{
4949
TestController.NewInstance.RunPowerShellTest(_logger, "Test-OriginGetSetWhenEndpointDoesnotExist");
5050
}
51+
52+
[Fact]
53+
[Trait(Category.AcceptanceType, Category.CheckIn)]
54+
public void TestSetOriginProperties()
55+
{
56+
TestController.NewInstance.RunPowerShellTest(_logger, "Test-SetOriginProperties");
57+
}
5158
}
5259
}

0 commit comments

Comments
 (0)