|
|
||
|---|---|---|
| .. | ||
| main.tf | ||
| README.md | ||
| setup-dev.sh | ||
| tf | ||
End-to-End Testing
This directory contains a complete end-to-end test setup for the terraform-provider-tor.
Quick Start
-
Setup development environment:
./setup-dev.shThis script will:
- Create local
.terraformrcwith dev overrides (no global config changes) - Build and install the provider locally
- Create local
-
Run the test:
./tf plan ./tf applyOr using the full command:
TF_CLI_CONFIG_FILE=.terraformrc terraform plan TF_CLI_CONFIG_FILE=.terraformrc terraform applyNote: Skip
terraform initwhen using dev overrides - it's not needed and may cause errors. -
Clean up:
./tf destroy
Troubleshooting
If you encounter issues:
- Provider not found: Run
./setup-dev.shagain - Build errors: Check that Go >= 1.23 is installed
- Permission errors: Ensure the setup script is executable
Resetting
To reset your Terraform configuration:
rm -rf .terraform/ .terraform.lock.hcl terraform.tfstate*
Then run the setup and init process again.