Skip to content

Commit 9289198

Browse files
committed
Update tests
1 parent acdf110 commit 9289198

File tree

8 files changed

+334
-334
lines changed

8 files changed

+334
-334
lines changed

test/GetInstalledPSResource/GetInstalledPSResource.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Describe 'Test Get-InstalledPSResource for Module' -tags 'CI' {
2525
}
2626

2727
AfterAll {
28-
Uninstall-PSResource -Name $testModuleName -Version "*" -ErrorAction SilentlyContinue
29-
Uninstall-PSResource -Name $testScriptName -Version "*" -ErrorAction SilentlyContinue
28+
Uninstall-PSResource -Name $testModuleName -Version "*" -ErrorAction SilentlyContinue -SkipDependencyCheck
29+
Uninstall-PSResource -Name $testScriptName -Version "*" -ErrorAction SilentlyContinue -SkipDependencyCheck
3030
Get-RevertPSResourceRepositoryFile
3131

3232
if (Test-Path -Path $TestEmptyDirectoryPath -PathType 'Container') {
@@ -184,7 +184,7 @@ Describe 'Test Get-InstalledPSResource for Module' -tags 'CI' {
184184

185185
# Windows only
186186
It "Get resource under CurrentUser scope when module is installed under AllUsers - Windows only" -Skip:(!((Get-IsWindows) -and (Test-IsAdmin))) {
187-
Uninstall-PSResource -Name $testModuleName -Version "*"
187+
Uninstall-PSResource -Name $testModuleName -Version "*" -SkipDependencyCheck
188188
Install-PSResource -Name $testModuleName -Repository $PSGalleryName -TrustRepository -Scope AllUsers
189189
$pkg = Get-InstalledPSResource -Name $testModuleName -Scope CurrentUser
190190
$pkg | Should -BeNullOrEmpty

test/InstallPSResourceTests/InstallAz.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Describe 'Test Install-PSResource for the Az module' -tags 'CI' {
1919
}
2020

2121
AfterEach {
22-
Uninstall-PSResource $azName, $azDepWildCard -ErrorAction SilentlyContinue
22+
Uninstall-PSResource $azName, $azDepWildCard -ErrorAction SilentlyContinue -SkipDependencyCheck
2323
}
2424

2525
AfterAll {

test/InstallPSResourceTests/InstallPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Describe 'Test Install-PSResource for MAR Repository' -tags 'CI' {
369369
}
370370
finally {
371371
if ($pkg) {
372-
Uninstall-PSResource -Name "Az.Accounts" -Version "3.0.4"
372+
Uninstall-PSResource -Name "Az.Accounts" -Version "3.0.4" -SkipDependencyCheck
373373
}
374374
}
375375
}

test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ Describe 'Test Install-PSResource for V2 Server scenarios' -tags 'ManualValidati
662662
}
663663

664664
AfterEach {
665-
Uninstall-PSResource $testModuleName, $testModuleName2 -ErrorAction SilentlyContinue
665+
Uninstall-PSResource $testModuleName, $testModuleName2 -ErrorAction SilentlyContinue -SkipDependencyCheck
666666
}
667667

668668
AfterAll {

test/SavePSResourceTests/SavePSResourceV2.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
154154

155155
It "Save module as a nupkg" {
156156
Save-PSResource -Name $testModuleName -Version "1.0.0" -Repository $PSGalleryName -Path $SaveDir -AsNupkg -TrustRepository
157-
$pkgDir = Get-ChildItem -Path $SaveDir | Where-Object Name -EQ "test_module.1.0.0.nupkg"
157+
$pkgDir = Get-ChildItem -Path $SaveDir | Where-Object Name -EQ "test_module.1.0.0.0.nupkg"
158158
$pkgDir | Should -Not -BeNullOrEmpty
159159
}
160160

test/UpdatePSResourceTests/UpdatePSResourceLocal.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Describe 'Test Update-PSResource for local repositories' -tags 'CI' {
2727
}
2828

2929
AfterEach {
30-
Uninstall-PSResource $moduleName, $moduleName2 -Version "*"
30+
Uninstall-PSResource $moduleName, $moduleName2 -Version "*" -SkipDependencyCheck
3131
}
3232

3333
AfterAll {

test/UpdatePSResourceTests/UpdatePSResourceV2.Tests.ps1

Lines changed: 325 additions & 325 deletions
Large diffs are not rendered by default.

test/UpdatePSResourceTests/UpdatePSResourceV3.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Describe 'Test HTTP Update-PSResource for V3 Server Protocol' -tags 'CI' {
1313
}
1414

1515
AfterEach {
16-
Uninstall-PSResource $testModuleName -Version "*"
16+
Uninstall-PSResource $testModuleName -Version "*" -SkipDependencyCheck
1717
}
1818
AfterAll {
1919
Get-RevertPSResourceRepositoryFile

0 commit comments

Comments
 (0)