Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.02 KB

Worklight Adapter Test Harness

This Node.JS module provides a method to invoke Worklight adapters from a node script

When used in conjunction with Mocha and Chai this module provides a promise based framework for invoking Worklight adapters. Requests can be chained together and Authenticated Adapters can be invoked using this chaining.

To configure the worklight server endpoint change the variables in invoke.js:

var protocol = "http";
var domain = "localhost";
var port = "9080";
var context = "/worklight";

^ These are the defaults

or use npm config to define the variables (note: this feature is not working at the moment - see issue #2):

npm config set worklight_adapter:protocol=http
npm config set worklight_adapter:port=10080
npm config set worklight_adapter:domain=localhost
npm config set worklight_adapter:contextRoot=/worklightserver


Example Usage - come back later.....

(For sample use see the tests directory)