package compose import ( "testing" "git.novox.be/novox/mesh-sdk/go/catalogue" ) // aBrokerClaiming is mesh-controller's seat_pass_test.go helper of the same name. func aBrokerClaiming(module string) catalogue.Manifest { return catalogue.Manifest{Module: module, Provides: []catalogue.Offer{{Name: "mesh-bus", Scope: catalogue.ScopeMesh}}, Claims: []catalogue.Claim{{Name: "mesh-broker", Scope: catalogue.ScopeMesh}}} } // withSeat is mesh-controller's withBusSeat: a single mesh seat, mesh-broker, for the test. func withSeat(t *testing.T) { t.Helper() was := catalogue.Seats() t.Cleanup(func() { catalogue.UseSeats(was) }) catalogue.UseSeats([]catalogue.Seat{{Name: "mesh-broker", Scope: catalogue.ScopeMesh, Delivers: "mesh-bus", Decision: "test"}}) }