Skip to content

Commit

Permalink
[review] terraform fmt test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidquarles committed Nov 17, 2017
1 parent 9d99eb6 commit e485ddd
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions google/resource_container_node_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,22 +595,25 @@ resource "google_container_node_pool" "np_with_node_config_scope_alias" {

var testAccContainerNodePool_withManagement = fmt.Sprintf(`
resource "google_container_cluster" "cluster" {
name = "tf-cluster-nodepool-test-%s"
zone = "us-central1-a"
initial_node_count = 1
name = "tf-cluster-nodepool-test-%s"
zone = "us-central1-a"
initial_node_count = 1
}
resource "google_container_node_pool" "np_with_management" {
name = "tf-nodepool-test-%s"
zone = "us-central1-a"
cluster = "${google_container_cluster.cluster.name}"
initial_node_count = 1
management {
auto_repair = true
auto_upgrade = true
}
node_config {
machine_type = "g1-small"
disk_size_gb = 10
oauth_scopes = ["compute-rw", "storage-ro", "logging-write", "monitoring"]
}
name = "tf-nodepool-test-%s"
zone = "us-central1-a"
cluster = "${google_container_cluster.cluster.name}"
initial_node_count = 1
management {
auto_repair = true
auto_upgrade = true
}
node_config {
machine_type = "g1-small"
disk_size_gb = 10
oauth_scopes = ["compute-rw", "storage-ro", "logging-write", "monitoring"]
}
}`, acctest.RandString(10), acctest.RandString(10))

0 comments on commit e485ddd

Please sign in to comment.