test Pester5 file

This commit is contained in:
OCram85 2022-06-28 09:57:22 +02:00
parent 88743e9ffd
commit aef82de149
2 changed files with 22 additions and 7 deletions

View File

@ -0,0 +1,22 @@
BeforeAll {
$ManifestFile = (Get-Item -Path "./src/*.psd1").FullName
Import-Module $ManifestFile -Force
}
Describe "New-CSCertAttribute" {
Context "Basis Tests" {
It "TShould not throw" {
{
$AttribParams = @{
Country = 'DE'
State = 'BW'
City = 'KA'
Organization = 'IT'
OrganizationalUnitName = ''
CommonName = 'MyCert'
}
New-CSCertAttribute @AttribParams
} | Should -Not -Throw
}
}
}

View File

@ -1,7 +0,0 @@
Describe "New-CSCertAttribute" {
Context "Basis Tests" {
It "Test1: Should not throw " {
{ New-CSCertAttribute -Country 'DE' -State 'BW' -City 'KA' -Organization 'IT' -OrganizationalUnitName'' -CommonName 'Mycert' } | Should -Not -Throw
}
}
}