Skip to content

Commit 8a42f4c

Browse files
record test
1 parent c98d67f commit 8a42f4c

File tree

2 files changed

+308
-118
lines changed

2 files changed

+308
-118
lines changed

src/Resources/Resources.Test/ScenarioTests/ProviderFeatureTests.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ function Test-AzureProviderFeature
3434

3535
Register-AzProviderFeature -ProviderName "Microsoft.Cache" -FeatureName "betaAccess3"
3636

37-
$cacheRegisteredFeatures = Get-AzProviderFeature -ProviderName "Microsoft.Cache"
37+
$cacheRegisteredFeatures = Get-AzProviderFeature -ProviderName "Microsoft.Cache" -FeatureName "betaAccess3"
3838

3939
Assert-True { $cacheRegisteredFeatures.Length -gt 0 }
40+
41+
Unregister-AzProviderFeature -ProviderName "Microsoft.Cache" -FeatureName "betaAccess3"
42+
43+
$UnregisteredFeatures = Get-AzProviderFeature -ProviderName "Microsoft.Cache" -FeatureName "betaAccess3"
44+
45+
Assert-True { $UnregisteredFeatures.Length -gt 0 }
4046
}

0 commit comments

Comments
 (0)