This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    kth-node-test-swagger-auth

    1.0.2 • Public • Published

    kth-node-test-swagger-auth

    Build Status

    This package is intended to be imported in api projects to easily setup a mocha/chai test checking that the server has implemented security on its routes as specified in its swagger.json file.

    Example: /path/to/api-project/test/integration/swaggerAuthTest.js

    This example it intended to be used locally on dev machine.

    'use strict'
    
    require('dotenv').config()
    const secureConfig = require('../../server/configuration').server
    const swagger = require('../../swagger.json')
    const basePath = 'http://localhost:' + secureConfig.port
    const swaggerTest = require('kth-node-test-swagger-auth')
    
    swaggerTest.createTest(basePath, secureConfig.proxyPrefixPath.uri, swagger)
    

    Install

    npm i kth-node-test-swagger-auth

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • kthwebmaster
    • wkchung
    • exacs
    • ssundkvist
    • kth-ci
    • emilstenberg