Add e2e test using opentofu cli
This commit is contained in:
parent
bd06c2e4b3
commit
6b623eb3a3
8 changed files with 180 additions and 5 deletions
13
GNUmakefile
13
GNUmakefile
|
@ -21,4 +21,15 @@ test:
|
|||
testacc:
|
||||
TF_ACC=1 go test -v -cover -timeout 120m ./...
|
||||
|
||||
.PHONY: fmt lint test testacc build install generate
|
||||
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 terraform plan && \
|
||||
TF_CLI_CONFIG_FILE=.terraformrc terraform apply -auto-approve && \
|
||||
echo "✓ E2E test passed! Cleaning up..." && \
|
||||
TF_CLI_CONFIG_FILE=.terraformrc terraform destroy -auto-approve && \
|
||||
echo "✓ E2E test completed successfully"
|
||||
|
||||
.PHONY: fmt lint test testacc build install generate e2e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue