Commit graph

3099 commits

Author SHA1 Message Date
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
Mike McLean
026c1ba6c9 reset volume to default in resetBuild() 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
d41d613f7c apply volume policy in completeImageBuild 2017-10-06 17:16:03 -04:00
Mike McLean
d031115b6a apply volume policy in completeWinBuild 2017-10-06 17:16:03 -04:00
Mike McLean
b0ce0b69ba apply volume policy in completeMavenBuild 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
b84c7df484 importImageInternal: use nextval() and InsertProcessor 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
bdf04adb23 PR#624: fix formatTime for DateTime
Merges #624
https://pagure.io/koji/pull-request/624

Fixes #623
https://pagure.io/koji/issue/623
2017-10-06 17:11:09 -04:00
Tomas Kopecek
6871f52ce8 ignore concrete timezone in tests 2017-10-06 17:10:12 -04:00
Tomas Kopecek
470addae97 fix formatTime for DateTime
Related: https://pagure.io/koji/issue/623
2017-10-06 17:10:12 -04:00
Mike McLean
bea9a86916 PR#537: messagebus plugin: deferred sending and test mode
Merges #537
https://pagure.io/koji/pull-request/537
2017-10-05 16:16:26 -04:00
Mike McLean
4a35b8a283 don't require an explicit test_mode setting in config 2017-10-05 16:15:23 -04:00