tests: Add API suite tests back for object api. (#1352)

This commit is contained in:
Harshavardhana
2016-04-21 23:40:01 -07:00
parent 444d1f8a65
commit d63d17012d
5 changed files with 206 additions and 159 deletions
+5
View File
@@ -135,6 +135,11 @@ func (o objectAPI) GetObject(bucket, object string, startOffset int64) (io.ReadC
return nil, probe.NewError(BucketNotFound{Bucket: bucket})
} else if e == errFileNotFound {
return nil, probe.NewError(ObjectNotFound{Bucket: bucket, Object: object})
} else if e == errIsNotRegular {
return nil, probe.NewError(ObjectExistsAsPrefix{
Bucket: bucket,
Object: object,
})
}
return nil, probe.NewError(e)
}