diff --git a/cmd/mesh-controller/placement_export_integration_test.go b/cmd/mesh-controller/placement_export_integration_test.go index 6eeaf8ca..197e1d0b 100644 --- a/cmd/mesh-controller/placement_export_integration_test.go +++ b/cmd/mesh-controller/placement_export_integration_test.go @@ -43,6 +43,12 @@ func TestThePlacementExportIsEachNodesPlacementFromTheStore(t *testing.T) { if a := got.Assigned(); len(a) == 0 || !strings.Contains(strings.Join(a, ","), overlay.Name) { t.Errorf("%s's modules are %v, want the private network among them", name, a) } + // What it prints is the file the seed writes: at the placement file's version, read back by its reader. + if raw, _ := json.Marshal(got); got.V != sdkdelivery.Version { + t.Errorf("%s is exported at version %d: %s", name, got.V, raw) + } else if _, err := sdkdelivery.DecodePlacement(raw); err != nil { + t.Errorf("%s's export does not read as a placement file: %v", name, err) + } want, err := frombus.Export(in, name) if err != nil { t.Fatal(err) diff --git a/go.mod b/go.mod index c26328a8..51113d49 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/novox/mesh-controller go 1.26.0 require ( - git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026183837-9713c3023a18 + git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026190832-3968849b1b36 github.com/jackc/pgx/v5 v5.10.0 github.com/nats-io/nats-server/v2 v2.11.17 github.com/nats-io/nats.go v1.54.0 diff --git a/go.sum b/go.sum index 44b3af98..f22bc6cb 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026182519-53c2def1a520 h1:twiziR88 git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026182519-53c2def1a520/go.mod h1:ouERNpZizzwZ0HLEtAypsY9FR20FyUgUYRni6J7kVCY= git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026183837-9713c3023a18 h1:HWNPfnT9YT9O6xHPLy2y6Q+LYT8XRjvLnZw9O61NETk= git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026183837-9713c3023a18/go.mod h1:ouERNpZizzwZ0HLEtAypsY9FR20FyUgUYRni6J7kVCY= +git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026190832-3968849b1b36 h1:aBkmFUq/zAVdR3PzfgjjC9AxSymNl3eVC7UEZv9tZ0Q= +git.novox.be/novox/mesh-sdk/go v0.1.14-0.20261026190832-3968849b1b36/go.mod h1:ouERNpZizzwZ0HLEtAypsY9FR20FyUgUYRni6J7kVCY= github.com/antithesishq/antithesis-sdk-go v0.7.0-default-no-op h1:Z/MZK75wC/NSrkgqeNIa7jexam9uWzhLmFTSCPI/kn0= github.com/antithesishq/antithesis-sdk-go v0.7.0-default-no-op/go.mod h1:FQyySiasQQM8735Ddel3MRojmy4dA1IqCeyJ5jmPMbI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/testdata/beside/CAPTURED b/testdata/beside/CAPTURED index 949b5d6c..f341c71a 100644 --- a/testdata/beside/CAPTURED +++ b/testdata/beside/CAPTURED @@ -9,7 +9,7 @@ a second place to clean besides the catalogue itself. mesh-catalog 3a1017f5594217092a654dd1e2d72226766bc16a modules/*/module.json, modules/*/files, modules/*/templates, predefined.json mesh-host 9d9e3a46c4f5943cfffb413d962ce48b75e2fd39 examples/foundation-first-node.lock -mesh-sdk 9713c3023a18b211499d90a077fe8e677f968d86 conformance/events/module-event.json +mesh-sdk 3968849b1b36a1823628c8324c042ed50d8d3e75 conformance/events/module-event.json To move them, from this repository's root, with the two repositories checked out beside it: