Skip to content

feat(examples): add e2e suites for beginner, intermediate, security, and use-cases packs#154

Merged
iAlexeze merged 8 commits into
mainfrom
feat/add-missing-gaps-in-e2e-and-examples
Jun 1, 2026
Merged

feat(examples): add e2e suites for beginner, intermediate, security, and use-cases packs#154
iAlexeze merged 8 commits into
mainfrom
feat/add-missing-gaps-in-e2e-and-examples

Conversation

@iAlexeze
Copy link
Copy Markdown
Collaborator

@iAlexeze iAlexeze commented Jun 1, 2026

Summary

  • Adds per-example `e2e.yaml` for all intermediate examples (04–08): multi-resource status, when-conditions, Komposer, crdFile, and declarative state machine
  • Adds root `e2e.yaml` aggregator and root `README.md` for beginner, intermediate, and security packs — `ork e2e -f e2e.yaml` runs a full pack in one command
  • Adds missing `e2e.yaml` for `use-cases/normalize/04-webservice`
  • Adds root `e2e.yaml` aggregators and updates root READMEs with E2E sections for enrich, normalize, and profiles use-cases
  • Adds root `README.md` and root `e2e.yaml` for `use-cases/crd-conversion`
  • Updates `learning-to-orkestrate/index.md` and `examples/README.md` to document per-example and per-pack e2e suites

Test plan

  • All intermediate per-example e2e pass with `ork e2e --use-current` (04 ✓ 05 ✓ 06 ✓ 07 ✓ 08 ✓)
  • `use-cases/normalize/04-webservice` e2e passes 5/5 with `ork e2e --use-current`
  • Beginner suite (`beginner/e2e.yaml`) passes 4/4 imports with `ork e2e --use-current`
  • Intermediate suite (`intermediate/e2e.yaml`) — run `ork e2e --use-current -f e2e.yaml`
  • Security suite (`security/e2e.yaml`) — run `ork e2e --use-current -f e2e.yaml`
  • Enrich suite (`use-cases/enrich/e2e.yaml`) — run `ork e2e --use-current -f e2e.yaml`
  • Normalize suite (`use-cases/normalize/e2e.yaml`) — run `ork e2e --use-current -f e2e.yaml`
  • Profiles suite (`use-cases/profiles/e2e.yaml`) — run `ork e2e --use-current -f e2e.yaml`

iAlexeze added 8 commits June 1, 2026 20:30
Root README describes all 4 examples with a table and run instructions.
Root e2e.yaml is a pure aggregator importing all four sub-example e2e files.
ork e2e -f e2e.yaml runs the full beginner suite in one command (~5 min).
All 4 imports confirmed passing: hello-website, serviceaccount, secret, configmap.
04: asserts Deployment, Service (my-app-svc), and ConfigMap created; status.phase Running.
05: uses cr-free.yaml; asserts Deployment ready and status.tier = free.
06: uses komposer.yaml entry point; asserts Website CR, Deployment, Service created.
07: omits spec.crd — katalog crdFile entries handle both CRDs automatically.
    Asserts App CR + Deployment ready and status.phase Running.
08: applies both pipelines from cr.yaml; asserts build-and-test reaches Succeeded
    and failing-pipeline reaches Failed.
All 5 confirmed passing with ork e2e --use-current.
Root README covers all 5 examples (04-08) with a table and run instructions.
Root e2e.yaml imports all five sub-example e2e files.
ork e2e -f e2e.yaml runs the full intermediate suite in one command (~8 min).
Root README covers admission, deletion-protection, and namespace-protection
with a table of what each teaches and run instructions.
Root e2e.yaml imports all three sub-example e2e files.
Tests all normalize patterns in one operator: image normalization, string
cleanup, resource defaults, composite internalName, once: secrets, forEach
backends. 5 expectations confirmed passing with ork e2e --use-current.
…alize, profiles

Each pack gets a root e2e.yaml aggregator importing all sub-examples.
Each root README gains an '## E2E' section with ork e2e -f e2e.yaml run command.
enrich: imports 01-03. normalize: imports 01-04 (04-webservice now covered).
profiles: imports 01-05.
Root README contrasts the two approaches (with-webhooks vs without-webhooks)
and explains when each is appropriate.
Root e2e.yaml imports both sub-example e2e files.
…nd examples README

learning-to-orkestrate/index.md gains an '## E2E test suites' section showing
per-example and per-pack run commands for beginner, intermediate, and security.
examples/README.md adds e2e.yaml to the example file tree and an '## E2E test
suites' section with commands for all packs.
@iAlexeze iAlexeze merged commit e83fc95 into main Jun 1, 2026
4 checks passed
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