Skip to content

Commit

Permalink
Blobstore: Extend S3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nosmoht committed Mar 29, 2020
1 parent 5922735 commit 379ee3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blobstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ func TestBlobstoreFile(t *testing.T) {
bsCreated, err := client.BlobstoreRead(bs.Name)
assert.Nil(t, err)
assert.NotNil(t, bsCreated)
// Path not returned by API, not possible to test :-/
// assert.Equal(t, bsPath, bsCreated.Path)
assert.Equal(t, bsPath, bsCreated.Path)
assert.Equal(t, bsType, bsCreated.Type)
assert.Equal(t, 0, bsCreated.BlobCount)
assert.Nil(t, bsCreated.BlobstoreSoftQuota)
Expand Down Expand Up @@ -91,6 +90,9 @@ func TestBlobstoreS3(t *testing.T) {
assert.Nil(t, err)
assert.NotNil(t, s3BS)
assert.Equal(t, BlobstoreTypeS3, s3BS.Type)
assert.NotNil(t, s3BS.BlobstoreS3BucketConfiguration)
assert.NotNil(t, s3BS.BlobstoreS3BucketConfiguration.BlobstoreS3Bucket)
assert.NotNil(t, s3BS.BlobstoreS3BucketConfiguration.BlobstoreS3BucketSecurity)

err = client.BlobstoreDelete(bs.Name)
assert.Nil(t, err)
Expand Down

0 comments on commit 379ee3a

Please sign in to comment.