diff --git a/check_tags_in_requests.py b/check_tags_in_requests.py index 89b5ef4c..f96a2eb5 100755 --- a/check_tags_in_requests.py +++ b/check_tags_in_requests.py @@ -78,13 +78,13 @@ by OBS on which this bot relies on. def checkTagInRequest(self, req, a): u = osc.core.makeurl(self.apiurl, - ['source', a.tgt_project, a.tgt_package], + ['source', a.src_project, a.src_package], {'cmd': 'diff', 'onlyissues': '1', 'view': 'xml', - 'opackage': a.src_package, - 'oproject': a.src_project, - 'orev': a.src_rev}) + 'opackage': a.tgt_package, + 'oproject': a.tgt_project, + 'rev': a.src_rev}) try: f = osc.core.http_POST(u) except (HTTPError, URLError): diff --git a/tests/checktags_tests.py b/tests/checktags_tests.py index 263a0c25..43201553 100644 --- a/tests/checktags_tests.py +++ b/tests/checktags_tests.py @@ -163,12 +163,12 @@ Pico text editor while also offering a few enhancements. def _run_with_data(self, accept, exists_in_factory, issues_data): # exists_in_factory: whether the package is exists in factory httpretty.register_uri(httpretty.POST, - osc.core.makeurl(APIURL, ['source', "openSUSE:Factory", "nano"], {'cmd': 'diff', + osc.core.makeurl(APIURL, ['source', "editors", "nano"], { 'cmd': 'diff', 'onlyissues': '1', 'view': 'xml', 'opackage': 'nano', - 'oproject': 'editors', - 'orev': '25'}), + 'oproject': 'openSUSE:Factory', + 'rev': '25'}), match_querystring=True, body=issues_data) httpretty.register_uri(httpretty.GET,