Adds a standalone Node smoke test (smoke/) that exercises every REST endpoint consumed by the Flutter app against a seeded local dev server and compares responses to committed snapshots. This is the safety net for the Meteor upgrade: it must stay byte-identical after every escala. - smoke/seed.js: deterministic Mongo seed (fixed ObjectIds, geo indexes) - smoke/run.js: calls endpoints, normalizes volatile fields, diffs snapshots - smoke/smoke.sh: seed + run wrapper - smoke/snapshots/: baseline captured on Meteor 1.6.1.1 - IPGeocoder.js: degrade gracefully when MaxMind DB absent (dev boot) - settings-development.json: dev-only internalApiToken to enable the REST API - .meteorignore: exclude smoke/ from the Meteor server build
23 lines
745 B
JSON
23 lines
745 B
JSON
{
|
|
"data": {
|
|
"bounds": {
|
|
"_id": {
|
|
"_str": "51e0000000000000000000b2"
|
|
},
|
|
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
"name": "subs-public-union-bounds",
|
|
"updatedAt": "2024-01-01T00:00:00.000Z",
|
|
"value": "{\"ne\":{\"lat\":41.41,\"lon\":-2.7},\"sw\":{\"lat\":39.41,\"lon\":-4.7}}"
|
|
},
|
|
"union": {
|
|
"_id": {
|
|
"_str": "51e0000000000000000000a1"
|
|
},
|
|
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
"name": "subs-public-union",
|
|
"updatedAt": "2024-01-01T00:00:00.000Z",
|
|
"value": "{\"type\":\"Feature\",\"geometry\":{\"type\":\"MultiPolygon\",\"coordinates\":[[[[-4.7,39.41],[-2.7,39.41],[-2.7,41.41],[-4.7,41.41],[-4.7,39.41]]]]}}"
|
|
}
|
|
},
|
|
"status": "success"
|
|
}
|