Skip to content

Commit

Permalink
Keep TestAccGoogleSqlDatabase_basic as is, add TestAccGoogleSqlDataba…
Browse files Browse the repository at this point in the history
…se_update.
  • Loading branch information
ubschmidt2 committed Jul 16, 2017
1 parent 450911b commit 12b61f0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions google/resource_sql_database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@ import (
func TestAccGoogleSqlDatabase_basic(t *testing.T) {
var database sqladmin.Database

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccGoogleSqlDatabaseInstanceDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: fmt.Sprintf(
testGoogleSqlDatabase_basic, acctest.RandString(10), acctest.RandString(10)),
Check: resource.ComposeTestCheckFunc(
testAccCheckGoogleSqlDatabaseExists(
"google_sql_database.database", &database),
testAccCheckGoogleSqlDatabaseEquals(
"google_sql_database.database", &database),
),
},
},
})
}

func TestAccGoogleSqlDatabase_update(t *testing.T) {
var database sqladmin.Database

instance_name := acctest.RandString(10)
database_name := acctest.RandString(10)

Expand Down

0 comments on commit 12b61f0

Please sign in to comment.