Skip to content

Commit ea8743e

Browse files
committed
Add package tests to existing versions
The system package verification was only added to the template but the rendered goss.yaml files in version directories were not updated. This adds the same Go template block to all existing version test files.
1 parent 1847e50 commit ea8743e

5 files changed

Lines changed: 30 additions & 0 deletions

File tree

package-manager/2024.11/test/goss.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ group:
1212
package:
1313
rstudio-pm:
1414
installed: true
15+
{{ $apt_package_list_path := printf "/tmp/version/deps/%s-%s_packages.txt" (toLower .Env.IMAGE_OS_NAME) .Env.IMAGE_OS_VERSION }}
16+
{{ $apt_package_list := readFile $apt_package_list_path | splitList "\n" }}
17+
{{- range $apt_package_list }}
18+
{{ . }}:
19+
installed: true
20+
{{ end }}
1521

1622
process:
1723
rstudio-pm:

package-manager/2025.04/test/goss.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ group:
1212
package:
1313
rstudio-pm:
1414
installed: true
15+
{{ $apt_package_list_path := printf "/tmp/version/deps/%s-%s_packages.txt" (toLower .Env.IMAGE_OS_NAME) .Env.IMAGE_OS_VERSION }}
16+
{{ $apt_package_list := readFile $apt_package_list_path | splitList "\n" }}
17+
{{- range $apt_package_list }}
18+
{{ . }}:
19+
installed: true
20+
{{ end }}
1521

1622
process:
1723
rstudio-pm:

package-manager/2025.09/test/goss.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ group:
1212
package:
1313
rstudio-pm:
1414
installed: true
15+
{{ $apt_package_list_path := printf "/tmp/version/deps/%s-%s_packages.txt" (toLower .Env.IMAGE_OS_NAME) .Env.IMAGE_OS_VERSION }}
16+
{{ $apt_package_list := readFile $apt_package_list_path | splitList "\n" }}
17+
{{- range $apt_package_list }}
18+
{{ . }}:
19+
installed: true
20+
{{ end }}
1521

1622
process:
1723
rstudio-pm:

package-manager/2025.12/test/goss.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ group:
1212
package:
1313
rstudio-pm:
1414
installed: true
15+
{{ $apt_package_list_path := printf "/tmp/version/deps/%s-%s_packages.txt" (toLower .Env.IMAGE_OS_NAME) .Env.IMAGE_OS_VERSION }}
16+
{{ $apt_package_list := readFile $apt_package_list_path | splitList "\n" }}
17+
{{- range $apt_package_list }}
18+
{{ . }}:
19+
installed: true
20+
{{ end }}
1521

1622
process:
1723
rstudio-pm:

package-manager/2026.04/test/goss.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ group:
1212
package:
1313
rstudio-pm:
1414
installed: true
15+
{{ $apt_package_list_path := printf "/tmp/version/deps/%s-%s_packages.txt" (toLower .Env.IMAGE_OS_NAME) .Env.IMAGE_OS_VERSION }}
16+
{{ $apt_package_list := readFile $apt_package_list_path | splitList "\n" }}
17+
{{- range $apt_package_list }}
18+
{{ . }}:
19+
installed: true
20+
{{ end }}
1521

1622
process:
1723
rstudio-pm:

0 commit comments

Comments
 (0)