Project

Profile

Help

Task #3773

closed

Test the template

Added by amacdona@redhat.com over 6 years ago. Updated about 5 years ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Plugin Template
Sprint:
Sprint 41
Quarter:

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
Actions #1

Updated by amacdona@redhat.com over 6 years ago

  • Description updated (diff)
Actions #2

Updated by amacdona@redhat.com over 6 years ago

  • Sprint Candidate changed from No to Yes
Actions #3

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.

Actions #4

Updated by amacdona@redhat.com over 6 years ago

  • Description updated (diff)

Updated to use travis, not jenkins

Actions #5

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?

Actions #6

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

Actions #7

Updated by amacdona@redhat.com over 6 years ago

  • Description updated (diff)
Actions #8

Updated by dkliban@redhat.com over 6 years ago

  • Groomed changed from No to Yes
Actions #9

Updated by rchan over 6 years ago

  • Sprint Candidate changed from Yes to No
Actions #10

Updated by rchan over 6 years ago

  • Sprint set to Sprint 39
Actions #11

Updated by dalley over 6 years ago

  • Status changed from NEW to ASSIGNED
Actions #12

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

Actions #13

Updated by dalley over 6 years ago

  • Assignee set to dalley
Actions #14

Updated by dkliban@redhat.com over 6 years ago

  • Sprint changed from Sprint 39 to Sprint 40
Actions #15

Updated by rchan over 6 years ago

  • Sprint changed from Sprint 40 to Sprint 41
Actions #16

Updated by dalley over 6 years ago

  • Status changed from ASSIGNED to POST

Added by dalley over 6 years ago

Revision 479e00af | View on GitHub

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

Actions #17

Updated by dalley over 6 years ago

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

Applied in changeset commit:479e00af4b4ee353053be86fddc17c32bfb3635d.

Actions #18

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #19

Updated by bmbouter over 5 years ago

  • Tags Plugin Template added
Actions #20

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.

Actions #21

Updated by bmbouter over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #22

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF