Adding unittest to ownership property
Change-Id: I800001c651ed7db7e0c865e8f859e2d80cbc42e2
This commit is contained in:
parent
413c150815
commit
687d9f94eb
@ -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,
|
||||
|
15
tests/properties/fixtures/ownership.xml
Normal file
15
tests/properties/fixtures/ownership.xml
Normal 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>
|
6
tests/properties/fixtures/ownership.yaml
Normal file
6
tests/properties/fixtures/ownership.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
properties:
|
||||
- ownership:
|
||||
owner: foo
|
||||
co-owners:
|
||||
- bar
|
||||
- moo
|
Loading…
Reference in New Issue
Block a user