Skip to Content
Hands-On Microservices with Kubernetes
book

Hands-On Microservices with Kubernetes

by Gigi Sayfan
July 2019
Intermediate to advanced
502 pages
14h
English
Packt Publishing
Content preview from Hands-On Microservices with Kubernetes

Writing a smoke test

The Delinkcious smoke test is not an automated one. It can be, but it will require special setup to make it work in the CI/CD environment. For real-world production systems, I highly recommend that you have an automated smoke test (and other tests, too).

The code is in the cmd/smoke_test directory and consists of a single file, smoke.go. It exercises Delinkcious though the REST API that's exposed by the API gateway. We could write this test in any language because there is no client library. I chose to use Go for consistency and to highlight how to consume a raw REST API from Go, working directly with URLs, query strings, and JSON payload serialization. I also used the Delinkcious object model link as a convenient serialization ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes Microservices

Kubernetes Microservices

Richard Chesterwood
Cloud Native DevOps with Kubernetes

Cloud Native DevOps with Kubernetes

John Arundel, Justin Domingus
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili

Publisher Resources

ISBN: 9781789805468Supplemental Content