mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 01:26:43 +00:00
![Dominik Lekse](/assets/img/avatar_default.png)
* Added access_token field to google_client_config data source * Refined documentation of google_client_config
33 lines
776 B
Go
33 lines
776 B
Go
package google
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
)
|
|
|
|
func TestAccDataSourceGoogleClientConfig_basic(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
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"),
|
|
resource.TestCheckResourceAttrSet(resourceName, "access_token"),
|
|
),
|
|
},
|
|
},
|
|
})
|
|
}
|
|
|
|
const testAccCheckGoogleClientConfig_basic = `
|
|
data "google_client_config" "current" { }
|
|
`
|