Project

Profile

Help

Task #3773

Test the template

Added by amacdona@redhat.com over 1 year ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
No
Tags:
Plugin Template
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 41

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

Associated revisions

Revision 479e00af View on GitHub
Added by dalley about 1 year ago

Update and add tests to the template

  • Updated the travis config/script files
  • Updated the sync template for DeclarativeVersion
  • Added new functionality to bootstrap.py to be able to remove anything
    between TEMPLATE_REMOVE_START and TEMPLATE_REMOVE_END tags.
  • Added smash and unit test templates
  • Updated the README to use int IDs

closes #3773
https://pulp.plan.io/issues/3773

History

#1 Updated by amacdona@redhat.com over 1 year ago

  • Description updated (diff)

#2 Updated by amacdona@redhat.com over 1 year ago

  • Sprint Candidate changed from No to Yes

#3 Updated by bmbouter over 1 year 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.

#4 Updated by amacdona@redhat.com over 1 year ago

  • Description updated (diff)

Updated to use travis, not jenkins

#5 Updated by dkliban@redhat.com over 1 year 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?

#6 Updated by amacdona@redhat.com over 1 year 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

#7 Updated by amacdona@redhat.com over 1 year ago

  • Description updated (diff)

#8 Updated by dkliban@redhat.com over 1 year ago

  • Groomed changed from No to Yes

#9 Updated by rchan over 1 year ago

  • Sprint Candidate changed from Yes to No

#10 Updated by rchan over 1 year ago

  • Sprint set to Sprint 39

#11 Updated by dalley over 1 year ago

  • Status changed from NEW to ASSIGNED

#12 Updated by dalley over 1 year 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

#13 Updated by dalley over 1 year ago

  • Assignee set to dalley

#14 Updated by dkliban@redhat.com over 1 year ago

  • Sprint changed from Sprint 39 to Sprint 40

#15 Updated by rchan about 1 year ago

  • Sprint changed from Sprint 40 to Sprint 41

#16 Updated by dalley about 1 year ago

  • Status changed from ASSIGNED to POST

#17 Updated by dalley about 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Applied in changeset commit:479e00af4b4ee353053be86fddc17c32bfb3635d.

#18 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

#19 Updated by bmbouter 6 months ago

  • Tags Plugin Template added

#20 Updated by bmbouter 6 months 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.

#21 Updated by bmbouter 6 months ago

  • Sprint/Milestone set to 3.0

Please register to edit this issue

Also available in: Atom PDF