Commit f550d8d
committed
fix(test): set MySQL credentials file permissions in combined config tests
The MySQL receiver validates that passfiles have 0600 or 0400 permissions
for security. Git doesn't preserve file permissions beyond the executable
bit, so checked-out files default to 0644 in CI, causing test failures.
Add os.Chmod(0600) calls in TestCombinedV1V2EC2Config and
TestCombinedV1V2EKSConfig before config translation to ensure the
.mysql_credentials testdata file has the required restrictive permissions.
This matches the existing fix in TestDBIMySQLConfigLinux and ensures
tests pass reliably in CI and local development environments.1 parent 0ea2209 commit f550d8d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| 156 | + | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| |||
0 commit comments