Eng Zer Jun 49c5eba458 test: use T.TempDir to create temporary test directory (#2671)
This commit replaces `os.MkdirTemp` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `os.MkdirTemp`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-11-13 14:13:29 -06:00
2022-11-11 09:56:33 -06:00
2022-11-12 21:58:24 -06:00
2022-11-12 21:58:24 -06:00
2022-10-08 11:16:48 -07:00
2022-11-12 21:58:24 -06:00
2022-11-12 20:32:39 -06:00
2022-10-08 11:16:48 -07:00
2022-11-12 21:58:24 -06:00
2022-11-12 21:58:24 -06:00
2018-03-15 17:25:02 -07:00
2022-10-08 11:16:48 -07:00
2022-11-13 13:11:32 -06:00
2018-08-16 13:02:09 -10:00
2020-04-21 20:44:12 -07:00

Atlantis

SuperDopeBadge Go Report Card codecov CircleCI Slack

Atlantis Logo

Terraform Pull Request Automation

Resources

What is Atlantis?

A self-hosted golang application that listens for Terraform pull request events via webhooks.

What does it do?

Runs terraform plan and apply remotely and comments back on the pull request with the output.

Why should you use it?

  • Make Terraform changes visible to your whole team.
  • Enable non-operations engineers to collaborate on Terraform.
  • Standardize your Terraform workflows.

Stargazers over time

Stargazers over time

Description
Terraform Pull Request Automation
Readme 215 MiB