From 77e8624de0b25529d6d3b5a98d8c7c1f0d48f1a4 Mon Sep 17 00:00:00 2001 From: James Truher Date: Tue, 14 May 2024 12:36:26 -0700 Subject: [PATCH] skip the install/uninstall tests for now. --- resources/apt/test/apt.tests.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/apt/test/apt.tests.ps1 b/resources/apt/test/apt.tests.ps1 index de24782b..6967e175 100644 --- a/resources/apt/test/apt.tests.ps1 +++ b/resources/apt/test/apt.tests.ps1 @@ -54,9 +54,7 @@ Describe 'Apt resource tests' { } It 'Can install a package' { - if (-not $aptExists) { - Set-ItResult -Skip -Because "Apt not found" - } + Set-ItResult -Skip -Because "Apt requires sudo" if (apt list $pkgname 2>&1 | Select-String installed ) { apt remove -y $pkgname @@ -68,9 +66,7 @@ Describe 'Apt resource tests' { } It 'Can uninstall a package' { - if (-not $aptExists) { - Set-ItResult -Skip -Because "Apt not found" - } + Set-ItResult -Skip -Because "Apt requires sudo" if ($null -eq (apt list $pkgName 2>&1 | Select-String installed)) { apt install -y $pkgname