File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ var test02Push = func() {
277277 Equal (http .StatusCreated ),
278278 Equal (http .StatusAccepted ),
279279 ))
280- Expect (resp .GetRelativeLocation ()).To (ContainSubstring ( crossmountNamespace ))
280+ Expect (resp .GetRelativeLocation ()).To (Equal ( fmt . Sprintf ( "/v2/%s/blobs/%s" , crossmountNamespace , testBlobADigest ) ))
281281
282282 lastResponse = resp
283283 })
@@ -296,8 +296,7 @@ var test02Push = func() {
296296 SkipIfDisabled (push )
297297 RunOnlyIf (lastResponse .StatusCode () == http .StatusAccepted )
298298
299- loc := lastResponse .GetRelativeLocation ()
300- Expect (loc ).To (ContainSubstring ("/blobs/uploads/" ))
299+ Expect (lastResponse .GetRelativeLocation ()).To (HavePrefix (fmt .Sprintf ("/v2/%s/blobs/uploads/" , crossmountNamespace )))
301300 })
302301
303302 g .Specify ("Cross-mounting without from, and automatic content discovery enabled should return a 201" , func () {
You can’t perform that action at this time.
0 commit comments