Skip to content

Commit

Permalink
DocDB: aws_docdb_cluster_snapshot code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fewstera committed Feb 7, 2019
1 parent 4b494a6 commit b56515a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/resource_aws_docdb_cluster_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestAccAWSDocDBClusterSnapshot_basic(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckDocDBClusterSnapshotExists(resourceName, &dbClusterSnapshot),
resource.TestCheckResourceAttrSet(resourceName, "availability_zones.#"),
resource.TestMatchResourceAttr(resourceName, "db_cluster_snapshot_arn", regexp.MustCompile(`^arn:[^:]+:(rds|docdb):[^:]+:\d{12}:cluster-snapshot:.+`)),
testAccMatchResourceAttrRegionalARN(resourceName, "db_cluster_snapshot_arn", "rds", regexp.MustCompile(`cluster-snapshot:.+`)),
resource.TestCheckResourceAttrSet(resourceName, "engine"),
resource.TestCheckResourceAttrSet(resourceName, "engine_version"),
resource.TestCheckResourceAttr(resourceName, "kms_key_id", ""),
Expand All @@ -36,7 +36,7 @@ func TestAccAWSDocDBClusterSnapshot_basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "source_db_cluster_snapshot_arn", ""),
resource.TestCheckResourceAttr(resourceName, "status", "available"),
resource.TestCheckResourceAttr(resourceName, "storage_encrypted", "false"),
resource.TestMatchResourceAttr(resourceName, "vpc_id", regexp.MustCompile(`^vpc-.+`)),
resource.TestCheckResourceAttrPair(resourceName, "vpc_id", "aws_vpc.test", "id"),
),
},
{
Expand Down
4 changes: 4 additions & 0 deletions website/aws.erb
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,10 @@
<a href="/docs/providers/aws/r/docdb_cluster_parameter_group.html">aws_docdb_cluster_parameter_group</a>
</li>

<li<%= sidebar_current("docs-aws-resource-docdb-cluster-snapshot") %>>
<a href="/docs/providers/aws/r/docdb_cluster_snapshot.html">aws_docdb_cluster_snapshot</a>
</li>

<li<%= sidebar_current("docs-aws-resource-docdb-subnet-group") %>>
<a href="/docs/providers/aws/r/docdb_subnet_group.html">aws_docdb_subnet_group</a>
</li>
Expand Down

0 comments on commit b56515a

Please sign in to comment.