From ab76b63b9f1b4cdaf6ef44f4c6caa8e0fb38d1d0 Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Thu, 19 May 2022 08:59:48 +0800 Subject: [PATCH 1/6] Update version and changelog --- src/ApplicationInsights/Az.ApplicationInsights.psd1 | 2 +- src/ApplicationInsights/ChangeLog.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApplicationInsights/Az.ApplicationInsights.psd1 b/src/ApplicationInsights/Az.ApplicationInsights.psd1 index 8e3f38f6fd85..f8cfc2f47c33 100644 --- a/src/ApplicationInsights/Az.ApplicationInsights.psd1 +++ b/src/ApplicationInsights/Az.ApplicationInsights.psd1 @@ -12,7 +12,7 @@ RootModule = './Az.ApplicationInsights.psm1' # Version number of this module. -ModuleVersion = '0.1.0' +ModuleVersion = '1.3.1' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' diff --git a/src/ApplicationInsights/ChangeLog.md b/src/ApplicationInsights/ChangeLog.md index 718e8eba2587..7d25fa68aaf2 100644 --- a/src/ApplicationInsights/ChangeLog.md +++ b/src/ApplicationInsights/ChangeLog.md @@ -19,7 +19,7 @@ --> ## Upcoming Release * Upgraded API version for ApplicationInsights component to 2020-02-02 -* Supported Log Analytics workspace based component for `New-AzApplicationInsights` and 'Update-AzApplicationInsights' +* Supported Log Analytics workspace-based component by `New-AzApplicationInsights` and `Update-AzApplicationInsights` ## Version 1.3.1 * Added breaking change warnings for upcoming Az.ApplicationInsights 2.0.0 From d2becfe6321fbbce88b557134545e9966ea4cd1f Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Thu, 19 May 2022 13:28:42 +0800 Subject: [PATCH 2/6] Update version and changelog --- src/Cdn/Changelog.md | 52 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/src/Cdn/Changelog.md b/src/Cdn/Changelog.md index d5c0891c63e5..84719f7827a2 100644 --- a/src/Cdn/Changelog.md +++ b/src/Cdn/Changelog.md @@ -19,7 +19,57 @@ --> ## Upcoming Release -* Migrated the cmdlets from SDK based to autorest generated. +* Bumped api version to `2021-06-01` +* Migrated the cmdlets from SDK-based to autorest generated. +* Deleted cmdlets + - Disable-AzCdnCustomDomain + - Enable-AzCdnCustomDomain + - Get-AzCdnEdgeNodes + - Get-AzCdnProfileSsoUrl + - New-AzCdnDeliveryPolicy + - Set-AzFrontDoorCdnSecret +* Added cmdlets + - Clear-AzFrontDoorCdnEndpointContent + - Get-AzFrontDoorCdnEndpointResourceUsage + - Get-AzFrontDoorCdnOriginGroupResourceUsage + - Get-AzFrontDoorCdnProfileResourceUsage + - Get-AzFrontDoorCdnRuleSetResourceUsage + - Test-AzFrontDoorCdnEndpointCustomDomain + - Test-AzFrontDoorCdnEndpointNameAvailability + - Test-AzFrontDoorCdnProfileHostNameAvailability + - Update-AzFrontDoorCdnCustomDomainValidationToken + - Update-AzFrontDoorCdnRule +* Add cmdlets to create in-memory object + - New-AzCdn*ParametersObject + - New-AzCdnResourceReferenceObject + - New-AzFrontDoorCdn*ParametersObject + - New-AzFrontDoorCdnResourceReferenceObject +* Renamed cmdlets + - Set-AzCdnEndpoint -> Update-AzCdnEndpoint + - Set-AzCdnOrigin -> Update-AzCdnOrigin + - Set-AzCdnOriginGroup -> Update-AzCdnOriginGroup + - Set-AzCdnProfile -> Update-AzCdnProfile + - Set-AzFrontDoorCdnCustomDomain -> Update-AzFrontDoorCdnCustomDomain + - Set-AzFrontDoorCdnEndpoint -> Update-AzFrontDoorCdnEndpoint + - Set-AzFrontDoorCdnOrigin -> Update-AzFrontDoorCdnOrigin + - Set-AzFrontDoorCdnOriginGroup -> Update-AzFrontDoorCdnOriginGroup + - Set-AzFrontDoorCdnProfile -> Update-AzFrontDoorCdnProfile + - Set-AzFrontDoorCdnRoute -> Update-AzFrontDoorCdnRoute + - Set-AzFrontDoorCdnSecurityPolicy -> Update-AzFrontDoorCdnSecurityPolicy + - Validate-AzCdnCustomDomain -> Test-AzCdnEndpointCustomDomain + - Confirm-AzCdnEndpointProbeURL -> Test-AzCdnProbe + - Disable-AzCdnCustomDomainHttps -> Disable-AzCdnCustomDomainCustomHttps + - Enable-AzCdnCustomDomainHttps -> Enable-AzCdnCustomDomainCustomHttps + - Get-AzCdnEndpointNameAvailability -> Test-AzCdnNameAvailability + - Publish-AzCdnEndpointContent -> Import-AzCdnEndpointContent + - Test-AzCdnCustomDomain -> Test-AzCdnEndpointCustomDomain + - Unpublish-AzCdnEndpointContent -> Clear-AzCdnEndpointContent + - New-AzCdnDeliveryRule -> New-AzCdnDeliveryRuleObject + - New-AzCdnDeliveryRuleAction -> New-AzCdnDeliveryRuleActionObject + - New-AzCdnDeliveryRuleCondition -> New-AzCdnDeliveryRuleConditionObject + - New-AzFrontDoorCdnRuleAction -> New-AzFrontDoorCdnRuleActionObject + - New-AzFrontDoorCdnRuleCondition -> New-AzFrontDoorCdnRuleConditionObject + ## Version 1.8.3 * Added breaking change messages for all cmdlets in Az.CDN module From e074701b5c146370ff0af782b96f5c2f80efb527 Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Thu, 19 May 2022 15:37:09 +0800 Subject: [PATCH 3/6] Update the test cases --- src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 | 8 ++++---- .../test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 | 8 ++++---- src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnProfile.Tests.ps1 | 8 ++++---- src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 | 2 +- .../Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 | 6 +++--- .../Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 | 6 +++--- .../Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 | 8 ++++---- .../test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 | 6 +++--- .../test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 6 +++--- src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 | 8 ++++---- src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnOrigin.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnProfile.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 2 +- src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 | 4 ++-- .../test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 4 ++-- src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 | 4 ++-- .../Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 | 4 ++-- .../Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 | 4 ++-- ...st-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnProfile.Tests.ps1 | 4 ++-- ...te-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 | 4 ++-- .../test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 4 ++-- 71 files changed, 142 insertions(+), 142 deletions(-) diff --git a/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 index 6c2c183a8644..f4eefc0f3166 100644 --- a/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 @@ -53,7 +53,7 @@ Describe 'Clear-AzCdnEndpointContent' { { Clear-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentPath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -96,7 +96,7 @@ Describe 'Clear-AzCdnEndpointContent' { { Clear-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentFilePath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -139,7 +139,7 @@ Describe 'Clear-AzCdnEndpointContent' { { $endpoint | Clear-AzCdnEndpointContent -ContentPath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -182,7 +182,7 @@ Describe 'Clear-AzCdnEndpointContent' { { $endpoint | Clear-AzCdnEndpointContent -ContentFilePath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 index 2d90f5f58d23..5eb100d96547 100644 --- a/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 @@ -36,7 +36,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { -ContentPath "/a" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -64,7 +64,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { -Content $afdPurgeParameters } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -90,7 +90,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { | Clear-AzFrontDoorCdnEndpointContent -ContentPath "/a" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -119,7 +119,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { | Clear-AzFrontDoorCdnEndpointContent -Content $afdPurgeParameters } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 index ff11efff97ac..9e142864a39b 100644 --- a/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 @@ -43,7 +43,7 @@ Describe 'Get-AzCdnEndpoint' { $endpoints.Count | Should -BeGreaterOrEqual 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -79,7 +79,7 @@ Describe 'Get-AzCdnEndpoint' { $endpoint.Origin.HostName | Should -Be $origin.HostName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -116,7 +116,7 @@ Describe 'Get-AzCdnEndpoint' { $endpoint.Origin.HostName | Should -Be $origin.HostName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 index 1b09d9cc40a3..1a195e29afe7 100644 --- a/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 @@ -65,7 +65,7 @@ Describe 'Get-AzCdnEndpointResourceUsage' { $geofilterUsage.CurrentValue | Should -Be 2 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 index 4622304295f4..4fab150822ed 100644 --- a/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 @@ -43,7 +43,7 @@ Describe 'Get-AzCdnOrigin' { $origins.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -83,7 +83,7 @@ Describe 'Get-AzCdnOrigin' { $origin.HttpsPort | Should -Be $null } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -124,7 +124,7 @@ Describe 'Get-AzCdnOrigin' { $origin.HttpsPort | Should -Be $null } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 index 340a52086d13..4c82d8d2a54a 100644 --- a/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 @@ -55,7 +55,7 @@ Describe 'Get-AzCdnOriginGroup' { $originGroups.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -105,7 +105,7 @@ Describe 'Get-AzCdnOriginGroup' { $endpointOriginGroup.Origin[0].Id | Should -Be $originGroup.Origin[0].Id } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -156,7 +156,7 @@ Describe 'Get-AzCdnOriginGroup' { $endpointOriginGroup.Origin[0].Id | Should -Be $originGroup.Origin[0].Id } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 index f53f356f0666..5ec2e547c260 100644 --- a/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 @@ -34,7 +34,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfiles.Count | Should -BeGreaterOrEqual 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -60,7 +60,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfile.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -84,7 +84,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfiles.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -111,7 +111,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfile.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 index 874867064ea4..468140b09ffd 100644 --- a/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 @@ -34,7 +34,7 @@ Describe 'Get-AzCdnProfileResourceUsage' { Get-AzCdnProfileResourceUsage -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 index 1623e768a2a1..da93e9bb1792 100644 --- a/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 @@ -34,7 +34,7 @@ Describe 'Get-AzCdnProfileSupportedOptimizationType' { Get-AzCdnProfileSupportedOptimizationType -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 index 7e46745834ef..8883a148640c 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -46,7 +46,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { $customDomains.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { $customDomain.Name | Should -Be $customDomainName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -117,7 +117,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { $customDomain.Name | Should -Be $customDomainName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 index c6e3e5e61834..8470cbbdce20 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -36,7 +36,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { $endpoints.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -64,7 +64,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { $endpoint.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -93,7 +93,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { $endpoint.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 index 9868b8cde9ef..46f04ffb5006 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 @@ -37,7 +37,7 @@ Describe 'Get-AzFrontDoorCdnEndpointResourceUsage' { $endpointUsage | Should -not -BeNullOrEmpty } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 index 558dbe8ec458..715a3ca4139c 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 @@ -48,7 +48,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { $origins.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -85,7 +85,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { $origin.Name | Should -Be $originName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -123,7 +123,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { $origin.Name | Should -Be $originName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 index d2e5ea57eaea..a370ee125143 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -41,7 +41,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { $originGroups.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -71,7 +71,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { $originGroup.Name | Should -Be $originGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -102,7 +102,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { $originGroup.Name | Should -Be $originGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 index d3fd414c68e4..1596d2133907 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 @@ -41,7 +41,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroupResourceUsage' { $originGroupUsage | Should -not -BeNullOrEmpty } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 index b2db36ce2681..c0f0c997ec62 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 @@ -33,7 +33,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfiles.Count | Should -BeGreaterOrEqual 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -79,7 +79,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfiles.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -105,7 +105,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 index 03715a41f04d..9d1a5e49cac1 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 @@ -33,7 +33,7 @@ Describe 'Get-AzFrontDoorCdnProfileResourceUsage' { $frontDoorCdnProfileUsage | Should -not -BeNullOrEmpty } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 index 4bf2bddb2654..df24f9b83483 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 @@ -77,7 +77,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { $routes.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -143,7 +143,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { $route.Name | Should -Be $routeName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -210,7 +210,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { $route.Name | Should -Be $routeName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 index f2f49f38a405..827f233dc2ae 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 @@ -48,7 +48,7 @@ Describe 'Get-AzFrontDoorCdnRule' { $rules.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -85,7 +85,7 @@ Describe 'Get-AzFrontDoorCdnRule' { $rule.Name | Should -Be $ruleName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -123,7 +123,7 @@ Describe 'Get-AzFrontDoorCdnRule' { $rule.Name | Should -Be $ruleName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 index a788a14f13c8..a799a9c37699 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -34,7 +34,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { $rulesets.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { $ruleset.Name | Should -Be $rulesetName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { $ruleset.Name | Should -Be $rulesetName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 index 5bb131b896e7..d334b54b86aa 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 @@ -35,7 +35,7 @@ Describe 'Get-AzFrontDoorCdnRuleSetResourceUsage' { $rulesetUsage | Should -not -BeNullOrEmpty } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 index fbec229101ae..b28f53a3d5a6 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 @@ -40,7 +40,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { $rules.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -70,7 +70,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { $secret.Name | Should -Be $secretName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -101,7 +101,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { $secret.Name | Should -Be $secretName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index b04ca2ff1eb6..52b53bec299d 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { $policies.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -80,7 +80,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { $policy.Name | Should -Be $policyName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -116,7 +116,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { $policy.Name | Should -Be $policyName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 index df06b0a5d168..f8cdc03d5165 100644 --- a/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 @@ -53,7 +53,7 @@ Describe 'Import-AzCdnEndpointContent' { { Import-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentPath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -96,7 +96,7 @@ Describe 'Import-AzCdnEndpointContent' { { Import-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentFilePath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -139,7 +139,7 @@ Describe 'Import-AzCdnEndpointContent' { { $endpoint | Import-AzCdnEndpointContent -ContentPath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -182,7 +182,7 @@ Describe 'Import-AzCdnEndpointContent' { { $endpoint | Import-AzCdnEndpointContent -ContentFilePath $contentPath } | Should -Throw } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 index 2e6a20fe9c70..3e9326a5faeb 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 @@ -60,7 +60,7 @@ Describe 'New-AzCdnDeliveryRuleObject' { $endpoint.DeliveryPolicyRule.Count | Should -Be 1 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 index 6cf13e414085..c2fb971e7df3 100644 --- a/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'New-AzCdnEndpoint' { $endpoint.Origin.HostName | Should -Be $origin.HostName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 index f35bbf151afd..7e1c9fee44bf 100644 --- a/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 @@ -59,7 +59,7 @@ Describe 'New-AzCdnOrigin' { $origin.HostName | Should -Be "host2.hello.com" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 index b5aa4e9fca80..0f4ebc2c54b3 100644 --- a/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 @@ -71,7 +71,7 @@ Describe 'New-AzCdnOriginGroup' { $createdOriginGroup.Origin[0].Id | Should -Be $originId } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnProfile.Tests.ps1 b/src/Cdn/test/New-AzCdnProfile.Tests.ps1 index ff517743b7c2..76d58dc0d509 100644 --- a/src/Cdn/test/New-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnProfile.Tests.ps1 @@ -33,7 +33,7 @@ Describe 'New-AzCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 index a08e355cdee8..56706a62ff0c 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'New-AzFrontDoorCdnCustomDomain' { -HostName $hostName -TlsSetting $tlsSetting } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 index 02dbb582f431..32cd722b58bd 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -41,7 +41,7 @@ Describe 'New-AzFrontDoorCdnEndpoint' { $endpoint.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 index 5b4f3cdb4397..36a169157fca 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'New-AzFrontDoorCdnOrigin' { -HttpPort 80 -HttpsPort 443 -Priority 1 -Weight 1000 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 index 2abaf648ece4..6a44bf85b86d 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -39,7 +39,7 @@ Describe 'New-AzFrontDoorCdnOriginGroup' { -LoadBalancingSetting $loadBalancingSetting -HealthProbeSetting $healthProbeSetting } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 index 673dc2eb1622..016d724fc709 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 @@ -33,7 +33,7 @@ Describe 'New-AzFrontDoorCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 index 3366e802dc71..7314cf57dc3a 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 @@ -74,7 +74,7 @@ Describe 'New-AzFrontDoorCdnRoute' { -OriginGroupId $originGroup.Id -RuleSet @($ruleSetResoure) -PatternsToMatch "/*" -LinkToDefaultDomain "Enabled" -EnabledState "Enabled" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 index 4eade55acf31..2623c594570c 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'New-AzFrontDoorCdnRule' { -Action $actions -Condition $conditions } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 index 087bcc78d57a..e235e0f818d7 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -32,7 +32,7 @@ Describe 'New-AzFrontDoorCdnRuleSet' { New-AzFrontDoorCdnRuleSet -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $rulesetName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 index ac293b809697..93a0e8285eb9 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 @@ -37,7 +37,7 @@ Describe 'New-AzFrontDoorCdnSecret' { New-AzFrontDoorCdnSecret -Name $secretName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Parameter $parameter } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 519908dd216a..622803c2c818 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -42,7 +42,7 @@ Describe 'New-AzFrontDoorCdnSecurityPolicy' { New-AzFrontDoorCdnSecurityPolicy -Name $policyName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Parameter $parameter } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 index 7610424d4df6..93e8b02f4b43 100644 --- a/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 @@ -41,7 +41,7 @@ Describe 'Remove-AzCdnEndpoint' { Remove-AzCdnEndpoint -Name $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -73,7 +73,7 @@ Describe 'Remove-AzCdnEndpoint' { Get-AzCdnEndpoint -Name $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName | Remove-AzCdnEndpoint } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 index fd78c7927ce7..6f7cd2da885e 100644 --- a/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 @@ -57,7 +57,7 @@ Describe 'Remove-AzCdnOrigin' { Remove-AzCdnOrigin -Name "origin2" -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -105,7 +105,7 @@ Describe 'Remove-AzCdnOrigin' { Get-AzCdnOrigin -Name "origin2" -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName | Remove-AzCdnOrigin } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 index a1e23ef25af9..c309338c70a1 100644 --- a/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 @@ -65,7 +65,7 @@ Describe 'Remove-AzCdnOriginGroup' { Remove-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroupName2 -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -119,7 +119,7 @@ Describe 'Remove-AzCdnOriginGroup' { Get-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroupName2 -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName | Remove-AzCdnOriginGroup } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 index 4043017a0817..c38e0050d4d7 100644 --- a/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 @@ -31,7 +31,7 @@ Describe 'Remove-AzCdnProfile' { Remove-AzCdnProfile -Name $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -53,7 +53,7 @@ Describe 'Remove-AzCdnProfile' { Get-AzCdnProfile -ResourceGroupName $ResourceGroupName -Name $cdnProfileName | Remove-AzCdnProfile } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 index 8b76a688ce27..ab3bd2f2faf3 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -46,7 +46,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { Remove-AzFrontDoorCdnCustomDomain -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -CustomDomainName $customDomainName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -83,7 +83,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { Get-AzFrontDoorCdnCustomDomain -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -CustomDomainName $customDomainName | Remove-AzFrontDoorCdnCustomDomain } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 index 7d7fcc03b455..0c399ab4e08e 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -35,7 +35,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { Remove-AzFrontdoorCdnEndpoint -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -EndpointName $endpointName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -60,7 +60,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { Get-AzFrontdoorCdnEndpoint -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -EndpointName $endpointName | Remove-AzFrontdoorCdnEndpoint } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 index 2e9648475da8..c3489c78d683 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 @@ -47,7 +47,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { Remove-AzFrontDoorCdnOrigin -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName -OriginName $originName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -84,7 +84,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { Get-AzFrontDoorCdnOrigin -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName -OriginName $originName | Remove-AzFrontDoorCdnOrigin } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 index 25a693ae31d3..2638942cad92 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -40,7 +40,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { Remove-AzFrontDoorCdnOriginGroup -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -70,7 +70,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { Get-AzFrontDoorCdnOriginGroup -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName | Remove-AzFrontDoorCdnOriginGroup } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 index 2e145a4ee8e2..a1c217032131 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 @@ -31,7 +31,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { Remove-AzFrontDoorCdnProfile -Name $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -53,7 +53,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { Get-AzFrontDoorCdnProfile -ResourceGroupName $ResourceGroupName -Name $frontDoorCdnProfileName | Remove-AzFrontDoorCdnProfile } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 index 2bd07a84e099..0917ccf2403e 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 @@ -77,7 +77,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { Remove-AzFrontDoorCdnRoute -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -EndpointName $endpointName -Name $routeName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -146,7 +146,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { | Remove-AzFrontDoorCdnRoute } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 index 217d4e616576..ceefcfeea4e1 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 @@ -50,7 +50,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { Remove-AzFrontDoorCdnRule -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -RuleSetName $rulesetName -Name $ruleName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -87,7 +87,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { Get-AzFrontDoorCdnRule -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -RuleSetName $rulesetName -Name $ruleName | Remove-AzFrontDoorCdnRule } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 index 03f6a3146e48..faa6b83b42aa 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -33,7 +33,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { Remove-AzFrontDoorCdnRuleSet -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $rulesetName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -59,7 +59,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { $rulesets.Count | Should -Be 0 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 index aef85bac5dc8..d8c496039226 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 @@ -40,7 +40,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { Remove-AzFrontDoorCdnSecret -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $secretName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -72,7 +72,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { | Remove-AzFrontDoorCdnSecret } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index b0b3e9e4d8d7..624261374db5 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { Remove-AzFrontDoorCdnSecurityPolicy -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $policyName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -82,7 +82,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { | Remove-AzFrontDoorCdnSecurityPolicy } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 index 8df8a00d5629..56208e1d0c03 100644 --- a/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'Start-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Running" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -80,7 +80,7 @@ Describe 'Start-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Running" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 index 04dda8a3f298..e5e2eea0afa0 100644 --- a/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 @@ -44,7 +44,7 @@ Describe 'Stop-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Stopped" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -78,7 +78,7 @@ Describe 'Stop-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Stopped" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 index 91e3c6e07e1e..83f30e90e882 100644 --- a/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 @@ -46,7 +46,7 @@ Describe 'Test-AzCdnNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -83,7 +83,7 @@ Describe 'Test-AzCdnNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 index 9d3c1d0e5ecf..773e2a945f15 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 @@ -37,7 +37,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { Test-AzFrontDoorCdnEndpointCustomDomain -EndpointName $endpointName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -HostName $hostName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -66,7 +66,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { | Test-AzFrontDoorCdnEndpointCustomDomain -HostName $hostName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 index 3d995865929d..150d294f74eb 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 @@ -42,7 +42,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -78,7 +78,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 index cc333865fc34..a04759d9d021 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 @@ -32,7 +32,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { $result.NameAvailable | Should -Be $true } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -55,7 +55,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { $result.NameAvailable | Should -Be $true } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 index 3a80560b62f5..f5bae1d15108 100644 --- a/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 @@ -53,7 +53,7 @@ Describe 'Update-AzCdnEndpoint' { $updatedEndpoint.Tag["Tag2"] | Should -Be "22" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -97,7 +97,7 @@ Describe 'Update-AzCdnEndpoint' { $updatedEndpoint.Tag["Tag2"] | Should -Be "22" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 index d9d425da3dcc..ca0c24bcf3db 100644 --- a/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 @@ -58,7 +58,7 @@ Describe 'Update-AzCdnOrigin' { $origin.HttpsPort | Should -Be 789 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -106,7 +106,7 @@ Describe 'Update-AzCdnOrigin' { $origin.HttpsPort | Should -Be 789 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 index a2d875bb8bea..cad88f98f3bb 100644 --- a/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 @@ -78,7 +78,7 @@ Describe 'Update-AzCdnOriginGroup' { $updatedOriginGroup.HealthProbeSetting.ProbeRequestType | Should -Be $probeRequestType2 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -145,7 +145,7 @@ Describe 'Update-AzCdnOriginGroup' { $updatedOriginGroup.HealthProbeSetting.ProbeRequestType | Should -Be $probeRequestType2 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 index 437a85477211..6700802852d3 100644 --- a/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 @@ -43,7 +43,7 @@ Describe 'Update-AzCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -77,7 +77,7 @@ Describe 'Update-AzCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 index b8fa59a71d28..35e45a14dc15 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 @@ -49,7 +49,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { Update-AzFrontDoorCdnCustomDomainValidationToken -CustomDomainName $customDomainName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -90,7 +90,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { | Update-AzFrontDoorCdnCustomDomainValidationToken } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 index d1234f5a2254..03179ada32d0 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -41,7 +41,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { $updatedEndpoint.EnabledState | Should -Be "Disabled" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -68,7 +68,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { $updatedEndpoint.EnabledState | Should -Be "Disabled" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 index 762c22d6b991..bddfecc67aea 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 @@ -52,7 +52,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { $origin.Weight | Should -Be 999 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -95,7 +95,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { $origin.Weight | Should -Be 999 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 index b0364d17ce89..3207011b33ab 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -49,7 +49,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { $originGroup.LoadBalancingSetting.SuccessfulSamplesRequired | Should -Be 3 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -85,7 +85,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { $originGroup.LoadBalancingSetting.SuccessfulSamplesRequired | Should -Be 3 } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 index 596bd40fdb78..2143d03e1400 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 @@ -43,7 +43,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -77,7 +77,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 index bd25fe71eee8..25fd63448d82 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 @@ -79,7 +79,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { -EnabledState "Disabled" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -148,7 +148,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { | Update-AzFrontDoorCdnRoute -EnabledState "Disabled" } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 index 7b13fabbae41..5f7619bc9090 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 @@ -67,7 +67,7 @@ Describe 'Update-AzFrontDoorCdnRule' { $updatedRule.Action.Count | Should -Be $actions.Count } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -124,7 +124,7 @@ Describe 'Update-AzFrontDoorCdnRule' { $updatedRule.Action.Count | Should -Be $actions.Count } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 4be7caf44e24..7288ed7383cb 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -56,7 +56,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { -Parameter $updateParameter } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -102,7 +102,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { | Update-AzFrontDoorCdnSecurityPolicy -Parameter $updateParameter } Finally { - Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } From f384c514a69be26ffb7f5a06451678cd02e30084 Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Thu, 19 May 2022 16:44:39 +0800 Subject: [PATCH 4/6] Update the test cases --- src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 | 8 ++++---- .../test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 | 8 ++++---- .../test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 | 4 ++-- src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnProfile.Tests.ps1 | 8 ++++---- src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 | 2 +- .../Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 | 6 +++--- .../Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 | 6 +++--- .../Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 | 8 ++++---- .../test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 | 6 +++--- .../test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 | 2 +- src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 6 +++--- src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 | 8 ++++---- src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnOrigin.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnProfile.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 2 +- src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 | 4 ++-- src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 | 4 ++-- .../test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 4 ++-- src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 | 4 ++-- src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 | 4 ++-- .../Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 | 4 ++-- .../Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 | 4 ++-- ...st-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzCdnProfile.Tests.ps1 | 4 ++-- ...te-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 | 4 ++-- src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 | 4 ++-- .../test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 4 ++-- 76 files changed, 152 insertions(+), 152 deletions(-) diff --git a/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 index f4eefc0f3166..7827209f2532 100644 --- a/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -64,7 +64,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -108,7 +108,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -151,7 +151,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 index 5eb100d96547..4d5324c00b74 100644 --- a/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -74,7 +74,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -100,7 +100,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 b/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 index 64b4d05ffdbc..3da97a40d1a7 100644 --- a/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 +++ b/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Enable-AzCdnCustomDomainCustomHttps' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -66,7 +66,7 @@ Describe 'Enable-AzCdnCustomDomainCustomHttps' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 index 55bd5f0e4825..2d737f13d3f4 100644 --- a/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Get-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -60,7 +60,7 @@ Describe 'Get-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -100,7 +100,7 @@ Describe 'Get-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 index 9e142864a39b..ab7162774df0 100644 --- a/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -54,7 +54,7 @@ Describe 'Get-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -91,7 +91,7 @@ Describe 'Get-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 index 1a195e29afe7..33450808f3e0 100644 --- a/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzCdnEndpointResourceUsage' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 index 4fab150822ed..74e6bdffa921 100644 --- a/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -54,7 +54,7 @@ Describe 'Get-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -95,7 +95,7 @@ Describe 'Get-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 index 4c82d8d2a54a..847b76c1b279 100644 --- a/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Get-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -67,7 +67,7 @@ Describe 'Get-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -118,7 +118,7 @@ Describe 'Get-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 index 5ec2e547c260..3c4bc6abc002 100644 --- a/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -71,7 +71,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -96,7 +96,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 index 468140b09ffd..5b199f169cdb 100644 --- a/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzCdnProfileResourceUsage' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 index da93e9bb1792..7193a8c4b531 100644 --- a/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzCdnProfileSupportedOptimizationType' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 index 8883a148640c..cc0c314a5b39 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -55,7 +55,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -91,7 +91,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 index 8470cbbdce20..6f98b59d5c34 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -74,7 +74,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 index 46f04ffb5006..fbfb8bc4bd1d 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzFrontDoorCdnEndpointResourceUsage' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 index 715a3ca4139c..028830132603 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -95,7 +95,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 index a370ee125143..aaafad87fc09 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -50,7 +50,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 index 1596d2133907..406e51088bd9 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroupResourceUsage' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 index c0f0c997ec62..cc0662022734 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -42,7 +42,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -66,7 +66,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -90,7 +90,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 index 9d1a5e49cac1..35ba9a1f322b 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzFrontDoorCdnProfileResourceUsage' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 index df24f9b83483..f84527acadd0 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -86,7 +86,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -153,7 +153,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 index 827f233dc2ae..e660b136a47e 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -95,7 +95,7 @@ Describe 'Get-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 index a799a9c37699..d99a9dff6238 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -67,7 +67,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 index d334b54b86aa..446b9a19fdbe 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzFrontDoorCdnRuleSetResourceUsage' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 index b28f53a3d5a6..034fe3a30d7f 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -50,7 +50,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 52b53bec299d..e2734bfeeade 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -55,7 +55,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -91,7 +91,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 index f8cdc03d5165..8628b199eb80 100644 --- a/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -64,7 +64,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -108,7 +108,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -151,7 +151,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 b/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 index 45710d92976f..689308142442 100644 --- a/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'New-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 index 3e9326a5faeb..b3e74f24ca00 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'New-AzCdnDeliveryRuleObject' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 index c2fb971e7df3..711106e92c7e 100644 --- a/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'New-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 index 7e1c9fee44bf..0d128595324f 100644 --- a/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'New-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 index 0f4ebc2c54b3..0d08c5a8f155 100644 --- a/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'New-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnProfile.Tests.ps1 b/src/Cdn/test/New-AzCdnProfile.Tests.ps1 index 76d58dc0d509..e618e669089e 100644 --- a/src/Cdn/test/New-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnProfile.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use CdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 index 56706a62ff0c..59558ec9aeda 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 index 32cd722b58bd..41352cb4ce0f 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 index 36a169157fca..0b954aeb4398 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 index 6a44bf85b86d..351f3ab23eb6 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 index 016d724fc709..5f38c9b0a2bb 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 index 7314cf57dc3a..2eb53194f039 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 index 2623c594570c..d15b8e60293d 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 index e235e0f818d7..3b19d9bd99fc 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 index 93a0e8285eb9..dcfc23008c42 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 622803c2c818..6989f966369e 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'New-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 index 4f8116b47b84..8fb861316e97 100644 --- a/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Remove-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -59,7 +59,7 @@ Describe 'Remove-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 index 93e8b02f4b43..a320de543097 100644 --- a/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Remove-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 index 6f7cd2da885e..b5fdf33af0be 100644 --- a/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Remove-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -70,7 +70,7 @@ Describe 'Remove-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 index c309338c70a1..cff758698b9d 100644 --- a/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Remove-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -78,7 +78,7 @@ Describe 'Remove-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 index c38e0050d4d7..21865e92dba4 100644 --- a/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Remove-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 index ab3bd2f2faf3..0ee3e6dae6a1 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -58,7 +58,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 index 0c399ab4e08e..e50ee82c432e 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 index c3489c78d683..029c3a0b6beb 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 index 2638942cad92..71a6590f7295 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -50,7 +50,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 index a1c217032131..d561b3856c71 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 index 0917ccf2403e..adca2ebed470 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -89,7 +89,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 index ceefcfeea4e1..b675a6181728 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -60,7 +60,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 index faa6b83b42aa..075d5164445f 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 index d8c496039226..45fee06001ce 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -52,7 +52,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 624261374db5..41756f9ecf1d 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 index 56208e1d0c03..938e4f24e7a8 100644 --- a/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Start-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Start-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 index e5e2eea0afa0..f43be0b63f4f 100644 --- a/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Stop-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -56,7 +56,7 @@ Describe 'Stop-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 b/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 index d9aae686feef..382ebef43791 100644 --- a/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Test-AzCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -64,7 +64,7 @@ Describe 'Test-AzCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 index 83f30e90e882..d4b3d3d80820 100644 --- a/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Test-AzCdnNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -58,7 +58,7 @@ Describe 'Test-AzCdnNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 index 773e2a945f15..eca140c3aeb1 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -49,7 +49,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 index 150d294f74eb..dae620b48cb9 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 index a04759d9d021..0197fc7c5b21 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -42,7 +42,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 index f5bae1d15108..8533602fc4e1 100644 --- a/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Update-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -65,7 +65,7 @@ Describe 'Update-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 index ca0c24bcf3db..a34db765bf6b 100644 --- a/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Update-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -70,7 +70,7 @@ Describe 'Update-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 index cad88f98f3bb..7ba049f95dd3 100644 --- a/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Update-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -91,7 +91,7 @@ Describe 'Update-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 index 6700802852d3..da3a80a93af3 100644 --- a/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Update-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -55,7 +55,7 @@ Describe 'Update-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 index 35e45a14dc15..6385b7c97147 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -61,7 +61,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 index 03179ada32d0..556c3b608344 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -51,7 +51,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 index bddfecc67aea..eade1fc1fe9b 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -62,7 +62,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 index 3207011b33ab..1773458fa5e9 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -59,7 +59,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 index 2143d03e1400..51de9725622f 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -55,7 +55,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 index 25fd63448d82..4d58a0915dcb 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -91,7 +91,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" diff --git a/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 index 5f7619bc9090..4f45591cb431 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 @@ -20,7 +20,7 @@ Describe 'Update-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -77,7 +77,7 @@ Describe 'Update-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; diff --git a/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 7288ed7383cb..438cd5f33df9 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -68,7 +68,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - New-AzResourceGroup -Name $ResourceGroupName -Location $env.location + $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" From b2284d9d5a300fa2c239e0aaf8a1c45b0b1cc665 Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Thu, 19 May 2022 19:06:28 +0800 Subject: [PATCH 5/6] Update the test cases --- .../test/Clear-AzCdnEndpointContent.Tests.ps1 | 18 +++++++++--------- ...ear-AzFrontDoorCdnEndpointContent.Tests.ps1 | 18 +++++++++--------- ...able-AzCdnCustomDomainCustomHttps.Tests.ps1 | 2 +- ...able-AzCdnCustomDomainCustomHttps.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 | 8 ++++---- src/Cdn/test/Get-AzCdnEdgeNode.Tests.ps1 | 2 +- src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 | 14 +++++++------- .../Get-AzCdnEndpointResourceUsage.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 | 14 +++++++------- src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 | 14 +++++++------- src/Cdn/test/Get-AzCdnProfile.Tests.ps1 | 18 +++++++++--------- .../Get-AzCdnProfileResourceUsage.Tests.ps1 | 6 +++--- ...nProfileSupportedOptimizationType.Tests.ps1 | 6 +++--- ...et-AzCdnSubscriptionResourceUsage.Tests.ps1 | 2 +- .../Get-AzFrontDoorCdnCustomDomain.Tests.ps1 | 14 +++++++------- .../test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 | 14 +++++++------- ...FrontDoorCdnEndpointResourceUsage.Tests.ps1 | 6 +++--- .../test/Get-AzFrontDoorCdnOrigin.Tests.ps1 | 14 +++++++------- .../Get-AzFrontDoorCdnOriginGroup.Tests.ps1 | 14 +++++++------- ...ntDoorCdnOriginGroupResourceUsage.Tests.ps1 | 6 +++--- .../test/Get-AzFrontDoorCdnProfile.Tests.ps1 | 18 +++++++++--------- ...zFrontDoorCdnProfileResourceUsage.Tests.ps1 | 6 +++--- src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 | 14 +++++++------- src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 | 14 +++++++------- .../test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 | 14 +++++++------- ...zFrontDoorCdnRuleSetResourceUsage.Tests.ps1 | 6 +++--- .../test/Get-AzFrontDoorCdnSecret.Tests.ps1 | 14 +++++++------- .../Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 14 +++++++------- .../test/Import-AzCdnEndpointContent.Tests.ps1 | 18 +++++++++--------- src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 | 4 ++-- ...eliveryRuleCookiesConditionObject.Tests.ps1 | 2 +- ...eryRuleHttpVersionConditionObject.Tests.ps1 | 2 +- ...liveryRuleIsDeviceConditionObject.Tests.ps1 | 2 +- .../test/New-AzCdnDeliveryRuleObject.Tests.ps1 | 6 +++--- ...liveryRulePostArgsConditionObject.Tests.ps1 | 2 +- ...eryRuleQueryStringConditionObject.Tests.ps1 | 2 +- ...yRuleRemoteAddressConditionObject.Tests.ps1 | 2 +- ...eryRuleRequestBodyConditionObject.Tests.ps1 | 2 +- ...veryRuleRequestHeaderActionObject.Tests.ps1 | 2 +- ...yRuleRequestHeaderConditionObject.Tests.ps1 | 2 +- ...yRuleRequestMethodConditionObject.Tests.ps1 | 2 +- ...yRuleRequestSchemeConditionObject.Tests.ps1 | 2 +- ...veryRuleRequestUriConditionObject.Tests.ps1 | 2 +- ...eryRuleResponseHeaderActionObject.Tests.ps1 | 2 +- ...leUrlFileExtensionConditionObject.Tests.ps1 | 2 +- ...eryRuleUrlFileNameConditionObject.Tests.ps1 | 2 +- ...eliveryRuleUrlPathConditionObject.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 | 6 +++--- ...-AzCdnHealthProbeParametersObject.Tests.ps1 | 2 +- ...AzCdnManagedHttpsParametersObject.Tests.ps1 | 2 +- src/Cdn/test/New-AzCdnOrigin.Tests.ps1 | 6 +++--- src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 | 6 +++--- src/Cdn/test/New-AzCdnProfile.Tests.ps1 | 6 +++--- .../New-AzCdnResourceReferenceObject.Tests.ps1 | 2 +- ...ginErrorDetectionParametersObject.Tests.ps1 | 2 +- .../New-AzCdnUrlRedirectActionObject.Tests.ps1 | 2 +- .../New-AzCdnUrlRewriteActionObject.Tests.ps1 | 2 +- .../New-AzCdnUrlSigningActionObject.Tests.ps1 | 2 +- ...nUserManagedHttpsParametersObject.Tests.ps1 | 2 +- .../New-AzFrontDoorCdnCustomDomain.Tests.ps1 | 6 +++--- ...mDomainTlsSettingParametersObject.Tests.ps1 | 2 +- .../test/New-AzFrontDoorCdnEndpoint.Tests.ps1 | 6 +++--- .../test/New-AzFrontDoorCdnOrigin.Tests.ps1 | 6 +++--- .../New-AzFrontDoorCdnOriginGroup.Tests.ps1 | 6 +++--- ...iginGroupHealthProbeSettingObject.Tests.ps1 | 2 +- ...inGroupLoadBalancingSettingObject.Tests.ps1 | 2 +- .../test/New-AzFrontDoorCdnProfile.Tests.ps1 | 6 +++--- ...ontDoorCdnResourceReferenceObject.Tests.ps1 | 2 +- src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 | 6 +++--- src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 | 6 +++--- ...rCdnRuleClientPortConditionObject.Tests.ps1 | 2 +- ...DoorCdnRuleCookiesConditionObject.Tests.ps1 | 2 +- ...oorCdnRuleHostNameConditionObject.Tests.ps1 | 2 +- ...CdnRuleHttpVersionConditionObject.Tests.ps1 | 2 +- ...oorCdnRuleIsDeviceConditionObject.Tests.ps1 | 2 +- ...oorCdnRulePostArgsConditionObject.Tests.ps1 | 2 +- ...CdnRuleQueryStringConditionObject.Tests.ps1 | 2 +- ...nRuleRemoteAddressConditionObject.Tests.ps1 | 2 +- ...CdnRuleRequestBodyConditionObject.Tests.ps1 | 2 +- ...rCdnRuleRequestHeaderActionObject.Tests.ps1 | 2 +- ...nRuleRequestHeaderConditionObject.Tests.ps1 | 2 +- ...nRuleRequestMethodConditionObject.Tests.ps1 | 2 +- ...nRuleRequestSchemeConditionObject.Tests.ps1 | 2 +- ...CdnRuleResponseHeaderActionObject.Tests.ps1 | 2 +- ...ConfigurationOverrideActionObject.Tests.ps1 | 2 +- ...rCdnRuleServerPortConditionObject.Tests.ps1 | 2 +- .../test/New-AzFrontDoorCdnRuleSet.Tests.ps1 | 6 +++--- ...rCdnRuleSocketAddrConditionObject.Tests.ps1 | 2 +- ...CdnRuleSslProtocolConditionObject.Tests.ps1 | 2 +- ...leUrlFileExtensionConditionObject.Tests.ps1 | 2 +- ...CdnRuleUrlFileNameConditionObject.Tests.ps1 | 2 +- ...DoorCdnRuleUrlPathConditionObject.Tests.ps1 | 2 +- ...oorCdnRuleUrlRedirectActionObject.Tests.ps1 | 2 +- ...DoorCdnRuleUrlRewriteActionObject.Tests.ps1 | 2 +- ...DoorCdnRuleUrlSigningActionObject.Tests.ps1 | 2 +- .../test/New-AzFrontDoorCdnSecret.Tests.ps1 | 6 +++--- ...stomerCertificateParametersObject.Tests.ps1 | 2 +- ...anagedCertificateParametersObject.Tests.ps1 | 2 +- ...anagedCertificateParametersObject.Tests.ps1 | 2 +- ...cretUrlSigningKeyParametersObject.Tests.ps1 | 2 +- .../New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 6 +++--- ...licationFirewallAssociationObject.Tests.ps1 | 2 +- ...plicationFirewallParametersObject.Tests.ps1 | 2 +- src/Cdn/test/README.md | 2 +- .../test/Remove-AzCdnCustomDomain.Tests.ps1 | 6 +++--- src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 | 10 +++++----- src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 | 10 +++++----- src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 | 10 +++++----- src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 | 10 +++++----- ...Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 | 10 +++++----- .../Remove-AzFrontDoorCdnEndpoint.Tests.ps1 | 10 +++++----- .../test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 | 10 +++++----- .../Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 | 10 +++++----- .../Remove-AzFrontDoorCdnProfile.Tests.ps1 | 10 +++++----- .../test/Remove-AzFrontDoorCdnRoute.Tests.ps1 | 10 +++++----- .../test/Remove-AzFrontDoorCdnRule.Tests.ps1 | 10 +++++----- .../Remove-AzFrontDoorCdnRuleSet.Tests.ps1 | 10 +++++----- .../test/Remove-AzFrontDoorCdnSecret.Tests.ps1 | 10 +++++----- ...move-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 10 +++++----- src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 | 10 +++++----- src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 | 10 +++++----- .../Test-AzCdnEndpointCustomDomain.Tests.ps1 | 6 +++--- .../test/Test-AzCdnNameAvailability.Tests.ps1 | 10 +++++----- src/Cdn/test/Test-AzCdnProbe.Tests.ps1 | 2 +- ...zFrontDoorCdnEndpointCustomDomain.Tests.ps1 | 10 +++++----- ...ntDoorCdnEndpointNameAvailability.Tests.ps1 | 10 +++++----- ...oorCdnProfileHostNameAvailability.Tests.ps1 | 10 +++++----- src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 | 10 +++++----- src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 | 10 +++++----- src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 | 10 +++++----- src/Cdn/test/Update-AzCdnProfile.Tests.ps1 | 10 +++++----- ...Update-AzFrontDoorCdnCustomDomain.Tests.ps1 | 2 +- ...oorCdnCustomDomainValidationToken.Tests.ps1 | 10 +++++----- .../Update-AzFrontDoorCdnEndpoint.Tests.ps1 | 10 +++++----- .../test/Update-AzFrontDoorCdnOrigin.Tests.ps1 | 10 +++++----- .../Update-AzFrontDoorCdnOriginGroup.Tests.ps1 | 10 +++++----- .../Update-AzFrontDoorCdnProfile.Tests.ps1 | 10 +++++----- .../test/Update-AzFrontDoorCdnRoute.Tests.ps1 | 10 +++++----- .../test/Update-AzFrontDoorCdnRule.Tests.ps1 | 10 +++++----- ...date-AzFrontDoorCdnSecurityPolicy.Tests.ps1 | 10 +++++----- 140 files changed, 434 insertions(+), 434 deletions(-) diff --git a/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 index 7827209f2532..74b6ab38f316 100644 --- a/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Clear-AzCdnEndpointContent.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Clear-AzCdnEndpointContent')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Clear-AzCdnEndpointContent' { +Describe 'Clear-AzCdnEndpointContent' -Tag 'LiveOnly' { It 'PurgeExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Clear-AzCdnEndpointContent' { { Clear-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentPath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -64,7 +64,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -96,7 +96,7 @@ Describe 'Clear-AzCdnEndpointContent' { { Clear-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentFilePath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -108,7 +108,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -139,7 +139,7 @@ Describe 'Clear-AzCdnEndpointContent' { { $endpoint | Clear-AzCdnEndpointContent -ContentPath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -151,7 +151,7 @@ Describe 'Clear-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -182,7 +182,7 @@ Describe 'Clear-AzCdnEndpointContent' { { $endpoint | Clear-AzCdnEndpointContent -ContentFilePath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 index 4d5324c00b74..7f39e380f6b9 100644 --- a/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Clear-AzFrontDoorCdnEndpointContent.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Clear-AzFrontDoorCdnEndpointC . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Clear-AzFrontDoorCdnEndpointContent' { +Describe 'Clear-AzFrontDoorCdnEndpointContent' -Tag 'LiveOnly' { It 'PurgeExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -36,7 +36,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { -ContentPath "/a" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -45,7 +45,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -64,7 +64,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { -Content $afdPurgeParameters } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -74,7 +74,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -90,7 +90,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { | Clear-AzFrontDoorCdnEndpointContent -ContentPath "/a" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -100,7 +100,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -119,7 +119,7 @@ Describe 'Clear-AzFrontDoorCdnEndpointContent' { | Clear-AzFrontDoorCdnEndpointContent -Content $afdPurgeParameters } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Disable-AzCdnCustomDomainCustomHttps.Tests.ps1 b/src/Cdn/test/Disable-AzCdnCustomDomainCustomHttps.Tests.ps1 index b58ccad8a41b..2c14f6f1893b 100644 --- a/src/Cdn/test/Disable-AzCdnCustomDomainCustomHttps.Tests.ps1 +++ b/src/Cdn/test/Disable-AzCdnCustomDomainCustomHttps.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Disable-AzCdnCustomDomainCust . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Disable-AzCdnCustomDomainCustomHttps' { +Describe 'Disable-AzCdnCustomDomainCustomHttps' -Tag 'LiveOnly' { It 'Disable' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 b/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 index 3da97a40d1a7..53caacb3a8d2 100644 --- a/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 +++ b/src/Cdn/test/Enable-AzCdnCustomDomainCustomHttps.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Enable-AzCdnCustomDomainCusto . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Enable-AzCdnCustomDomainCustomHttps' { +Describe 'Enable-AzCdnCustomDomainCustomHttps' -Tag 'LiveOnly' { It 'Enable' { { $subId = "27cafca8-b9a4-4264-b399-45d0c9cca1ab" @@ -22,7 +22,7 @@ Describe 'Enable-AzCdnCustomDomainCustomHttps' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -66,7 +66,7 @@ Describe 'Enable-AzCdnCustomDomainCustomHttps' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 index 2d737f13d3f4..eac706d1b028 100644 --- a/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnCustomDomain.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnCustomDomain')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnCustomDomain' { +Describe 'Get-AzCdnCustomDomain' -Tag 'LiveOnly' { It 'List' { { $subId = "27cafca8-b9a4-4264-b399-45d0c9cca1ab" @@ -22,7 +22,7 @@ Describe 'Get-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -60,7 +60,7 @@ Describe 'Get-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -100,7 +100,7 @@ Describe 'Get-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Get-AzCdnEdgeNode.Tests.ps1 b/src/Cdn/test/Get-AzCdnEdgeNode.Tests.ps1 index ba0dc81949fa..a7e6dda6cae2 100644 --- a/src/Cdn/test/Get-AzCdnEdgeNode.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEdgeNode.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnEdgeNode')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnEdgeNode' { +Describe 'Get-AzCdnEdgeNode' -Tag 'LiveOnly' { It 'List' { { $minPrefixLength = 0; diff --git a/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 index ab7162774df0..e7bf99bc99dc 100644 --- a/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnEndpoint' { +Describe 'Get-AzCdnEndpoint' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Get-AzCdnEndpoint' { $endpoints.Count | Should -BeGreaterOrEqual 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -54,7 +54,7 @@ Describe 'Get-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -79,7 +79,7 @@ Describe 'Get-AzCdnEndpoint' { $endpoint.Origin.HostName | Should -Be $origin.HostName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -91,7 +91,7 @@ Describe 'Get-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -116,7 +116,7 @@ Describe 'Get-AzCdnEndpoint' { $endpoint.Origin.HostName | Should -Be $origin.HostName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 index 33450808f3e0..496f74cd81d5 100644 --- a/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnEndpointResourceUsage.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnEndpointResourceUsag . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnEndpointResourceUsage' { +Describe 'Get-AzCdnEndpointResourceUsage' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -65,7 +65,7 @@ Describe 'Get-AzCdnEndpointResourceUsage' { $geofilterUsage.CurrentValue | Should -Be 2 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 index 74e6bdffa921..99540ae79e3e 100644 --- a/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnOrigin.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnOrigin')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnOrigin' { +Describe 'Get-AzCdnOrigin' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Get-AzCdnOrigin' { $origins.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -54,7 +54,7 @@ Describe 'Get-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -83,7 +83,7 @@ Describe 'Get-AzCdnOrigin' { $origin.HttpsPort | Should -Be $null } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -95,7 +95,7 @@ Describe 'Get-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -124,7 +124,7 @@ Describe 'Get-AzCdnOrigin' { $origin.HttpsPort | Should -Be $null } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 index 847b76c1b279..6bf0a04eb7e7 100644 --- a/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnOriginGroup.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnOriginGroup')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnOriginGroup' { +Describe 'Get-AzCdnOriginGroup' -Tag 'LiveOnly' { It 'List' { { $subId = $env.SubscriptionId @@ -22,7 +22,7 @@ Describe 'Get-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -55,7 +55,7 @@ Describe 'Get-AzCdnOriginGroup' { $originGroups.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -67,7 +67,7 @@ Describe 'Get-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -105,7 +105,7 @@ Describe 'Get-AzCdnOriginGroup' { $endpointOriginGroup.Origin[0].Id | Should -Be $originGroup.Origin[0].Id } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -118,7 +118,7 @@ Describe 'Get-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -156,7 +156,7 @@ Describe 'Get-AzCdnOriginGroup' { $endpointOriginGroup.Origin[0].Id | Should -Be $originGroup.Origin[0].Id } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 index 3c4bc6abc002..1db88a1b1330 100644 --- a/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfile.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnProfile')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnProfile' { +Describe 'Get-AzCdnProfile' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -34,7 +34,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfiles.Count | Should -BeGreaterOrEqual 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -45,7 +45,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -60,7 +60,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfile.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -71,7 +71,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -84,7 +84,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfiles.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -96,7 +96,7 @@ Describe 'Get-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -111,7 +111,7 @@ Describe 'Get-AzCdnProfile' { $cdnProfile.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 index 5b199f169cdb..72a569fe3fb4 100644 --- a/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfileResourceUsage.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnProfileResourceUsage . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnProfileResourceUsage' { +Describe 'Get-AzCdnProfileResourceUsage' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -34,7 +34,7 @@ Describe 'Get-AzCdnProfileResourceUsage' { Get-AzCdnProfileResourceUsage -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 b/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 index 7193a8c4b531..723728e07049 100644 --- a/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnProfileSupportedOptimizationType.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnProfileSupportedOpti . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnProfileSupportedOptimizationType' { +Describe 'Get-AzCdnProfileSupportedOptimizationType' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -34,7 +34,7 @@ Describe 'Get-AzCdnProfileSupportedOptimizationType' { Get-AzCdnProfileSupportedOptimizationType -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzCdnSubscriptionResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzCdnSubscriptionResourceUsage.Tests.ps1 index 0122d0714738..a9d39674c168 100644 --- a/src/Cdn/test/Get-AzCdnSubscriptionResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzCdnSubscriptionResourceUsage.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzCdnSubscriptionResource . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzCdnSubscriptionResourceUsage' { +Describe 'Get-AzCdnSubscriptionResourceUsage' -Tag 'LiveOnly' { It 'List' { { $subscriptionResourceUsage = Get-AzCdnSubscriptionResourceUsage diff --git a/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 index cc0c314a5b39..4151b0d83e35 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnCustomDomai . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnCustomDomain' { +Describe 'Get-AzFrontDoorCdnCustomDomain' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -46,7 +46,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { $customDomains.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -55,7 +55,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { $customDomain.Name | Should -Be $customDomainName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -91,7 +91,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -117,7 +117,7 @@ Describe 'Get-AzFrontDoorCdnCustomDomain' { $customDomain.Name | Should -Be $customDomainName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 index 6f98b59d5c34..f9ab98ed2e09 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnEndpoint' { +Describe 'Get-AzFrontDoorCdnEndpoint' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -36,7 +36,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { $endpoints.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -45,7 +45,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -64,7 +64,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { $endpoint.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -74,7 +74,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -93,7 +93,7 @@ Describe 'Get-AzFrontDoorCdnEndpoint' { $endpoint.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 index fbfb8bc4bd1d..88c93d9dd0f5 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnEndpointResourceUsage.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnEndpointRes . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnEndpointResourceUsage' { +Describe 'Get-AzFrontDoorCdnEndpointResourceUsage' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -37,7 +37,7 @@ Describe 'Get-AzFrontDoorCdnEndpointResourceUsage' { $endpointUsage | Should -not -BeNullOrEmpty } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 index 028830132603..4e34b3cd1608 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOrigin.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnOrigin')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnOrigin' { +Describe 'Get-AzFrontDoorCdnOrigin' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -48,7 +48,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { $origins.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -85,7 +85,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { $origin.Name | Should -Be $originName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -95,7 +95,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -123,7 +123,7 @@ Describe 'Get-AzFrontDoorCdnOrigin' { $origin.Name | Should -Be $originName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 index aaafad87fc09..b9c8d033cfaf 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnOriginGroup . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnOriginGroup' { +Describe 'Get-AzFrontDoorCdnOriginGroup' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -41,7 +41,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { $originGroups.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -50,7 +50,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -71,7 +71,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { $originGroup.Name | Should -Be $originGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -102,7 +102,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroup' { $originGroup.Name | Should -Be $originGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 index 406e51088bd9..918d537f5ef2 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnOriginGroupResourceUsage.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnOriginGroup . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnOriginGroupResourceUsage' { +Describe 'Get-AzFrontDoorCdnOriginGroupResourceUsage' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -41,7 +41,7 @@ Describe 'Get-AzFrontDoorCdnOriginGroupResourceUsage' { $originGroupUsage | Should -not -BeNullOrEmpty } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 index cc0662022734..1bcabc6893eb 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnProfile.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnProfile')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnProfile' { +Describe 'Get-AzFrontDoorCdnProfile' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -33,7 +33,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfiles.Count | Should -BeGreaterOrEqual 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -42,7 +42,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -66,7 +66,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -79,7 +79,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfiles.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -90,7 +90,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -105,7 +105,7 @@ Describe 'Get-AzFrontDoorCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 index 35ba9a1f322b..f5103addda64 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnProfileResourceUsage.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnProfileReso . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnProfileResourceUsage' { +Describe 'Get-AzFrontDoorCdnProfileResourceUsage' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -33,7 +33,7 @@ Describe 'Get-AzFrontDoorCdnProfileResourceUsage' { $frontDoorCdnProfileUsage | Should -not -BeNullOrEmpty } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 index f84527acadd0..fbc495c7a7bb 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRoute.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnRoute')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnRoute' { +Describe 'Get-AzFrontDoorCdnRoute' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -77,7 +77,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { $routes.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -86,7 +86,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -143,7 +143,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { $route.Name | Should -Be $routeName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -153,7 +153,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -210,7 +210,7 @@ Describe 'Get-AzFrontDoorCdnRoute' { $route.Name | Should -Be $routeName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 index e660b136a47e..9f7ad40fd52e 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRule.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnRule')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnRule' { +Describe 'Get-AzFrontDoorCdnRule' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -48,7 +48,7 @@ Describe 'Get-AzFrontDoorCdnRule' { $rules.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -85,7 +85,7 @@ Describe 'Get-AzFrontDoorCdnRule' { $rule.Name | Should -Be $ruleName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -95,7 +95,7 @@ Describe 'Get-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -123,7 +123,7 @@ Describe 'Get-AzFrontDoorCdnRule' { $rule.Name | Should -Be $ruleName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 index d99a9dff6238..01aec91f07a1 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnRuleSet')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnRuleSet' { +Describe 'Get-AzFrontDoorCdnRuleSet' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -34,7 +34,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { $rulesets.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -43,7 +43,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { $ruleset.Name | Should -Be $rulesetName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -67,7 +67,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnRuleSet' { $ruleset.Name | Should -Be $rulesetName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 index 446b9a19fdbe..7c35dbf3bbb4 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnRuleSetResourceUsage.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnRuleSetReso . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnRuleSetResourceUsage' { +Describe 'Get-AzFrontDoorCdnRuleSetResourceUsage' -Tag 'LiveOnly' { It 'List' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -35,7 +35,7 @@ Describe 'Get-AzFrontDoorCdnRuleSetResourceUsage' { $rulesetUsage | Should -not -BeNullOrEmpty } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 index 034fe3a30d7f..f58835c0e087 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnSecret.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnSecret')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnSecret' { +Describe 'Get-AzFrontDoorCdnSecret' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -40,7 +40,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { $rules.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -50,7 +50,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -70,7 +70,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { $secret.Name | Should -Be $secretName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -81,7 +81,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -101,7 +101,7 @@ Describe 'Get-AzFrontDoorCdnSecret' { $secret.Name | Should -Be $secretName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index e2734bfeeade..aa82fbc9cbfe 100644 --- a/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Get-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzFrontDoorCdnSecurityPol . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzFrontDoorCdnSecurityPolicy' { +Describe 'Get-AzFrontDoorCdnSecurityPolicy' -Tag 'LiveOnly' { It 'List' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { $policies.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -55,7 +55,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -80,7 +80,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { $policy.Name | Should -Be $policyName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -91,7 +91,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -116,7 +116,7 @@ Describe 'Get-AzFrontDoorCdnSecurityPolicy' { $policy.Name | Should -Be $policyName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 b/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 index 8628b199eb80..0faec980d077 100644 --- a/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 +++ b/src/Cdn/test/Import-AzCdnEndpointContent.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Import-AzCdnEndpointContent') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Import-AzCdnEndpointContent' { +Describe 'Import-AzCdnEndpointContent' -Tag 'LiveOnly' { It 'LoadExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Import-AzCdnEndpointContent' { { Import-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentPath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -64,7 +64,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -96,7 +96,7 @@ Describe 'Import-AzCdnEndpointContent' { { Import-AzCdnEndpointContent -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName -ContentFilePath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -108,7 +108,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -139,7 +139,7 @@ Describe 'Import-AzCdnEndpointContent' { { $endpoint | Import-AzCdnEndpointContent -ContentPath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -151,7 +151,7 @@ Describe 'Import-AzCdnEndpointContent' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location; $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -182,7 +182,7 @@ Describe 'Import-AzCdnEndpointContent' { { $endpoint | Import-AzCdnEndpointContent -ContentFilePath $contentPath } | Should -Throw } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 b/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 index 689308142442..844ccc5c25a5 100644 --- a/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnCustomDomain.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnCustomDomain')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnCustomDomain' { +Describe 'New-AzCdnCustomDomain' -Tag 'LiveOnly' { It 'CreateExpanded' { { $subId = "27cafca8-b9a4-4264-b399-45d0c9cca1ab" @@ -22,7 +22,7 @@ Describe 'New-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleCookiesConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleCookiesConditionObject.Tests.ps1 index 73d274242487..cb1f42488fbb 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleCookiesConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleCookiesConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleCookiesC . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleCookiesConditionObject' { +Describe 'New-AzCdnDeliveryRuleCookiesConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleHttpVersionConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleHttpVersionConditionObject.Tests.ps1 index 11970148bac6..8f05e8f3f3f3 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleHttpVersionConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleHttpVersionConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleHttpVers . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleHttpVersionConditionObject' { +Describe 'New-AzCdnDeliveryRuleHttpVersionConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleIsDeviceConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleIsDeviceConditionObject.Tests.ps1 index 7e899f7b0612..60f807eef450 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleIsDeviceConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleIsDeviceConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleIsDevice . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleIsDeviceConditionObject' { +Describe 'New-AzCdnDeliveryRuleIsDeviceConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 index b3e74f24ca00..cab6ed52eee1 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleObject.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleObject') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleObject' { +Describe 'New-AzCdnDeliveryRuleObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -60,7 +60,7 @@ Describe 'New-AzCdnDeliveryRuleObject' { $endpoint.DeliveryPolicyRule.Count | Should -Be 1 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnDeliveryRulePostArgsConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRulePostArgsConditionObject.Tests.ps1 index 04eb98e77541..317920365340 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRulePostArgsConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRulePostArgsConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRulePostArgs . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRulePostArgsConditionObject' { +Describe 'New-AzCdnDeliveryRulePostArgsConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleQueryStringConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleQueryStringConditionObject.Tests.ps1 index 05cf89724baf..c23960a4140b 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleQueryStringConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleQueryStringConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleQueryStr . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleQueryStringConditionObject' { +Describe 'New-AzCdnDeliveryRuleQueryStringConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRemoteAddressConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRemoteAddressConditionObject.Tests.ps1 index aaae42f3e0bd..3cbb90825a49 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRemoteAddressConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRemoteAddressConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRemoteAd . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRemoteAddressConditionObject' { +Describe 'New-AzCdnDeliveryRuleRemoteAddressConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRequestBodyConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRequestBodyConditionObject.Tests.ps1 index e331fb0e171c..c4c728625b75 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRequestBodyConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRequestBodyConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRequestB . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRequestBodyConditionObject' { +Describe 'New-AzCdnDeliveryRuleRequestBodyConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderActionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderActionObject.Tests.ps1 index 33994529d715..531981a4195e 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRequestH . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRequestHeaderActionObject' { +Describe 'New-AzCdnDeliveryRuleRequestHeaderActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderConditionObject.Tests.ps1 index 639af3964bb5..3cd33cb12a40 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRequestHeaderConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRequestH . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRequestHeaderConditionObject' { +Describe 'New-AzCdnDeliveryRuleRequestHeaderConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRequestMethodConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRequestMethodConditionObject.Tests.ps1 index 383f227d1498..96c9332548df 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRequestMethodConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRequestMethodConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRequestM . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRequestMethodConditionObject' { +Describe 'New-AzCdnDeliveryRuleRequestMethodConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRequestSchemeConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRequestSchemeConditionObject.Tests.ps1 index 7973863a54ef..8694b28c20de 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRequestSchemeConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRequestSchemeConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRequestS . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRequestSchemeConditionObject' { +Describe 'New-AzCdnDeliveryRuleRequestSchemeConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleRequestUriConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleRequestUriConditionObject.Tests.ps1 index e33403a17ce5..a9faf0e56185 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleRequestUriConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleRequestUriConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleRequestU . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleRequestUriConditionObject' { +Describe 'New-AzCdnDeliveryRuleRequestUriConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleResponseHeaderActionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleResponseHeaderActionObject.Tests.ps1 index 9e03b83eea1f..fa43c1a03861 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleResponseHeaderActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleResponseHeaderActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleResponse . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleResponseHeaderActionObject' { +Describe 'New-AzCdnDeliveryRuleResponseHeaderActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.Tests.ps1 index cdcbc1dc14cd..71937629033d 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileExtensionConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleUrlFileE . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleUrlFileExtensionConditionObject' { +Describe 'New-AzCdnDeliveryRuleUrlFileExtensionConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileNameConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileNameConditionObject.Tests.ps1 index 33597efa1f88..e47eeba19e2f 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileNameConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleUrlFileNameConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleUrlFileN . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleUrlFileNameConditionObject' { +Describe 'New-AzCdnDeliveryRuleUrlFileNameConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnDeliveryRuleUrlPathConditionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnDeliveryRuleUrlPathConditionObject.Tests.ps1 index 4b7963d85f62..55437a130fac 100644 --- a/src/Cdn/test/New-AzCdnDeliveryRuleUrlPathConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnDeliveryRuleUrlPathConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnDeliveryRuleUrlPathC . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnDeliveryRuleUrlPathConditionObject' { +Describe 'New-AzCdnDeliveryRuleUrlPathConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 index 711106e92c7e..1fcd55f213f3 100644 --- a/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnEndpoint' { +Describe 'New-AzCdnEndpoint' -Tag 'LiveOnly' { It 'CreateExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -45,7 +45,7 @@ Describe 'New-AzCdnEndpoint' { $endpoint.Origin.HostName | Should -Be $origin.HostName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnHealthProbeParametersObject.Tests.ps1 b/src/Cdn/test/New-AzCdnHealthProbeParametersObject.Tests.ps1 index 3fffd8573ed7..ce01a946f954 100644 --- a/src/Cdn/test/New-AzCdnHealthProbeParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnHealthProbeParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnHealthProbeParameter . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnHealthProbeParametersObject' { +Describe 'New-AzCdnHealthProbeParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnManagedHttpsParametersObject.Tests.ps1 b/src/Cdn/test/New-AzCdnManagedHttpsParametersObject.Tests.ps1 index 70f453549207..49a802b54eb6 100644 --- a/src/Cdn/test/New-AzCdnManagedHttpsParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnManagedHttpsParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnManagedHttpsParamete . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnManagedHttpsParametersObject' { +Describe 'New-AzCdnManagedHttpsParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 index 0d128595324f..60e141e0562b 100644 --- a/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnOrigin.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnOrigin')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnOrigin' { +Describe 'New-AzCdnOrigin' -Tag 'LiveOnly' { It 'CreateExpanded' { { $subId = $env.SubscriptionId @@ -22,7 +22,7 @@ Describe 'New-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -59,7 +59,7 @@ Describe 'New-AzCdnOrigin' { $origin.HostName | Should -Be "host2.hello.com" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 index 0d08c5a8f155..5de1e21d6210 100644 --- a/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnOriginGroup.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnOriginGroup')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnOriginGroup' { +Describe 'New-AzCdnOriginGroup' -Tag 'LiveOnly' { It 'CreateExpanded' { { $subId = $env.SubscriptionId @@ -22,7 +22,7 @@ Describe 'New-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -71,7 +71,7 @@ Describe 'New-AzCdnOriginGroup' { $createdOriginGroup.Origin[0].Id | Should -Be $originId } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnProfile.Tests.ps1 b/src/Cdn/test/New-AzCdnProfile.Tests.ps1 index e618e669089e..5fb519a4ef00 100644 --- a/src/Cdn/test/New-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnProfile.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnProfile')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnProfile' { +Describe 'New-AzCdnProfile' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use CdnProfileName : $($cdnProfileName)" @@ -33,7 +33,7 @@ Describe 'New-AzCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzCdnResourceReferenceObject.Tests.ps1 b/src/Cdn/test/New-AzCdnResourceReferenceObject.Tests.ps1 index d9223b3774f7..3f455f2e422e 100644 --- a/src/Cdn/test/New-AzCdnResourceReferenceObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnResourceReferenceObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnResourceReferenceObj . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnResourceReferenceObject' { +Describe 'New-AzCdnResourceReferenceObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { New-AzCdnResourceReferenceObject -Id "Id" diff --git a/src/Cdn/test/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.Tests.ps1 b/src/Cdn/test/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.Tests.ps1 index 7b3324b7a25d..96d99ed707a2 100644 --- a/src/Cdn/test/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnResponseBasedOriginErrorDetectionParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnResponseBasedOriginE . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnResponseBasedOriginErrorDetectionParametersObject' { +Describe 'New-AzCdnResponseBasedOriginErrorDetectionParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/Cdn/test/New-AzCdnUrlRedirectActionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnUrlRedirectActionObject.Tests.ps1 index 73229303b41a..7092ca9eaab5 100644 --- a/src/Cdn/test/New-AzCdnUrlRedirectActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnUrlRedirectActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnUrlRedirectActionObj . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnUrlRedirectActionObject' { +Describe 'New-AzCdnUrlRedirectActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnUrlRewriteActionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnUrlRewriteActionObject.Tests.ps1 index 5a2c23eee93d..3a14ab3c2aa7 100644 --- a/src/Cdn/test/New-AzCdnUrlRewriteActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnUrlRewriteActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnUrlRewriteActionObje . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnUrlRewriteActionObject' { +Describe 'New-AzCdnUrlRewriteActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnUrlSigningActionObject.Tests.ps1 b/src/Cdn/test/New-AzCdnUrlSigningActionObject.Tests.ps1 index f4a9e2af9b74..bedc48b31d83 100644 --- a/src/Cdn/test/New-AzCdnUrlSigningActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnUrlSigningActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnUrlSigningActionObje . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnUrlSigningActionObject' { +Describe 'New-AzCdnUrlSigningActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzCdnUserManagedHttpsParametersObject.Tests.ps1 b/src/Cdn/test/New-AzCdnUserManagedHttpsParametersObject.Tests.ps1 index 5bb0b6aa24a2..ece3c098f0b5 100644 --- a/src/Cdn/test/New-AzCdnUserManagedHttpsParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzCdnUserManagedHttpsParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnUserManagedHttpsPara . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzCdnUserManagedHttpsParametersObject' { +Describe 'New-AzCdnUserManagedHttpsParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 index 59558ec9aeda..828c33c8e130 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnCustomDomai . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnCustomDomain' { +Describe 'New-AzFrontDoorCdnCustomDomain' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'New-AzFrontDoorCdnCustomDomain' { -HostName $hostName -TlsSetting $tlsSetting } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.Tests.ps1 index fbfda184107c..687f0a7a14e9 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnCustomDomai . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject' { +Describe 'New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 index 41352cb4ce0f..f7c2f0c1d455 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnEndpoint' { +Describe 'New-AzFrontDoorCdnEndpoint' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -41,7 +41,7 @@ Describe 'New-AzFrontDoorCdnEndpoint' { $endpoint.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 index 0b954aeb4398..5507fa07b889 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOrigin.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnOrigin')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnOrigin' { +Describe 'New-AzFrontDoorCdnOrigin' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'New-AzFrontDoorCdnOrigin' { -HttpPort 80 -HttpsPort 443 -Priority 1 -Weight 1000 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 index 351f3ab23eb6..fc5efe65b44d 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnOriginGroup . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnOriginGroup' { +Describe 'New-AzFrontDoorCdnOriginGroup' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -39,7 +39,7 @@ Describe 'New-AzFrontDoorCdnOriginGroup' { -LoadBalancingSetting $loadBalancingSetting -HealthProbeSetting $healthProbeSetting } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.Tests.ps1 index 62867020f22d..f4f2130fcb2c 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnOriginGroup . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject' { +Describe 'New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject' -Tag 'LiveOnly' { It '__AllParameterSets' -skip { It '__AllParameterSets' { { diff --git a/src/Cdn/test/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.Tests.ps1 index 0dd6be415dc8..73490d92104b 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnOriginGroup . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject' { +Describe 'New-AzFrontDoorCdnOriginGroupLoadBalancingSettingObject' -Tag 'LiveOnly' { It '__AllParameterSets' -skip { It '__AllParameterSets' { { diff --git a/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 index 5f38c9b0a2bb..3eda908ba8d2 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnProfile.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnProfile')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnProfile' { +Describe 'New-AzFrontDoorCdnProfile' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -33,7 +33,7 @@ Describe 'New-AzFrontDoorCdnProfile' { $frontDoorCdnProfile.Location | Should -Be "Global" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnResourceReferenceObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnResourceReferenceObject.Tests.ps1 index b32ce1e2a403..4eb4c27c286d 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnResourceReferenceObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnResourceReferenceObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnResourceRef . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnResourceReferenceObject' { +Describe 'New-AzFrontDoorCdnResourceReferenceObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 index 2eb53194f039..84b9f966adfc 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRoute.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRoute')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRoute' { +Describe 'New-AzFrontDoorCdnRoute' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -74,7 +74,7 @@ Describe 'New-AzFrontDoorCdnRoute' { -OriginGroupId $originGroup.Id -RuleSet @($ruleSetResoure) -PatternsToMatch "/*" -LinkToDefaultDomain "Enabled" -EnabledState "Enabled" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 index d15b8e60293d..51ca7ff296d6 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRule.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRule')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRule' { +Describe 'New-AzFrontDoorCdnRule' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -45,7 +45,7 @@ Describe 'New-AzFrontDoorCdnRule' { -Action $actions -Condition $conditions } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleClientPortConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleClientPortConditionObject.Tests.ps1 index f1fcd3e5b5f6..dbe1e95b9256 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleClientPortConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleClientPortConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleClientP . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleClientPortConditionObject' { +Describe 'New-AzFrontDoorCdnRuleClientPortConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleCookiesConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleCookiesConditionObject.Tests.ps1 index 65fa16eed0d6..4ad4f075c880 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleCookiesConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleCookiesConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleCookies . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleCookiesConditionObject' { +Describe 'New-AzFrontDoorCdnRuleCookiesConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleHostNameConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleHostNameConditionObject.Tests.ps1 index de10a43ee673..393433e4b70e 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleHostNameConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleHostNameConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleHostNam . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleHostNameConditionObject' { +Describe 'New-AzFrontDoorCdnRuleHostNameConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleHttpVersionConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleHttpVersionConditionObject.Tests.ps1 index 429a1bbc6b2e..fa7192ed2818 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleHttpVersionConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleHttpVersionConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleHttpVer . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleHttpVersionConditionObject' { +Describe 'New-AzFrontDoorCdnRuleHttpVersionConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleIsDeviceConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleIsDeviceConditionObject.Tests.ps1 index 82e7f330d91c..8dc6a57d258e 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleIsDeviceConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleIsDeviceConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleIsDevic . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleIsDeviceConditionObject' { +Describe 'New-AzFrontDoorCdnRuleIsDeviceConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRulePostArgsConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRulePostArgsConditionObject.Tests.ps1 index 6348f459d4b2..09e8fbca2940 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRulePostArgsConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRulePostArgsConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRulePostArg . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRulePostArgsConditionObject' { +Describe 'New-AzFrontDoorCdnRulePostArgsConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleQueryStringConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleQueryStringConditionObject.Tests.ps1 index 9d0d46dff196..29faa97347b2 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleQueryStringConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleQueryStringConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleQuerySt . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleQueryStringConditionObject' { +Describe 'New-AzFrontDoorCdnRuleQueryStringConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.Tests.ps1 index 03d57fde3867..4e1880db1e54 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRemoteAddressConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRemoteA . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRemoteAddressConditionObject' { +Describe 'New-AzFrontDoorCdnRuleRemoteAddressConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestBodyConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestBodyConditionObject.Tests.ps1 index f7469f38a3a2..520bf396afa4 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestBodyConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestBodyConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRequest . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRequestBodyConditionObject' { +Describe 'New-AzFrontDoorCdnRuleRequestBodyConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderActionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderActionObject.Tests.ps1 index 6b9dc257af96..1e9f1c45a03c 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRequest . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRequestHeaderActionObject' { +Describe 'New-AzFrontDoorCdnRuleRequestHeaderActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.Tests.ps1 index dc8150b2180e..57ff06a6c43a 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestHeaderConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRequest . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRequestHeaderConditionObject' { +Describe 'New-AzFrontDoorCdnRuleRequestHeaderConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestMethodConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestMethodConditionObject.Tests.ps1 index f7719d1c1522..78a47783788f 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestMethodConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestMethodConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRequest . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRequestMethodConditionObject' { +Describe 'New-AzFrontDoorCdnRuleRequestMethodConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.Tests.ps1 index a804c9e926d3..65bca16c88ca 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRequestSchemeConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRequest . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRequestSchemeConditionObject' { +Describe 'New-AzFrontDoorCdnRuleRequestSchemeConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleResponseHeaderActionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleResponseHeaderActionObject.Tests.ps1 index 478f932bbec2..2564b86701cd 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleResponseHeaderActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleResponseHeaderActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRespons . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleResponseHeaderActionObject' { +Describe 'New-AzFrontDoorCdnRuleResponseHeaderActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.Tests.ps1 index eb79d5660497..40b3a985d9e3 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleRouteCo . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject' { +Describe 'New-AzFrontDoorCdnRuleRouteConfigurationOverrideActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleServerPortConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleServerPortConditionObject.Tests.ps1 index d51c41a9b69f..5f991cb07662 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleServerPortConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleServerPortConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleServerP . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleServerPortConditionObject' { +Describe 'New-AzFrontDoorCdnRuleServerPortConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 index 3b19d9bd99fc..a13dda57c07f 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleSet')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleSet' { +Describe 'New-AzFrontDoorCdnRuleSet' -Tag 'LiveOnly' { It 'Create' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -32,7 +32,7 @@ Describe 'New-AzFrontDoorCdnRuleSet' { New-AzFrontDoorCdnRuleSet -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $rulesetName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleSocketAddrConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleSocketAddrConditionObject.Tests.ps1 index ddeaca4ab2cc..3891708052df 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleSocketAddrConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleSocketAddrConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleSocketA . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleSocketAddrConditionObject' { +Describe 'New-AzFrontDoorCdnRuleSocketAddrConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleSslProtocolConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleSslProtocolConditionObject.Tests.ps1 index 8f0c24725b53..c930e7d54a2a 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleSslProtocolConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleSslProtocolConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleSslProt . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleSslProtocolConditionObject' { +Describe 'New-AzFrontDoorCdnRuleSslProtocolConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.Tests.ps1 index 360dcfdf1b33..5bc24f16830e 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleUrlFile . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject' { +Describe 'New-AzFrontDoorCdnRuleUrlFileExtensionConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.Tests.ps1 index 07e3264a3044..97ff15d0a884 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlFileNameConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleUrlFile . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleUrlFileNameConditionObject' { +Describe 'New-AzFrontDoorCdnRuleUrlFileNameConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlPathConditionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlPathConditionObject.Tests.ps1 index 48450274b64c..e78269ed0529 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlPathConditionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlPathConditionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleUrlPath . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleUrlPathConditionObject' { +Describe 'New-AzFrontDoorCdnRuleUrlPathConditionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRedirectActionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRedirectActionObject.Tests.ps1 index 5b484aa37384..024b573e0eee 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRedirectActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRedirectActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleUrlRedi . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleUrlRedirectActionObject' { +Describe 'New-AzFrontDoorCdnRuleUrlRedirectActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRewriteActionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRewriteActionObject.Tests.ps1 index a9055be7d902..f83c7df014bb 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRewriteActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlRewriteActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleUrlRewr . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleUrlRewriteActionObject' { +Describe 'New-AzFrontDoorCdnRuleUrlRewriteActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlSigningActionObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlSigningActionObject.Tests.ps1 index 74f220ccfd0e..08f94210f5ad 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnRuleUrlSigningActionObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnRuleUrlSigningActionObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnRuleUrlSign . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnRuleUrlSigningActionObject' { +Describe 'New-AzFrontDoorCdnRuleUrlSigningActionObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 index dcfc23008c42..d009fab21cf9 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecret.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecret')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecret' { +Describe 'New-AzFrontDoorCdnSecret' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -37,7 +37,7 @@ Describe 'New-AzFrontDoorCdnSecret' { New-AzFrontDoorCdnSecret -Name $secretName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Parameter $parameter } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.Tests.ps1 index ee5328831a58..7cb9d9620747 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecretCusto . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecretCustomerCertificateParametersObject' { +Describe 'New-AzFrontDoorCdnSecretCustomerCertificateParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.Tests.ps1 index 1ff1eae298d1..d437e99393d9 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecretFirst . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject' { +Describe 'New-AzFrontDoorCdnSecretFirstPartyManagedCertificateParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.Tests.ps1 index 3e8e500ad997..792b2bca898b 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecretManagedCertificateParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecretManag . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecretManagedCertificateParametersObject' { +Describe 'New-AzFrontDoorCdnSecretManagedCertificateParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.Tests.ps1 index d58ad3f0c666..953c20f28bcd 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecretUrlSi . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject' { +Describe 'New-AzFrontDoorCdnSecretUrlSigningKeyParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 6989f966369e..bd3f41a25a99 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecurityPol . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecurityPolicy' { +Describe 'New-AzFrontDoorCdnSecurityPolicy' -Tag 'LiveOnly' { It 'CreateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -42,7 +42,7 @@ Describe 'New-AzFrontDoorCdnSecurityPolicy' { New-AzFrontDoorCdnSecurityPolicy -Name $policyName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Parameter $parameter } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.Tests.ps1 index 60d8a0c1aaaf..c7e8912368c7 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecurityPol . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject' { +Describe 'New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.Tests.ps1 b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.Tests.ps1 index 6accb82c5527..2a112e1f7d19 100644 --- a/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.Tests.ps1 +++ b/src/Cdn/test/New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzFrontDoorCdnSecurityPol . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject' { +Describe 'New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject' -Tag 'LiveOnly' { It '__AllParameterSets' { { # ignore diff --git a/src/Cdn/test/README.md b/src/Cdn/test/README.md index 7c752b4c8c43..1969200c6a09 100644 --- a/src/Cdn/test/README.md +++ b/src/Cdn/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 index 8fb861316e97..f98b24213099 100644 --- a/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnCustomDomain.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzCdnCustomDomain')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzCdnCustomDomain' { +Describe 'Remove-AzCdnCustomDomain' -Tag 'LiveOnly' { It 'Delete' { { $subId = "27cafca8-b9a4-4264-b399-45d0c9cca1ab" @@ -22,7 +22,7 @@ Describe 'Remove-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -59,7 +59,7 @@ Describe 'Remove-AzCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 index a320de543097..7574b021b9c8 100644 --- a/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzCdnEndpoint' { +Describe 'Remove-AzCdnEndpoint' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -41,7 +41,7 @@ Describe 'Remove-AzCdnEndpoint' { Remove-AzCdnEndpoint -Name $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -53,7 +53,7 @@ Describe 'Remove-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -73,7 +73,7 @@ Describe 'Remove-AzCdnEndpoint' { Get-AzCdnEndpoint -Name $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName | Remove-AzCdnEndpoint } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 index b5fdf33af0be..f7a113bb2fd1 100644 --- a/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnOrigin.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzCdnOrigin')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzCdnOrigin' { +Describe 'Remove-AzCdnOrigin' -Tag 'LiveOnly' { It 'Delete' { { $subId = $env.SubscriptionId @@ -22,7 +22,7 @@ Describe 'Remove-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -57,7 +57,7 @@ Describe 'Remove-AzCdnOrigin' { Remove-AzCdnOrigin -Name "origin2" -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -70,7 +70,7 @@ Describe 'Remove-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -105,7 +105,7 @@ Describe 'Remove-AzCdnOrigin' { Get-AzCdnOrigin -Name "origin2" -EndpointName $endpointName -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName | Remove-AzCdnOrigin } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 index cff758698b9d..279f008053fb 100644 --- a/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnOriginGroup.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzCdnOriginGroup')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzCdnOriginGroup' { +Describe 'Remove-AzCdnOriginGroup' -Tag 'LiveOnly' { It 'Delete' { { $subId = $env.SubscriptionId @@ -22,7 +22,7 @@ Describe 'Remove-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -65,7 +65,7 @@ Describe 'Remove-AzCdnOriginGroup' { Remove-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroupName2 -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -78,7 +78,7 @@ Describe 'Remove-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -119,7 +119,7 @@ Describe 'Remove-AzCdnOriginGroup' { Get-AzCdnOriginGroup -EndpointName $endpointName -Name $originGroupName2 -ProfileName $cdnProfileName -ResourceGroupName $ResourceGroupName | Remove-AzCdnOriginGroup } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 index 21865e92dba4..a5680f3aaa07 100644 --- a/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Remove-AzCdnProfile.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzCdnProfile')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzCdnProfile' { +Describe 'Remove-AzCdnProfile' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -31,7 +31,7 @@ Describe 'Remove-AzCdnProfile' { Remove-AzCdnProfile -Name $cdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -43,7 +43,7 @@ Describe 'Remove-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Remove-AzCdnProfile' { Get-AzCdnProfile -ResourceGroupName $ResourceGroupName -Name $cdnProfileName | Remove-AzCdnProfile } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 index 0ee3e6dae6a1..0f9c93f291e0 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnCustomDo . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnCustomDomain' { +Describe 'Remove-AzFrontDoorCdnCustomDomain' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -46,7 +46,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { Remove-AzFrontDoorCdnCustomDomain -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -CustomDomainName $customDomainName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -58,7 +58,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -83,7 +83,7 @@ Describe 'Remove-AzFrontDoorCdnCustomDomain' { Get-AzFrontDoorCdnCustomDomain -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -CustomDomainName $customDomainName | Remove-AzFrontDoorCdnCustomDomain } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 index e50ee82c432e..22dffe5c6921 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnEndpoint . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnEndpoint' { +Describe 'Remove-AzFrontDoorCdnEndpoint' -Tag 'LiveOnly' { It 'Delete' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -35,7 +35,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { Remove-AzFrontdoorCdnEndpoint -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -EndpointName $endpointName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -45,7 +45,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -60,7 +60,7 @@ Describe 'Remove-AzFrontDoorCdnEndpoint' { Get-AzFrontdoorCdnEndpoint -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -EndpointName $endpointName | Remove-AzFrontdoorCdnEndpoint } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 index 029c3a0b6beb..bd316cb51dd7 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnOrigin.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnOrigin') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnOrigin' { +Describe 'Remove-AzFrontDoorCdnOrigin' -Tag 'LiveOnly' { It 'Delete' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -47,7 +47,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { Remove-AzFrontDoorCdnOrigin -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName -OriginName $originName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -57,7 +57,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -84,7 +84,7 @@ Describe 'Remove-AzFrontDoorCdnOrigin' { Get-AzFrontDoorCdnOrigin -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName -OriginName $originName | Remove-AzFrontDoorCdnOrigin } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 index 71a6590f7295..908c0101917e 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnOriginGr . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnOriginGroup' { +Describe 'Remove-AzFrontDoorCdnOriginGroup' -Tag 'LiveOnly' { It 'Delete' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -40,7 +40,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { Remove-AzFrontDoorCdnOriginGroup -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -50,7 +50,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -70,7 +70,7 @@ Describe 'Remove-AzFrontDoorCdnOriginGroup' { Get-AzFrontDoorCdnOriginGroup -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -OriginGroupName $originGroupName | Remove-AzFrontDoorCdnOriginGroup } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 index d561b3856c71..1e87dc9284c5 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnProfile.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnProfile' . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnProfile' { +Describe 'Remove-AzFrontDoorCdnProfile' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -31,7 +31,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { Remove-AzFrontDoorCdnProfile -Name $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -43,7 +43,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Remove-AzFrontDoorCdnProfile' { Get-AzFrontDoorCdnProfile -ResourceGroupName $ResourceGroupName -Name $frontDoorCdnProfileName | Remove-AzFrontDoorCdnProfile } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 index adca2ebed470..b0c4a958ac5f 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRoute.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnRoute')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnRoute' { +Describe 'Remove-AzFrontDoorCdnRoute' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -77,7 +77,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { Remove-AzFrontDoorCdnRoute -ResourceGroupName $ResourceGroupName -ProfileName $frontDoorCdnProfileName -EndpointName $endpointName -Name $routeName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -89,7 +89,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -146,7 +146,7 @@ Describe 'Remove-AzFrontDoorCdnRoute' { | Remove-AzFrontDoorCdnRoute } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 index b675a6181728..d823cb12cfe7 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRule.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnRule')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnRule' { +Describe 'Remove-AzFrontDoorCdnRule' -Tag 'LiveOnly' { It 'Delete' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -50,7 +50,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { Remove-AzFrontDoorCdnRule -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -RuleSetName $rulesetName -Name $ruleName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -60,7 +60,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -87,7 +87,7 @@ Describe 'Remove-AzFrontDoorCdnRule' { Get-AzFrontDoorCdnRule -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -RuleSetName $rulesetName -Name $ruleName | Remove-AzFrontDoorCdnRule } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 index 075d5164445f..08f184637b85 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnRuleSet.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnRuleSet' . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnRuleSet' { +Describe 'Remove-AzFrontDoorCdnRuleSet' -Tag 'LiveOnly' { It 'Delete' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -33,7 +33,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { Remove-AzFrontDoorCdnRuleSet -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $rulesetName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -43,7 +43,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -59,7 +59,7 @@ Describe 'Remove-AzFrontDoorCdnRuleSet' { $rulesets.Count | Should -Be 0 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 index 45fee06001ce..78f7740ad96c 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnSecret.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnSecret') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnSecret' { +Describe 'Remove-AzFrontDoorCdnSecret' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -40,7 +40,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { Remove-AzFrontDoorCdnSecret -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $secretName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -52,7 +52,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -72,7 +72,7 @@ Describe 'Remove-AzFrontDoorCdnSecret' { | Remove-AzFrontDoorCdnSecret } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 41756f9ecf1d..acb7dfa078ee 100644 --- a/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Remove-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzFrontDoorCdnSecurity . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { +Describe 'Remove-AzFrontDoorCdnSecurityPolicy' -Tag 'LiveOnly' { It 'Delete' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { Remove-AzFrontDoorCdnSecurityPolicy -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -Name $policyName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -57,7 +57,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -82,7 +82,7 @@ Describe 'Remove-AzFrontDoorCdnSecurityPolicy' { | Remove-AzFrontDoorCdnSecurityPolicy } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 index 938e4f24e7a8..3f961e1410e9 100644 --- a/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Start-AzCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Start-AzCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Start-AzCdnEndpoint' { +Describe 'Start-AzCdnEndpoint' -Tag 'LiveOnly' { It 'Start' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -45,7 +45,7 @@ Describe 'Start-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Running" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -57,7 +57,7 @@ Describe 'Start-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -80,7 +80,7 @@ Describe 'Start-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Running" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 index f43be0b63f4f..7d28ec3f9bbd 100644 --- a/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Stop-AzCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Stop-AzCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Stop-AzCdnEndpoint' { +Describe 'Stop-AzCdnEndpoint' -Tag 'LiveOnly' { It 'Stop' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -44,7 +44,7 @@ Describe 'Stop-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Stopped" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -56,7 +56,7 @@ Describe 'Stop-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -78,7 +78,7 @@ Describe 'Stop-AzCdnEndpoint' { $endpoint.ResourceState | Should -Be "Stopped" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 b/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 index 382ebef43791..c21b34821720 100644 --- a/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Test-AzCdnEndpointCustomDomain.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzCdnEndpointCustomDomai . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Test-AzCdnEndpointCustomDomain' { +Describe 'Test-AzCdnEndpointCustomDomain' -Tag 'LiveOnly' { It 'ValidateExpanded' { { $subId = "27cafca8-b9a4-4264-b399-45d0c9cca1ab" @@ -22,7 +22,7 @@ Describe 'Test-AzCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -64,7 +64,7 @@ Describe 'Test-AzCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location -SubscriptionId $subId $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" diff --git a/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 index d4b3d3d80820..06ab0cc6a203 100644 --- a/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzCdnNameAvailability.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzCdnNameAvailability')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Test-AzCdnNameAvailability' { +Describe 'Test-AzCdnNameAvailability' -Tag 'LiveOnly' { It 'CheckExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -46,7 +46,7 @@ Describe 'Test-AzCdnNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -58,7 +58,7 @@ Describe 'Test-AzCdnNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -83,7 +83,7 @@ Describe 'Test-AzCdnNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzCdnProbe.Tests.ps1 b/src/Cdn/test/Test-AzCdnProbe.Tests.ps1 index 4bc9ce02e322..41b5b990b416 100644 --- a/src/Cdn/test/Test-AzCdnProbe.Tests.ps1 +++ b/src/Cdn/test/Test-AzCdnProbe.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzCdnProbe')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Test-AzCdnProbe' { +Describe 'Test-AzCdnProbe' -Tag 'LiveOnly' { It 'ValidateExpanded' { { $probeUrl = "https://azurecdn-files.azureedge.net/dsa-test/probe-v.txt" diff --git a/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 index eca140c3aeb1..29a7ac68c37f 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnEndpointCustomDomain.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzFrontDoorCdnEndpointCu . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { +Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' -Tag 'LiveOnly' { It 'ValidateExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -37,7 +37,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { Test-AzFrontDoorCdnEndpointCustomDomain -EndpointName $endpointName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName -HostName $hostName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -49,7 +49,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -66,7 +66,7 @@ Describe 'Test-AzFrontDoorCdnEndpointCustomDomain' { | Test-AzFrontDoorCdnEndpointCustomDomain -HostName $hostName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 index dae620b48cb9..102b51f89ef4 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnEndpointNameAvailability.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzFrontDoorCdnEndpointNa . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { +Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' -Tag 'LiveOnly' { It 'CheckExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -42,7 +42,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -53,7 +53,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -78,7 +78,7 @@ Describe 'Test-AzFrontDoorCdnEndpointNameAvailability' { $nameAvailability.NameAvailable | Should -BeFalse } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 b/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 index 0197fc7c5b21..c17e14911492 100644 --- a/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 +++ b/src/Cdn/test/Test-AzFrontDoorCdnProfileHostNameAvailability.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Test-AzFrontDoorCdnProfileHos . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { +Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' -Tag 'LiveOnly' { It 'CheckExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -32,7 +32,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { $result.NameAvailable | Should -Be $true } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -42,7 +42,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -55,7 +55,7 @@ Describe 'Test-AzFrontDoorCdnProfileHostNameAvailability' { $result.NameAvailable | Should -Be $true } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 b/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 index 8533602fc4e1..4a66640a9a3f 100644 --- a/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCdnEndpoint')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzCdnEndpoint' { +Describe 'Update-AzCdnEndpoint' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -53,7 +53,7 @@ Describe 'Update-AzCdnEndpoint' { $updatedEndpoint.Tag["Tag2"] | Should -Be "22" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -65,7 +65,7 @@ Describe 'Update-AzCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -97,7 +97,7 @@ Describe 'Update-AzCdnEndpoint' { $updatedEndpoint.Tag["Tag2"] | Should -Be "22" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 b/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 index a34db765bf6b..9e9c27153a95 100644 --- a/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnOrigin.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCdnOrigin')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzCdnOrigin' { +Describe 'Update-AzCdnOrigin' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -58,7 +58,7 @@ Describe 'Update-AzCdnOrigin' { $origin.HttpsPort | Should -Be 789 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -70,7 +70,7 @@ Describe 'Update-AzCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -106,7 +106,7 @@ Describe 'Update-AzCdnOrigin' { $origin.HttpsPort | Should -Be 789 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 index 7ba049f95dd3..e4eb66753d77 100644 --- a/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnOriginGroup.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCdnOriginGroup')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzCdnOriginGroup' { +Describe 'Update-AzCdnOriginGroup' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $subId = $env.SubscriptionId @@ -22,7 +22,7 @@ Describe 'Update-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -78,7 +78,7 @@ Describe 'Update-AzCdnOriginGroup' { $updatedOriginGroup.HealthProbeSetting.ProbeRequestType | Should -Be $probeRequestType2 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -91,7 +91,7 @@ Describe 'Update-AzCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -145,7 +145,7 @@ Describe 'Update-AzCdnOriginGroup' { $updatedOriginGroup.HealthProbeSetting.ProbeRequestType | Should -Be $probeRequestType2 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 b/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 index da3a80a93af3..e2e01d587e52 100644 --- a/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Update-AzCdnProfile.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzCdnProfile')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzCdnProfile' { +Describe 'Update-AzCdnProfile' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Update-AzCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -55,7 +55,7 @@ Describe 'Update-AzCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $cdnProfileName = 'p-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use cdnProfileName : $($cdnProfileName)" @@ -77,7 +77,7 @@ Describe 'Update-AzCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomain.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomain.Tests.ps1 index 2817d632720b..55386f8689a4 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomain.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomain.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnCustomDo . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnCustomDomain' { +Describe 'Update-AzFrontDoorCdnCustomDomain' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $ResourceGroupName = 'powershelltest' diff --git a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 index 6385b7c97147..113323455173 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnCustomDomainValidationToken.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnCustomDo . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { +Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' -Tag 'LiveOnly' { It 'Refresh' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -49,7 +49,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { Update-AzFrontDoorCdnCustomDomainValidationToken -CustomDomainName $customDomainName -ProfileName $frontDoorCdnProfileName -ResourceGroupName $ResourceGroupName } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -61,7 +61,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -90,7 +90,7 @@ Describe 'Update-AzFrontDoorCdnCustomDomainValidationToken' { | Update-AzFrontDoorCdnCustomDomainValidationToken } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 index 556c3b608344..db0b68292135 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnEndpoint.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnEndpoint . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnEndpoint' { +Describe 'Update-AzFrontDoorCdnEndpoint' -Tag 'LiveOnly' { It 'UpdateExpanded' { $PSDefaultParameterValues['Disabled'] = $true $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -41,7 +41,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { $updatedEndpoint.EnabledState | Should -Be "Disabled" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -51,7 +51,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -68,7 +68,7 @@ Describe 'Update-AzFrontDoorCdnEndpoint' { $updatedEndpoint.EnabledState | Should -Be "Disabled" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 index eade1fc1fe9b..db487121083b 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnOrigin.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnOrigin') . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnOrigin' { +Describe 'Update-AzFrontDoorCdnOrigin' -Tag 'LiveOnly' { It 'UpdateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -52,7 +52,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { $origin.Weight | Should -Be 999 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -62,7 +62,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -95,7 +95,7 @@ Describe 'Update-AzFrontDoorCdnOrigin' { $origin.Weight | Should -Be 999 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 index 1773458fa5e9..225b5c451485 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnOriginGroup.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnOriginGr . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnOriginGroup' { +Describe 'Update-AzFrontDoorCdnOriginGroup' -Tag 'LiveOnly' { It 'UpdateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -49,7 +49,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { $originGroup.LoadBalancingSetting.SuccessfulSamplesRequired | Should -Be 3 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -59,7 +59,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -85,7 +85,7 @@ Describe 'Update-AzFrontDoorCdnOriginGroup' { $originGroup.LoadBalancingSetting.SuccessfulSamplesRequired | Should -Be 3 } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 index 51de9725622f..229da954acb4 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnProfile.Tests.ps1 @@ -14,14 +14,14 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnProfile' . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnProfile' { +Describe 'Update-AzFrontDoorCdnProfile' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -43,7 +43,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -55,7 +55,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -77,7 +77,7 @@ Describe 'Update-AzFrontDoorCdnProfile' { $updatedProfile.Tag["Tag2"] | Should -Be "22" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 index 4d58a0915dcb..cb5f4dc6097b 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnRoute.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnRoute')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnRoute' { +Describe 'Update-AzFrontDoorCdnRoute' -Tag 'LiveOnly' { It 'UpdateExpanded' { { $PSDefaultParameterValues['Disabled'] = $true @@ -22,7 +22,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -79,7 +79,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { -EnabledState "Disabled" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -91,7 +91,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -148,7 +148,7 @@ Describe 'Update-AzFrontDoorCdnRoute' { | Update-AzFrontDoorCdnRoute -EnabledState "Disabled" } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 index 4f45591cb431..14121f2f70b8 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnRule.Tests.ps1 @@ -14,13 +14,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnRule')) . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnRule' { +Describe 'Update-AzFrontDoorCdnRule' -Tag 'LiveOnly' { It 'UpdateExpanded' { $ResourceGroupName = 'testps-rg-' + (RandomString -allChars $false -len 6) try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -67,7 +67,7 @@ Describe 'Update-AzFrontDoorCdnRule' { $updatedRule.Action.Count | Should -Be $actions.Count } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } @@ -77,7 +77,7 @@ Describe 'Update-AzFrontDoorCdnRule' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" $profileSku = "Standard_AzureFrontDoor"; @@ -124,7 +124,7 @@ Describe 'Update-AzFrontDoorCdnRule' { $updatedRule.Action.Count | Should -Be $actions.Count } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } } diff --git a/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 b/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 index 438cd5f33df9..cde5347ed727 100644 --- a/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 +++ b/src/Cdn/test/Update-AzFrontDoorCdnSecurityPolicy.Tests.ps1 @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzFrontDoorCdnSecurity . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzFrontDoorCdnSecurityPolicy' { +Describe 'Update-AzFrontDoorCdnSecurityPolicy' -Tag 'LiveOnly' { It 'PatchExpanded' { { $PSDefaultParameterValues['Disabled'] = $true @@ -22,7 +22,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -56,7 +56,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { -Parameter $updateParameter } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } @@ -68,7 +68,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { try { Write-Host -ForegroundColor Green "Create test group $($ResourceGroupName)" - + New-AzResourceGroup -Name $ResourceGroupName -Location $env.location $frontDoorCdnProfileName = 'fdp-' + (RandomString -allChars $false -len 6); Write-Host -ForegroundColor Green "Use frontDoorCdnProfileName : $($frontDoorCdnProfileName)" @@ -102,7 +102,7 @@ Describe 'Update-AzFrontDoorCdnSecurityPolicy' { | Update-AzFrontDoorCdnSecurityPolicy -Parameter $updateParameter } Finally { - # Remove-AzResourceGroup -Name $ResourceGroupName -NoWait + Remove-AzResourceGroup -Name $ResourceGroupName -NoWait } } | Should -Not -Throw } From cd5969a9d0956020c36b0a7a3a42b435de7af248 Mon Sep 17 00:00:00 2001 From: Dingmeng Xue Date: Thu, 19 May 2022 21:28:52 +0800 Subject: [PATCH 6/6] Update Changelog.md --- src/Cdn/Changelog.md | 40 +++++----------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/src/Cdn/Changelog.md b/src/Cdn/Changelog.md index 84719f7827a2..57d0d3513264 100644 --- a/src/Cdn/Changelog.md +++ b/src/Cdn/Changelog.md @@ -19,16 +19,15 @@ --> ## Upcoming Release -* Bumped api version to `2021-06-01` -* Migrated the cmdlets from SDK-based to autorest generated. -* Deleted cmdlets +* Upgraded API version to 2021-06-01 +* Removed deprecated cmdlets - Disable-AzCdnCustomDomain - Enable-AzCdnCustomDomain - Get-AzCdnEdgeNodes - Get-AzCdnProfileSsoUrl - New-AzCdnDeliveryPolicy - Set-AzFrontDoorCdnSecret -* Added cmdlets +* Added new cmdlets - Clear-AzFrontDoorCdnEndpointContent - Get-AzFrontDoorCdnEndpointResourceUsage - Get-AzFrontDoorCdnOriginGroupResourceUsage @@ -39,37 +38,8 @@ - Test-AzFrontDoorCdnProfileHostNameAvailability - Update-AzFrontDoorCdnCustomDomainValidationToken - Update-AzFrontDoorCdnRule -* Add cmdlets to create in-memory object - - New-AzCdn*ParametersObject - - New-AzCdnResourceReferenceObject - - New-AzFrontDoorCdn*ParametersObject - - New-AzFrontDoorCdnResourceReferenceObject -* Renamed cmdlets - - Set-AzCdnEndpoint -> Update-AzCdnEndpoint - - Set-AzCdnOrigin -> Update-AzCdnOrigin - - Set-AzCdnOriginGroup -> Update-AzCdnOriginGroup - - Set-AzCdnProfile -> Update-AzCdnProfile - - Set-AzFrontDoorCdnCustomDomain -> Update-AzFrontDoorCdnCustomDomain - - Set-AzFrontDoorCdnEndpoint -> Update-AzFrontDoorCdnEndpoint - - Set-AzFrontDoorCdnOrigin -> Update-AzFrontDoorCdnOrigin - - Set-AzFrontDoorCdnOriginGroup -> Update-AzFrontDoorCdnOriginGroup - - Set-AzFrontDoorCdnProfile -> Update-AzFrontDoorCdnProfile - - Set-AzFrontDoorCdnRoute -> Update-AzFrontDoorCdnRoute - - Set-AzFrontDoorCdnSecurityPolicy -> Update-AzFrontDoorCdnSecurityPolicy - - Validate-AzCdnCustomDomain -> Test-AzCdnEndpointCustomDomain - - Confirm-AzCdnEndpointProbeURL -> Test-AzCdnProbe - - Disable-AzCdnCustomDomainHttps -> Disable-AzCdnCustomDomainCustomHttps - - Enable-AzCdnCustomDomainHttps -> Enable-AzCdnCustomDomainCustomHttps - - Get-AzCdnEndpointNameAvailability -> Test-AzCdnNameAvailability - - Publish-AzCdnEndpointContent -> Import-AzCdnEndpointContent - - Test-AzCdnCustomDomain -> Test-AzCdnEndpointCustomDomain - - Unpublish-AzCdnEndpointContent -> Clear-AzCdnEndpointContent - - New-AzCdnDeliveryRule -> New-AzCdnDeliveryRuleObject - - New-AzCdnDeliveryRuleAction -> New-AzCdnDeliveryRuleActionObject - - New-AzCdnDeliveryRuleCondition -> New-AzCdnDeliveryRuleConditionObject - - New-AzFrontDoorCdnRuleAction -> New-AzFrontDoorCdnRuleActionObject - - New-AzFrontDoorCdnRuleCondition -> New-AzFrontDoorCdnRuleConditionObject - +* Renamed Set cmdlets to Update cmdlets +* Added `Object` suffix to memory object creation cmdlets ## Version 1.8.3 * Added breaking change messages for all cmdlets in Az.CDN module