Spot ECS Provisioning Smoke Test
Prerequisites
- Install Alibaba Cloud CLI v3.
- Configure least-privilege credentials for read-only ECS discovery and pricing.
- Target skill:
skills/compute/ecs/aliyun-ecs-spot-provision/.
Test Steps
- Compile
scripts/provision_spot_ecs.pywithpython3 -m py_compile. - Run
--helpand confirmplan,apply, and--confirm-createare documented. - Run
applywithout--confirm-create; require a non-zero exit before any API call. - Run
planfor one region and small exact CPU/memory request. Save evidence beneathoutput/aliyun-ecs-spot-provision-test/. - Confirm
plan.jsoncontains a region, zone, instance type, image ID, disk category, available offers, currency, and current hourly trade price. - Do not run
applyin the smoke test.
Expected Results
- Syntax and skill validation pass.
- The mutation safety gate fails closed.
- Read-only capacity, image, disk, and price APIs return a reproducible plan.
- No VPC, vSwitch, security group, key pair, disk, or ECS instance is created.