Test #4123
closedStory #4687: As a user, I can use either Python or Ruby bindings to interact with Pulp
Test the generated API binds
Description
- Evaluate the best way to test the generated API binds.
One possible solution is to use .json file generated in a certain date, and use to compare with the new one. - See: generarte-bindings
Related issues
Updated by kersom about 6 years ago
- Related to Issue #3965: Created Resource schema generated incorrectly added
Updated by kersom about 6 years ago
- Related to Issue #3964: OpenAPI schema requires Progress Report suffix to be 1 char or longer added
Updated by kersom about 6 years ago
- Related to Issue #3850: Return relative URIs (e.g. /pulp/api/v3/repositories/1/) in the API added
Updated by kersom over 5 years ago
- Related to Issue #4509: API docs returning different values added
Added by kersom over 5 years ago
Updated by kersom over 5 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp_file:ce33164d215e628c23bce3a0b755654d6b5c1f3f.
Updated by kersom over 5 years ago
- Related to Task #4104: Add index and headings to REST API docs added
Updated by dkliban@redhat.com over 5 years ago
- Status changed from MODIFIED to ASSIGNED
- Assignee changed from kersom to dkliban@redhat.com
I'll add a test of the bindings using https://github.com/pulp/pulp-swagger-codegen
Updated by dkliban@redhat.com over 5 years ago
- Status changed from ASSIGNED to POST
- Sprint set to Sprint 51
Added by dkliban@redhat.com over 5 years ago
Revision dd90a811 | View on GitHub
Problem: bindings break all the time
Solution: build and test bindings continuosly
This patch adds another job to the Travis build matrix. This new build installs pulpcore and pulp_file and then builds a client library for each. The client libraries are built using pulp-swagger-codegen, a thin wrapper around swagger-codegen-cli. After building the bindings, this job installs them and runs a script that performs the following:
- Create a File Remote
- Create a Repository
- Sync a Repository
- Monitor the sync task
- Create an artifact from a local file
- Create a FileContent from the artifact
- Add the new FileContent to a repository version
- Monitor the repo version creation task
- Create a FilePublisher
- Create a publication from the latest version of the repository
- Monitor the publish task
- Create a distribution pointint to the publication
Updated by dkliban@redhat.com over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|dd90a811caac313619450631cdd6f600aa84deb2.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - COMPLETE
Add test to compare API bindings
Use the generated OpenAPI schema in json format generated on April/01/2019 as base to compare with generated on the fly API schemas. Main goal is to detect changes in the API schema.
In case of intentional changes, the
stored_open_api.json
has to be updated.https://pulp.plan.io/issues/4123 closes #4123