@@ -57,6 +57,20 @@ var test03ContentDiscovery = func() {
5757 BeNumerically ("<" , 300 )))
5858 })
5959
60+ g .Specify ("Populate registry with referred-to manifest" , func () {
61+ SkipIfDisabled (contentDiscovery )
62+ RunOnlyIf (runContentDiscoverySetup )
63+ req := client .NewRequest (reggie .PUT , "/v2/<name>/manifests/<reference>" ,
64+ reggie .WithReference ("test-something-points-to-me" )).
65+ SetHeader ("Content-Type" , "application/vnd.oci.image.manifest.v1+json" ).
66+ SetBody (manifests [1 ].Content )
67+ resp , err := client .Do (req )
68+ Expect (err ).To (BeNil ())
69+ Expect (resp .StatusCode ()).To (SatisfyAll (
70+ BeNumerically (">=" , 200 ),
71+ BeNumerically ("<" , 300 )))
72+ })
73+
6074 g .Specify ("Populate registry with test tags" , func () {
6175 SkipIfDisabled (contentDiscovery )
6276 RunOnlyIf (runContentDiscoverySetup )
@@ -79,20 +93,6 @@ var test03ContentDiscovery = func() {
7993 _ = err
8094 })
8195
82- g .Specify ("Populate registry with referred-to manifest" , func () {
83- SkipIfDisabled (contentDiscovery )
84- RunOnlyIf (runContentDiscoverySetup )
85- req := client .NewRequest (reggie .PUT , "/v2/<name>/manifests/<reference>" ,
86- reggie .WithReference ("test-something-points-to-me" )).
87- SetHeader ("Content-Type" , "application/vnd.oci.image.manifest.v1+json" ).
88- SetBody (manifests [1 ].Content )
89- resp , err := client .Do (req )
90- Expect (err ).To (BeNil ())
91- Expect (resp .StatusCode ()).To (SatisfyAll (
92- BeNumerically (">=" , 200 ),
93- BeNumerically ("<" , 300 )))
94- })
95-
9696 g .Specify ("Populate registry with test tags (no push)" , func () {
9797 SkipIfDisabled (contentDiscovery )
9898 RunOnlyIfNot (runContentDiscoverySetup )
0 commit comments