Commit graph

3729 commits

Author SHA1 Message Date
Mike McLean
f8947a9215 add ensure_volume_symlink() function 2018-08-08 11:22:59 -04:00
Mike McLean
0d7e69ddd2 PR#1021: Raise error for non-200 codes in download_file
Merges #1021
https://pagure.io/koji/pull-request/1021

Fixes: #1020
https://pagure.io/koji/issue/1020
download_file function doesn't raise errors for non-200 codes
2018-08-08 11:20:40 -04:00
Tomas Kopecek
913efc47d1 Raise error for non-200 codes in download_file
Fixes: https://pagure.io/koji/issue/1020
2018-08-08 11:20:33 -04:00
Mike McLean
a9d23403dd PR#1005: Add unit tests for check volume id substitution list
Merges #1005
https://pagure.io/koji/pull-request/1005
2018-08-08 11:06:46 -04:00
Jana Cupova
9f9a72f4d6 Fix code review 2018-08-08 11:06:41 -04:00
Jana Cupova
8173ec7bac Change to one test with variants 2018-08-08 11:06:41 -04:00
Jana Cupova
4f2a632c98 Add unit tests for check volume id substitution list 2018-08-08 11:06:41 -04:00
Mike McLean
e05f871b4a PR#1027: [kojihub] add strict parameter in getBuildNotification
Merges #1027
https://pagure.io/koji/pull-request/1027

Fixes: #1009
https://pagure.io/koji/issue/1009
getBuildNotification API call should raise GenericError exception for non existing notification ID
2018-08-08 10:09:52 -04:00
Yuming Zhu
b4c5c95684 [kojihub] add strict parameter in getBuildNotification 2018-08-08 10:09:46 -04:00
Mike McLean
4a214437ee PR#1016: raise Error when user not found in getBuildNotifications
Merges #1016
https://pagure.io/koji/pull-request/1016

Fixes: #1013
https://pagure.io/koji/issue/1013
getBuildNotifications API call should raise GenericError exception for non existing user ID
2018-08-07 16:09:07 -04:00
Yuming Zhu
5a229a092e raise Error when user not found in getBuildNotifications 2018-07-31 17:50:07 +08:00
Mike McLean
e50cd283b8 PR#1008: decode_args(): make a copy of the opts dict, rather than modifying it in-place
Merges #1008
https://pagure.io/koji/pull-request/1008

Fixes: #1007
https://pagure.io/koji/issue/1007
decode_args() might result in --package parameter missing in runroot command
2018-07-27 15:56:44 -04:00
Franz Chih-Ping Hsieh
646c43561a decode_args(): make a copy of the opts dict, rather than modifying it in-place
Fixes: #1007
https://pagure.io/koji/issue/1007

  Author: Mike Bonnet <mikeb@redhat.com>
  Date:   Wed Jul 18 17:03:56 2018 -0700

    The commit changes make_task() to call decode_args() on the arglist before
    it is saved to the db. If the method was called with keyword arguments, those
    would be passed in a dict at the end of the arglist, with a __starstar entry.
    decode_args() edits that dict in place, removing the __starstar entry and
    making the arglist appear to end in a single dict argument, effectively
    removing the keyword arguments. This change makes a copy of the dict before
2018-07-25 15:07:11 -04:00
Mike McLean
38e6a4f401 PR#989: additional info on builders in channelinfo page
Merges #989
https://pagure.io/koji/pull-request/989

Fixes: #988
https://pagure.io/koji/issue/988
[RFE] more info about builders in channelinfo page
2018-07-11 18:11:25 -04:00
Tomas Kopecek
167b296311 additional info on builders in channelinfo page
Fixes: https://pagure.io/koji/issue/988
2018-07-11 18:11:18 -04:00
Mike McLean
147f781183 PR#685: Rest of automated conversion from py3 changes
Merges #685
https://pagure.io/koji/pull-request/685
2018-07-11 17:37:45 -04:00
Tomas Kopecek
f464160ac6 fix tuple expansion in args 2018-07-11 17:37:40 -04:00
Tomas Kopecek
d9ac4ed85c python-modernize -f lib2to3.fixes.fix_numliterals 2018-07-11 17:37:40 -04:00
Tomas Kopecek
6f7f828f77 python-modernize -f lib2to3.fixes.fix_except 2018-07-11 17:37:40 -04:00
Tomas Kopecek
9b3cf26dc2 fix sort(l) vs l.sort() typo 2018-07-11 17:37:40 -04:00
Tomas Kopecek
242e143b97 fix double import typo 2018-07-11 17:37:40 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
56095e8018 fix unicode type checks 2018-07-11 17:37:40 -04:00
Tomas Kopecek
b37236d7ae fix incorrect divisions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56 python-modernize -f libmodernize.fixes.fix_classic_division 2018-07-11 17:37:40 -04:00
Tomas Kopecek
bc425033b5 fix rest of int/long 2018-07-11 17:37:40 -04:00
Tomas Kopecek
220e889f2b python-modernize -f libmodernize.fixes.fix_int_long_tuple 2018-07-11 17:37:40 -04:00
Tomas Kopecek
707c6b7774 python-modernize -f libmodernize.fixes.fix_map 2018-07-11 17:37:39 -04:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
f03646bab5 python-modernize -f lib2to3.fixes.fix_methodattrs 2018-07-11 17:37:39 -04:00
Tomas Kopecek
9173587056 python-modernize -f lib2to3.fixes.fix_funcattrs 2018-07-11 17:37:39 -04:00
Tomas Kopecek
d92fa1fa9c python-modernize -f libmodernize.fixes.fix_file 2018-07-11 17:37:39 -04:00
Tomas Kopecek
5ad9027320 python-modernize -f libmodernize.fixes.fix_basestring 2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
b96092334d python-modernize -f libmodernize.fixes.fix_xrange_six 2018-07-11 17:37:39 -04:00
Mike McLean
e67bd0f3a7 PR#962: put source target scratch into policy_data in make_task
Merges #962
https://pagure.io/koji/pull-request/962

Fixes: #150
https://pagure.io/koji/issue/150
no target info in channel policy for non-rpm tasks
2018-06-29 16:55:32 -04:00
Mike McLean
862c5090bd minor adjustments for readability 2018-06-29 16:55:16 -04:00
Mike McLean
bb1e136324 drop redundant warning 2018-06-29 16:55:16 -04:00
Yuming Zhu
1b085035d9 put source target scratch into policy_data in make_task 2018-06-29 16:55:16 -04:00
Mike McLean
ef977eaebb PR#980: cli: rename _unique_path to unique_path, and deprecate the old one
Merges #980
https://pagure.io/koji/pull-request/980

Fixes: #975
https://pagure.io/koji/issue/975
Make _unique_path public
2018-06-28 12:39:19 -04:00
Yuming Zhu
1c76cd0c0f cli: rename _unique_path to unique_path, and deprecate the old one 2018-06-28 12:39:12 -04:00
Mike McLean
967704b9a3 PR#900: enable batch multiCall in clone-tag
Merges #900
https://pagure.io/koji/pull-request/900

Fixes: #885
https://pagure.io/koji/issue/885
cli: clone-tag raises "GenericError: Request too long"
2018-06-27 11:36:22 -04:00
Yuming Zhu
74dfee90ea rebase bad reference change 2018-06-27 11:34:50 -04:00
Mike McLean
f274b3602f give user option to use avoid using batches 2018-06-27 11:34:50 -04:00
Mike McLean
ae025524ab clean up docstring for multiCall() 2018-06-27 11:34:50 -04:00
Mike McLean
9b1f5b504e drop unecessary warning 2018-06-27 11:34:50 -04:00
Yuming Zhu
60a23818a1 add warning for batch usage in clone-tag 2018-06-27 11:34:50 -04:00
Yuming Zhu
3bddf540b4 set default batch to None and use generator instead of list 2018-06-27 11:34:50 -04:00
Yuming Zhu
b65d2c3fcf cli: unittest for multiCall 2018-06-27 11:33:34 -04:00