forked from OCram85/PSCredentialStore
Marco Blessing
d4b00a5308
#### 📖 Summary - update Pester tests to Pester5+ compatiple layout - switch to dotnet base imaged - dotnet binary required for publishung powershell modules (Publish-Module) #### 📑 Test Plan > 💡 Select your test plan for the code changes. - [x] Tested via Drone.io pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification <!-- Add your test details or justification for missing tests here. --> #### 📚 Additional Notes <!-- A place for additional detail notes. --> Co-authored-by: OCram85 <marco.blessing@googlemail.com> Reviewed-on: OCram85/PSCredentialStore#59
21 lines
655 B
PowerShell
21 lines
655 B
PowerShell
BeforeAll {
|
|
$ManifestFile = (Get-Item -Path "./src/*.psd1").FullName
|
|
Import-Module $ManifestFile -Force
|
|
}
|
|
|
|
Describe "New-CSCertAttribute" {
|
|
Context "Basis Tests" -Tag 'Unit' {
|
|
It "Should not throw" {
|
|
$AttribParams = @{
|
|
Country = 'DE'
|
|
State = 'BW'
|
|
City = 'KA'
|
|
Organization = 'IT'
|
|
OrganizationalUnitName = 'foo'
|
|
CommonName = 'MyCert'
|
|
}
|
|
{ New-CSCertAttribute @AttribParams } | Should -Not -Throw
|
|
}
|
|
}
|
|
}
|