Commit graph

3787 commits

Author SHA1 Message Date
Yuming Zhu
9a0d735d40 move quiet option into ki_handler 2018-11-28 15:25:57 -05:00
Yuming Zhu
30ed89e485 cli: add a param in watch_tasks to override KeyboardInterrupt output 2018-11-28 15:25:57 -05:00
Mike McLean
47912f0470 PR#1042: don't fail on missing field in base policy tests
Merges #1042
https://pagure.io/koji/pull-request/1042

Fixes: #1038
https://pagure.io/koji/issue/1038
policy tests should handle None/missing values gracefully
2018-11-28 15:08:57 -05:00
Tomas Kopecek
8370a8e0ad don't fail on missing field in base policy tests
Fixes: https://pagure.io/koji/issue/1038
2018-11-28 09:01:20 +01:00
Mike McLean
a05478e22c PR#1172: make timeout of authentication configurable
Merges #1172
https://pagure.io/koji/pull-request/1172

Fixes: #1171
https://pagure.io/koji/issue/1171
GSSAPI authentication timeout should be able to be configured
2018-11-27 10:39:22 -05:00
Yuming Zhu
5214e54ff0 set default value for timeout and auth_timeout in read_config
and do not override auth_timeout = 0 by default: 60 which means no timeout
2018-11-27 10:39:11 -05:00
Yuming Zhu
2696f35b55 make timeout of authentication configurable 2018-11-27 10:39:11 -05:00
Mike McLean
31b9e14dfe PR#1168: remove shebang in context module
Merges #1168
https://pagure.io/koji/pull-request/1168
2018-11-26 16:55:47 -05:00
Yuming Zhu
cab5a01dcb move tests to test_lib/test_context.py 2018-11-22 18:43:31 +08:00
Yuming Zhu
2394682a4d remove shebang in context module 2018-11-22 02:48:36 +08:00
Mike McLean
f6e499589d PR#1045: cli: [free-task] raise error when no task-id specified
Merges #1045
https://pagure.io/koji/pull-request/1045

Fixes: #1044
https://pagure.io/koji/issue/1044
CLI method free-task without task_id should return error message
2018-11-20 16:32:44 -05:00
Mike McLean
f8b69fe033 adjust grammar in error message 2018-11-20 16:32:10 -05:00
Yuming Zhu
59a2e7906d cli: [free-task] raise error when no task-id specified 2018-11-20 16:29:49 -05:00
Mike McLean
51252617c0 PR#1056: Print warning to stderr
Merges #1056
https://pagure.io/koji/pull-request/1056

Fixes: #1047
https://pagure.io/koji/issue/1047
buildinfo CLI call should send error message to error output for non existing build
2018-11-20 15:54:57 -05:00
Tomas Kopecek
950c4bafc1 use stderr for warning
Fixes: https://pagure.io/koji/issue/1047
2018-11-20 15:54:47 -05:00
Mike McLean
12f98763bb PR#1057: raise error for non-existing task in list_task_output
Merges #1057
https://pagure.io/koji/pull-request/1057

Fixes: #1048
https://pagure.io/koji/issue/1048
API call listTaskOutput with non exist task ID should return error
2018-11-20 12:53:55 -05:00
Tomas Kopecek
e20d9beb98 raise error for non-existing task in list_task_output
Added strict option

Fixes: https://pagure.io/koji/issue/1048
2018-11-20 12:46:36 -05:00
Mike McLean
67be6a1eab PR#1061: hub: [getRPMDeps] add strict behavior
Merges #1061
https://pagure.io/koji/pull-request/1061

Fixes: #1052
https://pagure.io/koji/issue/1052
API call getRPMDeps with non existing rpm ID should return error message
2018-11-16 21:14:37 -05:00
Yuming Zhu
7817ba7ca3 hub: [getRPMDeps] add strict behavior 2018-11-16 21:14:32 -05:00
Mike McLean
0e18b65205 PR#1065: fix wrong message
Merges #1065
https://pagure.io/koji/pull-request/1065
2018-11-16 21:11:38 -05:00
Tomas Kopecek
47e8a90553 fix wrong message 2018-11-16 21:11:32 -05:00
Mike McLean
5d3f39cfe4 PR#1081: hub: [getPackageID] add strict behavior
Merges #1081
https://pagure.io/koji/pull-request/1081

Fixes: #1076
https://pagure.io/koji/issue/1076
getPackageID API call should raise GenericError exception for non existing package name
2018-11-16 21:07:42 -05:00
Yuming Zhu
511dfc8fdd hub: [getPackageID] add strict behavior 2018-11-16 21:07:35 -05:00
Mike McLean
b730995ef2 PR#1099: hub: [hasPerm] add strict behavior
Merges #1099
https://pagure.io/koji/pull-request/1099

Fixes: #1082
https://pagure.io/koji/issue/1082
hasPerm API call should raise GenericError exception for non permission
2018-11-15 14:44:14 -05:00
Yuming Zhu
a34896bddb hub: [hasPerm] add strict behavior 2018-11-15 14:44:07 -05:00
Mike McLean
946017930a PR#732: koji.next.md: drop RHEL 5 requirements
Merges #732
https://pagure.io/koji/pull-request/732
2018-11-14 12:16:19 -05:00
Ken Dreyer
d68da458e6 koji.next.md: drop RHEL 5 requirements
We don't support RHEL 5 any more, RHEL 6 is the minimum.
2018-11-14 12:16:13 -05:00
Mike McLean
fa9d18a1c4 PR#1156: hub: unlimited NameWidth for kojifiles Apache location
Merges #1156
https://pagure.io/koji/pull-request/1156
2018-11-13 17:43:29 -05:00
Ken Dreyer
5ed66ca927 hub: unlimited NameWidth for kojifiles Apache location
Prior to this change, Apache's mod_autoindex would limit the file name
lengths in when it displayed directory and file lists under the archive
location /kojifiles.

Koji archive filenames are often be longer than mod_autoindex's default
of 20 bytes.

Configure mod_autoindex to show the entire filenames. This makes it
easier for users to browse /kojifiles to see at a glance which files are
stored.
2018-11-13 17:43:23 -05:00
Mike McLean
6cb431ad8c PR#1154: docs: update cheetah template user guide link
Merges #1154
https://pagure.io/koji/pull-request/1154
2018-11-13 11:10:30 -05:00
Ken Dreyer
34da1892ca docs: update cheetah template user guide link
This URL has moved. Update our link to match.
2018-11-13 11:10:24 -05:00
Mike McLean
1cbd035f53 PR#1148: docs: use "postgresql-setup initdb" to initialize database
Merges #1148
https://pagure.io/koji/pull-request/1148
2018-11-13 11:04:23 -05:00
Ken Dreyer
3a83f61292 docs: use "postgresql-setup initdb" to initialize database
Replace the old RHEL 5-era command with the newer command, available in
RHEL 7 and later.
2018-11-13 11:04:17 -05:00
Mike McLean
896d80a19f PR#1141: hub: document edit_tag argument types
Merges #1141
https://pagure.io/koji/pull-request/1141
2018-11-13 10:40:43 -05:00
Ken Dreyer
4dcb1e0707 hub: document edit_tag argument types
The editTag2 RPC expects arguments to be certain types. For example,
"arches" should be a single string of space-separated values, not a
Python list.

Document the types in the docstring for the edit_tag method.
2018-11-13 10:40:38 -05:00
Mike McLean
11ad8df9d4 PR#1138: cli: fix "at least" typo in help text
Merges #1138
https://pagure.io/koji/pull-request/1138
2018-11-02 17:54:28 -04:00
Ken Dreyer
686f647ac4 cli: fix "at least" typo in help text
"at lease" -> "at least"
2018-11-02 17:54:14 -04:00
Mike McLean
95efcce013 PR#1137: docs: unify "dnf" and "yum" instructions in server howto
Merges #1137
https://pagure.io/koji/pull-request/1137
2018-11-02 14:54:47 -04:00
Ken Dreyer
c4a6ae25ff docs: unify "dnf" and "yum" instructions in server howto
Drop the references to old EOL Fedora versions and simplify the package
install steps by using "Yum" everywhere.
2018-10-26 11:41:30 -06:00
Mike McLean
dc9e0dd2ed PR#1125: Ignore non-existing option when activate a session
Merges #1125
https://pagure.io/koji/pull-request/1125
2018-10-21 15:54:22 -04:00
Chenxiong Qi
5a3246f22a Ignore non-existing option when activate a session
For kerberos auth, if not login with a keytab and principal, those two
options may not be present in the incoming options.

Similarly, debug is also an optional option that could not exist.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-10-21 15:54:05 -04:00
Mike McLean
41593d6a4e PR#1111: Don't retry if certificate is not readable
Merges #1111
https://pagure.io/koji/pull-request/1111

Fixes: #1108
https://pagure.io/koji/issue/1108
Brew hangs on SSL cert permission issues
2018-10-18 14:46:49 +02:00
Tomas Kopecek
8e7414acff fix comment indentation for flake8 2018-10-18 14:46:35 +02:00
Tomas Kopecek
0fecbc969b Don't retry if certificate is not readable
Fixes: https://pagure.io/koji/issue/1108
2018-10-18 14:46:35 +02:00
Mike McLean
898de96d4d PR#928: check tag existence in list-tagged cmd and listTagged* APIs
Merges #928
https://pagure.io/koji/pull-request/928

Fixes: #933
https://pagure.io/koji/issue/933
arch option in list-tagged should be appended as list

Fixes: #926
https://pagure.io/koji/issue/926
Listing builds in deleted tag returns empty list
2018-10-18 14:39:49 +02:00
Yuming Zhu
d70f22ee1b fix timezone in test_list_tagged 2018-10-18 14:37:35 +02:00
Yuming Zhu
777fdeba28 cli: support multiple arches in list-tagged
fixes: #933
2018-10-18 14:37:35 +02:00
Yuming Zhu
b3bc4b6e85 unit test for cli list-tagged command 2018-10-18 14:37:35 +02:00
Yuming Zhu
4a89f8a145 check tag existence in list-tagged cmd and listTagged* APIs 2018-10-18 14:37:35 +02:00
Mike McLean
90a942f4ee PR#1127: only pass new incl_blocked call opt if it is explicitly needed
Merges #1127
https://pagure.io/koji/pull-request/1127

Fixes: #1126
https://pagure.io/koji/issue/1126
list-groups cli command fails on older server
2018-10-18 13:57:42 +02:00