Adding unittest to ownership property

Change-Id: I800001c651ed7db7e0c865e8f859e2d80cbc42e2
This commit is contained in:
Ilia Meerovich 2015-04-29 10:20:32 +03:00
parent 413c150815
commit 687d9f94eb
3 changed files with 23 additions and 7 deletions

View File

@ -72,14 +72,9 @@ def ownership(parser, xml_parent, data):
:arg str owner: the owner of job
:arg list co-owners: list of job co-owners
Example::
Example:
properties:
- ownership:
owner: abraverm
co-owners:
- lbednar
- edolinin
.. literalinclude:: /../../tests/properties/fixtures/ownership.yaml
"""
ownership_plugin = \
XML.SubElement(xml_parent,

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<properties>
<com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty>
<ownership>
<ownershipEnabled>true</ownershipEnabled>
<primaryOwnerId>foo</primaryOwnerId>
<coownersIds>
<string>bar</string>
<string>moo</string>
</coownersIds>
</ownership>
</com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty>
</properties>
</project>

View File

@ -0,0 +1,6 @@
properties:
- ownership:
owner: foo
co-owners:
- bar
- moo