From edac0ebea219916af1fa936f07eb109b08062a88 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 9 Dec 2024 21:14:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Enhance=20verbose=20o?= =?UTF-8?q?utput=20for=20secret=20management=20in=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Context.Tests.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/Context.Tests.ps1 b/tests/Context.Tests.ps1 index 1b34726..b1936aa 100644 --- a/tests/Context.Tests.ps1 +++ b/tests/Context.Tests.ps1 @@ -5,8 +5,14 @@ param() BeforeAll { - Get-SecretInfo- Verbose | Remove-Secret -Verbose - Get-SecretVault -Verbose | Unregister-SecretVault -Verbose + $secrets = Get-SecretInfo -Verbose + Write-Verbose "Secrets: $($secrets.Count)" -Verbose + Write-Verbose ($secrets | Format-Table | Out-String) -Verbose + $secrets | Remove-Secret -Verbose + $vault = Get-SecretVault -Verbose + Write-Verbose "Vault: $($vault.Count)" -Verbose + Write-Verbose ($vault | Format-Table | Out-String) -Verbose + $vault | Unregister-SecretVault -Verbose } Describe 'Functions' {