Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
TODO: test acc with parallel tests
  • Loading branch information
theobori committed May 30, 2023
1 parent f674d6c commit 797f1ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ BIN_PATH = $(BIN_DIR)/$(BIN)
# Formatted Go files
GOFMT_FILES ?= $(shell find . -name "*.go")

NEUVECTOR_PATH = ./internal/resources/neuvector
TEST_FILES = $(NEUVECTOR_PATH)/data_source_eula_test.go \
$(NEUVECTOR_PATH)/resource_eula_test.go \
$(NEUVECTOR_PATH)/resource_registry_test.go

default: install

build:
Expand All @@ -32,7 +37,7 @@ neuvector:
docker-compose up -d

testacc: clean_test
TF_ACC=1 go test -v ./...
TF_ACC=1 go test -v $(TEST_FILES)

clean_test:
go clean -testcache
Expand Down
6 changes: 3 additions & 3 deletions internal/resources/neuvector/resource_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func TestAccResourceGroup(t *testing.T) {
),
},
{
ResourceName: "neuvector_group.test",
ImportState: true,
ImportStateVerify: true,
ResourceName: "neuvector_group.test",
ImportState: true,
ImportStateVerify: true,
},
},
})
Expand Down

0 comments on commit 797f1ff

Please sign in to comment.