Skip to content

Commit d7cda77

Browse files
committed
Align repo names in repo tests to enable sweeper
Signed-off-by: Timo Sand <[email protected]>
1 parent 0444dbb commit d7cda77

3 files changed

Lines changed: 166 additions & 137 deletions

File tree

GNUmakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TEST?=$$(go list ./... |grep -v 'vendor')
1+
SWEEP?=repositories,teams
22
WEBSITE_REPO=github.com/hashicorp/terraform-website
33
PKG_NAME=github
44

@@ -40,6 +40,10 @@ test-compile:
4040
fi
4141
CGO_ENABLED=0 go test -c $(TEST) $(TESTARGS)
4242

43+
sweep:
44+
@echo "WARNING: This will destroy infrastructure. Use only in development accounts."
45+
go test $(TEST) -v -sweep=$(SWEEP) $(SWEEPARGS)
46+
4347
website:
4448
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
4549
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."

github/acc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
enterprise testMode = "enterprise"
2626
)
2727

28-
const testResourcePrefix = "test-acc-"
28+
const testResourcePrefix = "tf-acc-test-"
2929

3030
var (
3131
orgTestModes = []testMode{organization, team, enterprise}

0 commit comments

Comments
 (0)