summaryrefslogtreecommitdiff
path: root/tests/unit/auth_test.py
Commit message (Collapse)AuthorAgeFilesLines
* 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>