@nchannel/nav2009fg-channel
Template channel for SDK development
Last updated 2 years ago by nchannel_developer .
Original npm · Tarball · package.json
$ cnpm install @nchannel/nav2009fg-channel 
SYNC missed versions from official npm registry.

nc-template-channel

Template channel for SDK development

Modifying the doc docs.json file

Required Parameters

unitTestPackage - Name of the testing package used with the stub functions. Valid values are nock and soap.

packageName - (Required if unitTestPackage is soap) Name of the soap package used with the stub functions. Package used should derive from the base repository here at https://www.npmjs.com/package/soap.

ncUtil - Passed into the stub function with any utility objects or packages.

channelProfile - Passed into the stub function. Contains the channelAuthValues object with any authorization values that are used by the stub function.

doc - An array of objects used by the unit tests. Each of the objects should contain the following:

  • functionName - Name of the stub function this object is for. (i.e. CheckForCustomer)
  • tests - An array of documents used to test the stub function. At least one document must be present for each ncStatusCode expected to be returned within the gateway-service flow.
    • Example: CheckForCustomer must have at least one document each for ncStatusCodes 200, 204, 400, 409, 429, and 500.

Required Parameters for tests array

Each test object in the array must contain the following:

ncStatusCode - The status code that the test will return.

payload - Payload used for the stub function in the unit tests. Can contain a doc object holding the document data to be sent to the endpoint system.

When unitTestingPackage is soap:

  • wsdlUri - wsdl URI used with the endpoint system.
  • security - (Optional) Security model used within the soap client (i.e. BasicAuthSecurity).
  • service - (Optional) wsdl service name used for the unit test.
  • servicePort - (Optional) wsdl port name used for the unit test.

When unitTestingPackage is nock:

  • baseUri - Base URI of the endpoint system
  • defaultHeaders - Default headers used with baseUri to be passed with the document

links - An array of objects containing each of the calls to the endpoint system. Each link should contain the following:

  • When unitTestingPackage is soap:

    • function - Function that is invoked when communicating with the endpoint system.
  • When unitTestingPackage is nock:

    • uri - Endpoint of the API.
    • method - HTTP Method used. Valid values are GET, POST, PUT, and DELETE.
    • replyHeaders - Reply headers used with the response of the request.
    • statusCode - Status code to be returned from the API
  • All testing packages:

    • responsePayload - Expected payload returned from the endpoint system

channelProfile - Object that will contain parameters to be used by the stub function. (i.e. customerBusinessReferences)

Current Tags

  • 0.0.34                                ...           latest (2 years ago)
  • 0.0.37                                ...           notcertified (2 years ago)

37 Versions

  • 0.0.37                                ...           2 years ago
  • 0.0.36                                ...           2 years ago
  • 0.0.35                                ...           2 years ago
  • 0.0.34                                ...           2 years ago
  • 0.0.33                                ...           2 years ago
  • 0.0.32                                ...           2 years ago
  • 0.0.31                                ...           2 years ago
  • 0.0.30                                ...           2 years ago
  • 0.0.29                                ...           2 years ago
  • 0.0.28                                ...           2 years ago
  • 0.0.27                                ...           2 years ago
  • 0.0.26                                ...           2 years ago
  • 0.0.25                                ...           2 years ago
  • 0.0.24                                ...           2 years ago
  • 0.0.23                                ...           2 years ago
  • 0.0.22                                ...           2 years ago
  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |