Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fiware/ngsi-ld_testsuite
:bar_chart: This repository contains tests to verify compliance of NGSI-LD implementations
https://github.com/fiware/ngsi-ld_testsuite
contextual-data etsi jest ngsi-ld standard tests testsuite
Last synced: 2 months ago
JSON representation
:bar_chart: This repository contains tests to verify compliance of NGSI-LD implementations
- Host: GitHub
- URL: https://github.com/fiware/ngsi-ld_testsuite
- Owner: FIWARE
- License: mit
- Created: 2018-08-13T12:00:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:36:53.000Z (about 2 years ago)
- Last Synced: 2024-04-12T16:10:16.030Z (10 months ago)
- Topics: contextual-data, etsi, jest, ngsi-ld, standard, tests, testsuite
- Language: JavaScript
- Homepage: https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.02.01_60/gs_CIM009v010201p.pdf
- Size: 1.22 MB
- Stars: 3
- Watchers: 9
- Forks: 7
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NGSI-LD Test Suite
This project is intended to define a test suite for [NGSI-LD](https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.03.01_60/gs_cim009v010301p.pdf),
the evolution of NGSIv2 for supporting Linked Data based on JSON-LD.[![License: MIT](https://img.shields.io/github/license/FIWARE/NGSI-LD_TestSuite.svg)](https://opensource.org/licenses/MIT)
[![CI](https://github.com/FIWARE/NGSI-LD_TestSuite/workflows/CI/badge.svg)](https://github.com/FIWARE/NGSI-LD_TestSuite/actions?query=workflow%3ACI)
[![Build badge](https://img.shields.io/travis/FIWARE/NGSI-LD_TestSuite.svg?branch=master "Travis build status")](https://travis-ci.org/FIWARE/NGSI-LD_TestSuite/?branch=master)
[![NGSI-LD badge](https://img.shields.io/badge/NGSI-LD-red.svg)](https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.01.01_60/gs_CIM009v010101p.pdf)## Test Summary
* [contextProvision. Section 5.6](./)
* [contextConsumption. Section 5.7](./contextConsumption)
* [contextSubscription. Section 5.8](./contextSubscription)
* [contextSourceRegistration. Section 5.9](./contextSourceRegistration)
* [batchOperations. Section 5.6](./batchOperations)## How to execute the tests
### Prerequisites
* node version 10.17, docker-compose version 1.26
```console
npm install
# Example: http://localhost:1026 for Orion, http://localhost:9090 for Scorpio
export TEST_ENDPOINT=
# Example: http://localhost:3000
export ACC_ENDPOINT=
# Example: http://host.docker.internal:3000/acc
export NOTIFY_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 defaultPlease note, that if you are running the NGSI-LD accumulator endpoint locally,
it can be referred to as `http://host.docker.internal:/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
> ```console
> export WEB_APP_PORT=8085
> node accumulator/accumulator.js
> ```## See also
* https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/tree/master/schema
* https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/tree/master/examples
* https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/tree/master/spec/