-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wait for run in resource
spacelift_run
(#535)
* feat: added generic functions AsError and IsErrorType for working with error types inline in if-statements * refactor: added github.com/hashicorp/terraform-plugin-log as direct requirement to go.mod * feat: implemented wait logic for resource spacelift_run * test: added TestRunResourceWait to spacelift/resource_run_test.go * docs: updated docs for spacelift_run resource * refactor: using continue_on_state for a list of possible end states to wait spacelift/resource_run.go * refactor: change "enabled" to "disabled" in schema and waitConfiguration struct resource_run.go * fix test: should be "disabled" instead of "enabled" * let's treat unconfirmed as the target state. * use RunResourceState (global scope) insteaf of Run (user scope) * added two more tests for "wait_for_run" * fix logs * fix tests: same WP name for different tests * fix field description; move piece of code into separate method --------- Co-authored-by: Thomas <[email protected]>
- Loading branch information
1 parent
dec9cce
commit e3a9079
Showing
6 changed files
with
402 additions
and
8 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
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.