Implement the tor_family_identity resource

This commit is contained in:
Abel Luck 2025-06-06 10:51:40 +02:00
parent 0951242b32
commit ec57a47ba2
22 changed files with 558 additions and 67 deletions

View file

@ -1,13 +1,19 @@
default: fmt lint install generate
clean:
dist-clean:
go clean -cache -modcache -testcache
clean:
rm -f ./terraform-provider-tor ./provider.test
find e2e-tests -type f -name '*.tfstate*' -delete
find e2e-tests -type d -name '.terraform' -prune -exec rm -rf ./{} \;
find e2e-tests -type d -name 'providers' -prune -exec rm -rf ./{} \;
build:
go build -v ./...
go build
install: build
go install -v ./...
go install
lint:
go mod tidy
@ -33,16 +39,11 @@ test:
testacc:
TF_ACC=1 go test -v -cover -timeout 120m ./...
e2e:
@echo "Running end-to-end test..."
cd e2e-test && \
rm -rf .terraform/ .terraform.lock.hcl terraform.tfstate* && \
./setup-dev.sh && \
TF_CLI_CONFIG_FILE=.terraformrc tofu plan && \
TF_CLI_CONFIG_FILE=.terraformrc tofu apply -auto-approve && \
echo "✓ E2E test passed! Cleaning up..." && \
TF_CLI_CONFIG_FILE=.terraformrc tofu destroy -auto-approve && \
echo "✓ E2E test completed successfully"
e2e/%:
@echo "Executing end-to-end test: $*"
cd e2e-tests/$* && ./test.sh
e2e: clean build e2e/obfs4 e2e/tor-family
ci:
@echo "Running CI pipeline..."