@@ -7,7 +7,7 @@ Describe 'Apt resource tests' {
7
7
}
8
8
9
9
Context " export" {
10
- It " should have more than 20 resources" {
10
+ It " should have more than 20 resources" - Skip: $ ( ! $IsLinux ) {
11
11
if (-not $aptExists ) {
12
12
Set-ItResult - Skip - Because " Apt not found"
13
13
}
@@ -23,7 +23,7 @@ Describe 'Apt resource tests' {
23
23
$yamlPath = " $PSScriptRoot /assets/apt_${pkgName} .dsc.yaml"
24
24
}
25
25
26
- It ' Config get works' {
26
+ It ' Config get works' - Skip: $ ( ! $IsLinux ) {
27
27
if (-not $aptExists ) {
28
28
Set-ItResult - Skip - Because " Apt not found"
29
29
}
@@ -34,7 +34,7 @@ Describe 'Apt resource tests' {
34
34
$observed | Should - Be $exists
35
35
}
36
36
37
- It ' Config test works' {
37
+ It ' Config test works' - Skip: $ ( ! $IsLinux ) {
38
38
if (-not $aptExists ) {
39
39
Set-ItResult - Skip - Because " Apt not found"
40
40
}
@@ -53,7 +53,7 @@ Describe 'Apt resource tests' {
53
53
$yamlUnInstallPath = " $PSScriptRoot /assets/apt_uninstall_${pkgName} .dsc.yaml"
54
54
}
55
55
56
- It ' Can install a package' {
56
+ It ' Can install a package' - Skip: $ ( ! $IsLinux ) {
57
57
Set-ItResult - Skip - Because " Apt requires sudo"
58
58
59
59
if (apt list $pkgname 2>&1 | Select-String installed ) {
@@ -65,7 +65,7 @@ Describe 'Apt resource tests' {
65
65
$result.results [1 ].result.afterstate._exist | Should - Be true
66
66
}
67
67
68
- It ' Can uninstall a package' {
68
+ It ' Can uninstall a package' - Skip: $ ( ! $IsLinux ) {
69
69
Set-ItResult - Skip - Because " Apt requires sudo"
70
70
71
71
if ($null -eq (apt list $pkgName 2>&1 | Select-String installed)) {
0 commit comments