Skip to content

Commit d9a3378

Browse files
committed
fix Describe block error
1 parent 63fdabb commit d9a3378

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

test/InstallPSResourceTests/InstallPSResourceLocal.Tests.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
1616
BeforeAll {
1717
$localRepo = "psgettestlocal"
1818
$localUNCRepo = "psgettestlocal3"
19-
$localNupkgRepo = "LocalNupkgRepo"
20-
$localNupkgRepoUri = "test\testFiles\testNupkgs"
19+
$localNupkgRepo = "psgettestlocal5"
2120
$testModuleName = "test_local_mod"
2221
$testModuleName2 = "test_local_mod2"
2322
$testModuleClobber = "testModuleClobber"
2423
$testModuleClobber2 = "testModuleClobber2"
2524
Get-NewPSResourceRepositoryFile
2625
Register-LocalRepos
27-
Register-PSResourceRepository -Name $localNupkgRepo -Uri $localNupkgRepoUri
2826

2927
$prereleaseLabel = "alpha001"
3028
$tags = @()

test/PSGetTestUtils.psm1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,24 @@ function Register-LocalRepos {
270270
}
271271
Register-PSResourceRepository @localRepoParams2
272272

273+
# Path to folder, within our test folder, where we store special case modules, scripts and nupkgs used for testing
274+
$testDir = (get-item $psscriptroot).FullName
275+
$testFilesFolderPath = Join-Path $testDir -ChildPath "testFiles"
276+
277+
# Path to specifically to that invalid test nupkgs folder
278+
$testNupkgsFolderPath = Join-Path $testFilesFolderPath -ChildPath "testNupkgs"
279+
Write-Verbose -Verbose "testNupkgsFolderPath: $testNupkgsFolderPath"
280+
281+
$repoUriAddress5 = $testNupkgsFolderPath
282+
$localRepoParams3 = @{
283+
Name = "psgettestlocal5"
284+
Uri = $repoUriAddress5
285+
Priority = 70
286+
Trusted = $false
287+
}
288+
289+
Register-PSResourceRepository @localRepoParams3
290+
273291
Write-Verbose "registered psgettestlocal, psgettestlocal2, psgettestlocal3, psgettestlocal4"
274292
}
275293

0 commit comments

Comments
 (0)