Skip to content

ScorpioBroker/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.

MIT license Build badge NGSI-LD badge

Test Summary

How to execute the tests

Prerequisites

  • node version 10.17
npm install
export TEST_ENDPOINT=<Your NGSI-LD Broker endpoint>. # Example: http://localhost:1026
export ACC_ENDPOINT=<The accumulator endpoint>. # Example: http://localhost:3000
export NOTIFY_ENDPOINT=<The notification endpoint>. # Example: http://host.docker.internal:3000/acc

# Start the accumulator and services under test - e.g. to start the docker-compose file
./services start

# Run the test suite
npm test
  • the test endpoint is http://localhost:1026 By default
  • the accumulator endpoint is http://localhost:8080 By default
  • the notification endpoint is http://accumulator:8080/acc By default

Please note, that if you are running the NGSI-LD accumulator endpoint locally, ot 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=8080
node accumulator/accumulator.js

See also

About

📊 This repository contains tests to verify compliance of NGSI-LD implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.5%
  • Shell 3.4%
  • Dockerfile 0.1%