Tomas Kopecek
4ef0bc2051
use only relative paths + volumes in downloadTaskOutput
2017-03-28 11:46:47 +02:00
Mike McLean
8a08a3e796
volume opt for checkUpload
2017-03-28 11:46:47 +02:00
Tomas Kopecek
8868d184cb
propagate volume through hub
2017-03-28 11:46:47 +02:00
Tomas Kopecek
323987e376
Allow uploading files to non-default volumes
2017-03-28 11:46:47 +02:00
Mike McLean
1b46d0ad2e
debug/debug_xmlrpc should default to False
2017-03-20 15:34:12 -04:00
Chenxiong Qi
085711cd33
Add debug and debug_xmlrpc to default koji config
...
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2017-03-20 15:34:12 -04:00
Tomas Kopecek
93034f64f3
idioms
2017-03-17 11:35:53 -04:00
Tomas Kopecek
22bedc900d
whitespace formatting
2017-03-17 11:35:53 -04:00
Tomas Kopecek
cf214de792
remove sys.exc_type, exc_value, exc_traceback
2017-03-17 11:35:53 -04:00
Tomas Kopecek
70224c42c1
remove obsoleted StandardError
2017-03-17 11:35:53 -04:00
Tomas Kopecek
e355527649
remove deprecated "filer" calls
2017-03-17 11:35:53 -04:00
Tomas Kopecek
e4fe2b1735
Set compatrequests defaults same as requests
...
Python-requests iter_content has chunk_size set to 1. Let's do it same
in compatrequests, so we don't confuse users.
http://docs.python-requests.org/en/master/_modules/requests/models/#Response.iter_content
2017-03-16 09:54:58 -04:00
Tomas Kopecek
bcef98b1c4
remove unused function parse_timestamp
2017-03-15 16:30:50 +01:00
Mike McLean
06818122ab
stop mangling psycopg2.extensions
2017-03-14 09:51:28 -04:00
Tomas Kopecek
186d6db4b2
Handle empty file upload
2017-03-07 18:22:32 +01:00
Tomas Kopecek
cc9fff9840
remove has_key (not working in python3)
2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465
use new exception syntax
2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f
print statement -> print function
2017-02-28 10:55:56 -05:00
Mike McLean
6f45b92ac5
fixEncodingRecurse function
2017-02-16 16:26:42 -05:00
Mike McLean
1088e5f4fb
new hub CheckClientIP option
2017-02-14 11:27:55 -05:00
Mike McLean
eb7a1e369f
check http request status before attempting to decode response
2017-02-14 11:19:15 -05:00
Mike Bonnet
f61b223723
convert from pygresql to psycopg2
2017-01-17 14:36:14 -05:00
Patrick Uiterwijk
253161f229
Allow principal and keytab in cli config
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-01-17 14:12:19 -05:00
Tomas Kopecek
0407185901
Don't require cert/serverca for kojid
...
Now is demanded from user to supply kojid-specific configuration or
previously expected files are used as defaults
(/etc/kojid/serverca.crt). So, user has no option to not use these and
use just system-wide certificates.
If these values are not specified, python-requests would fall back to
/etc/pki supplied files. If there is also ssl_verify=True (which is
default), everything should work correctly.
2017-01-13 10:46:41 -05:00
Tomas Kopecek
5612b1a709
Error message for missing certificates
2017-01-13 10:46:41 -05:00
Tomas Kopecek
5ba8ed9b22
Basic test for task canfail
2017-01-12 14:28:22 -05:00
Mike McLean
aed4682411
don't error when waiting on 'canfail' tasks
2017-01-12 14:28:22 -05:00
Mike McLean
316ed1f952
fix ref to task id
2017-01-12 14:28:22 -05:00
Mike McLean
3a1d13a7b5
adjustments to WaitTestTask
2017-01-12 14:28:22 -05:00
Mike McLean
00f387b226
canfail option for BaseTaskHandler.wait()
2017-01-12 14:28:22 -05:00
Mike McLean
ab99443414
Update exception syntax in rmtree()
2016-12-19 12:31:01 -05:00
Mike McLean
d4590637a1
replace old rmtree with the new one
2016-12-19 12:28:10 -05:00
Mike McLean
8f42fda97d
keep going on errors
2016-12-19 12:28:10 -05:00
Mike McLean
949f23dd7b
add a note
2016-12-19 12:28:10 -05:00
Mike McLean
e58850eb05
first stab at rmtree for long filenames
2016-12-19 12:28:10 -05:00
Tomas Kopecek
f4ede5339f
Update http:// to https:// in code
...
Where https is working, code was updated to use it.
2016-12-19 11:49:11 -05:00
Mike McLean
a12f26b07d
add another pattern to is_requests_cert_error()
2016-12-08 18:37:02 -05:00
Mike McLean
8d3a736637
allow setting no_ssl_verify in client config
2016-12-08 18:37:02 -05:00
Mike McLean
bc0e8c0856
avoid try..except..finally
2016-11-23 11:14:23 -05:00
Mike McLean
127d38fbef
don't mask kwargs in callMethod
2016-11-23 11:05:48 -05:00
Patrick Uiterwijk
6ec1fc28e4
Restore baseurl to original if GSSAPI login didn't work
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:58:21 -05:00
Patrick Uiterwijk
fc176d7de4
Disable automatic request retries for GSSAPI authentication
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:52:41 -05:00
Patrick Uiterwijk
e85e442dcd
Allow callMethod calls to specify that no retries should be attempted
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:52:39 -05:00
Patrick Uiterwijk
699865de19
Determine if a request error is caused by certificates with requests
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-23 10:52:29 -05:00
Patrick Uiterwijk
c1593411db
Header values need to be strings
...
This has seemingly always been documented, and broken in a recent release.
Reference: https://github.com/kennethreitz/requests/issues/3477
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-22 23:26:19 +00:00
Patrick Uiterwijk
480cdfb540
Implement GSSAPI login
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-11-22 16:45:31 -05:00
Mike McLean
ed986086dc
uncovered import exception
2016-11-22 16:41:31 -05:00
Mike McLean
f3a6bc86bc
more smarts for ssl bug workaround
2016-11-22 16:41:31 -05:00
Mike McLean
20d67b5c63
ssl hack 2
2016-11-22 16:41:31 -05:00
Mike McLean
f86ca05c0e
force a new session in ssl_login
2016-11-22 16:41:31 -05:00