From osdu
Run Java acceptance or integration tests from an OSDU service repository against a live deployed environment. Resolves environment configuration, auth credentials, and SSL truststore automatically. Use when the user says 'run acceptance tests for partition', 'test the storage service against my environment', 'execute integration tests for legal', or 'verify partition with acceptance tests'. Not for: test reliability analysis (use osdu-quality), building services (use build-runner), checking environment health (use health), or unit tests without a live service.
How this skill is triggered — by the user, by Claude, or both
Slash command
/osdu:acceptance-testThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run Java acceptance and integration tests from OSDU service repositories against a live cimpl environment. The `javatest_acceptance.py` script handles environment resolution, Config.java parsing, secure credential handling, SSL truststore setup, and surefire result parsing automatically.
Run Java acceptance and integration tests from OSDU service repositories against a live cimpl environment. The javatest_acceptance.py script handles environment resolution, Config.java parsing, secure credential handling, SSL truststore setup, and surefire result parsing automatically.
| Request | Use Instead |
|---|---|
| Run Postman/Newman API test collections | osdu-qa |
| Build or compile a service | build-runner |
| Check environment health | health |
| Run unit tests (no live service needed) | build-runner |
| Check test reliability/flakiness | osdu-quality |
| Acceptance test parity/coverage gap analysis | osdu-quality |
# Verify required tools
java --version 2>/dev/null
mvn --version 2>/dev/null
If either command is not found, stop and use the setup skill to install missing dependencies.
# Run acceptance tests for a service
uv run skills/acceptance-test/scripts/javatest_acceptance.py --service <name>
# Preview what would run (no execution)
uv run skills/acceptance-test/scripts/javatest_acceptance.py --service <name> --dry-run
# Override workspace or provisioning repo path
uv run skills/acceptance-test/scripts/javatest_acceptance.py --service <name> \
--workspace /path/to/osdu-workspace \
--provisioning-dir /path/to/cimpl-azure-provisioning
# Force a specific test pattern
uv run skills/acceptance-test/scripts/javatest_acceptance.py --service <name> --pattern A
| Option | Description |
|---|---|
--service | OSDU service name (partition, storage, legal, etc.) |
--provisioning-dir | Override path to cimpl-azure-provisioning repo |
--workspace | Override OSDU workspace path (default: $OSDU_WORKSPACE) |
--pattern | Force test pattern: A (acceptance-test) or B (test-azure). Default: auto-detect |
--skip-ssl-setup | Skip SSL truststore creation |
--dry-run | Show resolved config and commands without executing |
.azure/<env>/.env in the provisioning repo (same logic as the osdu extension's azd-env.mjs)$OSDU_WORKSPACE/<service> (supports worktree layout)<service>-acceptance-test/) preferred for cimpl (uses OIDC auth), Pattern B (testing/<service>-test-azure/) as fallbackSystem.getenv() calls~/.osdu-acceptance-test/truststore.jks).mvn/community-maven.settings.xml) and passes -s to MavenSecurity: Credentials are passed to Maven via subprocess environment variables — they never appear on the command line or in log output. The --dry-run output masks all sensitive values.
Always use --dry-run first to show the user what will be executed and let them confirm.
# Step 1: Preview
uv run skills/acceptance-test/scripts/javatest_acceptance.py --service partition --dry-run
# Step 2: Execute (after user confirms)
uv run skills/acceptance-test/scripts/javatest_acceptance.py --service partition
Present the script output directly to the user. Do NOT summarize unless requested.
| Error | Action |
|---|---|
| Service repo not found | Offer to clone with clone skill |
| No acceptance tests found | Report — not all services have them |
| Provisioning repo not found | Ask user for provisioning repo path or set $OSDU_WORKSPACE |
| Auth failure (401/403) | Check client secret, verify Keycloak is running via health skill |
| Service unreachable | Check service is deployed via health skill |
| Test-core build fails | Report build error, check for version mismatches |
| Maven not found | Delegate to setup skill |
| SSL/PKIX errors | Run without --skip-ssl-setup, ensure openssl and keytool are available |
When asked to test multiple services (e.g., "run acceptance tests for partition and storage"):
Before running tests, consider using osdu-quality tests --project <service> --output json to check
acceptance test parity. This shows what the CI pipeline already runs per provider and highlights
coverage gaps between CSP integration tests and cimpl acceptance tests. If the user asks about
test gaps or parity, route to the osdu-quality skill instead.
After reporting results:
brain skill is available, offer to store the report in the vaultnpx claudepluginhub danielscholl/claude-osdu --plugin osduWrites and runs unit, integration, e2e, performance, and contract tests to verify code functionality.
Helps plan, write, review, execute, and maintain manual test cases with reproducible artifacts traceable to design documents.
Checks and configures integration testing infrastructure for services, databases, and external dependencies using Supertest, pytest, or Testcontainers in JS/TS, Python, Rust, Go projects.