Commit graph

3470 commits

Author SHA1 Message Date
Tomas Kopecek
1548781346 added test 2018-04-24 16:54:08 -04:00
Tomas Kopecek
252c9e1c20 CLI commands for notifications
Fixes: https://pagure.io/koji/issue/680
2018-04-24 16:54:08 -04:00
Mike McLean
c228806e9e PR#901: Add more path info to volume documentation
Merges #901
https://pagure.io/koji/pull-request/901
2018-04-24 15:18:12 -04:00
Mike McLean
6a8fa4ed3d also document the symlinks 2018-04-24 15:18:02 -04:00
Mike McLean
54f992e73f document volume path construction 2018-04-24 15:18:02 -04:00
Mike McLean
4d0fed0374 PR#678: fix grplist_block
Merges #678
https://pagure.io/koji/pull-request/678
2018-04-24 10:29:56 -04:00
Mike McLean
f9f2640976 fix grplist_block 2018-04-24 10:29:53 -04:00
Mike McLean
c344d854ef PR#734: hub: add strict behavior in get_archive_file() and list_archive_files()
Merges #734
https://pagure.io/koji/pull-request/734

Fixes: #719
https://pagure.io/koji/issue/719
getArchiveFile API call should raise GenericError exception for non existing filename
2018-04-18 18:38:03 -04:00
Mike McLean
52f6c484b0 tweak docstring 2018-04-18 18:37:11 -04:00
Yuming Zhu
02d22df425 do not raise error when archive is empty 2018-04-18 18:37:11 -04:00
Yuming Zhu
41ccaa8569 more spicified errors 2018-04-18 18:37:11 -04:00
Yuming Zhu
c037f29508 better fomatted docstr 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
22eea4546b simplify strict logic in get_archive_file 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
Mike McLean
2b7b90a259 PR#726: pass full buildinfo obtained by get_build to postBuildStateChange callbacks
Merges #726
https://pagure.io/koji/pull-request/726

Relates: #725
https://pagure.io/koji/issue/725
'postBuildStateChange' doesn't always contain consistent buildinfo
2018-04-18 18:12:02 -04:00
Yuming Zhu
680e84ef80 ut: fix test_import_build 2018-04-18 18:11:54 -04:00
Yuming Zhu
7c1865f9c4 pass full buildinfo obtained by get_build to postBuildStateChange callbacks
relates #725
2018-04-18 18:11:54 -04:00
Mike McLean
37467d5d7a PR#823: Add --old-chroot option to runroot command
Merges #823
https://pagure.io/koji/pull-request/823

Fixes: #772
https://pagure.io/koji/issue/772
runroot plugin doesn't have way to force old-chroot with newer mock
2018-04-18 18:03:04 -04:00
Tomas Kopecek
d0238943be Allow t use new/old-chroot in runroot
Fixes: https://pagure.io/koji/issue/772
2018-04-18 18:02:54 -04:00
Mike McLean
0d72403ca5 PR#881: add txkoji to related projects
Merges #881
https://pagure.io/koji/pull-request/881

Fixes: #880
https://pagure.io/koji/issue/880
Add txkoji to project links
2018-04-13 15:47:17 -04:00
Tomas Kopecek
bb35fb0684 add txkoji to related projects
Fixes: https://pagure.io/koji/issue/880
2018-04-10 13:33:16 +02:00
Mike McLean
ab1ade75c1 Fix CVE-2018-1002150 - distRepoMove missing access check
Fixes: #850
https://pagure.io/koji/issue/850
fix access check in host.distRepoMove
2018-04-04 09:46:29 -04:00
Mike McLean
daf0764ad3 fix host id lookup for anonymous sessions 2018-04-04 09:43:47 -04:00
Mike McLean
642bcb3bd9 fix access check in host.distRepoMove
Fixes CVE-2018-1002150
2018-04-04 09:43:47 -04:00
Mike McLean
67e82f56b9 PR#822: Don't show license for external rpms
Merges #822
https://pagure.io/koji/pull-request/822

Fixes: #791
https://pagure.io/koji/issue/791
kojiweb shows bogus License value for external rpm
2018-04-03 17:16:47 -04:00
Tomas Kopecek
d2fcb8b459 Don't show license for external rpms
Fixes: https://pagure.io/koji/issue/791
2018-04-03 17:16:41 -04:00
Mike McLean
2ac1a83984 PR#779: drop cascade in schema-clear
Merges #779
https://pagure.io/koji/pull-request/779
2018-04-03 16:49:31 -04:00
Tomas Kopecek
ccd7715f05 drop unsupported schema-clear.sql 2018-04-03 16:49:24 -04:00
Mike McLean
c9d827f098 PR#860: mavenBuild uses wrong session
Merges #860
https://pagure.io/koji/pull-request/860

Fixes: #859
https://pagure.io/koji/issue/859
mavenBuild uses wrong sessions object
2018-04-03 16:15:55 -04:00
Tomas Kopecek
506f114e89 mavenBuild uses wrong session
Fixes: https://pagure.io/koji/issue/859
2018-04-03 16:15:49 -04:00
Mike McLean
0ea4d0b210 PR#858: restart-hosts fails if provided arguments
Merges #858
https://pagure.io/koji/pull-request/858

Fixes: #815
https://pagure.io/koji/issue/815
restart-hosts should raise error if args are provided
2018-04-03 12:16:23 -04:00
Brendan Reilly
f33d01ecd4 restart-hosts fails if provided arguments 2018-04-03 12:16:19 -04:00
Mike McLean
6e4959f7b6 PR#853: Show the krb principal name in debug log
Merges #853
https://pagure.io/koji/pull-request/853
2018-04-02 16:40:08 -04:00
Mike McLean
c246f719b8 Show the krb principal name in debug log
This may help users realize when they are trying to authenticate
with the wrong ticket.
2018-04-02 16:40:04 -04:00
Mike McLean
87e23fa6c4 PR#711: Drop explicit python-krbV dependency for modern platforms
Merges #711
https://pagure.io/koji/pull-request/711
2018-04-02 16:38:31 -04:00
Mike McLean
4c07073403 simplify check for krbV module 2018-04-02 16:38:27 -04:00
Mike McLean
cc208eff5d only explicitly require python-krbV on older platforms 2018-04-02 16:38:27 -04:00
Mike McLean
91b306e108 Avoid failing at import time if krbV module is missing
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04:00
Mike McLean
dad74a3a9e PR#768: json serialize additional types in protonmsg
Merges #768
https://pagure.io/koji/pull-request/768

Fixes: #741
https://pagure.io/koji/issue/741
protonmsg fails on common data types
2018-03-21 15:08:32 -04:00
Mike McLean
1bf3bd22d7 protonmsg: unit test for unencodable data 2018-03-21 15:08:26 -04:00
Tomas Kopecek
5712c8efb6 Don't raise error on unserializable data 2018-03-21 15:08:26 -04:00
Tomas Kopecek
3bfcc6a66e json serialize additional types in protonmsg
Fixes: https://pagure.io/koji/issue/741
2018-03-21 15:08:26 -04:00
Mike McLean
f869eb4158 PR#849: kojira: sanity check in pruneLocalRepos
Merges #849
https://pagure.io/koji/pull-request/849
2018-03-16 16:50:14 -04:00
Yuming Zhu
52f0dfbc1c kojira: sanity check in pruneLocalRepos 2018-03-16 16:50:00 -04:00
Mike McLean
be80208ce5 PR#848: use subprocess.Popen instead of subprocess.check_output
Merges #848
https://pagure.io/koji/pull-request/848

Fixes: #846
https://pagure.io/koji/issue/846
error occurs in SCM.get_source since subprocess.check_output is not supported by python 2.6-
2018-03-16 16:43:47 -04:00
Yuming Zhu
43a433d37a do not shell=True 2018-03-14 20:23:24 +08:00
Yuming Zhu
c008ac8bb9 unittest for scm.get_source 2018-03-14 19:10:12 +08:00