-
Notifications
You must be signed in to change notification settings - Fork 0
ci: integration tests for crontab backend #47
Copy link
Copy link
Open
Labels
area/backend-crontabcrontab backendcrontab backendarea/ciGitHub Actions, release pipeline, supply chainGitHub Actions, release pipeline, supply chainkind/v1-readinessGap on the path to v1.0.0Gap on the path to v1.0.0triageAwaiting maintainer reviewAwaiting maintainer review
Milestone
Metadata
Metadata
Assignees
Labels
area/backend-crontabcrontab backendcrontab backendarea/ciGitHub Actions, release pipeline, supply chainGitHub Actions, release pipeline, supply chainkind/v1-readinessGap on the path to v1.0.0Gap on the path to v1.0.0triageAwaiting maintainer reviewAwaiting maintainer review
Split off from #10. Real-backend integration tests gated by the
integrationbuild tag, like the kubernetes reference shipped in #10's PR.What ships
go/internal/backends/crontab/integration_test.gowith//go:build integrationand tests covering Create → List → Update → Delete and at least one drift/divergence scenario..github/workflows/integration.ymlthat brings up a scratch user's crontab on the runner and runsgo test -tags integration -run Integration ./internal/backends/crontab/....Reference
See
go/internal/backends/kubernetes/integration_test.goand the matchingkubernetesjob in.github/workflows/integration.ymlshipped in #10. Same shape for every backend: per-test namespace/scope for isolation, t.Cleanup tears down, three scenarios minimum (CRUD, drift/divergence, unmanaged-entries-untouched).Acceptance criteria
go test ./...(verify by running without the build tag)