2018-02-21 21:37:23 +00:00
|
|
|
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(
|
2018-08-22 15:19:52 +00:00
|
|
|
resource.TestCheckResourceAttrSet(resourceName, "email_address"),
|
2018-02-21 21:37:23 +00:00
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
const testAccCheckGoogleStorageProjectServiceAccount_basic = `
|
2018-08-22 15:19:52 +00:00
|
|
|
data "google_storage_project_service_account" "gcs_account" {
|
|
|
|
}
|
2018-02-21 21:37:23 +00:00
|
|
|
`
|