Commit graph

135 commits

Author SHA1 Message Date
Tomas Kopecek
1886fe54a6 check rpm headers support directly 2018-08-16 13:36:07 -04:00
Franz Chih-Ping Hsieh
92f5cbc8b9 Add more test patterns for rpmdiff unit test. 2018-08-16 09:12:26 -04:00
Tomas Kopecek
bd649d2723 prioritize unittest2
Make all imports consistent with
https://pagure.io/koji/issue/830

Fixes: https://pagure.io/koji/issue/1001
2018-08-16 09:03:09 -04:00
Tomas Kopecek
d1544e7f05 Correctly ignore all values in rpmdiff
Related: https://pagure.io/koji/issue/994
2018-08-10 15:47:46 -04:00
Franz Chih-Ping Hsieh
e25603dd97 copy data from static variable instead of use it directly to prevent caching.
also update test cases to verfiy this issue.

Fixes: #994
https://pagure.io/koji/issue/994
2018-08-10 15:47:46 -04:00
Mike McLean
549d9d7955 more checks in unit test 2018-08-08 11:22:59 -04:00
Mike McLean
d9c44735cc actually add unit test 2018-08-08 11:22:59 -04:00
Yuming Zhu
5a229a092e raise Error when user not found in getBuildNotifications 2018-07-31 17:50:07 +08:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 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
Mike McLean
118f796a1f fix unittest ref 2018-06-08 16:54:53 -04:00
Tomas Kopecek
3801e7504a use unittest2 only if available 2018-06-08 16:54:53 -04:00
Tomas Kopecek
63d92398d5 allow force for pkglist_add
Using force option will allow 'pre-blocking' of packages which are not
in tag inheritance yet, but could cause a problem if they'll get to
inheritance chain somehow. In such case we don't have an owner for
package and using 'force' allows admin to introduce blocked package with
him as an owner.

Fixes: https://pagure.io/koji/issue/867
2018-06-08 16:54:53 -04:00
Mike McLean
a094ab21c4 more unit test fixes 2018-06-07 09:39:39 -04:00
Tomas Kopecek
c68396c059 Use unittest2 for rhel6 compatibility
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Tomas Kopecek
90a935182f Allow listing of blocked data in readTagGroups
Fixes: https://pagure.io/koji/issue/870
2018-06-05 09:59:03 -04:00
Mike McLean
7a0acc00cb put dist repo rpms under Packages/ 2018-05-03 16:05:16 -04:00
Mike McLean
0171027224 fix unit tests 2018-05-03 16:05:16 -04:00
Mike McLean
0fe113096c only expire older repos of matching type
Fixes: https://pagure.io/koji/issue/457
2018-05-03 16:05:16 -04:00
Mike McLean
72955e7dd5 unit test for repo_expire_older() 2018-05-03 16:05:16 -04:00
Mike McLean
8af24dd57e fix unit tests 2018-04-30 11:35:25 -04:00
Tomas Kopecek
50a8254df8 tests for host_channels 2018-04-30 11:35:25 -04:00
Tomas Kopecek
b50479abb0 host_channels history 2018-04-30 11:35:25 -04:00
Tomas Kopecek
41edab7fa2 host history tests 2018-04-30 11:35:25 -04:00
Tomas Kopecek
dfd097b440 add history to edit_host
Hosts now have history.

host table was split to host (containing ephemereal and non-editable
data (load, activity, name, user_id)) and host_config containing
data changeable by admins (archs, capacity, ...). This table is
versioned and searchable via queryHistory.

Fixes: https://pagure.io/koji/issue/638
2018-04-30 11:35:25 -04:00
Tomas Kopecek
0468971594 fix tests for rpmdiff 2018-04-27 11:53:37 -04:00
Tomas Kopecek
fb0ba44a3c don't spawn process for rpmdiff
Speed improvement by using bundled rpmdiff library instead of spawning
special process.

Related: https://pagure.io/koji/issue/715
2018-04-27 11:53:37 -04:00
Yuming Zhu
02d22df425 do not raise error when archive is empty 2018-04-18 18:37:11 -04:00
Yuming Zhu
5bfbe4ae4a use double quotes instead of escaping 2018-04-18 18:37:11 -04:00
Yuming Zhu
6d9b936204 hub: unittest for list_archive_files() 2018-04-18 18:37:11 -04:00
Yuming Zhu
eedea9f0d5 hub: add strict behaviors for get_archive_file and list_archive_files 2018-04-18 18:37:11 -04:00
Yuming Zhu
436465d66b hub: throw GenericError in get_archive_file()
relates: #719
2018-04-18 18:37:11 -04:00
Yuming Zhu
680e84ef80 ut: fix test_import_build 2018-04-18 18:11:54 -04:00
Tomas Kopecek
2eff45f763 Drop pre-2.6 compat function koji.util._relpath
Fixes: https://pagure.io/koji/issue/818
2018-03-08 10:23:44 -05:00
Franz Chih-Ping Hsieh
e8ce7943a6 add unit test for _write_maven_repo_metadata() function in kojihub 2018-03-01 16:01:47 -05:00
Yuming Zhu
35dd4c942b hub: make list_archives to accept strict argument
fixes: #721
2018-03-01 10:30:27 -05:00
Yuming Zhu
77af6d6688 hub: fix KeyError in get_notification_recipients 2018-02-28 08:07:17 -05:00
Tomas Kopecek
d58989d777 tests for notifications 2018-02-20 09:39:27 -05:00
Mike McLean
1d35403e2d unit test for Savepoint 2018-02-13 13:42:31 -05:00
Mike McLean
83d327482f unit test for add_external_rpm 2018-02-13 13:42:31 -05:00
Tomas Kopecek
47164a9d58 test intermediate calls 2017-12-05 10:28:24 -05:00
Mike McLean
cb64ee6bd8 taskWaitResults: more unit tests 2017-12-05 10:28:24 -05:00
Mike McLean
88fb2a9b8c add unit test for host.taskWaitResults 2017-12-05 10:28:24 -05:00
Tomas Kopecek
921fcae6fe return xmlrpc-compatible list instead of set 2017-11-22 15:54:31 -05:00
Tomas Kopecek
f40fee4b7d fix tests 2017-11-22 15:54:31 -05:00
Tomas Kopecek
cbbedd12b2 make query more secure 2017-11-22 15:54:31 -05:00
Tomas Kopecek
67149d3f91 don't send notifications to disabled users or hosts
Related: https://pagure.io/koji/issue/613
2017-11-22 15:54:31 -05:00
Tomas Kopecek
379ec8ae63 python-modernize -f lib2to3.fixes.file . -w 2017-10-31 16:05:16 +01:00
Mike McLean
4c1396b955 update rmtree patch in unit test for recycle_build 2017-10-30 12:09:04 -04:00
Tomas Kopecek
fe4c83a229 typo fix + tests 2017-10-27 17:20:40 -04:00