terraform-provider-google/google/data_source_google_storage_project_service_account_test.go
Riley Karson fbad37ebff
Fix storage notification tests (#1913)
* Update google_storage_project_service_account to mirror API.

* Fix storage notifications test, clarify docs.
2018-08-22 08:19:52 -07:00

32 lines
740 B
Go

package google
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccDataSourceGoogleStorageProjectServiceAccount_basic(t *testing.T) {
t.Parallel()
resourceName := "data.google_storage_project_service_account.gcs_account"
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testAccCheckGoogleStorageProjectServiceAccount_basic,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet(resourceName, "email_address"),
),
},
},
})
}
const testAccCheckGoogleStorageProjectServiceAccount_basic = `
data "google_storage_project_service_account" "gcs_account" {
}
`