Skip to content

Commit

Permalink
Add some remote-producer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gastrodon committed Oct 10, 2024
1 parent 5bb75e7 commit 8f77279
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions parse/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8f77279

Please sign in to comment.