Revert "chore(test): add terraform tests for jetbrains, zed, code-server and keep mixed mode"

This reverts commit fb657b875d.
This commit is contained in:
Muhammad Atif Ali
2025-08-08 17:29:11 +05:00
parent f5a68b500b
commit ab5ff4b4be
6 changed files with 1150 additions and 197 deletions
+11 -16
View File
@@ -20,9 +20,9 @@ The Coder Registry is a collection of Terraform modules and templates for Coder
- Basic Terraform knowledge (for module development)
- Terraform installed ([installation guide](https://developer.hashicorp.com/terraform/install))
- Docker (for some modules' tests that rely on containers)
- Docker (for running tests)
### Install Dependencies (for formatting and scripts)
### Install Dependencies
Install Bun:
@@ -124,21 +124,17 @@ This script generates:
- Accurate description and usage examples
- Correct icon path (usually `../../../../.icons/your-icon.svg`)
- Proper tags that describe your module
3. **Create at least one `.tftest.hcl`** to test your module with `terraform test`
3. **Create `main.test.ts`** to test your module
4. **Add any scripts** or additional files your module needs
### 4. Test and Submit
```bash
# Test your module (from the module directory)
terraform init -upgrade
terraform test -verbose
# Or run all tests in the repo
./scripts/terraform_test_all.sh
# Test your module
bun test -t 'module-name'
# Format code
bun run fmt
bun fmt
# Commit and create PR
git add .
@@ -339,12 +335,11 @@ coder templates push test-[template-name] -d .
### 2. Test Your Changes
```bash
# Test a specific module (from the module directory)
terraform init -upgrade
terraform test -verbose
# Test a specific module
bun test -t 'module-name'
# Test all modules
./scripts/terraform_test_all.sh
bun test
```
### 3. Maintain Backward Compatibility
@@ -393,7 +388,7 @@ Example: `https://github.com/coder/registry/compare/main...your-branch?template=
### Every Module Must Have
- `main.tf` - Terraform code
- One or more `.tftest.hcl` files - Working tests with `terraform test`
- `main.test.ts` - Working tests
- `README.md` - Documentation with frontmatter
### Every Template Must Have
@@ -493,6 +488,6 @@ When reporting bugs, include:
2. **No tests** or broken tests
3. **Hardcoded values** instead of variables
4. **Breaking changes** without defaults
5. **Not running** formatting (`bun run fmt`) and tests (`terraform test`) before submitting
5. **Not running** `bun fmt` before submitting
Happy contributing! 🚀