More Related Content Similar to Microservices Pain: Testing (20) More from David Dawson (8) Microservices Pain: Testing43. 1 * GET /awesome
2 * POST /hello
44. 1 * GET /awesome
2 * POST /hello
Start up Mock Dependencies
Start service under test
Exercise ServiceExercise Service
Verify Mock Interactions
45. 1 * GET /awesome
2 * POST /hello
47. Protocol Replay
Pro
Simple, In Process
Con
Schema Drift
Not Really a Mock
https://github.com/ozeias/go-vcr
https://relishapp.com/vcr/vcr/docs
http://freeside.co/betamax/
87. Set initial event chain state
Run service
Assert event chain end state
Event based test
88. Event Store
Event Chains (Graph DB is good)
Best for testing system state
mutation (commands)
Event based test
You'll need...
Editor's Notes Isolation!
Aspiration
Evolution
Ability to change
Dan North
Bounded/ Centred Community
Not the solution!
An approach to solving the problem.
Tools to engage the world
Sounds familiar.
h
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Ask the audience.
One big one.
Isolate an algorithmic, functional piece.
More suited to functional style, rather than encapsulated OO/ Entity style
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
Some say XXX
This is what we are going to discuss!
Understand a man by walking in his shoes
TALK TO MUNIB!