fix: add scenario example to protocol-lab, sync EnvironmentPolicy types
This commit is contained in:
@@ -330,6 +330,13 @@ export function protocolLabScaffold(): ScaffoldResult {
|
||||
// hooks: { onResponse: { ensures: ['status != 429'] } },
|
||||
// },
|
||||
// },
|
||||
// scenarios: [{
|
||||
// name: 'create-and-read',
|
||||
// steps: [
|
||||
// { request: { method: 'POST', url: '/users', body: { name: 'test' } }, expect: ['status:201'], capture: { userId: 'response_body(this).id' } },
|
||||
// { request: { method: 'GET', url: '/users/{userId}' }, expect: ['status:200', 'response_body(this).name == "test"'] },
|
||||
// ],
|
||||
// }],
|
||||
};
|
||||
|
||||
const readmeContent = `
|
||||
@@ -374,6 +381,7 @@ Qualify can produce large output. In CI, use machine-readable formats and filter
|
||||
## Next Steps
|
||||
|
||||
- Define scenario sequences in your config.
|
||||
- Example scenario is commented out in apophis.config.js — uncomment and adapt.
|
||||
- Add route allowlists for chaos if needed.
|
||||
- Run \`apophis replay --artifact <path>\` to debug failures.
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user