Commit Graph

318 Commits

Author SHA1 Message Date
Garrett Holmstrom b4ff33236d Add a setter for BaseRequest.auth 2016-12-06 11:03:20 -08:00
Garrett Holmstrom 383a7d3908 Post-review cleanup 2016-11-18 13:29:18 -08:00
Garrett Holmstrom b27d764d53 Merge initial pass at python 3 support
Conflicts:
	requestbuilder/auth/aws.py
	requestbuilder/command.py
2016-11-18 13:22:36 -08:00
Garrett Holmstrom bbe79ace78 Remove a line of old test code 2016-11-18 13:21:13 -08:00
Garrett Holmstrom 25f514736c Realign request log messages 2016-11-18 12:54:43 -08:00
Garrett Holmstrom 9c38e3f20f Don't overwrite preexisting ConfigView options
Setting up a ConfigView based on a --region CLI option and then passing
that view to another RegionConfigurableMixin command caused the latter
to overwrite the former's settings unless the former also passed the
--region option along with it.  The update_config_view now overwrites
preexisting settings only when they are explicitly passed to that
method.

Example of this happening:
https://eucalyptus.atlassian.net/browse/TOOLS-635
2016-11-16 19:17:15 -08:00
Garrett Holmstrom 588c4baed7 Ensure we only create one root logger 2016-11-14 16:15:55 -08:00
Garrett Holmstrom c41d7590c6 Eliminate populate_parser 2016-11-14 16:15:55 -08:00
Garrett Holmstrom ea0e426e65 Make bullets and margin changes trigger new description paragraphs 2016-11-14 16:15:55 -08:00
Garrett Holmstrom 928b19226f Eliminate _post_init 2016-11-01 13:18:50 -07:00
Garrett Holmstrom c2a58e08ce Add a NOTICE log level and method 2016-11-01 13:18:50 -07:00
Garrett Holmstrom ccf1f8bbe4 Note that I want to rename configure to setup 2016-11-01 13:18:50 -07:00
Garrett Holmstrom ac8ecb68ee Remove BaseRequest.status 2016-10-14 16:03:37 -07:00
Garrett Holmstrom 574aeea3f0 Fall back to docstrings for descriptions 2016-10-14 16:03:37 -07:00
Garrett Holmstrom 2b563be0ed Deprecate positional booleans in MutuallyExclusiveArgGroups 2016-10-14 16:03:37 -07:00
Thomas Goirand 48b70a71af Add Python 3 compatibility. 2016-08-09 14:18:15 +02:00
Castedo Ellerman 4457143f73 parse contents, not name, of environment variable
fix to parse contents and not name of environment variable for default region
2016-04-27 11:36:31 +00:00
Garrett Holmstrom 9d2eade234 Show empty values when logging request params 2016-03-22 17:08:42 -07:00
Garrett Holmstrom 83c6da8d11 Make help output ignore filters with suppressed help 2016-03-22 14:07:08 -07:00
Garrett Holmstrom 9b70d089f3 Placate pylint 2016-03-21 17:08:37 -07:00
Garrett Holmstrom be1a12a404 Fix float formatting 2016-03-21 17:07:50 -07:00
Garrett Holmstrom ebac3767ab HmacV4Auth: don't sign Connection headers
Reverse proxies like rewriting Connection headers, so in this commit we
blacklist it from Sigv4's list of signed headers to prevent validation
failures when connections go through them.

See https://eucalyptus.atlassian.net/browse/TOOLS-605
2016-03-21 16:18:40 -07:00
Garrett Holmstrom d57f6e9cc0 Log when region or user are set 2016-03-21 15:50:40 -07:00
Garrett Holmstrom 4f21f8bcf3 Send float values even when they are 0 2016-03-21 14:48:37 -07:00
Garrett Holmstrom 6579df1e4a Allow more than one URL_ENVVAR to be used 2016-03-08 16:01:12 -08:00
Garrett Holmstrom 31b686beee Port to requests 2 and clean up proxy code 2015-09-21 13:27:39 -07:00
Garrett Holmstrom e2589b65ec Handle redirects ourselves so they are always signed
Requests 2.3 strips Authorization headers when redirects send requests
to URLs with different DNS names, which results in requests with no
Authorization headers at all.  We address this by switching off its
internal redirect handling.

Note that the means by which this is done does not exist in requests
1.1.
2015-09-21 13:27:39 -07:00
Garrett Holmstrom 88a298b0d2 Merge branch 'maint-0.3'
Conflicts:
	requestbuilder/__init__.py
2015-07-28 16:38:33 -07:00
Garrett Holmstrom d5db69cc84 Version bump (0.3.5) 2015-07-28 16:36:31 -07:00
Garrett Holmstrom 0184f72cdd Don't document --porcelain yet
The --porcelain implementation apparently seems to be quite buggy, so
for now we'll stop exposing it to users.
2015-07-28 16:35:08 -07:00
Garrett Holmstrom addd4ea645 Merge branch 'maint-0.3'
Conflicts:
	requestbuilder/__init__.py
2015-07-21 17:32:02 -07:00
Garrett Holmstrom 00b33963bd Version bump (0.3.4) 2015-07-21 17:31:48 -07:00
Garrett Holmstrom e00b8e2c8c Fix verify-ssl on requests 1.1
Requests 1.1 ignores sessions' "verify" attributes, forcing us to supply
that parameter when sending each request.
2015-07-21 17:18:55 -07:00
Garrett Holmstrom 339f366935 Make socket error messages a little nicer 2015-07-21 15:58:10 -07:00
Garrett Holmstrom ce1ef6fbe5 Handle retries with unseekable files correctly 2015-07-21 15:56:55 -07:00
Garrett Holmstrom 707157cd97 Disable requests/urllib3's built-in retrying
We do our own request retrying so we can re-sign requests and log
everything, so we should disable urllib3's internal retrying.
2015-07-20 17:52:09 -07:00
Garrett Holmstrom 03f2ba4880 Merge branch 'maint-0.3'
Conflicts:
	requestbuilder/__init__.py
2015-07-20 15:21:18 -07:00
Garrett Holmstrom daf61b55be Version bump (0.3.3) 2015-07-20 15:18:22 -07:00
Garrett Holmstrom 3418795855 Fix apply_to_request_params deprecation warning 2015-07-20 15:18:22 -07:00
Garrett Holmstrom 548fc7f31f Fix broken tabify type conversion 2015-07-17 15:45:27 -07:00
Garrett Holmstrom 1f3d5e988c Merge branch 'maint-0.3'
Conflicts:
	requestbuilder/__init__.py
2015-07-16 16:01:29 -07:00
Garrett Holmstrom 56945be1a4 Version bump (0.3.1) 2015-07-16 16:00:32 -07:00
Garrett Holmstrom 93ca8f95e4 Fix StreamLogger initialization (thanks, python 2.7) 2015-07-16 16:00:32 -07:00
Garrett Holmstrom 5dd4367eeb Version bump (devel) 2015-07-15 17:10:32 -07:00
Garrett Holmstrom 80fa0b2be9 Version bump (0.3.0) 2015-07-15 17:09:10 -07:00
Garrett Holmstrom 54d443d346 A little pylint cleanup 2015-07-15 16:55:34 -07:00
Garrett Holmstrom 8d0707ce6c Fix machine-readable progress when maxval==None 2015-07-15 16:38:16 -07:00
Garrett Holmstrom 3ba71b62ea Add newlines to machine-readable progress 2015-07-15 16:36:17 -07:00
Garrett Holmstrom 8a269f13c7 Split mixins into several modules 2015-07-15 16:35:37 -07:00
Garrett Holmstrom 008bb79d67 Add TableOutputMixin 2015-07-15 16:11:15 -07:00