diff --git a/parse/file_test.go b/parse/file_test.go index 55de734..ed4a77d 100644 --- a/parse/file_test.go +++ b/parse/file_test.go @@ -47,6 +47,29 @@ func TestParseFile(t *testing.T) { }}, }}, }, + { + `produce-from "rempro" { + iters = 100 + } + + produce-from "remmid" { + iters = 50 + } + + group "rm" { + produce-from "aether" {} + }`, + []*PipelineDesc{{ + Name: "", + RemoteProducers: []*MoverDesc{ + {"rempro", map[string]cty.Value{"iters": cty.NumberVal(new(big.Float).SetUint64(100).SetPrec(512))}}, + {"remmid", map[string]cty.Value{"iters": cty.NumberVal(new(big.Float).SetUint64(50).SetPrec(512))}}, + }, + }, { + Name: "rm", + RemoteProducers: []*MoverDesc{{"aether", make(map[string]cty.Value)}}, + }}, + }, { `produce "foo" { pair = {"l": 1, "r": 2}