diff --git a/.github/workflows/repository-terratest.yaml b/.github/workflows/repository-terratest.yaml index 06a7a8a..25ac114 100644 --- a/.github/workflows/repository-terratest.yaml +++ b/.github/workflows/repository-terratest.yaml @@ -13,6 +13,7 @@ on: env: TERRATEST_GOOGLE_CREDENTIALS_STORAGE: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS_STORAGE }} TERRATEST_GOOGLE_PROJECT_STORAGE: ${{ secrets.TERRATEST_GOOGLE_PROJECT_STORAGE }} + TERRATEST_GOOGLE_CREDENTIALS_NETWORK: ${{TERRATEST_GOOGLE_CREDENTIALS_NETWORK}} jobs: repository-terratest: diff --git a/test/gke_test.go b/test/gke_test.go index 01ec6d8..fa221ab 100644 --- a/test/gke_test.go +++ b/test/gke_test.go @@ -61,6 +61,7 @@ func TestTerraformGcpGkeTemplate(t *testing.T) { "vpc_primary_subnet_name": clusterName + "-primary-subnet", "vpc_secondary_ip_range_pods_name": clusterName + "-pods-subnet", "vpc_secondary_ip_range_services_name": clusterName + "-services-subnet", + "shared_vpc_host_google_credentials": os.Getenv("TERRATEST_GOOGLE_CREDENTIALS_NETWORK") }, EnvVars: map[string]string{}, })