storagetest: add a test of EnumerateBlobs w/ prefix of a blobref

Change-Id: Id865da5ba6c65e0110b0eb6c6d0bd45980d33105
This commit is contained in:
Brad Fitzpatrick 2014-03-18 13:47:02 -07:00
parent bfd3b3fdc8
commit bfe61b1297
1 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,13 @@ func Test(t *testing.T, fn func(*testing.T) (sto blobserver.Storage, cleanup fun
testEnumerate(t, sto, blobSizedRefs[3:4], after, 1)
}
// Enumerate 'after' with prefix of a blobref + limit
{
after := "a"
t.Logf("Testing Enumerate 'after' + 'limit' param; after %q, limit 1", after)
testEnumerate(t, sto, blobSizedRefs[:1], after, 1)
}
t.Logf("Testing Remove")
if err := sto.RemoveBlobs(blobRefs); err != nil {
if strings.Contains(err.Error(), "not implemented") {