Skip to content

Setup and teardown fixtures for the tests #4

@wking

Description

@wking

The example x-amples usage requests and receives a pet with ID fido4. How do you know that ID exists in the tested implementation? It seems like you'd need a setup block where you could push data into the tested implementation, and a teardown block where you could remove any data that might have been left by the test. For systems that autogenerate IDs after POSTs, preserving those IDs between requests would take some state preservation on the swagger-test side, and I'm not sure what that would look like in the x-amples definition.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions