Publish ITWorx Pulse source
Public source validation / validate (push) Failing after 3m8s

This commit is contained in:
ITWorx Pulse release export
2026-09-03 02:09:19 +02:00
commit bd774932d5
614 changed files with 77116 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package agentprotocol
import (
"testing"
"time"
)
func TestHelloRejectsMutationCapability(t *testing.T) {
now := time.Now().UTC()
hello := Hello{Protocol: Version, AgentID: "agent-1", ObservedAt: now, Capabilities: []Capability{{ID: "containers.read", Version: Version, ReadOnly: false}}}
if err := hello.Validate(now); err == nil {
t.Fatal("expected mutation capability rejection")
}
}