tests: add missing creator attribute to requests to satisfy osc.
This commit is contained in:
parent
b3464662bf
commit
7621d4f7f6
@ -61,7 +61,7 @@ class TestTagChecker(unittest.TestCase):
|
|||||||
logger=self.logger)
|
logger=self.logger)
|
||||||
|
|
||||||
self._request_data = """
|
self._request_data = """
|
||||||
<request id="293129">
|
<request id="293129" creator="darix">
|
||||||
<action type="submit">
|
<action type="submit">
|
||||||
<source project="editors" package="nano" rev="25"/>
|
<source project="editors" package="nano" rev="25"/>
|
||||||
<target project="openSUSE:Factory" package="nano"/>
|
<target project="openSUSE:Factory" package="nano"/>
|
||||||
@ -102,7 +102,7 @@ class TestTagChecker(unittest.TestCase):
|
|||||||
</request>
|
</request>
|
||||||
"""
|
"""
|
||||||
self._request_withhistory = """
|
self._request_withhistory = """
|
||||||
<request id="293129">
|
<request id="293129" creator="darix">
|
||||||
<action type="submit">
|
<action type="submit">
|
||||||
<source project="editors" package="nano" rev="25"/>
|
<source project="editors" package="nano" rev="25"/>
|
||||||
<target project="openSUSE:Factory" package="nano"/>
|
<target project="openSUSE:Factory" package="nano"/>
|
||||||
|
@ -63,7 +63,7 @@ class TestFactorySourceAccept(unittest.TestCase):
|
|||||||
httpretty.register_uri(httpretty.GET,
|
httpretty.register_uri(httpretty.GET,
|
||||||
APIURL + "/request/770001",
|
APIURL + "/request/770001",
|
||||||
body = """
|
body = """
|
||||||
<request id="770001">
|
<request id="770001" creator="chameleon">
|
||||||
<action type="submit">
|
<action type="submit">
|
||||||
<source project="Base:System" package="timezone" rev="481ecbe0dfc63ece3a1f1b5598f7d96c"/>
|
<source project="Base:System" package="timezone" rev="481ecbe0dfc63ece3a1f1b5598f7d96c"/>
|
||||||
<target project="openSUSE:13.2" package="timezone"/>
|
<target project="openSUSE:13.2" package="timezone"/>
|
||||||
@ -118,7 +118,7 @@ class TestFactorySourceAccept(unittest.TestCase):
|
|||||||
responses = [
|
responses = [
|
||||||
httpretty.Response( body = """
|
httpretty.Response( body = """
|
||||||
<collection matches="1">
|
<collection matches="1">
|
||||||
<request id="254684">
|
<request id="254684" creator="chameleon">
|
||||||
<action type="submit">
|
<action type="submit">
|
||||||
<source project="Base:System" package="timezone" rev="481ecbe0dfc63ece3a1f1b5598f7d96c"/>
|
<source project="Base:System" package="timezone" rev="481ecbe0dfc63ece3a1f1b5598f7d96c"/>
|
||||||
<target project="openSUSE:Factory" package="timezone"/>
|
<target project="openSUSE:Factory" package="timezone"/>
|
||||||
@ -135,7 +135,7 @@ class TestFactorySourceAccept(unittest.TestCase):
|
|||||||
"""),
|
"""),
|
||||||
httpretty.Response( body = """
|
httpretty.Response( body = """
|
||||||
<collection matches="1">
|
<collection matches="1">
|
||||||
<request id="254684">
|
<request id="254684" creator="chameleon">
|
||||||
<action type="submit">
|
<action type="submit">
|
||||||
<source project="Base:System" package="timezone" rev="481ecbe0dfc63ece3a1f1b5598f7d96c"/>
|
<source project="Base:System" package="timezone" rev="481ecbe0dfc63ece3a1f1b5598f7d96c"/>
|
||||||
<target project="openSUSE:Factory" package="timezone"/>
|
<target project="openSUSE:Factory" package="timezone"/>
|
||||||
@ -182,7 +182,7 @@ class TestFactorySourceAccept(unittest.TestCase):
|
|||||||
match_querystring = True,
|
match_querystring = True,
|
||||||
body = """
|
body = """
|
||||||
<collection matches="1">
|
<collection matches="1">
|
||||||
<request id="261411">
|
<request id="261411" creator="lnussel">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
||||||
@ -213,7 +213,7 @@ class TestFactorySourceAccept(unittest.TestCase):
|
|||||||
httpretty.register_uri(httpretty.GET,
|
httpretty.register_uri(httpretty.GET,
|
||||||
APIURL + "/request/261411",
|
APIURL + "/request/261411",
|
||||||
body = """
|
body = """
|
||||||
<request id="261411">
|
<request id="261411" creator="lnussel">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
||||||
|
2
tests/fixtures/request/template_request.xml
vendored
2
tests/fixtures/request/template_request.xml
vendored
@ -1,4 +1,4 @@
|
|||||||
<request id="${id}">
|
<request id="${id}" creator="Admin">
|
||||||
<action type="submit">
|
<action type="submit">
|
||||||
<source project="home:Admin" package="${package}" rev="59f0f46262d7b57b9cdc720c06d5e317"/>
|
<source project="home:Admin" package="${package}" rev="59f0f46262d7b57b9cdc720c06d5e317"/>
|
||||||
<target project="openSUSE:Factory" package="${package}"/>
|
<target project="openSUSE:Factory" package="${package}"/>
|
||||||
|
@ -65,7 +65,7 @@ class TestMaintenance(unittest.TestCase):
|
|||||||
match_querystring = True,
|
match_querystring = True,
|
||||||
body = """
|
body = """
|
||||||
<collection matches="1">
|
<collection matches="1">
|
||||||
<request id="261355">
|
<request id="261355" creator="brassh">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
||||||
@ -92,7 +92,7 @@ class TestMaintenance(unittest.TestCase):
|
|||||||
APIURL + "/request/261355",
|
APIURL + "/request/261355",
|
||||||
match_querystring = True,
|
match_querystring = True,
|
||||||
body = """
|
body = """
|
||||||
<request id="261355">
|
<request id="261355" creator="brassh">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
||||||
@ -171,7 +171,7 @@ class TestMaintenance(unittest.TestCase):
|
|||||||
match_querystring = True,
|
match_querystring = True,
|
||||||
body = """
|
body = """
|
||||||
<collection matches="1">
|
<collection matches="1">
|
||||||
<request id="261355">
|
<request id="261355" creator="brassh">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
||||||
@ -201,7 +201,7 @@ class TestMaintenance(unittest.TestCase):
|
|||||||
APIURL + "/request/261355",
|
APIURL + "/request/261355",
|
||||||
match_querystring = True,
|
match_querystring = True,
|
||||||
body = """
|
body = """
|
||||||
<request id="261355">
|
<request id="261355" creator="brassh">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
<source project="home:brassh" package="mysql-workbench" rev="857c77d2ba1d347b6dc50a1e5bcb74e1"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:13.2:Update"/>
|
||||||
@ -285,7 +285,7 @@ class TestMaintenance(unittest.TestCase):
|
|||||||
match_querystring = True,
|
match_querystring = True,
|
||||||
body = """
|
body = """
|
||||||
<collection matches="1">
|
<collection matches="1">
|
||||||
<request id="261411">
|
<request id="261411" creator="lnussel">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
||||||
@ -306,7 +306,7 @@ class TestMaintenance(unittest.TestCase):
|
|||||||
httpretty.register_uri(httpretty.GET,
|
httpretty.register_uri(httpretty.GET,
|
||||||
APIURL + "/request/261411",
|
APIURL + "/request/261411",
|
||||||
body = """
|
body = """
|
||||||
<request id="261411">
|
<request id="261411" creator="lnussel">
|
||||||
<action type="maintenance_incident">
|
<action type="maintenance_incident">
|
||||||
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
<source project="home:lnussel:branches:openSUSE:Backports:SLE-12" package="plan" rev="71e76daf2c2e9ddb0b9208f54a14f608"/>
|
||||||
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
<target project="openSUSE:Maintenance" releaseproject="openSUSE:Backports:SLE-12"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user