Commit graph

2212 commits

Author SHA1 Message Date
Mike McLean
97264e690c let koji-gc config set more session options 2016-11-22 16:41:31 -05:00
Mike McLean
89ca42f224 use grab_session_options everywhere 2016-11-22 16:41:31 -05:00
Mike McLean
ef790857ad fix return 2016-11-22 16:41:31 -05:00
Mike McLean
de5fe47111 koji-gc: remove --network-hack, use grab_session_options 2016-11-22 16:41:31 -05:00
Mike McLean
3d16485c6f grab_session_options function 2016-11-22 16:41:31 -05:00
Mike McLean
33e1bdee97 force https when using ssl auth 2016-11-22 16:41:31 -05:00
Mike McLean
7b33327030 avoid tickling race condition with common keep alive timeout setting
The default KeepAliveTimeout in Apache httpd 2.4 is 5 seconds. Sleeping for that
same time and then resuming calls can tickle a race condition.

The previous commit /should/ catch that now, but there's no sense hitting that
error so often.

See also: https://github.com/mikem23/keepalive-race
2016-11-22 16:41:31 -05:00
Mike McLean
0a5650cf28 update connection error retry code
see also: https://github.com/mikem23/keepalive-race
2016-11-22 16:41:31 -05:00
Mike McLean
a6440820a6 honor verify in compatrequests 2016-11-22 16:41:31 -05:00
Mike McLean
1caa748a6d avoid with statement for now 2016-11-22 16:41:31 -05:00
Mike McLean
4e872d67b7 suppress warnings in requests 2016-11-22 16:41:31 -05:00
Mike McLean
c1e91486bd no_ssl_verify session opt 2016-11-22 16:41:31 -05:00
Mike McLean
2ac8d7a701 only use default certs if they exist 2016-11-22 16:41:31 -05:00
Mike McLean
d85fc2bed0 always pass serverca 2016-11-22 16:41:31 -05:00
Mike McLean
be7c97eacd move cert date directly into client session opts 2016-11-22 16:41:31 -05:00
Mike McLean
f8c58e9f64 fix post handler 2016-11-22 16:41:31 -05:00
Mike McLean
b13994082a use compatrequests if requests no present 2016-11-22 16:41:31 -05:00
Mike McLean
c3556dee43 add config for use_old_ssl. make new session on errors 2016-11-22 16:41:31 -05:00
Mike McLean
17e79df68b use correct port 2016-11-22 16:41:31 -05:00
Mike McLean
33da7cf84d trying to fix auth 2016-11-22 16:41:31 -05:00
Mike McLean
6b02479210 compat mode works anonymously 2016-11-22 16:41:31 -05:00
Mike McLean
6bbf9afdc8 don't assume content type is given 2016-11-22 16:41:31 -05:00
Mike McLean
45dd3bf187 working? 2016-11-22 16:41:31 -05:00
Mike McLean
a211a56401 More work on compatrequests 2016-11-22 16:41:31 -05:00
Mike McLean
ce768fc59e stub for compatrequests 2016-11-22 16:41:31 -05:00
Mike McLean
9b4ccd18ec stop mocking removed function in tests 2016-11-22 16:41:31 -05:00
Mike McLean
6f08b8d064 fix handler url for upload 2016-11-22 16:41:31 -05:00
Mike McLean
aed2a1a054 honor debug_xmlrpc 2016-11-22 16:41:31 -05:00
Mike McLean
9af4c393f5 move is_cert_error(); require python-requests 2016-11-22 16:41:31 -05:00
Mike McLean
37bd3c460b ssl auth working 2016-11-22 16:41:31 -05:00
Mike McLean
fc8a8c6582 parse host from baseurl in _serverPrincipal()
krb auth working now
2016-11-22 16:41:31 -05:00
Mike McLean
eff7bad45a pull requests bits from py3 work
auth not working
untrusted https not working
2016-11-22 16:41:31 -05:00
Mike McLean
e3f3756e0d Merge #212 direct tag functions for hub 2016-11-21 17:41:15 +00:00
Mike McLean
8e1e72bf15 include tag_extra data when deleting a tag 2016-11-21 12:37:49 -05:00
Mike McLean
b48e3f23a4 handle long type for tag ids 2016-11-21 12:37:49 -05:00
Mike McLean
caf17b6a3e rename test file 2016-11-21 12:37:49 -05:00
Mike McLean
ce59d83dc8 test for _untag_build 2016-11-21 12:37:49 -05:00
Mike McLean
6f0685c07f fix up test case 2016-11-21 12:37:49 -05:00
Mike McLean
434bbb9c46 more direct tag calls, also a fix 2016-11-21 12:37:49 -05:00
Mike McLean
63168e4a41 _direct_pkglist_remove 2016-11-21 12:37:49 -05:00
Mike McLean
3d0791ff10 _direct_untag_build for consistency 2016-11-21 12:37:49 -05:00
Mike McLean
38a42e9997 stub test for _tag_build 2016-11-21 12:37:49 -05:00
Mike McLean
4c6992a090 unit test for create_tag() 2016-11-21 12:37:49 -05:00
Mike McLean
12d339d584 more pkglist... 2016-11-21 12:37:49 -05:00
Mike McLean
06692a23cc also pkglist_add 2016-11-21 12:37:49 -05:00
Mike McLean
71f1b22dda provide some lower-level functions sans access check 2016-11-21 12:37:49 -05:00
Mike McLean
d550938b50 PR#210 ut: cli - for handle_maven_build and some functions related in koji.utils
Merges #210
https://pagure.io/koji/pull-request/210
2016-11-21 11:00:08 -05:00
Yuming Zhu
4a5b2d0b21 ut: test case for koji.util.tsort() 2016-11-21 10:52:32 -05:00
Yuming Zhu
de5a34288a ut: koji.utils - cases for related Maven build utils 2016-11-21 10:52:32 -05:00
Yuming Zhu
edbed0a167 ut: format testcases 2016-11-21 10:52:32 -05:00