-
Notifications
You must be signed in to change notification settings - Fork 21
Reduce technical debt of code duplication in automated tests #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
24ca7e8
makefile refactor for help. Cleanup. Seeing a panic
arrestle 867c85e
group host inventory job test refactoring
arrestle 60e9f6f
refactoring: group host inventory job test. Makefile Adjustments
arrestle 183c71b
remove changes to client.go and other review comments.
arrestle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,5 @@ config.tfrc | |
|
||
.env | ||
.DS_Store | ||
.tools | ||
.vscode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
include makefiles/golangci.mk | ||
|
||
.PHONY: build test lint | ||
|
||
|
||
default: build | ||
|
||
build: | ||
build: ## Compile the Go package. This is the default. | ||
@echo "==> Building package..." | ||
go build | ||
|
||
lint: | ||
@echo "==> Checking source code against linters..." | ||
golangci-lint run -v ./... | ||
|
||
test: | ||
test: ## Execute all unit tests with verbose output." | ||
@echo "==> Running unit tests..." | ||
go test -v ./... | ||
|
||
testacc: | ||
testacc: ## Run acceptance tests against local aap-dev instance (https://localhost:8043)." | ||
@echo "==> Running acceptance tests..." | ||
TF_ACC=1 AAP_HOST="https://localhost:8043" AAP_INSECURE_SKIP_VERIFY=true go test -count=1 -v ./... | ||
TF_ACC=1 AAP_HOST="http://localhost:8043" go test -count=1 -v ./... | ||
dleehr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
testacc-aapdev: | ||
testacc-aapdev: ## Run acceptance tests against local aap-dev instance (EXPORT AAP_HOST="http://localhost:9080") | ||
@echo "==> Running acceptance tests..." | ||
TF_ACC=1 AAP_HOST="http://localhost:9080" go test -count=1 -v ./... | ||
TF_ACC=1 go test -count=1 -v ./... | ||
|
||
gofmt: | ||
@echo "==> Format code using gofmt..." | ||
gofmt -s -w internal/provider | ||
|
||
generatedocs: | ||
generatedocs: ## Format example Terraform configurations and generate plugin documentation." | ||
@echo "==> Formatting examples and generating docs..." | ||
terraform fmt -recursive ./examples/ | ||
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate | ||
|
||
.PHONY: help | ||
help: ## Show this help message | ||
@grep -hE '^[a-zA-Z0-9._-]+:.*?##' $(MAKEFILE_LIST) | \ | ||
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-24s\033[0m %s\n", $$1, $$2}' | \ | ||
sort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.