Task #3773
closedTest the template
100%
Description
This task has a multple components. For planning purposes, I'll include it all here, and break into separate stories if requested.
1) Create a travis job
- install pulpcore, pulp-smash and deps
- bootstrap a test plugin using the instructions in the template
- install the test plugin,
- run the webserver and workers.
- record output of these steps and fail if they don't succeed
2) Add smash tests.
- Tests should be organized in a directory structure that can be expanded the plugin writers. Tests should live in plugin_template/tests/functional/.
- Any Tests that will not be useful to a plugin writer (we could include Plugin API tests for commented out code) should be in a directory that is skipped by the bootstrapper. plugin_template/tests/functional/template/
- Write API tests
- Test discoverability via /v3/status
- Test CRUD [Content | Remote | Publisher]
- Test sync - A new repository version will be created, with no content
- Test publish - A new publication will be created, with no content
Updated by amacdona@redhat.com over 6 years ago
- Sprint Candidate changed from No to Yes
Updated by bmbouter over 6 years ago
Can we s/Jenkins// and only use Travis? that's how all testing for Pulp3 is currently done and I'm hoping we can avoid having multiple infras for upstream.
Updated by amacdona@redhat.com over 6 years ago
- Description updated (diff)
Updated to use travis, not jenkins
Updated by dkliban@redhat.com over 6 years ago
Could you please expand the 'bootstraps a test plugin from the template' step. Please list all the classes that should be created. I can think of TemplateRemote, TemplateContent, TemplatePublisher. Is there anything else?
Updated by amacdona@redhat.com over 6 years ago
@dkliban, the bootstrapping is already done. Here, we should just use the `bootstrap.py` module, following the directions in the docs.
https://github.com/pulp/plugin_template/blob/master/README.rst
Updated by dalley over 6 years ago
Part 1 PR: https://github.com/pulp/plugin_template/pull/10
Part 2 will be pushed back a bit due to waiting on Pulp Smash to stabilize a bit
Updated by dkliban@redhat.com over 6 years ago
- Sprint changed from Sprint 39 to Sprint 40
Updated by dalley over 6 years ago
- Status changed from ASSIGNED to POST
Added by dalley over 6 years ago
Updated by dalley over 6 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset commit:479e00af4b4ee353053be86fddc17c32bfb3635d.
Updated by bmbouter over 5 years ago
- Project changed from 27 to Pulp
The plugin template Redmine project is being consolidated into the Pulp Redmine project so all issues are being moved over.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Update and add tests to the template
closes #3773 https://pulp.plan.io/issues/3773