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
29 lines
544 B
JSON
29 lines
544 B
JSON
{
|
|
"_id": {
|
|
"_str": "b0000000000000000000000b"
|
|
},
|
|
"acq_date": "2024-01-01",
|
|
"acq_time": "00:05",
|
|
"bright_ti4": 331,
|
|
"bright_ti5": 292,
|
|
"confidence": 60,
|
|
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
"daynight": "N",
|
|
"frp": 6.1,
|
|
"lat": 40.43,
|
|
"lon": -3.68,
|
|
"ourid": {
|
|
"coordinates": [
|
|
-3.68,
|
|
40.43
|
|
],
|
|
"type": "Point"
|
|
},
|
|
"satellite": "N",
|
|
"scan": 0.5,
|
|
"track": 0.4,
|
|
"type": "viirs",
|
|
"updatedAt": "2024-01-01T00:00:00.000Z",
|
|
"version": "1.0NRT",
|
|
"when": "2024-01-02T00:00:00.000Z"
|
|
}
|