Skip to content

FIWARE/NGSI-LD_TestSuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • node version 10.17, docker-compose version 1.26
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
  • the test endpoint is http://localhost:1026 By default
  • the accumulator endpoint is http://localhost:8085 By default
  • the notification endpoint is http://accumulator:8085/acc By default

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