forked from OCram85/PSCredentialStore
Marco Blessing
afab3c870c
## About This pull request reflects all changes done in the `linuxsupport` branch. ## Content - Enable PowerShell 6 Core support - Use PFX Certificate for encryption ( fixes #32 ) - Updates CI / CD pipeline ( fixes #31 ) - uses portable libressl ( fixes #34 ) - adds `-PassThru` switch for returning current `VIServer` session in `Connect-To` ( fixes #34 ) - adds git lfs for embedded libressl files - restructured internal functions into `Private` dir - added certificate related functions - adds travis build pipeline for tests
27 lines
1.0 KiB
PowerShell
27 lines
1.0 KiB
PowerShell
Describe "Test-ModuleName" {
|
|
Context "Basic input tests" {
|
|
It "Testing standard module should not throw" {
|
|
{ Test-Module -Name 'PowerShellGet' } | Should -Not -Throw
|
|
}
|
|
It "Existing module should return true" {
|
|
Test-Module -Name 'PowerShellGet' | Should -Be $true
|
|
}
|
|
}
|
|
Context "Working with modules" {
|
|
It "Loading first module should not throw " {
|
|
$Mod = Get-Module -ListAvailable | Select-Object -First 1
|
|
{ Test-Module -Name $Mod.Name } | Should -Not -Throw
|
|
}
|
|
It "Loading first module should return true" {
|
|
$Snap = Get-Module -ListAvailable | Select-Object -First 1
|
|
Test-Module -Name $Snap.Name | Should -Be $true
|
|
}
|
|
It "Not existing module should return false" {
|
|
Test-Module -Name 'foobar2000' | Should -Be $false
|
|
}
|
|
It "StopifFails switch should thrown an error" {
|
|
{Test-Module -Name 'foobar2000' -StopIfFails }| Should -Throw
|
|
}
|
|
}
|
|
}
|