Testing microservices with mountebank

Summary 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 yo...

Descripción completa

Detalles Bibliográficos
Otros Autores: Byars, Brandon, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Shelter Island, NY : Manning Publications [2019]
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630629306719
Tabla de Contenidos:
  • 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.