1
0
mirror of synced 2026-06-20 20:10:49 +00:00
Files
flux2/cmd/flux
Hidde Beydals 4f45409697 Seed defaultComponents in bootstrap signing tests
`resetCmdArgs` in `main_test.go` rebuilds `bootstrapArgs` from
`NewBootstrapFlags`, which deliberately omits the cobra-populated
`defaultComponents`. In the `e2e` build, `TestMain` runs `flux install
…` before any test executes; that call triggers the reset and leaves
`bootstrapArgs.defaultComponents` empty for the lifetime of the
process. `bootstrapValidate` then trips on its `requiredComponents`
pre-check and fails with "component source-controller is required"
before it ever reaches the SSH/GPG signing flag validation that this
test cares about.

Save, seed, and restore `defaultComponents` per subtest so the
required-component check passes regardless of whether the test runs
under the plain or the `e2e` build tag.

Assisted-by: claude/opus-4.7
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2026-06-19 15:03:46 +02:00
..
2024-04-08 17:54:38 +03:00
2024-04-08 17:54:38 +03:00
2025-10-24 14:52:36 -03:00
2025-09-16 11:00:12 +03:00
2025-09-16 12:08:15 +01:00
2025-09-16 12:08:15 +01:00
2024-05-09 17:18:11 +03:00
2025-09-16 11:00:12 +03:00
2023-06-05 10:07:38 +02:00
2024-06-11 23:56:04 +02:00
2023-12-08 19:47:12 +05:30
2026-04-14 00:46:22 +03:00
2026-04-30 08:19:41 +01:00
2025-10-09 08:45:01 -03:00
2025-09-16 12:08:15 +01:00
2023-12-08 19:47:12 +05:30
2022-01-10 16:30:38 +01:00
2026-05-23 01:44:07 +01:00
2023-08-22 12:36:58 +03:00
2022-01-10 16:30:38 +01:00