Giter Site home page Giter Site logo

nike-inc / bokor Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 10.0 1.29 MB

Bokor is a simple, Record and Playback Mock Server written in Node.js, utilized for Service Virtualization.

License: Apache License 2.0

JavaScript 100.00%
mocking playback-mock-server service-virtualization test-automation

bokor's People

Contributors

austinmcorso avatar dependabot[bot] avatar desertblade avatar jimmyeisenhauer avatar kination avatar thgaskell avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bokor's Issues

Do you have thoughts on adding a CLI?

Great tool.

I was thinking if there is thought or a roadmap to add a cli for Bokor.
The simple use case that is would solve would be not needing a seperate bokor/index.js file, when using bokor whenever using a "default" scructure.

In an app you need to start the dev server (typically) and then start the bokor server which most of the time takes in default files.
i.e. "start:bokok": "npm run start:dev && node bokor

At some point it would be nice if we could add a cli option that would allow us to simply run
"start:bokok": "npm run start:dev && bokor
The cli would use default file path and names unless args to overwrite some of those values was passed in.

Show how to do a cohesive demo using a http://todobackend.com/ test harness

Refer the fantastic http://todobackend.com/ comparison portal.
The web.py example is pretty self contained.

Your demo should be a (fill in the blanks) version of this:

git clone [email protected]:moredip/todo-backend-py.git 
cd todo-backend-py/
pip install web.py 

(Setup Bokor to record here)

python todo-backend.py 

Launch tests in browser, via http://todobackend.com/specs/index.html?https://localhost:8080

Stop the todo-backend.py server
stop Bokor
(inspect captured traffic)

Then .. instructions as to how to play back and pass the same test-harness suite.

Be aware though that the author set up web.py incorrectly, and you might need to find the python process in ps aux to kill it if control-c isn't responding.

TypeError: proxyReq.getHeader is not a function

When running a curl command through bokor I am receiving the following error:

 if(server && !proxyReq.getHeader('expect')) {
                             ^
TypeError: proxyReq.getHeader is not a function

Digging into it the dependency http-proxy was updated in May (https://github.com/http-party/node-http-proxy/pull/1447/files) which is causing the issue.

Downgrading the package resolves issue: npm install [email protected]

This solution is not ideal due to DOS vulnerability: https://www.npmjs.com/advisories/1486

The error is coming out of the Sepia packages /bokor/lib/sepia/src/cache.js:253:13)

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.