Commit cda7b5c
authored
tests: introduce
* tests: introduce `kubectlRun` to avoid conflating stdin and stdout in tests
Introduce a new test helper `TestHelper.KubectlRun` (and mark `TestHelper.Kubectl` as deprecated), that keeps stdout and stderr separate when invoking `kubectl`. This avoids failures on Kubernetes 1.35+, where deprecation warnings for Endpoints are emitted alongside command output and can break deserialization in `TestDestinationAPIStreamTracksRolloutEndpoints`.kubectlRun to avoid conflating stdin and stdout in tests (#15151)1 parent 8622c90 commit cda7b5c
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
| |||
0 commit comments