Upload
container-solutions
View
169
Download
2
Embed Size (px)
Citation preview
www.container-solutions.com | [email protected]
Climbing the microservice testing pyramidÁdám Sándor
http://www.occultphysics.com/
www.container-solutions.com | [email protected]
• Test code in isolation
E2E
Microservice
Unit
Unit tests
www.container-solutions.com | [email protected]
• Independent process
• HTTP (Rest?) API
• Loadbalanced? Autoscaled?E2E
Microservice
Unit
Microservice tests
www.container-solutions.com | [email protected]
Pitfall #1
• Extending manual tools to automate tests
• E.g. SoapUI
• Week abstraction possibilities
• No code reuse
www.container-solutions.com | [email protected]
Pitfall #2
• Services have easily accessible APIs
WEB
API
API
API A
PI
API
Test1
Test2
www.container-solutions.com | [email protected]
Abstract It!• Internal details hidden
• Exposed API easy to use and expressive
WEB
API
API
API A
PI
API
Test Framewor
Test1
Test2
www.container-solutions.com | [email protected]
Is this BDD?
• Yes
• Can be done using pure Java or special language e.g. Cucumber
www.container-solutions.com | [email protected]
www.container-solutions.com | [email protected]
www.container-solutions.com | [email protected]
www.container-solutions.com | [email protected]
Containers & Microservices
- (easily!) built from golden images- small image footprint- can run on local env- dynamic orchestration makes it easy to
create new environments
www.container-solutions.com | [email protected]
Containers & Testing
- Ad-hoc environments- Single-use environments
www.container-solutions.com | [email protected]
DEMO
DEMODEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
DEMO DEMO
DEMO
DEMO
DEMO
DEMO
DEMO
www.container-solutions.com | [email protected]
Thank you!
Ádám Sándor Senior Engineer @
Container Solutions
@adamsand0r