Skip to content

Commit

Permalink
Removed service team tests after make acceptance completes (#44)
Browse files Browse the repository at this point in the history
* Removed tests after run

Signed-off-by: CharlieBlain <[email protected]>

* Updated makefile ignore errors and continue so the tests will always be
deleted

Signed-off-by: CharlieBlain <[email protected]>

Co-authored-by: CharlieBlain <[email protected]>
  • Loading branch information
CharlieBlain and CharlieBlain authored Feb 24, 2022
1 parent 5cf7527 commit 2dc907e
Show file tree
Hide file tree
Showing 49 changed files with 10 additions and 1,130 deletions.
14 changes: 10 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ docs-generate: vendor
.PHONY: docs-generate

accframework: vendor
go install github.com/nomad-software/[email protected] ; \
vend; \

# Download acceptance tests
Expand All @@ -71,18 +72,23 @@ accframework: vendor
fi ; \
if [ -d vendor/github.com/HewlettPackard/$(prefix)$${f}$(suffix)/internal/acceptance_test ] ; then \
cp -r vendor/github.com/HewlettPackard/$(prefix)$${f}$(suffix)/internal/acceptance_test ./internal/acceptance/$${f} ; \
cp -r vendor/github.com/HewlettPackard/$(prefix)$${f}$(suffix)/acc-prod_testcases ./internal/acceptance/$${f} ; \
cp -r vendor/github.com/HewlettPackard/$(prefix)$${f}$(suffix)/acc-testcases ./internal/acceptance/$${f} ; \
fi ; \
rm ./internal/acceptance/$${f}/provider_test.go ; \
cp ./internal/acceptance/acceptance-utils/provider_test.go ./internal/acceptance/$${f} ; \
go mod tidy ; \
go mod vendor ; \
done

.PHONY: accframework

acceptance: accframework
export TF_ACC_TEST_PATH=$(shell pwd)/internal/acceptance/vmaas/acc-prod_testcases ; \
for f in $(ACC_TEST_SERVICES); do \
TF_ACC=true go test -v -timeout=9000s -cover ./internal/acceptance/$$f ; \
-for f in $(ACC_TEST_SERVICES); do \
TF_ACC_TEST_PATH=$(shell pwd)/internal/acceptance/vmaas/acc-testcases TF_ACC=true go test -v -timeout=9000s -cover ./internal/acceptance/$$f ; \
# remove service tests ; \
rm -rf ./internal/acceptance/$$f ; \
go mod tidy ; \
go mod vendor ; \
done

# remove vend files
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/HewlettPackard/terraform-provider-hpegl
go 1.14

require (
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.0-beta7
github.com/HewlettPackard/hpegl-vmaas-terraform-resources v0.1.7
github.com/ashanbrown/makezero v0.0.0-20210308000810-4155955488a0 // indirect
github.com/esimonov/ifshort v1.0.2 // indirect
Expand Down
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -891,11 +891,8 @@ github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b h1:HxLVTlqcHhF
github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM=
github.com/tetafro/godot v1.4.4 h1:VAtLEoAMmopIzHVWVBrztjVWDeYm1OD/DKqhqXR4828=
github.com/tetafro/godot v1.4.4/go.mod h1:FVDd4JuKliW3UgjswZfJfHq4vAx0bD/Jd5brJjGeaz4=
github.com/tidwall/gjson v1.12.1 h1:ikuZsLdhr8Ws0IdROXUS1Gi4v9Z4pGqpX/CvJkxvfpo=
github.com/tidwall/gjson v1.12.1/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94 h1:ig99OeTyDwQWhPe2iw9lwfQVF1KB3Q4fpP3X7/2VBG8=
github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk=
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions internal/acceptance/vmaas/data_source_cloud_folder_test.go

This file was deleted.

30 changes: 0 additions & 30 deletions internal/acceptance/vmaas/data_source_clouds_test.go

This file was deleted.

31 changes: 0 additions & 31 deletions internal/acceptance/vmaas/data_source_datastores_test.go

This file was deleted.

45 changes: 0 additions & 45 deletions internal/acceptance/vmaas/data_source_edge_cluster_test.go

This file was deleted.

30 changes: 0 additions & 30 deletions internal/acceptance/vmaas/data_source_environments_test.go

This file was deleted.

Loading

0 comments on commit 2dc907e

Please sign in to comment.