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
Tomas Kopecek
5139031d85
tests for handling user groups
...
Related: https://pagure.io/koji/issue/603
Related: https://pagure.io/koji/issue/604
Related: https://pagure.io/koji/issue/607
2017-10-12 18:07:06 -04:00
Mike McLean
a155551267
unit test for get_active_repos
2017-10-06 17:23:45 -04:00
Mike McLean
8c922d0de0
make cg info in policy data more consistent, and honor it in policy_get_cgs
2017-10-06 17:16:04 -04:00
Mike McLean
eb5f74b3c9
add a default option to check_volume_policy
2017-10-06 17:16:03 -04:00
Mike McLean
77d448d4ba
test_check_volume_policy.py
2017-10-06 17:16:03 -04:00
Mike McLean
aeb8ba4b12
apply volume_policy in import_build
2017-10-06 17:16:03 -04:00
Mike McLean
d0902f95ed
mock volume data in image/maven import tests
2017-10-06 17:16:03 -04:00
Mike McLean
9bcce9dc3e
pull in core volume policy functions from earlier branches
2017-10-06 17:16:03 -04:00
Mike McLean
df71995320
fix up test_import_image_internal.py
2017-10-06 17:16:03 -04:00
Mike McLean
d50169b7c4
fix up test_complete_maven_build.py
2017-10-06 17:16:03 -04:00
Mike McLean
92bb782581
fix up test_complete_image_build.py
2017-10-06 17:16:03 -04:00
Mike McLean
3a638314d8
maven/image import tests from first branch
2017-10-06 17:16:03 -04:00
Mike McLean
b405701b53
hub: rework match_kojifile() and add a unit test
2017-07-25 16:45:25 -04:00
Tomas Kopecek
64f2467fd0
kojifile component type
2017-07-25 12:37:46 -04:00
Tomas Kopecek
c1257a6a22
simplify SQL test comparison
2017-07-25 12:14:26 -04:00
Tomas Kopecek
6c68b6ab34
CLI block-group command
...
Relates: https://pagure.io/koji/issue/462
2017-07-25 12:14:26 -04:00
Mike McLean
6f987daf5a
unit tests for delete_tag()
2017-07-07 12:21:22 -04:00
Yuming Zhu
2838f7fd9e
getUserPerms should throw GenericError when no user found
2017-07-06 12:06:53 -04:00
Mike McLean
6eac5ba443
add unit tests for listHosts call
2017-06-21 11:00:08 -04:00