Bug 965915 - Add unit tests for the task library
Summary: Add unit tests for the task library
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: develop
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.15
Assignee: Raymond Mancy
QA Contact:
URL:
Whiteboard: ImplementationQuality
Depends On:
Blocks: 1002395
TreeView+ depends on / blocked
 
Reported: 2013-05-22 02:47 UTC by Nick Coghlan
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-03 02:27:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Nick Coghlan 2013-05-22 02:47:37 UTC
Correct manipulation of the task library is currently tested only indirectly, either through uploading and upgrading tasks through the web UI, or through the scheduling of jobs.

This has resulted in a number of regressions making it through to the development branch or even all the way to production.

With the new abstraction broken out as bkr.server.model.TaskLibrary, unit tests should be added that ensure correct operation (including filesystem manipulation and metadata generation) at the method level, independent of the rest of Beaker.

Comment 1 Nick Coghlan 2013-05-22 03:01:59 UTC
It would also be desirable to have RPM generation infrastructure in the test suite that supports creation of a valid RPM file for arbitrary tasks (see comments on http://gerrit.beaker-project.org/#/c/1958)

Comment 2 Raymond Mancy 2013-09-12 03:32:54 UTC
http://gerrit.beaker-project.org/#/c/2225/

Comment 3 Amit Saha 2013-09-17 08:59:32 UTC
Unit tests, so upgrading MODIFIED -> VERIFIED

Comment 4 Nick Coghlan 2013-10-03 02:27:54 UTC
Beaker 0.15 has been released.


Note You need to log in before you can comment on or make changes to this bug.