Step | Title | Concept Covered | Learning objectives | Further Reading |
---|---|---|---|---|
step 1 | Create our consumer before the Provider API even exists | Consumer-driven design |
|
|
step 2 | Write a unit test for our consumer | - |
|
|
step 3 | Write a Pact test for our consumer | Consumer side pact test |
|
|
step 4 | Verify the consumer pact with the Provider API | Provider side pact test |
|
|
step 5 | Fix the consumer's bad assumptions about the Provider | Humans talking to humans (collaboration) |
|
|
step 6 | Write a pact test for 404 (missing User) in consumer |
Testing API invariants |
|
|
step 7 | Update API to handle 404 case |
Provider States |
|
|
step 8 | Write a pact test for the 401 case |
Testing authenticated APIs |
|
|
step 9 | Update API to handle 401 case |
Service evolution |
|
|
step 10 | Fix the provider to support the 401 case |
Request filters |
|
|
step 11 | Implement a broker workflow for integration with CI/CD | Automation |
|