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.

658 B
Raw Blame
package api

import (
	"testing"
	"time"
)

func TestRouterPulseIntelligencePatrolAutonomyLevelDefaultsToMonitor(t *testing.T) {
	var nilRouter *Router
	if got := nilRouter.pulseIntelligencePatrolAutonomyLevel(); got != "monitor" {
		t.Fatalf("nil router autonomy level = %q, want monitor", got)
	}
	if got := (&Router{}).pulseIntelligencePatrolAutonomyLevel(); got != "monitor" {
		t.Fatalf("router without AI settings handler autonomy level = %q, want monitor", got)
	}
	if got := (&Router{}).GetPulseIntelligenceActionTelemetry(time.Time{}).PatrolAutonomyLevel; got != "monitor" {
		t.Fatalf("action snapshot autonomy level = %q, want monitor", got)
	}
}