GithubHelp home page GithubHelp logo

jlidder / jswiremock Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 14.0 39 KB

A Javascript library used for stubbing and mocking web services.

License: GNU General Public License v2.0

JavaScript 100.00%
wiremock mocking mockwebserver nodejs

jswiremock's People

Contributors

haziba avatar jamescookie avatar jlidder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jswiremock's Issues

storedQueryParams may be undefined

TypeError: Cannot read property 'size' of null
at checkEqualQueryParams (.\node_modules\jswiremock\UrlParser.js:112:29)
at recursiveUrlLinkedListSearch (.\node_modules\jswiremock\UrlParser.js:101:20)
at recursiveUrlLinkedListSearch (.\node_modules\jswiremock\UrlParser.js:104:16)
at Object.exports.isMatchingStub (.\node_modules\jswiremock\UrlParser.js:68:12)
at Object.exports.hasMatchingStub (.\node_modules\jswiremock\UrlParser.js:73:21)
at .\node_modules\jswiremock\jswiremock.js:98:38

GET matching params not working.

get is not matching params and post is neither working with the mentioned format in the readme, nor in the case when the jswiremock is running in different host - which is the usual case when we need to mock!

Node Security (nsp) reports three issues

Running nsp reports the following three issues. They originate from express so updating to ~4.14.1 or ~4.15.2 will fix the issues. Not sure if there are any other issues that arise from updating express, but the tests and e2e tests pass at least.

$> nsp check
(+) 3 vulnerabilities found
┌───────────────┬────────────────────────────────────────────────────────────────┐
│               │ Regular Expression Denial of Service                           │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Name          │ negotiator                                                     │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ CVSS          │ 7.5 (High)                                                     │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Installed     │ 0.5.3                                                          │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Vulnerable    │ <= 0.6.0                                                       │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Patched       │ >= 0.6.1                                                       │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Path          │ [email protected] > [email protected] > [email protected] > negotiat… │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ More Info     │ https://nodesecurity.io/advisories/106                         │
└───────────────┴────────────────────────────────────────────────────────────────┘
┌───────────────┬────────────────────────────────────────────────────────────────┐
│               │ Timing attack vulnerability                                    │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Name          │ cookie-signature                                               │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ CVSS          │ 5.4 (Medium)                                                   │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Installed     │ 1.0.5                                                          │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Vulnerable    │ <=1.0.5                                                        │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Patched       │ >=1.0.6                                                        │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Path          │ [email protected] > [email protected] > [email protected]     │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ More Info     │ https://nodesecurity.io/advisories/134                         │
└───────────────┴────────────────────────────────────────────────────────────────┘
┌───────────────┬────────────────────────────────────────────────────────────────┐
│               │ Regular Expression Denial of Service                           │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Name          │ ms                                                             │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ CVSS          │ 5.3 (Medium)                                                   │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Installed     │ 0.7.0                                                          │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Vulnerable    │ <=0.7.0                                                        │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Patched       │ >0.7.0                                                         │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ Path          │ [email protected] > [email protected] > [email protected] > [email protected]     │
├───────────────┼────────────────────────────────────────────────────────────────┤
│ More Info     │ https://nodesecurity.io/advisories/46                          │
└───────────────┴────────────────────────────────────────────────────────────────┘

Support for XML/Soap response

Hello,

I was hoping to use jswiremock to mock SOAP requests from cypress. Wiremock definitely supports this feature, but I don't believe there is support in this package (I may be wrong). Can you please let me know. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.