23 lines
1.3 KiB
Go
23 lines
1.3 KiB
Go
package buckets
|
|
|
|
import "testing"
|
|
|
|
// The names are the ones the earlier shared form held (mesh-sdk's go/delivery), and the ones the manifest's reads and
|
|
// states say: a bucket is `<module>_<state>`.
|
|
func TestBucketsAreTheEarlierNames(t *testing.T) {
|
|
for name, c := range map[string][2]string{
|
|
"Have": {Have, "node-engine_have"}, "ComposedRead": {ComposedRead, "mesh-host.composed"},
|
|
"Modules": {Modules, "mesh-delivery-indexer_modules"}, "Manifests": {Manifests, "mesh-delivery-indexer_manifests"},
|
|
"Presence": {Presence, "mesh-delivery-watchman_presence"}, "Source": {Source, "mesh-delivery-gate_source"},
|
|
"Merges": {Merges, "mesh-delivery-gate_merges"}, "Answers": {Answers, "mesh-delivery-teller_answers"},
|
|
"Builds": {Builds, "mesh-delivery-builder_builds"}, "Grants": {Grants, "mesh-grants_grants"},
|
|
"Wants": {Wants, "mesh-delivery-assigner_wants"}, "Differences": {Differences, "mesh-delivery-assigner_differences"},
|
|
"Asks": {Asks, "mesh-delivery-assigner_asks"}, "Puts": {Puts, "mesh-delivery-assigner_puts"},
|
|
"Policies": {Policies, "mesh-delivery-assigner_policies"}, "Provisions": {Provisions, "mesh-provisioner_provisions"}, "TellerModule": {TellerModule, "mesh-delivery-teller"},
|
|
} {
|
|
if c[0] != c[1] {
|
|
t.Errorf("%s = %q, want %q", name, c[0], c[1])
|
|
}
|
|
}
|
|
}
|