FIWARE / NGSI-LD_TestSuite

:bar_chart: This repository contains tests to verify compliance of NGSI-LD implementations
https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.02.01_60/gs_CIM009v010201p.pdf
MIT License
3 stars 6 forks source link
contextual-data etsi jest ngsi-ld standard tests testsuite

NGSI-LD Test Suite

This project is intended to define a test suite for NGSI-LD, the evolution of NGSIv2 for supporting Linked Data based on JSON-LD.

License: MIT CI Build badge NGSI-LD badge

Test Summary

How to execute the tests

Prerequisites

npm install
# Example: http://localhost:1026 for Orion, http://localhost:9090 for Scorpio
export TEST_ENDPOINT=<Your NGSI-LD Broker endpoint>
# Example: http://localhost:3000
export ACC_ENDPOINT=<The accumulator endpoint>
# Example: http://host.docker.internal:3000/acc
export NOTIFY_ENDPOINT=<The notification endpoint>

# Start the accumulator and services under test - e.g. to start the docker-compose file
./services [orion|scorpio]

# Run the test suite
npm test

Please note, that if you are running the NGSI-LD accumulator endpoint locally, it can be referred to as http://host.docker.internal:<port>/acc, so that other Docker containers can get access to the accumulator server running on the host.

Note: To run the accumulator locally you can start the service using

export WEB_APP_PORT=8085
node accumulator/accumulator.js

See also