Skip to content

Commit c5d94e9

Browse files
authored
Remove sweeper information from CONTRIBUTING.md (#20501)
1 parent 7d6a083 commit c5d94e9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

.github/CONTRIBUTING.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,3 @@ In a case where you are editing an existing field you might want to ensure the r
1616
export RELEASE_DIFF=true
1717
TF_LOG=TRACE make testacc TEST=./google TESTARGS='-run=TestAccContainerNodePool_basic' > output.log
1818
```
19-
20-
## Sweepers
21-
22-
Running provider tests often can lead to dangling test resources caused by test failures. Terraform has a capability to run [Sweepers](https://www.terraform.io/docs/extend/testing/acceptance-tests/sweepers.html) which can go through and delete resources. In TPG, sweepers mainly:
23-
1. List every resource in a project of a specific kind
24-
2. Iterate through the list and determine if a resource is [sweepable](https://github.com/GoogleCloudPlatform/magic-modules/blob/master/mmv1/third_party/terraform/utils/gcp_sweeper_test.go#L46)
25-
3. If sweepable, delete the resource
26-
27-
Sweepers run by using the `-sweep` and `-sweep-run` `TESTARGS` flags:
28-
29-
```
30-
TF_LOG=TRACE make testacc TEST=./google TESTARGS='-sweep=us-central1 -sweep-run=<sweeper-name-here>' > output.log
31-
```

0 commit comments

Comments
 (0)