Skip to content

Commit c3747b3

Browse files
Add fallback test
1 parent e3c6d81 commit c3747b3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/ResourceRepositoryTests/MARRepository.Tests.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,12 @@ Describe "Test MAR Repository Registration" -tags 'CI' {
128128
$res.Name | Should -Be "Az.Accounts"
129129
$res.Repository | Should -Be $MARName
130130
}
131+
132+
It 'Find-PSResource fallback to PSGallery if module not in MAR' {
133+
$res = Find-PSResource -Name "Pscx"
134+
$res | Should -Not -BeNullOrEmpty
135+
$res.Name | Should -Be "Pscx"
136+
$res.Repository | Should -Be $PSGalleryName
137+
}
131138
}
132139
}

0 commit comments

Comments
 (0)