Migrates to Pester5+ tests #59
22
src/Certificate/New-CSCertAttribute.Tests.ps1
Normal file
22
src/Certificate/New-CSCertAttribute.Tests.ps1
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user