-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSU-2024: Drift detection for other clouds (#423)
* Add tests for update flow and credentials ID handling * Credentials drift for GKE * Expose common update for the three resoruce types. Use in AKS. * Add common update in EKS * Added comment why we don't do drift for EKS * Tests for EKS. Added nil check in update handling * Generate-all * Add explicit provider name to tfplugindocs so it works even if folder name does not match * Remove forgotten todo * Add drift for EKS in case credentials are reset remotely without changing role. * Increase acc test timeout a bit
- Loading branch information
Showing
9 changed files
with
679 additions
and
208 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -36,7 +36,7 @@ generate-sdk: | |
.PHONY: generate-docs | ||
generate-docs: | ||
go install github.com/hashicorp/terraform-plugin-docs/cmd/[email protected] | ||
tfplugindocs generate --rendered-provider-name "CAST AI" --ignore-deprecated | ||
tfplugindocs generate --rendered-provider-name "CAST AI" --ignore-deprecated --provider-name terraform-provider-castai | ||
|
||
.PHONY: generate-all | ||
generate-all: generate-sdk generate-docs | ||
|
@@ -63,7 +63,7 @@ test: | |
.PHONY: testacc | ||
testacc: | ||
@echo "==> Running acceptance tests" | ||
TF_ACC=1 go test ./castai/... '-run=^TestAcc' -v -timeout 40m | ||
TF_ACC=1 go test ./castai/... '-run=^TestAcc' -v -timeout 50m | ||
|
||
.PHONY: validate-terraform-examples | ||
validate-terraform-examples: | ||
|
This file contains 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 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 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.