From be88788f13c684b5d53f29a6e981afbba39dc3d5 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Jun 02 2017 05:52:14 +0000 Subject: s/project_version/product_version/g --- diff --git a/greenwave/api_v1.py b/greenwave/api_v1.py index 4d31693..1cf96b9 100644 --- a/greenwave/api_v1.py +++ b/greenwave/api_v1.py @@ -73,7 +73,7 @@ def make_decision(): for result in results: if result['outcome'] not in ('PASSED', 'INFO'): # query WaiverDB to check whether the result has a waiver - res = requests_session.get('{0}/waivers/?project_version={1}&result_id={2}'.format( + res = requests_session.get('{0}/waivers/?product_version={1}&result_id={2}'.format( current_app.config['WAIVERDB_API_URL'], product_version, result['id']) ) diff --git a/greenwave/tests/test_api_v10.py b/greenwave/tests/test_api_v10.py index 6dd7cfe..ebc0022 100644 --- a/greenwave/tests/test_api_v10.py +++ b/greenwave/tests/test_api_v10.py @@ -162,7 +162,7 @@ def test_make_a_decison_on_failed_result_with_waiver(client): } ] } - m.register_uri('GET', '{}/waivers/?result_id={}&project_version={}'.format( + m.register_uri('GET', '{}/waivers/?result_id={}&product_version={}'.format( current_app.config['WAIVERDB_API_URL'], 331284, 'rhel-7' @@ -223,7 +223,7 @@ def test_make_a_decison_on_failed_result(client): 'foo-1.0.0-2.el7', 'dist.rpmdiff.comparison.xml_validity,dist.rpmdiff.comparison.virus_scan' ), json=mocked_results) - m.register_uri('GET', '{}/waivers/?result_id={}&project_version={}'.format( + m.register_uri('GET', '{}/waivers/?result_id={}&product_version={}'.format( current_app.config['WAIVERDB_API_URL'], 331284, 'rhel-7'