Publish version 1.0.x #45
7
tests/Certificate/01_New-CSCertAttribute.Tests.ps1
Normal file
7
tests/Certificate/01_New-CSCertAttribute.Tests.ps1
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
15
tests/Certificate/02_New-CSCertificate.Tests.ps1
Normal file
15
tests/Certificate/02_New-CSCertificate.Tests.ps1
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Describe "New-CSCertificate" {
|
||||||
|
Context "Basic Tests" {
|
||||||
|
It "Test1: Should not throw" {
|
||||||
|
|
||||||
|
$attribs = New-CSCertAttribute -Country 'DE' -State 'BW' -City 'KA' -Organization 'IT' -OrganizationalUnitName'' -CommonName 'Mycert'
|
||||||
|
|
||||||
|
$CertAttribs = @{
|
||||||
|
CRTAttribute = $attribs
|
||||||
|
KeyName = Join-Path -Path (Get-TempDir) -ChildPath '/foo.key'
|
||||||
|
CertName = Join-Path -Path (Get-TempDir) -ChildPath '/cert.pfx'
|
||||||
|
}
|
||||||
|
{ New-CSCertificate @CertAttribs } | Should -Not -Throw
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user