Intercept
Stoobly Intercept CLI - Questions & Answers
Getting Started with Intercept
Q: What is the intercept feature?
# Start the agent
stoobly-agent run
# In another terminal, enable intercept
stoobly-agent intercept enableQ: How do I check the current intercept configuration?
stoobly-agent intercept show
# Output: Mock with policy: 'found', strategy: 'None', enabledEnabling and Disabling Intercept
Q: How do I enable intercept mode?
Q: How do I disable intercept mode?
Q: Can I enable intercept when starting the agent?
Configuring Intercept Modes
Q: What intercept modes are available?
Q: How do I switch from record mode to mock mode?
Q: What happens when I change the intercept mode?
Mock Mode Configuration
Q: What is mock mode?
Q: What policies are available for mock mode?
Q: How do I configure mock mode to only serve recorded responses?
Record Mode Configuration
Q: What is record mode?
Q: What policies are available for record mode?
Q: What recording strategies are available?
Q: What recording orders are available?
Q: How do I configure record mode to only capture new requests?
Q: How do I configure record mode to overwrite existing recordings?
Replay Mode Configuration
Q: What is replay mode?
Q: What policies are available for replay mode?
Test Mode Configuration
Q: What is test mode?
Q: What policies are available for test mode?
Q: What test strategies are available?
Q: How do I set up contract testing?
Advanced Configuration
Q: Can I configure multiple options at once?
Q: How do I configure intercept for a specific scenario?
Workflow Examples
Q: How do I set up a record-then-mock workflow?
Q: How do I set up continuous recording with overwrite?
Q: How do I set up automated testing with validation?
Troubleshooting
Q: What happens if I try to set an invalid policy for a mode?
Q: Why does intercept get disabled when I change modes?
Q: How do I verify my intercept configuration is working?
Q: Can I configure intercept before enabling it?
Quick Reference
Q: What's a quick reference for common intercept commands?
Integration with Other Features
Q: How does intercept work with scenarios?
Q: Can I use intercept with lifecycle hooks?
Last updated