Skip to content

Conversation

@mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Mar 27, 2017

This depends on, and includes, #254 and #255 , and adds tests for the new functionality introduced in #255. This is split from #255 so that the “how to test the docker registry client” discussion is not blocking merging of the code.

See individual commit messages for a bit more detail.

@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 5 times, most recently from 4055fcc to ba1d0aa Compare April 4, 2017 17:45
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from 859c64d to 936827d Compare April 12, 2017 16:22
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 3 times, most recently from faa0ff4 to 989ddcb Compare April 27, 2017 16:57
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from 989ddcb to 0e44572 Compare April 28, 2017 19:43
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 5 times, most recently from a3c6480 to 7400bf5 Compare May 12, 2017 17:29
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from bc76afb to 748ff00 Compare May 24, 2017 20:12
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from 7084eda to d798f69 Compare May 30, 2017 17:53
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 3 times, most recently from 7d4f00a to ae3e3ce Compare June 6, 2017 16:43
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 3 times, most recently from 0320ab0 to c6561e5 Compare June 16, 2017 23:04
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from 48d6951 to 1304b5c Compare June 28, 2017 16:28
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from 18def57 to cf7cfcf Compare July 13, 2017 17:26
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from 22b64f9 to 77af62a Compare July 17, 2018 23:28
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from 34b2fb3 to 8cff7a2 Compare August 27, 2018 15:40
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from 8cff7a2 to 93160ce Compare September 29, 2018 18:01
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from a230533 to bd2c852 Compare October 17, 2018 02:56
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from bd2c852 to d5905ef Compare November 3, 2018 00:13
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from d5905ef to d32526b Compare November 29, 2018 14:06
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from d32526b to 4d2173a Compare December 6, 2018 23:43
@rhatdan
Copy link
Member

rhatdan commented Apr 25, 2019

@mtrmac @vrothberg What should we do with this PR? Should we rebase and move forward or should we close it?

@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from 4d2173a to ed05ff5 Compare June 1, 2019 13:32
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jun 1, 2019

The discussion whether to do this at all should happen in #254. Until then, rebased.

@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 3 times, most recently from efadbf5 to 1929f0c Compare June 20, 2019 18:37
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from 1929f0c to a088df4 Compare December 11, 2019 15:23
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from a088df4 to c1733d6 Compare January 9, 2020 22:08
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch 2 times, most recently from c2e0b98 to 2b476f8 Compare May 4, 2020 16:50
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from 2b476f8 to efe12a0 Compare May 11, 2020 22:00
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from efe12a0 to a35541c Compare January 18, 2021 17:25
…er, add an example

This allows running the test against a live registry once, manually
inspecting the requests/responses to be as expected, and then running
all tests against a “recording” of the requests/responses, completely
off-line.

Also adds a simple test for GetManifest to demonstrate the use of the
mechanism.

The httpWrapper mechanism is intended purely for tests, and not intended to be
exposed to external users; they should use types.SystemContext.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
… at the dockerClient helper level, and in the dockerImageSource case.

Does not actually test all of dockerImageSource.GetSignatures (including
the support autodetection).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
… primarily to test the supportsSignatures parsing, for now;
also smoke-tests Bearer challenges and http/https detection.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac force-pushed the x-registry-supports-signatures-tests branch from a35541c to b23c3b0 Compare January 18, 2021 17:58
@mtrmac
Copy link
Collaborator Author

mtrmac commented Jan 19, 2021

Not valuable enough.

@mtrmac mtrmac closed this Jan 19, 2021
@mtrmac mtrmac deleted the x-registry-supports-signatures-tests branch January 19, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants