用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/openshift/oc-mirror --skill automate-integration-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Analyze oc-mirror CLI feature coverage across integration and e2e tests, identifying untested features and gaps
Migrate an oc-mirror e2e test case to the integration test suite, translating framework, registry, invocation, and assertion patterns
正在显示 SKILL.md
基于 SOC 职业分类
| name | automate-integration-test |
| description | Convert a manual test case description into a Ginkgo oc-v2 integration test for oc-mirror |
| user-invocable | true |
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.