src/main/resources/targets/claude/skills/conditional/test/x-execute-api-smoke-tests/SKILL.md
Runs automated smoke tests against the REST API using Newman/Postman. Supports local, container-orchestrated, and staging environments.
npx skillsauth add edercnj/ia-dev-environment x-execute-api-smoke-testsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrate black-box smoke tests against the application's REST API using Newman (Postman CLI). Tests run against a deployed environment to validate that critical endpoints respond correctly. Idempotent: each execution creates its own test data and cleans up after.
Include this skill when smoke_tests is enabled AND "rest" is in protocols.
/x-execute-api-smoke-tests -- run against local environment (already running on default port)/x-execute-api-smoke-tests --k8s -- run with automatic port-forward (orchestrator)/x-execute-api-smoke-tests --env staging -- run against staging environment| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| --env | String | No | local | Target environment: local, k8s, staging |
| --k8s | Flag | No | false | Enable automatic port-forward to orchestrator |
npm install -g newman/health or equivalentsmoke-tests/api/Check that Newman is installed:
newman --versionnpm install -g newmanPoll health endpoint:
Execute smoke tests:
smoke-tests/api/--env flagAutomatic via trap EXIT:
| Scenario | Method | Expected Status | Criticality | |----------|--------|-----------------|-------------| | Health/liveness | GET | 200 | CRITICAL | | Health/readiness | GET | 200 | CRITICAL | | Create resource | POST | 201 | CRITICAL | | List resources | GET | 200 | HIGH | | Get resource by ID | GET | 200 | HIGH | | Update resource | PUT | 200 | HIGH | | Delete resource | DELETE | 204 | HIGH | | Duplicate (409) | POST | 409 | MEDIUM | | Not found (404) | GET | 404 | MEDIUM | | Invalid payload | POST | 400 | MEDIUM |
| File | Description |
|------|-------------|
| smoke-tests/api/*.postman_collection.json | Newman test collection |
| smoke-tests/api/environment.local.json | Local environment config |
| smoke-tests/api/environment.*.json | Per-environment configs |
| smoke-tests/api/x-execute-api-smoke-tests.sh | Execution script |
| Scenario | Action |
|----------|--------|
| newman: command not found | Report Newman not installed, suggest npm install -g newman |
| Health check timeout | Abort with exit code 2, suggest checking application logs |
| 500 Internal Server Error | Report application bug, suggest checking application logs |
| Unexpected 409 | Suggest cleaning database or using unique IDs |
| Connection refused | Suggest using --k8s flag or starting app manually |
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.
tools
Generates a Picocli @Command with subcommands, options, converters, and unit tests.
testing
Scaffolds a Micronaut service with @Controller, DI, health, Dockerfile, and tests.
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.