feat: add node resource profiling and admin device revocation

This commit is contained in:
kory
2026-09-28 09:00:31 +08:00
parent a7b23b760a
commit 3776c310e4
17 changed files with 589 additions and 36 deletions
+16
View File
@@ -0,0 +1,16 @@
package sysinfo
import (
"testing"
)
func TestCollect(t *testing.T) {
p := Collect("CONTROL")
if p.Role != "CONTROL" {
t.Fatalf("expected CONTROL, got %s", p.Role)
}
if p.CPUCores <= 0 {
t.Fatalf("expected >0 CPU cores, got %d", p.CPUCores)
}
t.Logf("Profile: %+v", p)
}