Browse Source

agent/consul/fsm: switch tests to use structs.TestIntention

pull/4275/head
Mitchell Hashimoto 7 years ago
parent
commit
370b2599a1
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
  1. 9
      agent/consul/fsm/commands_oss_test.go

9
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)

Loading…
Cancel
Save