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.

Keep guest publication fixtures on the private file seam

pulse-triage[bot]ed5ffe4f03fb
diff --git a/internal/monitoring/guest_poll_ownership_test.go b/internal/monitoring/guest_poll_ownership_test.go
index c5e4716aaa..8cfcc6ccec 100644
--- a/internal/monitoring/guest_poll_ownership_test.go
+++ b/internal/monitoring/guest_poll_ownership_test.go
@@ -23,9 +23,14 @@ type guestPublicationMetadataFS struct {
once sync.Once
}
+var _ config.FileSystem = (*guestPublicationMetadataFS)(nil)
+
func (fs *guestPublicationMetadataFS) ReadFile(path string) ([]byte, error) {
return os.ReadFile(path)
}
+func (fs *guestPublicationMetadataFS) CreateTemp(dir, pattern string) (config.TemporaryFile, error) {
+ return os.CreateTemp(dir, pattern)
+}
func (fs *guestPublicationMetadataFS) WriteFile(path string, data []byte, mode os.FileMode) error {
if fs.blocked.Load() {
fs.once.Do(func() { close(fs.entered) })