/open-horizons-platform:azure-terraform-terratest-module-testingfrom open-horizons-platform
Creates, repairs, and runs scoped Terratest coverage for Open Horizons Terraform modules under tests/terraform. Helps select static, plan, or Azure integration mode with safe cleanup.
Ships in open-horizons-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Test one Terraform module with the least expensive and least mutating mode that can prove the requested behavior.
tests/terraform/modules/.tests/terraform/go.modtests/terraform/README.mdtests/terraform/modules/*_test.go.github/workflows/terraform-test.ymlterraform/modules/<name>/Inspect these anchors before authoring a test. Do not assume the README, workflow labels, and test build tags are perfectly aligned; derive the runnable selector from the current Go files.
| Mode | Approval | Allowed behavior |
|---|---|---|
static | Default | Compile tests, inspect files, and run checks that do not plan, apply, destroy, authenticate to Azure, or contact a remote backend. |
plan | Explicit mode selection | Initialize with backend disabled, validate, and run a focused plan without applying. Stop if credentials, a remote backend, or provider API access was not approved. |
integration | Exact environment approval | Create only uniquely named test resources through OIDC, enforce cost and timeout limits, and clean up only resources created by that test. |
Resolve one test file and its corresponding Terraform module. Read module inputs, outputs, validations, provider requirements, and nearby test patterns.
Select static unless the acceptance criterion requires a plan. Select integration only when
the environment, OIDC identity, subscription, region, expected cost, unique resource-group
identity, timeout, and cleanup are all explicitly approved.
Use terraform.WithDefaultRetryableErrors for operations affected by transient provider
failures. Keep retry behavior bounded and do not convert deterministic validation failures into
retries.
Prefer Terratest *E APIs such as InitAndValidateE, PlanE, or DestroyE when an error is an
expected result or cleanup evidence must be reported. Assert the specific failure contract
instead of accepting any error.
Keep static tests free of Azure credentials and resource changes. A compile-only baseline is:
cd tests/terraform
go test -run '^$' ./...
In plan mode, use a focused test selector, backend-disabled initialization, deterministic variables, and no saved plan unless the caller requested one. Do not assume a plan is offline; providers may query remote APIs.
In integration mode, generate a collision-resistant resource-group name owned by the test,
register scoped cleanup immediately with t.Cleanup, and use OIDC (ARM_USE_OIDC=true).
Cleanup may destroy only the Terraform resources or exact resource group created by that test.
Never list and delete resource groups by a shared substring, prefix, tag, or subscription-wide query. Existing broad cleanup elsewhere is not a pattern to copy.
Run the smallest selected test from tests/terraform, for example:
go test -v -run '^TestExactName$' -timeout 30m ./modules
Add -tags=integration, the approved timeout, and approved OIDC environment only for integration
mode.
Report mode, selector, module, credentials used or not used, resource identity, timeout, cleanup result, test evidence, and residual resources.
## Terratest result
**Status:** completed | blocked
**Mode:** static | plan | integration
**Module/test:** <terraform module> / <exact Go test>
### Safety context
- Backend: disabled | <approved isolated backend>
- Azure/OIDC: not used | <approved environment and identity>
- Cost/timeout: <not applicable | approved bounds>
- Resource group: <not created | exact unique name>
- Cleanup: <not required | registered and verified | failed>
### Changes
- `<tests/terraform/...>`: <coverage added or repaired>
### Validation
- `<exact command>`: PASS | FAIL | NOT RUN - <evidence>
### Residual resources
- <none | exact resource and owner>
terraform apply or destroy outside the test's approved integration lifecycle.tests/terraform/go.mod.*E APIs and assert a specific error.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin open-horizons-platform117 skills in this plugin
/agent-framework-pythonApplies Microsoft Agent Framework Python monorepo conventions to the imported example tree. Use when changing its public API exports, package metadata, tests, or Python implementation./agentsApplies current repository conventions for custom-agent metadata, tool scope, body structure, runtime boundaries, and validation. Use when creating or updating an agent./agent-safetyUse when editing Open Horizons agent runtimes, tools, orchestration, or policy code that requires safety and governance controls./agent-skillsApplies current portable Agent Skill conventions for discovery metadata, progressive disclosure, bundled resources, safety, and validation. Use when creating or updating SKILL.md./azure-agentic-architecture-patternsProvides a decision framework for production multi-agent and AI-native systems on GitHub and Azure AI Foundry. Use this skill when designing model routing, prompt caching, semantic caching, memory, context curation, RAG, tools, MCP, identity, guardrails, evaluation, observability, or cost controls./azure-api-centerDesign Azure API Center as the enterprise inventory and governance plane for APIs, agent tools, OpenAPI definitions, environments, deployments, metadata, linting, and MCP server discovery. Use when building an API or tool catalog, enforcing API standards, registering MCP servers, or making approved tools discoverable to agent builders.Other plugins' skills for the same job