Skip to content

Commit

Permalink
Set TF_LOG_PATH_MASK for simulated acceptance tests.
Browse files Browse the repository at this point in the history
This results in per-test log files in /tmp such as:

`tmp.1ylrTjx0Ge.TestAccDatastoreResourceOk.log`

These new log files contain the http debug, so we
can now more easily "see" what is happening during
these test runs.
  • Loading branch information
stuart-mclaren-hpe committed Nov 12, 2024
1 parent 23ddaf1 commit 4ec4280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ testacc-simulation:
tfconfig=$$(mktemp); \
sed "s@__HOME__@${HOME}@g" test/.terraformrc > $$tfconfig; \
env TF_ACC=1 env TF_CLI_CONFIG_FILE=$$tfconfig \
env TF_LOG_PATH_MASK=$${tfconfig}.%s.log \
go test -v -tags simulation ./test/...

demo:
Expand Down

0 comments on commit 4ec4280

Please sign in to comment.