Page MenuHomePhabricator

Validate test requests against OpenAPI spec in e2e/spec tests
Closed, ResolvedPublic

Description

This is to make sure that the requests we are generating for testing purposes, are in fact valid according to the OpenAPI spec.

Example, when this is actually useful: We should make make sure that we are sending a comma-separated list of fields in our e2e-test, not a pipe-separated one, because otherwise the test may pass when in fact it should fail according to the spec.

Event Timeline

Change 775853 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Validate requests in e2e tests

https://gerrit.wikimedia.org/r/775853

Change 775853 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Validate requests in e2e tests

https://gerrit.wikimedia.org/r/775853

Change 776213 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Extract function for request validation

https://gerrit.wikimedia.org/r/776213

Change 776213 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Extract function for request validation

https://gerrit.wikimedia.org/r/776213

WMDE-leszek claimed this task.