in pkg/cloud/rgraph/workflow/testlib/lb/basic.go [24:64]
func init() {
start := func() *rgraph.Graph {
ezg := ez.Graph{
Nodes: []ez.Node{
{Name: "addr"},
{Name: "fr", Refs: []ez.Ref{{Field: "IPAddress", To: "addr"}, {Field: "Target", To: "thp"}}},
{Name: "thp", Refs: []ez.Ref{{Field: "UrlMap", To: "um"}}},
{Name: "um", Refs: []ez.Ref{{Field: "DefaultService", To: "bs"}}},
{Name: "bs", Refs: []ez.Ref{{Field: "Backends.Group", To: "us-central1-b/neg"}, {Field: "Healthchecks", To: "hc"}}},
{Name: "hc"},
{Name: "neg", Zone: "us-central1-b"},
},
}
return ezg.Builder().MustBuild()
}
testlib.Register(&testlib.TestCase{
Name: "lb/basic",
Description: "Create a basic lb with no pre-existing resources.",
Steps: []testlib.Step{
{
Description: "Create LB",
Graph: start(),
},
},
})
testlib.Register(&testlib.TestCase{
Name: "lb/basic-stable",
Description: "Create a basic lb with no pre-existing resources. NOP on subsequent sync.",
Steps: []testlib.Step{
{
Description: "Create LB",
Graph: start(),
},
{
Description: "Same graph should be NOP",
Graph: start(),
},
},
})
}