一键导入
run-acceptance-tests
Guide the execution of Lightdash Terraform provider acceptance tests, ensuring correct environment setup and targeted test execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide the execution of Lightdash Terraform provider acceptance tests, ensuring correct environment setup and targeted test execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Accountability for identifying deprecated Lightdash API usage in the provider by comparing code patterns against the official OpenAPI specification. Use when tasked to audit the codebase for technical debt or outdated API dependencies.
Run formatting, linters, unit tests, and build checks, then fix violations.
Implement verified Lightdash API clients with documentation research and live schema verification.
Research and investigate Lightdash API endpoints to understand request/response schemas and behavior.
Implement Terraform Resources and Data Sources in `internal/provider` with comprehensive testing.
Comprehensive security review of the Terraform provider codebase using gosec, trunk, osv-scanner, and trivy.
| name | run-acceptance-tests |
| description | Guide the execution of Lightdash Terraform provider acceptance tests, ensuring correct environment setup and targeted test execution. |
Standardize the execution of acceptance tests (integration tests against a live Lightdash API) in this project. This skill ensures that the environment is correctly configured before running potentially slow or impactful tests.
Acceptance tests (setting TF_ACC=1) require a live Lightdash instance and specific environment variables.
Before running any acceptance tests, you MUST verify the existence and content of the .env file in the project root.
.env exists.LIGHTDASH_URL: The base URL of the Lightdash instance (e.g., https://app.lightdash.cloud).LIGHTDASH_API_KEY: A valid API key for authentication.LIGHTDASH_PROJECT: The UUID of the project to use for testing.If .env is missing or incomplete:
.env.template to .env: cp .env.template .envUse this for general verification of the provider's resources and data sources against a live API.
make testaccinternal/provider/... with TF_ACC=1.To save time and focus on specific changes, run only relevant test cases.
make testacc TESTARGS="-run <Pattern>"make testacc TESTARGS="-run TestAccResourceSpace"make testacc TESTARGS="-run TestAccDataSourceProject"make testacc TESTARGS="-run TestAccResourceSpace/create_space"make test. They are fast, do not require a live API, and MUST NOT set TF_ACC=1.make testacc. They are slower, require a live API, and MUST set TF_ACC=1.TESTARGS="-timeout 120m".LIGHTDASH_API_KEY and LIGHTDASH_URL in .env.