Skip to main content 홈 크리에이터 proffesor-for-testing sentinel-api-testing test-environment-management
test-environment-management Test environment provisioning, infrastructure as code for testing, Docker/Kubernetes for test environments, service virtualization, and cost optimization. Use when managing test infrastructure, ensuring environment parity, or optimizing testing costs.
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/proffesor-for-testing/sentinel-api-testing --skill test-environment-management명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... name test-environment-management description Test environment provisioning, infrastructure as code for testing, Docker/Kubernetes for test environments, service virtualization, and cost optimization. Use when managing test infrastructure, ensuring environment parity, or optimizing testing costs. category specialized-testing priority medium tokenEstimate 900 agents ["qe-test-executor","qe-performance-tester","qe-chaos-engineer"] implementation_status optimized optimization_version 1 last_optimized 2025-12-02T00:00:00.000Z dependencies [] quick_reference_card true tags ["environment","docker","kubernetes","infrastructure","parity","cost-optimization"]
Test Environment Management
<default_to_action>
When managing test environments:
DEFINE environment types (local, CI, staging, prod)
CONTAINERIZE with Docker for consistency
ENSURE parity with production (same versions, configs)
MOCK external services (service virtualization)
OPTIMIZE costs (auto-shutdown, spot instances)
Quick Environment Checklist:
Same OS/versions as production
Same database type and version
Same configuration structure
Containers for reproducibility
Auto-shutdown after hours
Critical Success Factors:
"Works on my machine" = environment inconsistency
Infrastructure as Code = repeatable environments
Service virtualization = test without external dependencies
</default_to_action>
Quick Reference Card
When to Use
Setting up test infrastructure
Debugging environment-specific failures
Reducing test infrastructure costs
Ensuring dev/prod parity
Environment Types
Type Purpose Lifetime Local Fast feedback Developer session CI Automated tests Per build (ephemeral) Staging Pre-prod validation Persistent Production Canary/synthetic Continuous
Dev/Prod Parity Checklist
Item Must Match OS Same version Database Same type + version Dependencies Same versions Config Same structure Env vars Same names
Docker for Test Environments
version: '3.8'
services:
app:
build:
.
ports:
-
"3000:3000"
environment:
NODE_ENV:
test
DATABASE_URL:
postgres://postgres:password@db:5432/test
depends_on:
-
db
-
redis
db:
image:
postgres:15
environment:
POSTGRES_DB:
test
POSTGRES_PASSWORD:
password
redis:
image:
redis:7
docker-compose -f docker-compose.test.yml up -d
docker-compose -f docker-compose.test.yml exec app npm test
docker-compose -f docker-compose.test.yml down
Infrastructure as Code # test-environment.tf
resource "aws_instance" "test_server" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t3.medium"
tags = {
Name = "test-environment"
Environment = "test"
AutoShutdown = "20:00" # Cost optimization
}
}
resource "aws_rds_instance" "test_db" {
engine = "postgres"
engine_version = "15"
instance_class = "db.t3.micro"
backup_retention_period = 0 # No backups needed for test
skip_final_snapshot = true
}
Service Virtualization
import { WireMock } from 'wiremock-captain' ;
const wiremock = new WireMock ('http://localhost:8080' );
await wiremock.register ({
request : {
method : 'POST' ,
url : '/charge'
},
response : {
status : 200 ,
jsonBody : { transactionId : '12345' , status : 'approved' }
}
});
Cost Optimization
0 20 * * * aws ec2 stop-instances --instance-ids $(aws ec2 describe-instances \
--filters "Name=tag:Environment,Values=test" \
--query "Reservations[].Instances[].InstanceId" --output text)
0 7 * * 1-5 aws ec2 start-instances --instance-ids $(aws ec2 describe-instances \
--filters "Name=tag:Environment,Values=test" \
--query "Reservations[].Instances[].InstanceId" --output text)
Use spot instances (70% savings):
resource "aws_instance" "test_runner" {
instance_type = "c5.2xlarge"
instance_market_options {
market_type = "spot"
spot_options {
max_price = "0.10"
}
}
}
Agent-Driven Environment Management
await Task ("Environment Provisioning" , {
type : 'integration-testing' ,
services : ['app' , 'db' , 'redis' , 'mocks' ],
parity : 'production' ,
lifetime : '2h'
}, "qe-test-executor" );
await Task ("Chaos Test Environment" , {
baseline : 'staging' ,
isolate : true ,
injectFaults : ['network-delay' , 'pod-failure' ]
}, "qe-chaos-engineer" );
Agent Coordination Hints
Memory Namespace aqe/environment-management/
├── configs/* - Environment configurations
├── parity-checks/* - Dev/prod parity results
├── cost-reports/* - Infrastructure costs
└── service-mocks/* - Service virtualization configs
Fleet Coordination const envFleet = await FleetManager .coordinate ({
strategy : 'environment-management' ,
agents : [
'qe-test-executor' ,
'qe-performance-tester' ,
'qe-chaos-engineer'
],
topology : 'sequential'
});
Related Skills
Remember Environment inconsistency = flaky tests. "Works on my machine" problems come from: different OS/versions, missing dependencies, configuration differences, data differences.
Infrastructure as Code ensures repeatability. Version control your environment configurations. Spin up identical environments on demand.
With Agents: Agents automatically provision test environments matching production, ensure parity, mock external services, and optimize costs with auto-scaling and auto-shutdown.