mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-02-07 12:11:53 +01:00
31 lines
987 B
PowerShell
31 lines
987 B
PowerShell
Describe "ASR Integration Tests" {
|
|
BeforeAll {
|
|
$script:ModulePath = Join-Path $PSScriptRoot "..\..\Modules\ASR"
|
|
$script:ManifestPath = Join-Path $script:ModulePath "ASR.psd1"
|
|
}
|
|
|
|
Context "Module Structure" {
|
|
It "Should have module manifest" {
|
|
Test-Path $script:ManifestPath | Should -Be $true
|
|
}
|
|
|
|
It "Should load module without errors" {
|
|
{ Import-Module $script:ManifestPath -Force -ErrorAction Stop } | Should -Not -Throw
|
|
}
|
|
|
|
It "Should export Invoke-ASRRules function" {
|
|
$module = Get-Module ASR
|
|
$module.ExportedFunctions.Keys | Should -Contain "Invoke-ASRRules"
|
|
}
|
|
}
|
|
|
|
Context "DryRun Execution" {
|
|
It "Should run in DryRun mode without errors" {
|
|
{ Invoke-ASRRules -DryRun -ErrorAction Stop } | Should -Not -Throw
|
|
}
|
|
}
|
|
|
|
AfterAll {
|
|
Remove-Module ASR -ErrorAction SilentlyContinue
|
|
}
|
|
}
|