To make testing more reliable and nice and generally better, we need to address few issues. First of all, currently it is hard to figure out what was test trying to access if accessing it fails. Second issue was that we mixed both tests and OBS simulation logic. In perfect world, we should write some state machine simulating OBS in some limited way and checking that scripts behaviour corresponds to it. This commit attempts to solve it at one example - review handling test.
15 lines
617 B
XML
15 lines
617 B
XML
<?xml version="1.0"?>
|
|
<request id="123">
|
|
<action type="submit">
|
|
<source project="home:Admin" package="puppet" rev="59f0f46262d7b57b9cdc720c06d5e317"/>
|
|
<target project="openSUSE:Factory" package="puppet"/>
|
|
</action>
|
|
<state name="${request}" who="Admin" when="2014-02-17T12:38:52">
|
|
<comment>Passed staging project "openSUSE:Factory:Staging:test"</comment>
|
|
</state>
|
|
<review state="${review}" when="2014-02-17T12:34:10" who="Admin" by_project="${review_project}">
|
|
<comment>Passed staging project "openSUSE:Factory:Staging:test"</comment>
|
|
</review>
|
|
<description>test</description>
|
|
</request>
|