Smoke-test harness and GitOps fixtures for the
fluxview CLI.
The repo serves two purposes:
- Fixture data under
k8s/— a minimal Flux GitOps layout exercising every fluxview feature (Kustomizations with dependencies, HelmReleases via OCIRepository / local GitRepository chart / Bucket / chartRef / suspended, custom CRDs, postBuild substitution, duplicates for dedup testing). - Bash scenarios under
tests/— invoke thefluxviewbinary against those fixtures and assert on exit codes and output.
# 1. Build the fluxview binary from source (sibling checkout):
(cd ../flux-diff && go build -o ../fluxview-test/bin/fluxview ./cmd/fluxview/)
# 2. Run all smoke tests:
./tests/run_all.shSee tests/README.md for the full scenario list, the
git-history layout used for diff tests, and the two fluxview issues the
tests surfaced.
k8s/
├── test/cluster/ # path passed to --path (Flux Kustomization CRs)
├── test/apps/ # HelmRelease scenarios
├── test/crds/ # CRD resources (the `crds` KS target)
├── test/infra/ # plain resources + custom Widget
└── invalid/ # schema-violating fixture for validate exit-code 3
crds/ # CRD schemas consumed by `validate`
tests/ # bash framework + scenarios