diff --git a/agent/consul/fsm/commands_oss_test.go b/agent/consul/fsm/commands_oss_test.go index b679cb313b..d18d7651ee 100644 --- a/agent/consul/fsm/commands_oss_test.go +++ b/agent/consul/fsm/commands_oss_test.go @@ -1161,14 +1161,9 @@ func TestFSM_Intention_CRUD(t *testing.T) { ixn := structs.IntentionRequest{ Datacenter: "dc1", Op: structs.IntentionOpCreate, - Intention: &structs.Intention{ - ID: generateUUID(), - SourceNS: "default", - SourceName: "web", - DestinationNS: "default", - DestinationName: "db", - }, + Intention: structs.TestIntention(t), } + ixn.Intention.ID = generateUUID() { buf, err := structs.Encode(structs.IntentionRequestType, ixn)