agent/consul/fsm: switch tests to use structs.TestIntention
This commit is contained in:
parent
3a00564411
commit
67b017c95c
|
@ -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…
Reference in New Issue