Commit graph

3116 commits

Author SHA1 Message Date
Tomas Kopecek
facb8eca6f delete build directory if cg_import fails
Related: https://pagure.io/koji/issue/584
2017-10-27 17:20:40 -04:00
Mike McLean
fdc1cff3f5 PR#653: Add krb_canon_host option
Merges #653
https://pagure.io/koji/pull-request/653

Fixes: #599
https://pagure.io/koji/issue/599
correctly canonicalize hostname for krb auth
2017-10-27 16:03:16 -04:00
Mike McLean
d8fb302780 add krb_canon_host example in koji.conf 2017-10-27 15:32:25 -04:00
Mike McLean
900767cf4b add krb_canon_host option to various clients 2017-10-27 15:32:25 -04:00
Mike McLean
edda41100c krb_canon_host option to canonicalize hostname via dns 2017-10-27 15:32:25 -04:00
Mike McLean
a4e4174182 PR#657: protonmsg: include the arch in the headers of rpm sign messages
Merges #657
https://pagure.io/koji/pull-request/657
2017-10-26 11:09:18 -04:00
Mike Bonnet
661dd3a70c protonmsg: include the arch in the headers of rpm sign messages
Including the arch in the headers may be useful for filtering.
2017-10-25 12:01:08 -04:00
Mike McLean
aa7a507fb0 PR#651: protonmsg: don't send rpm.sign messages when the sigkey is empty
Merges #651
https://pagure.io/koji/pull-request/651
2017-10-24 21:20:28 -04:00
Mike Bonnet
c6a1e0952a protonmsg: don't send rpm.sign messages when the sigkey is empty
When a build completes, we store the original, unsigned rpm headers
to disk. This results in the postRPMSign callback being called, and
a rpm.sign message being sent with an empty sigkey. The intended
sematics of the rpm.sign message is to notify a service when an rpm
has been signed. Therefore, we should not be sending a message when
the sigkey is empty.
2017-10-24 21:20:24 -04:00
Mike McLean
282a0479a7 PR#654: Update links in docs to point to correct pages
Merges #654
https://pagure.io/koji/pull-request/654
2017-10-24 20:55:38 -04:00
Igor Wodiany
be9b15698d
Update links in docs to point to correct pages
On the documentation's index page two links point to the websites that
no longer exist. This commit updates links so they point to the new
websites.
2017-10-24 22:49:18 +01:00
Mike McLean
21fefc4c77 PR#631: cg_import fails immediately if build directory already exists
Merges #631
https://pagure.io/koji/pull-request/631

Merges #425
https://pagure.io//koji/issue/425
2017-10-17 16:41:24 -04:00
Brendan Reilly
036377352c Changed check to correct build import dir 2017-10-17 16:41:18 -04:00
Brendan Reilly
57dbc9ac01 cg_import fails immediately if build directory already exists 2017-10-17 16:41:18 -04:00
Mike McLean
84d0f8ece8 PR#601: replace pycurl with requests
Merges #601
https://pagure.io/koji/pull-request/601

Fixes: #600
https://pagure.io/koji/issue/600
Remove pycurl dependency
2017-10-16 10:03:46 -04:00
Tomas Kopecek
d756d8c5bd remove python3 typo 2017-10-16 10:03:42 -04:00
Tomas Kopecek
bf0552e6de use contextlib wrapper for older python-requests 2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156 replace pycurl with requests
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -04:00
Mike McLean
6bc248cd09 PR#608: tests for handling user groups
Merges #608
https://pagure.io/koji/pull-request/608

Fixes: #604
https://pagure.io/koji/issue/604
getGroupMembers API call should raise GenericError exception for non existing groupname

Fixes: #607
https://pagure.io/koji/issue/607
dropGroupMember API call should raise GenericError exception for username which is not in group

Fixes: #603
https://pagure.io/koji/issue/603
addGroupMember API call should raise GenericError exception for non existing username or groupname
2017-10-12 18:07:11 -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
fe24d164f8 PR#637: set timezone to US/Eastern when test_build_notification executing
Merges #637
https://pagure.io/koji/pull-request/637
2017-10-12 10:40:51 -04:00
Yuming Zhu
659a63a167 set timezone to US/Eastern when test_build_notification executing
following PR#628
2017-10-12 10:40:47 -04:00
Mike McLean
ff396155f2 PR#636: use urlparse.parse_qs instead of deprecated cgi.parse_qs
Merges #636
https://pagure.io/koji/pull-request/636

Fixes #635
https://pagure.io/koji/issue/635
2017-10-12 10:37:34 -04:00
Mike McLean
1a028c670a PR#628: add a unit test for buildNotification task
Merges #628
https://pagure.io/koji/pull-request/628
2017-10-11 16:41:26 -04:00
Mike McLean
00e059c0c0 unit test for buildNotification task handler 2017-10-11 16:36:40 -04:00
Mike McLean
80ca9ff294 handle callbacks depth-first in DataWalker 2017-10-11 16:36:40 -04:00
Mike McLean
f420ac1ccb PR#620: some tests for koji.auth
Merges #620
https://pagure.io/koji/pull-request/620
2017-10-11 12:14:24 -04:00
Tomas Kopecek
c86f41ebcf some tests for koji.auth 2017-10-11 12:14:15 -04:00
Yuming Zhu
7f302491f9 use urlparse.parse_qs instead of deprecated cgi.parse_qs 2017-10-11 14:52:48 +00:00
Mike McLean
299e0cda67 PR#625: watch-logs --mine --follow
Merges #625
https://pagure.io/koji/pull-request/625

Fixes #621
https://pagure.io/koji/issue/621
2017-10-11 01:05:45 -04:00
Tomas Kopecek
77339cc7a1 unit test 2017-10-11 01:05:41 -04:00
Tomas Kopecek
c7fbf4ec81 move _list_task to client lib 2017-10-11 01:05:41 -04:00
Tomas Kopecek
db37cec5ae watch-logs --mine --follow
Related: https://pagure.io/koji/issue/621
2017-10-11 01:05:41 -04:00
Mike McLean
836f1ee7c4 PR#629: fix wrong mock.patch target
Merges #629
https://pagure.io/koji/pull-request/629

Fixes #627
https://pagure.io/koji/issue/627
2017-10-11 00:40:48 -04:00
Franz Chih-Ping Hsieh
f44dc7d6e8 fix wrong mock.patch target 2017-10-11 00:39:47 -04:00
Mike McLean
fcddf97013 PR#598: kojira: speed up repo dist check
Merges #598
https://pagure.io/koji/pull-request/598

Fixes #626
https://pagure.io/koji/issue/626
2017-10-06 17:24:26 -04:00
Mike McLean
ab547683ce kojira: avoid calling session.repoInfo in tryDelete() 2017-10-06 17:23:46 -04:00
Mike McLean
a155551267 unit test for get_active_repos 2017-10-06 17:23:45 -04:00
Mike McLean
8a81f8e9cd return dist field in getActiveRepos 2017-10-06 17:23:45 -04:00
Mike McLean
a954172d1e adjust krbV check in kojira to avoid redundant import 2017-10-06 17:23:45 -04:00
Mike McLean
070f16f69e PR#622: basic volume policy support
Merges #622
https://pagure.io/koji/pull-request/622

Fixes #556
https://pagure.io/koji/issue/556`
2017-10-06 17:16:50 -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
5cc3896bee drop unused "prebuild" policy data 2017-10-06 17:16:04 -04:00
Mike McLean
d1e303a560 applyVolumePolicy hub call for admins 2017-10-06 17:16:04 -04:00
Mike McLean
e1b984b561 correct docstring 2017-10-06 17:16:03 -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
d14d16c6ef make volume policy data more consistent 2017-10-06 17:16:03 -04:00
Mike McLean
9b315ded52 in buildtag policy test, use br data even if build not set 2017-10-06 17:16:03 -04:00
Mike McLean
cf54a7ce3a propagate volume in import_build 2017-10-06 17:16:03 -04:00