
Testing Microservices with Mountebank
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Testing Microservices with Mountebank is your guide to the ins and outs of testing microservices with service virtualization. The book offers unique insights into microservices application design and state-of-the-art testing practices that will deepen your microservices skills and improve your applications.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
Even if you lab test each service in isolation, it's challenging?and potentially dangerous?to test a live microservices system that's changing and growing. Fortunately, you can use Mountebank to "imitate" the components of a distributed microservices application to give you a good approximation of the runtime conditions as you test individual services.
About the Book
Testing Microservices with Mountebank introduces the powerful practice of service virtualization. In it, author Brandon Byars, Mountebank's creator, offers unique insights into microservices application design and state-of-the-art testing practices. You'll expand your understanding of microservices as you work with Mountebank's imposters, responses, behaviors, and programmability. By mastering the powerful testing techniques in this unique book, your microservices skills will deepen and your applications will improve. For real.
What's inside
- The core concepts of service virtualization
- Testing using canned responses
- Programming Mountebank
- Performance testing
About the Reader
Written for developers familiar with SOA or microservices systems.
About the Author
Brandon Byars is the author and chief maintainer of Mountebank and a principal consultant at ThoughtWorks.
Table of Contents
PART 1 - FIRST STEPS
- Testing microservices
- Taking mountebank for a test drive
PART 2 - USING MOUNTEBANK
- Testing using canned responses
- Using predicates to send different responses
- Adding record/replay behavior
- Programming mountebank
- Adding behaviors
- Protocols
PART 3 - CLOSING THE LOOP
- Mountebank and continuous delivery
- Performance testing with mountebank
More details
Other editions
Additional editions

Person
Content
- Intro
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this book
- About the author
- About the cover illustration
- Part 1. First Steps
- Chapter 1. Testing microservices
- 1.1. A microservices refresher
- 1.2. The problem with end-to-end testing
- 1.3. Understanding service virtualization
- 1.4. Introducing mountebank
- 1.5. The service virtualization tool ecosystem
- Summary
- Chapter 2. Taking mountebank for a test drive
- 2.1. Setting up the example
- 2.2. HTTP and mountebank: a primer
- 2.3. Virtualizing the product catalog service
- 2.4. Your first test
- Summary
- Part 2. Using mountebank
- Chapter 3. Testing using canned responses
- 3.1. The basics of canned responses
- 3.2. HTTPS imposters
- 3.3. Saving the responses in a configuration file
- Summary
- Chapter 4. Using predicates to send different responses
- 4.1. The basics of predicates
- 4.2. Parameterizing predicates
- 4.3. Using predicates on JSON values
- 4.4. Selecting XML values
- Summary
- Chapter 5. Adding record/replay behavior
- 5.1. Setting up a proxy
- 5.2. Generating the correct predicates
- 5.3. Capturing multiple responses for the same request
- 5.4. Ways to replay a proxy
- 5.5. Configuring the proxy
- 5.6. Proxy use cases
- Summary
- Chapter 6. Programming mountebank
- 6.1. Creating your own predicate
- 6.2. Creating your own dynamic response
- 6.3. A word of caution: security matters
- 6.4. Debugging tips
- Summary
- Chapter 7. Adding behaviors
- 7.1. Understanding behaviors
- 7.2. Decorating a response
- 7.3. Adding latency to a response
- 7.4. Repeating a response multiple times
- 7.5. Replacing content in the response
- 7.6. A complete list of behaviors
- Summary
- Chapter 8. Protocols
- 8.1. How protocols work in mountebank
- 8.2. A TCP primer
- 8.3. Stubbing text-based TCP-based RPC
- 8.4. Binary support
- 8.5. Virtualizing a .NET Remoting service
- Summary
- Part 3. Closing the Loop
- Chapter 9. Mountebank and continuous delivery
- 9.1. A continuous delivery refresher
- 9.2. Creating a test pipeline
- Summary
- Chapter 10. Performance testing with mountebank
- 10.1. Why service virtualization enables performance testing
- 10.2. Defining your scenarios
- 10.3. Capturing the test data
- 10.4. Running the performance tests
- 10.5. Scaling mountebank
- Summary
- Index
- List of Figures
- List of Tables
- List of Listings
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.