Skip to content

Commit 2e209a3

Browse files
adding acceptance test section in make and readme
1 parent c48b176 commit 2e209a3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ vet:
2525
lint: gofmt
2626
golangci-lint run -c ./.golangci.yml ./internal/... .
2727

28+
set-tf-acc:
29+
TF_ACC=true
30+
31+
acc-test: | set-tf-acc test
32+
2833
website-lint:
2934
@echo "==> Checking website against linters..."
3035
@misspell -error -source=text website/ || (echo; \

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ provider.
8686
**Flattening and Helper Tests:** These can be run by `make test` directly.
8787

8888
**Acceptance Tests:** Set the environment variables in your IDE configurations or Terminal.
89-
Environment variables that are required to be set universally are `TMC_ENDPOINT`, `TMC_CSP_ENDPOINT`, `TMC_CSP_TOKEN` and `TF_ACC`. `TF_ACC` has to be set as `true`.
89+
Environment variables that are required to be set universally are `TMC_ENDPOINT`, `TMC_CSP_ENDPOINT` and `TMC_CSP_TOKEN`.
9090

9191
Environment variables specific to particular resources:
9292

9393
- **Attach Cluster with Kubeconfig and Namespace Resource** - `KUBECONFIG`
9494
- **TKGs workload cluster** - `MANAGEMENT_CLUSTER`, `PROVISIONER_NAME`, `VERSION` and `STORAGE_CLASS`.
9595
- **TKGm Vsphere workload cluster** - `MANAGEMENT_CLUSTER` and `CONTROL_PLANE_ENDPOINT`.
9696

97-
After the environment variables are set, run the respective tests.
97+
After the environment variables are set, run `make acc-test`.
9898

9999
## Provider Documentation
100100

0 commit comments

Comments
 (0)