Skip to content

Commit e71733c

Browse files
committed
remove temporary test prefix for MAR and update package version we're looking for
1 parent 861384b commit e71733c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/FindPSResourceTests/FindPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,19 +237,17 @@ Describe 'Test HTTP Find-PSResource for ACR Server Protocol' -tags 'CI' {
237237

238238
Describe 'Test Find-PSResource for MAR Repository' -tags 'CI' {
239239
BeforeAll {
240-
[Microsoft.PowerShell.PSResourceGet.UtilClasses.InternalHooks]::SetTestHook("MARPrefix", "azure-powershell/");
241240
Register-PSResourceRepository -Name "MAR" -Uri "https://mcr.microsoft.com" -ApiVersion "ContainerRegistry"
242241
}
243242

244243
AfterAll {
245-
[Microsoft.PowerShell.PSResourceGet.UtilClasses.InternalHooks]::SetTestHook("MARPrefix", $null);
246244
Unregister-PSResourceRepository -Name "MAR"
247245
}
248246

249247
It "Should find resource given specific Name, Version null" {
250248
$res = Find-PSResource -Name "Az.Accounts" -Repository "MAR"
251249
$res.Name | Should -Be "Az.Accounts"
252-
$res.Version | Should -Be "3.0.4"
250+
$res.Version | Should -Be "4.0.0"
253251
}
254252

255253
It "Should find resource and its dependency given specific Name and Version" {

0 commit comments

Comments
 (0)