Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Prepare pristine apt cache fixture

Pulse Test9a9c03c1b12e
diff --git a/scripts/installtests/secure_runtime_systemd_lab_test.go b/scripts/installtests/secure_runtime_systemd_lab_test.go
index 88b030cec0..ce2a7ba408 100644
--- a/scripts/installtests/secure_runtime_systemd_lab_test.go
+++ b/scripts/installtests/secure_runtime_systemd_lab_test.go
@@ -493,6 +493,9 @@ func secureRuntimeStableSnapshot(t *testing.T) secureRuntimeStableIdentity {
func secureRuntimeSeedAPTPackageCache(t *testing.T) (string, string) {
t.Helper()
const cacheDir = "/var/cache/apt/archives"
+ if err := os.MkdirAll(cacheDir, 0o755); err != nil {
+ t.Fatalf("create disposable apt package cache: %v", err)
+ }
path := filepath.Join(cacheDir, "pulse-secure-runtime-qualification.deb")
content := bytes.Repeat([]byte("pulse-secure-runtime\n"), 4096)
if err := os.WriteFile(path, content, 0o600); err != nil {