2022-06-28 09:57:22 +02:00
|
|
|
BeforeAll {
|
|
|
|
$ManifestFile = (Get-Item -Path "./src/*.psd1").FullName
|
|
|
|
Import-Module $ManifestFile -Force
|
|
|
|
}
|
|
|
|
|
|
|
|
Describe "New-CSCertAttribute" {
|
2022-06-28 10:44:52 +02:00
|
|
|
Context "Basis Tests" -Tag 'Unit' {
|
2022-06-28 09:59:46 +02:00
|
|
|
It "Should not throw" {
|
|
|
|
$AttribParams = @{
|
|
|
|
Country = 'DE'
|
|
|
|
State = 'BW'
|
|
|
|
City = 'KA'
|
|
|
|
Organization = 'IT'
|
2022-06-28 10:03:20 +02:00
|
|
|
OrganizationalUnitName = 'foo'
|
2022-06-28 09:59:46 +02:00
|
|
|
CommonName = 'MyCert'
|
|
|
|
}
|
|
|
|
{ New-CSCertAttribute @AttribParams } | Should -Not -Throw
|
2022-06-28 09:57:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|