openshift/automate-integration-test
Convert a manual test case description into a Ginkgo oc-v2 integration test for oc-mirror
npx skills add https://github.com/openshift/oc-mirror --skill automate-integration-test
Convert a manual test case description into a Ginkgo v2 integration test for the oc-mirror integration test suite.
These are minimal images we generated and host ourselves to keep tests fast and self-contained, avoiding dependencies on external images that might change frequently.
quay.io/oc-mirror/oc-mirror-dev:test-catalog-latestquay.io/oc-mirror/release/test-release-index:v0.0.1quay.io/openshifttest/hello-openshift@sha256:61b8f5...Read AGENTS.md at the project root for architecture, conventions, and pitfalls.
If the test case is ambiguous, ask before writing code:
mirrorToMirror, mirrorToDisk + diskToMirror, or both)Read existing test files to ensure the scenario isn't already covered. If it is, tell the user and suggest what would add value instead.
Also consider if one of the existing tests could be extended to cover the scenario, without blurring the testing boundaries.
Read these files to learn the current patterns - do not guess or reinvent:
tests/integration/integration_suite_test.go - globals and lifecycletests/integration/helpers_test.go - assertion helpersPrefer existing helpers. If a new one is needed, follow the expect* naming pattern.
If technical details are unclear:
./oc-mirrorgithub.com:openshift/oc-mirror.gitFollow the patterns from existing tests. Key rules:
Describe, BeforeEach/AfterEach, It, By stepsresult.ExitCode and result.Stderr contentCheck existing configs in tests/integration/testdata/imagesetconfigs/ first. Only create new ones if needed, using the same YAML structure and the test images listed in AGENTS.md.
Before running, review the generated code for:
Ask for permission, then run.
go test -v ./tests/integration/ --ginkgo.focus "<test label>"
Provide the complete Go test code, any new YAML configs, and a one-line summary of where each file goes. Be concise - the user knows the project.
Take openshift/automate-integration-test from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.