From 00190b8d8088dea437448405b996e48e704f6629 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 16 Aug 2017 11:16:09 +0200 Subject: [PATCH] [WIP] fix pester tests --- tests/Store/00_New-CredentialStore.Tests.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Store/00_New-CredentialStore.Tests.ps1 b/tests/Store/00_New-CredentialStore.Tests.ps1 index 9753d93..a3da36e 100644 --- a/tests/Store/00_New-CredentialStore.Tests.ps1 +++ b/tests/Store/00_New-CredentialStore.Tests.ps1 @@ -14,7 +14,9 @@ Else { } # load additional functions defined in the repository. Replace the expression . -# . (Get-ChildItem -Path $RepoRoot -Filter ".ps1" -Recurse).FullName +. (Get-ChildItem -Path $RepoRoot -Filter "Test-CredentialStore.ps1" -Recurse).FullName +. (Get-ChildItem -Path $RepoRoot -Filter "Test-ChallengeFile.ps1" -Recurse).FullName +. (Get-ChildItem -Path $RepoRoot -Filter "Set-ChallengeFile.ps1" -Recurse).FullName #endregion HEADER @@ -46,7 +48,7 @@ Describe "New-CredentialStore" { It "Test1: Create new private CredentialStore" { New-CredentialStore $result = Test-Path -Path $pCS - $CS = Get-Content -Path $pCS -Raw -ErrorAction SilentlyContinue | ConvertFrom-Json -ErrorAction SilentlyContinue + $CS = Get-Content -Path $pCS -Raw | ConvertFrom-Json -ErrorAction SilentlyContinue ($result -eq $True) -and ($CS.Type -eq "Private") | Should Be $True } It "Test2: Try to override private Store" {