Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacks: values generation #3914

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
add stack tests
  • Loading branch information
denis256 committed Feb 21, 2025
commit 5268b6c97f7a3dc1b149911eac849d9066b6d670
9 changes: 9 additions & 0 deletions test/integration_stacks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,15 @@ func TestStacksUnitValuesRunInApp1(t *testing.T) {
// run apply in generated app1 directory
app1Path := util.JoinPath(rootPath, ".terragrunt-stack", "app1")
helpers.RunTerragrunt(t, "terragrunt apply --experiment stacks --terragrunt-non-interactive --terragrunt-working-dir "+app1Path)

// Verify the expected outcomes
valuesPath := filepath.Join(app1Path, "terragrunt.values.hcl")
assert.FileExists(t, valuesPath)

// Verify the values file content
content, err := os.ReadFile(valuesPath)
require.NoError(t, err)
assert.Contains(t, string(content), "deployment = \"app1\"")
}

func TestStacksUnitValuesOutput(t *testing.T) {
Expand Down