jib
jib copied to clipboard
Enhance RegistryClient tests
We should have tests around the RegistryClient network requests. Maybe can make TestWebServer
take a list of expect-response pairs.
Originally posted by @briandealwis in https://github.com/GoogleContainerTools/jib/pull/1793/review_comment/create
Sounds good. Just don't start working on this now; I have a branch modifying TestWebServer
that I was planning to push at some far point in the future, and I think I should push that now.
@louismurerwa some tests we can add:
-
RegistryClient.pullManifest()
-
RegistryClient.pushManifest()
-
RegistryClient.checkBlob()
-
RegistryClient.pullBlob()
-
RegistryClient.pushBlob()