From f4f95c286945aa57961825f5cb2b2bc3f1597cef Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 11 Feb 2025 08:54:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Update=20test=20setup?= =?UTF-8?q?=20to=20use=20ContextInfo=20instead=20of=20SecretInfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Context.Tests.ps1 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/Context.Tests.ps1 b/tests/Context.Tests.ps1 index e7237ec..65b5a8a 100644 --- a/tests/Context.Tests.ps1 +++ b/tests/Context.Tests.ps1 @@ -5,14 +5,10 @@ param() BeforeAll { - $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 + $contexts = Get-ContextInfo -Verbose + Write-Verbose "Contexts: $($contexts.Count)" -Verbose + Write-Verbose ($contexts | Format-Table | Out-String) -Verbose + $contexts | Remove-Context -Verbose Remove-Module -Name Context -Force -Verbose Import-Module -Name Context -Force -Verbose -Version 999.0.0 }