From 17b32e0aa0f944d4a4e62ed8697859f8c3a7be6f Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Mon, 1 Dec 2014 17:40:14 -0800 Subject: [PATCH] Add TODO about manifest tampering test --- api_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api_test.go b/api_test.go index cce4a251..41f3de69 100644 --- a/api_test.go +++ b/api_test.go @@ -250,6 +250,10 @@ func TestManifestAPI(t *testing.T) { t.Fatalf("should have received two invalid digest errors: %v", respErrs) } + // TODO(stevvooe): Add a test case where we take a mostly valid registry, + // tamper with the content and ensure that we get a unverified manifest + // error. + // Push 2 random layers expectedLayers := make(map[digest.Digest]io.ReadSeeker)