mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
dedupe: stat blob path before creating link
This commit is contained in:
committed by
Ramkumar Chinchani
parent
f10c174c0e
commit
53b5fa6493
@@ -49,5 +49,10 @@ func TestCache(t *testing.T) {
|
||||
|
||||
err = c.DeleteBlob("key", "bogusValue")
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
// try to insert empty path
|
||||
err = c.PutBlob("key", "")
|
||||
So(err, ShouldNotBeNil)
|
||||
So(err, ShouldEqual, errors.ErrEmptyValue)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user