mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-07 11:11:13 +00:00
30 lines
691 B
Go
30 lines
691 B
Go
|
package google
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/hashicorp/terraform/helper/resource"
|
||
|
)
|
||
|
|
||
|
func TestAccDataSourceGoogleClientConfig_basic(t *testing.T) {
|
||
|
resourceName := "data.google_client_config.current"
|
||
|
|
||
|
resource.Test(t, resource.TestCase{
|
||
|
PreCheck: func() { testAccPreCheck(t) },
|
||
|
Providers: testAccProviders,
|
||
|
Steps: []resource.TestStep{
|
||
|
{
|
||
|
Config: testAccCheckGoogleClientConfig_basic,
|
||
|
Check: resource.ComposeTestCheckFunc(
|
||
|
resource.TestCheckResourceAttrSet(resourceName, "project"),
|
||
|
resource.TestCheckResourceAttrSet(resourceName, "region"),
|
||
|
),
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
}
|
||
|
|
||
|
const testAccCheckGoogleClientConfig_basic = `
|
||
|
data "google_client_config" "current" { }
|
||
|
`
|