mirror of https://github.com/status-im/consul.git
agent/consul/fsm: switch tests to use structs.TestIntention
This commit is contained in:
parent
97e2a73145
commit
370b2599a1
|
@ -1161,14 +1161,9 @@ func TestFSM_Intention_CRUD(t *testing.T) {
|
||||||
ixn := structs.IntentionRequest{
|
ixn := structs.IntentionRequest{
|
||||||
Datacenter: "dc1",
|
Datacenter: "dc1",
|
||||||
Op: structs.IntentionOpCreate,
|
Op: structs.IntentionOpCreate,
|
||||||
Intention: &structs.Intention{
|
Intention: structs.TestIntention(t),
|
||||||
ID: generateUUID(),
|
|
||||||
SourceNS: "default",
|
|
||||||
SourceName: "web",
|
|
||||||
DestinationNS: "default",
|
|
||||||
DestinationName: "db",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
ixn.Intention.ID = generateUUID()
|
||||||
|
|
||||||
{
|
{
|
||||||
buf, err := structs.Encode(structs.IntentionRequestType, ixn)
|
buf, err := structs.Encode(structs.IntentionRequestType, ixn)
|
||||||
|
|
Loading…
Reference in New Issue