Merge pull request #12044 from sbadia/gcs_storage_class

doc: gcs - Update storage_class documentation and tests
This commit is contained in:
Paddy 2017-02-17 16:13:29 -08:00 committed by GitHub
commit df2d63f69a

View File

@ -68,12 +68,12 @@ func TestAccStorageStorageClass(t *testing.T) {
CheckDestroy: testAccGoogleStorageDestroy,
Steps: []resource.TestStep{
{
Config: testGoogleStorageBucketsReaderStorageClass(bucketName, "STANDARD"),
Config: testGoogleStorageBucketsReaderStorageClass(bucketName, "MULTI_REGIONAL"),
Check: resource.ComposeTestCheckFunc(
testAccCheckCloudStorageBucketExists(
"google_storage_bucket.bucket", bucketName),
resource.TestCheckResourceAttr(
"google_storage_bucket.bucket", "storage_class", "STANDARD"),
"google_storage_bucket.bucket", "storage_class", "MULTI_REGIONAL"),
),
},
{
@ -86,12 +86,12 @@ func TestAccStorageStorageClass(t *testing.T) {
),
},
{
Config: testGoogleStorageBucketsReaderStorageClass(bucketName, "DURABLE_REDUCED_AVAILABILITY"),
Config: testGoogleStorageBucketsReaderStorageClass(bucketName, "REGIONAL"),
Check: resource.ComposeTestCheckFunc(
testAccCheckCloudStorageBucketExists(
"google_storage_bucket.bucket", bucketName),
resource.TestCheckResourceAttr(
"google_storage_bucket.bucket", "storage_class", "DURABLE_REDUCED_AVAILABILITY"),
"google_storage_bucket.bucket", "storage_class", "REGIONAL"),
),
},
},