Project

Profile

Help

Task #3773

closed

Test the template

Added by amacdona@redhat.com over 6 years ago. Updated almost 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

Also available in: Atom PDF