Skip to content

Commit

Permalink
Automatically generate type info for output in metadata file
Browse files Browse the repository at this point in the history
  • Loading branch information
tjy9206 committed Sep 13, 2024
1 parent f8fc4b7 commit bf1fe51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infra/blueprint-test/pkg/tft/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ func NewTFBlueprintTest(t testing.TB, opts ...tftOption) *TFBlueprintTest {
loadTFEnvVar(tft.tfEnvVars, tft.getTFOutputsAsInputs(outputs))
if credsEnc, exists := tft.tfEnvVars[fmt.Sprintf("TF_VAR_%s", setupKeyOutputName)]; tft.saKey == "" && exists {
if credDec, err := b64.StdEncoding.DecodeString(credsEnc); err == nil {
t.Logf("jieyutian - cred: %s", credDec)
gcloud.ActivateCredsAndEnvVars(tft.t, string(credDec))
} else {
tft.t.Fatalf("Unable to decode setup sa key: %v", err)
Expand All @@ -268,8 +267,8 @@ func NewTFBlueprintTest(t testing.TB, opts ...tftOption) *TFBlueprintTest {
tft.setupOutputOverrides[k] = v
}

// tftVersion := gjson.Get(terraform.RunTerraformCommand(tft.t, tft.GetTFOptions(), "version", "-json"), "terraform_version")
// tft.logger.Logf(tft.t, "Running tests TF configs in %s with version %s", tft.tfDir, tftVersion)
tftVersion := gjson.Get(terraform.RunTerraformCommand(tft.t, tft.GetTFOptions(), "version", "-json"), "terraform_version")
tft.logger.Logf(tft.t, "Running tests TF configs in %s with version %s", tft.tfDir, tftVersion)
return tft
}

Expand Down

0 comments on commit bf1fe51

Please sign in to comment.