summaryrefslogtreecommitdiff
path: root/tests/unit/auth_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Add some credHelpers testsc6374-credhelpersJoffrey F2018-11-301-51/+230
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Make AuthConfig a dict subclass for backward-compatibilityJoffrey F2018-11-301-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Modernize auth managementJoffrey F2018-11-281-27/+29
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix support for legacy .dockercfg auth config formatJoffrey F2018-06-271-12/+54
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix authconfig resolution when credStore is used combined with login()1861-credstore_loginJoffrey F2018-02-131-0/+13
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve separation between auth_configs and general_configsimprove_authconfig_genconfig_separationJoffrey F2018-01-301-38/+14
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Use config.json for detachKeysFumiaki MATSUSHIMA2018-01-301-53/+0
| | | | Signed-off-by: Fumiaki Matsushima <mtsmfm@gmail.com>
* Use pytest assertspytest-assertsJoffrey F2018-01-301-172/+112
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Support credHelpers section in config.json1633-credhelpers-supportJoffrey F2017-06-221-0/+51
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix auth config path on WindowsAanand Prasad2016-12-021-0/+53
| | | | | | | The Engine client looks *only* at the USERPROFILE environment variable on Windows, so we should do that too. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Drop support for Python 2.6Ben Firshman2016-11-221-6/+5
| | | | | | | Because it's ancient. If you're still using it, you can use an old version of docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Make docker.auth a single fileBen Firshman2016-11-221-4/+2
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Add support for identity tokens in config file.identity-token-supportJoffrey F2016-09-151-1/+25
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Don't raise InvalidConfigError when auth dict doesn't have an 'auth' keyJoffrey F2016-04-051-3/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Don't break when parsing unknown config keys927-config-parsingJoffrey F2016-02-091-0/+29
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Add HttpHeaders support in load_configPavel Kravchenko2016-01-181-0/+24
| | | | Signed-off-by: Pavel Kravchenko <kpavel@il.ibm.com>
* Treat 'index.docker.io' repo names as 'docker.io'Aanand Prasad2015-12-101-4/+27
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Refactor resolve_authconfig testsAanand Prasad2015-12-101-32/+51
| | | | | | | The structure of the fake config dictionary was not reflective of what actual parsed config looks like. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Update auth.resolve_repository_nameJoffrey F2015-11-231-7/+28
| | | | | | | | | | | More relaxed version that matches the constraints imposed by the current version of the docker daemon. Few unit tests to verify the new cases. Client.pull was trying to set the tag value when it wasn't supposed to, fixed now. utils.parse_repository_tag is simpler and supports @sha... notation Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix #627Alejandro Brito Monedero2015-10-291-0/+30
| | | | | | | | | | | | Docker-py couldn't pull private images if the account have non ascii chars in either user or password. It that case an exception ending with no auth credentials. Instead docker client (golang) don't suffer this issue. Also add a test to check the login or password even with non ascii char have a valid auth dictionary Signed-off-by: Alejandro Brito Monedero <abrito@alea-soluciones.com>
* Fix auth.load_config bug calling parse_authAlejandro Brito Monedero2015-10-271-0/+29
| | | | | | | | | When load_config found and auths section it didn't call parse_auth only with the auths section. Instead it called parse_auth with all the configuration. There is also a test to check this case Signed-off-by: Alejandro Brito Monedero <alejandro.monedero@gmail.com>
* Reorganize test directoriesreorganize_testsJoffrey F2015-10-211-0/+289
More clearly separate unit and integration tests Allow splitting into multiple files Cleaner Signed-off-by: Joffrey F <joffrey@docker.com>