Publish preview version #42
@ -75,18 +75,28 @@ Describe "New-CredentialStore" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Context "Tests for Windows certificate store" {
|
Context "Tests for Windows certificate store" {
|
||||||
It "Create new private store and skipt certificate linkin" {
|
It "Create new private store and skip certificate linking" {
|
||||||
|
if (! $isLinux) {
|
||||||
{ New-CredentialStore -UseCertStore -Force } | Should -Not -Throw
|
{ New-CredentialStore -UseCertStore -Force } | Should -Not -Throw
|
||||||
$CS = Get-CredentialStore
|
$CS = Get-CredentialStore
|
||||||
$CS.PfxCertificate | Should -Be $null
|
$CS.PfxCertificate | Should -Be $null
|
||||||
$CS.Thumbprint | Should -Not -Be $null
|
$CS.Thumbprint | Should -Not -Be $null
|
||||||
}
|
}
|
||||||
It "Create new shared store and skipt certificate linkin" {
|
else {
|
||||||
|
{ New-CredentialStore -UseCertStore -Force } | Should -Throw
|
||||||
|
}
|
||||||
|
}
|
||||||
|
It "Create new shared store and skipt certificate linking" {
|
||||||
|
if (! $isLinux) {
|
||||||
{ New-CredentialStore -Shared -UseCertStore -Force } | Should -Not -Throw
|
{ New-CredentialStore -Shared -UseCertStore -Force } | Should -Not -Throw
|
||||||
$CS = Get-CredentialStore -Shared
|
$CS = Get-CredentialStore -Shared
|
||||||
$CS.PfxCertificate | Should -Be $null
|
$CS.PfxCertificate | Should -Be $null
|
||||||
$CS.Thumbprint | Should -Not -Be $null
|
$CS.Thumbprint | Should -Not -Be $null
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
{ New-CredentialStore -Shared -UseCertStore -Force } | Should -Throw
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user