Skip to content

test(e2e): add FUNC_BIN/WithImage helpers and a middleware-rebuild spec - #266

Merged
maschmid merged 1 commit into
mainfrom
test-e2e-middleware-rebuild
Oct 16, 2026
Merged

maschmid merged 1 commit into
mainfrom
test-e2e-middleware-rebuild

Conversation

@gauron99

Copy link
Copy Markdown
Contributor
  • test/utils/func.go: FUNC_BIN env override to point at a specific func binary (e.g. extracted from the operator image / provided by CI), and a WithImage deploy option to deploy a pre-built image (--build=false --push=false), used to seed a function's initial deployed state.
  • test/e2e/func_middleware_fixture_test.go: a middleware-rebuild spec that deploys a pre-built stale-middleware image (via STALE_FUNCTION_IMAGE) and asserts the operator detects it and rebuilds to current. Image ref is not hardcoded; the spec skips when STALE_FUNCTION_IMAGE is unset. Currently also skipped pending operator sync creates registry auth Secret as Opaque/config.json, incompatible with func-operator (expects dockerconfigjson) knative/func#4081 (registry auth secret type mismatch on operator rebuild).

@gauron99
gauron99 force-pushed the test-e2e-middleware-rebuild branch from 224e37c to d4a76a1 Compare October 14, 2026 13:45
Comment thread test/utils/func.go Outdated
@gauron99
gauron99 force-pushed the test-e2e-middleware-rebuild branch 3 times, most recently from 959c955 to 66c407e Compare October 16, 2026 14:28
- test/utils/func.go: FUNC_BIN env override to point at a specific func
  binary (e.g. extracted from the operator image / provided by CI), and a
  WithImage deploy option to deploy a pre-built image (--build=false
  --push=false), used to seed a function's initial deployed state.
- test/e2e/func_middleware_fixture_test.go: a middleware-rebuild spec that
  deploys a pre-built stale-middleware image (via STALE_FUNCTION_IMAGE) and
  asserts the operator detects it and rebuilds to current. Image ref is not
  hardcoded; the spec skips when STALE_FUNCTION_IMAGE is unset. Currently
  also skipped pending knative/func#4081 (registry auth secret type
  mismatch on operator rebuild).
@gauron99
gauron99 force-pushed the test-e2e-middleware-rebuild branch from 66c407e to 40e88e8 Compare October 16, 2026 14:38
@maschmid
maschmid enabled auto-merge (squash) October 16, 2026 14:39
@maschmid
maschmid merged commit 608d777 into main Oct 16, 2026
14 checks passed
@maschmid
maschmid deleted the test-e2e-middleware-rebuild branch October 16, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants