We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d2421 commit e50c2e0Copy full SHA for e50c2e0
pkg/integration_testing/assume_e2e_test.go
@@ -59,7 +59,9 @@ func TestAssumeCommandE2E(t *testing.T) {
59
tempDir := t.TempDir()
60
homeDir := filepath.Join(tempDir, "home")
61
awsDir := filepath.Join(homeDir, ".aws")
62
- grantedDir := filepath.Join(homeDir, ".granted")
+ // Use XDG_CONFIG_HOME to set custom config directory
63
+ xdgConfigHome := filepath.Join(tempDir, "config")
64
+ grantedDir := filepath.Join(xdgConfigHome, "granted")
65
66
for _, dir := range []string{awsDir, grantedDir} {
67
err := os.MkdirAll(dir, 0755)
@@ -94,7 +96,7 @@ FileBackend = ""
94
96
env := []string{
95
97
fmt.Sprintf("HOME=%s", homeDir),
98
fmt.Sprintf("AWS_CONFIG_FILE=%s", awsConfigPath),
- fmt.Sprintf("GRANTED_STATE_DIR=%s", grantedDir),
99
+ fmt.Sprintf("XDG_CONFIG_HOME=%s", xdgConfigHome),
100
"GRANTED_QUIET=true", // Suppress output messages
101
"FORCE_NO_ALIAS=true", // Skip alias configuration
102
"FORCE_ASSUME_CLI=true", // Force assume mode
0 commit comments