Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Test loadtest API against our OpenAPI doc #245

Merged

Conversation

rwalle61
Copy link
Contributor

Signed-off-by: Richard Waller [email protected]

Similar to #203 and #205, this uses our Chai OpenAPI response validator plugin to automatically test that PFE responds as our OpenAPI doc claims it does.

Discovered and corrected minor mistakes in PFE and our doc. In PFE, we had forgotten to set the application/json header for the 200 response to POST /api/v1/projects/{id}/loadtest/config. Correspondingly, we had also forgot to specify a response body in our doc.

Copy link
Contributor

@jcockbain jcockbain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@tobespc tobespc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rwalle61 rwalle61 force-pushed the test-loadtest-api-against-doc branch from 9257de8 to 1a82f89 Compare September 12, 2019 09:37
@josephca
Copy link
Contributor

@rwalle61 Could you merge this PR if there's no pending change coming? Too many builds for a single PR would affect Jenkins performance. Thanks!

@tobespc tobespc merged commit 82bcfde into eclipse-archived:master Sep 17, 2019
@rwalle61 rwalle61 deleted the test-loadtest-api-against-doc branch September 17, 2019 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants