Files
upstream-ory-keto/oryx/watcherx/integrationtest
upstream-mirror 9456a4e922
Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
snapshot of https://github.com/ory/keto.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 01:08:34 +05:00
..

Integration Test for watcherx/FileWatcher

As kubernetes has a special way to change mounted config map values we want to make sure our file watcher is compatible with that.

Perquisites

The versions are the ones that definitely work.

  • kind (v0.8.1)
  • kubectl (v1.18.5)
  • docker (v19.03.12-ce)
  • make (v4.3)

Structure

The main.go just logs all events it gets. It is deployed to a kind kubernetes cluster together with a configmap that gets updated during the test. For details on the test steps have a look at the Makefile.

Running

To generate the log snapshot run make snapshot. That snapshot should be committed. To check if the FileWatcher works run make check. For debugging purposes single steps of the setup have descriptive make target names and can be run separately. It is safe to delete the cluster at any point or rerun snapshot generation.