mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 09:36:44 +00:00
31 lines
729 B
Go
31 lines
729 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, "id"),
|
||
|
),
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
}
|
||
|
|
||
|
const testAccCheckGoogleStorageProjectServiceAccount_basic = `
|
||
|
data "google_storage_project_service_account" "gcs_account" { }
|
||
|
`
|