# Restassured Virtualization

> Use when Codex needs to simulate downstream HTTP services for Rest Assured suites with WireMock, stub mappings, latency, retries, fault injection, or isolation from unstable third-party dependencies.

- **Type:** Skill
- **Install:** `agentstack add skill-jovd83-restassured-skill-virtualization`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jovd83](https://agentstack.voostack.com/s/jovd83)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jovd83](https://github.com/jovd83)
- **Source:** https://github.com/jovd83/restassured-skill/tree/main/virtualization

## Install

```sh
agentstack add skill-jovd83-restassured-skill-virtualization
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Service Virtualization

## 1. Decide Whether To Mock

1. Mock only third-party or unstable dependencies.
2. Keep real dependencies for the system under test whenever practical.
3. Read [when-to-mock-vs-real.md](references/when-to-mock-vs-real.md) before adding stubs.

## 2. Create The Stub Layer

1. Use WireMock for HTTP downstream dependencies.
2. Model stable happy-path stubs first.
3. Add negative behavior only when the scenario requires it.
4. Read [wiremock-patterns.md](references/wiremock-patterns.md) for stub structure.

## 3. Inject Failure Modes

1. Add latency, resets, malformed payloads, and error statuses deliberately.
2. Read [fault-injection.md](references/fault-injection.md) before writing resilience tests.

## 4. Verify Intent

1. Assert that the system under test handled the dependency behavior correctly.
2. Assert that the stub was called only when interaction verification matters.

## 5. Examples

1. Input: `Simulate the shipping provider timing out.`
   Output: Add a WireMock delayed response and assert the API returns the documented fallback error.
2. Input: `Stub the tax provider for local CI.`
   Output: Add deterministic success and validation-failure stubs, then route the tests to the stub base URL.

## 6. Troubleshooting

1. Problem: The suite still calls the live dependency.
   Fix: Verify the service under test points to the stubbed base URL.
2. Problem: Contract drift breaks the stub.
   Fix: Rebuild the stub from the latest contract or response samples.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jovd83](https://github.com/jovd83)
- **Source:** [jovd83/restassured-skill](https://github.com/jovd83/restassured-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jovd83-restassured-skill-virtualization
- Seller: https://agentstack.voostack.com/s/jovd83
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
