Skip to content

boyone/mountebank-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mountebank 101

  • The Problem with End-to-End Testing
  • Setting up
    • 3A pattern: Arrange, Act, Assert, Cleanup
    • Imposters: virtual services, a lightweight operation
  • Hello imposter
    • Run: [Command line]
    • Create: [HTTP, file]
    • Delete: [HTTP]
  • Saving multiple Imposters in the config file
  • EJS
  • Using predicates to send different responses for different requests
  • Simplifying predicates on JSON request bodies
  • Using XPath to simplify predicates on XML request bodies

Day 3: Behavior and Programming mountebank

  • Creating Your Own Predicate
  • Creating your own Dynamic Response
  • Understand behaviors
  • Decorating a response
  • Adding latency to a Response
  • Repeating a Response Multiple Times
  • Replacing Content in The Response

Day 5: Record/Replay

  • Setting up a proxy
  • Generating the Correct Predicates
  • Capturing multiple responses for the same request
  • Ways to Replay a Proxy

Tricks

  • HTTPS
  • CORS: Cross-origin resource sharing
  • Stub the Legacy Service
  • The --datadir option

Setup and Install Mountebank

  • Node.js
    • 12.16.1 LTS
    • 13.12.0
  • mb
    • npm: npm install -g mountebank
    • yarn: yarn global add mountebank

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published