Skip to content

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

Open
gauron99 wants to merge 1 commit into
mainfrom
test-e2e-middleware-rebuild
Open

gauron99 wants to merge 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).

- 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 224e37c to d4a76a1 Compare October 14, 2026 13:45
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.

1 participant