Files
archie/internal/infrastructure/staterpc/worker_presence_test.go
T

15 lines
398 B
Go

package staterpc
import (
"testing"
pb "github.com/samcharles93/archie-core/internal/contracts/state/v1"
)
func TestTaskGrantRejectsPutPresence(t *testing.T) {
req := &pb.PutPresenceRequest{Presence: &pb.Presence{Service: "archie-agent", InstanceId: "7"}}
if authorizesTaskScopedCall(pb.StatusService_PutPresence_FullMethodName, req, 7) {
t.Fatal("task grant authorised PutPresence")
}
}