| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
reference
BuildError.build_logs has a copy of the logs generator
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
|
|
| |
`create_api_error_from_http_exception()` is never tested in the original code
and will fail miserably when fed with empty `HTTPError` object
see fixes in requests for this behaviour: https://github.com/requests/requests/pull/3179
Signed-off-by: Constantine Peresypkin <pconstantine@gmail.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
| |
drivers used
Signed-off-by: Artem Bolshakov <either.free@gmail.com>
|
|
|
|
|
|
|
| |
Support new error message returned for image creation in:
https://github.com/moby/moby/pull/33005
Signed-off-by: Alfred Landrum <alfred@leakybucket.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
requests.Response objects evaluate as falsy when the status_code
attribute is in the 400-500 range. Therefore we are assured that
prior to this change, APIError would show `is_server_error() == False`
when generated with a 500-level response and `is_client_error() == False`
when generated with a 400-level response. This is not desirable.
Added some seemingly dry (not DRY) unit tests to ensure nothing silly
slips back in here.
Signed-off-by: alex-dr <alex@datarobot.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
| |
Makefile now runs tests against Docker 1.13 RC
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
| |
See #1086
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
|
|
|
|
| |
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
|
|
|
|
|
|
|
| |
* Complete main LICENSE
* Remove unnecessary licenses from individual files
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
|
|
|
| |
This changes raises docker.errors.NotFound on 404 errors. This gives
client code the ability to differentiate between "an image does not
exist" and "you are using the api incorrectly".
This inherits from docker.errors.APIError so it will not affect any
existing code.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Exported TLS configuration in tls.TLSConfig
* Merged exceptions packagee into pre-existing errors module
* Flake8 fixes
* Bug fixes
|
| |
|
| |
|
|
With more granular and specific exceptions user
will be able to handle errors properly.
Also changed raising of Exception to more specific
TypeError which python raises in case of wrong
arguments.
|