From 379ee3a8f090e06c4f229d9c751b8026a184e0c4 Mon Sep 17 00:00:00 2001 From: Thomas Krahn Date: Sun, 29 Mar 2020 19:55:32 +0200 Subject: [PATCH] Blobstore: Extend S3 test --- blobstore_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blobstore_test.go b/blobstore_test.go index 22511c1..baa3e70 100644 --- a/blobstore_test.go +++ b/blobstore_test.go @@ -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) @@ -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)