Local Testing
This repository includes a local-only demonstrator path for manual integration testing.
It is intended to verify the full local flow:
- run
hex-core-servicelocally in memory mode - run
re-indicators-calculation-servicelocally - validate an RE indicators payload through
hex-core-service - compute the RE indicators result through this service
This path is not part of CI.
Files
The local testing setup is defined by:
demo.shscripts/validate-local-compose.shcompose/docker-compose.ymlcompose/.env.examplepayloads/recycle_battery_compute_request.json
What It Uses
The local stack starts:
hex-core-servicere-indicators-calculation-service
Notes:
hex-core-serviceruns withIO_ADAPTER_ID=memoryhex-core-serviceruns withAUTH_MODE=nonehex-core-serviceis pulled as a container image- the registry catalog points directly to the published
schema.json,shacl.ttl, andmodel.ttlartifact URLs on the published Pages site - this service resolves
calculation.jsondirectly from the published Pages artifact URL - no database is required
- this setup is only for local development and manual validation
Commands
Run the local validation flow:
./demo.sh validate
Run the local demonstration flow:
./demo.sh demo
Stop the stack:
./demo.sh down
Remove the stack and local synced artifacts:
./demo.sh clean
Expected Result
./demo.sh validate should complete with:
- local
hex-core-servicereadiness confirmed - local calculation service readiness confirmed
- delegated validation passing
- compute request returning
200
The current sample payload is:
- model version
0.0.4 - indicator
REcycle_Battery
The current expected computed score is approximately:
0.138572436192