Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
/ dccn-gateway Public archive

DCCN hub service grpc to restful api gateway

Notifications You must be signed in to change notification settings

Ankr-network/dccn-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppMgr & DcMgr Test

Automatical test

To do all tests automatically, run the following in your terminal:

npm test

Use Mocha Framework

Install the Mocha framework,run the following in your terminal:

npm install -global mocha

To run a specific test file, for example, run this command in your terminal:

# just run app.test
mocha app.test.js

To run a specific API test(for example, you just want to run the create_application test), run this command in your terminal:

# just test create_application API
mocha app.test.js -g 'create_application'

In several tests, you can reset the parameters as you want:

# Install commander at first
npm install commander

# change the parameters (use create_app_name as an example)
mocha app.test.js -g 'create_application' -options -app_create_name 'app' -app_create_ns_name 'ns' 

About

DCCN hub service grpc to restful api gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published