File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
pulp_rpm/tests/functional/api Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 77import requests
88from pulpcore .client .pulp_rpm .exceptions import ApiException
99from pulpcore .exceptions .validation import InvalidSignatureError
10+ from pulpcore .tests .functional .utils import PulpTaskError
1011
1112from pulp_rpm .app .shared_utils import RpmTool
1213from pulp_rpm .tests .functional .constants import RPM_PACKAGE_FILENAME , RPM_UNSIGNED_URL
@@ -240,7 +241,14 @@ def test_sign_chunked_package_on_upload(
240241 upload = upload .pulp_href ,
241242 repository = repository .pulp_href ,
242243 )
243- package_href = monitor_task (upload_response .task ).created_resources [2 ]
244+ try :
245+ task = monitor_task (upload_response .task )
246+ except PulpTaskError as e :
247+ import pprint
248+
249+ pprint .pprint (e .task .to_dict ())
250+ raise
251+ package_href = task .created_resources [2 ]
244252 package = rpm_package_api .read (package_href )
245253 assert package .signing_keys == [prefixed ]
246254
You can’t perform that action at this time.
0 commit comments