Commits on Jul 12, 2016
  1. Change double underscore in test case names for _set_auth_headers

    jmichalicek committed Jul 12, 2016
    * Change test__set_auth_headers_* methods to test_set_auth_headers_*
    Signed-off-by: Justin Michalicek <>
  2. Update build unit tests

    jmichalicek committed Jul 7, 2016
    * Test that the request from build when the client has
      auth configs contains the correct X-Registry-Config header
    * Test that BuildApiMixin._set_auth_headers() updates the passed
      in headers dict with auth data from the client
    * Test that BuildApiMixin._set_auth_headers() leaves headers dict intact
      when there is no _auth_config on the client.
    Signed-off-by: Justin Michalicek <>
  3. Pass X-Registry-Auth when building an image

    jmichalicek committed Jul 6, 2016
    * Initialize headers variable in as a dict rather
      than as None.  This way the correct object gets passed to
      _set_auth_headers() even if no headers were set in build()
    * Changing object from None to {} in BuildApiMixin._set_auth_headers()
      removed because it changes the object reference, so has no effect on
      calling code.
    Signed-off-by: Justin Michalicek <>