-
Notifications
You must be signed in to change notification settings - Fork 3
[feat][gov] Update repo to reflect v.2.9.0 of the API #52
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 all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b1c436e
update repo to reflect v.2.9.0 of the api
simplyluke 152dc92
fixes to cursor slop
simplyluke 7d3e327
notes in readme
simplyluke 9b69b63
all tests passing, working on a local server with real examples
simplyluke 7ff262a
docs
simplyluke 937e119
lint fixes
simplyluke 63a5dff
add comment on folder deletion recursion
simplyluke b574c25
notes on reviewing
simplyluke b4e1446
better handling for config variables as secret
simplyluke 6f33e69
update docs
simplyluke 71081a3
lint
simplyluke b50c1b0
lint
simplyluke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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
32 changes: 16 additions & 16 deletions
32
examples/resources/retool_configuration_variable/resource.tf
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,44 +1,44 @@ | ||
| resource "retool_configuration_variable" "test_config_var" { | ||
| name = "Test Space" | ||
| value = [ | ||
| name = "Test Config Var" | ||
| values = [ | ||
| { | ||
| environment_id = "production" | ||
| environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod | ||
| value = "value1" | ||
| }, | ||
| { | ||
| environment_id = "staging" | ||
| environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging | ||
| value = "value2" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| resource "retool_configuration_variable" "test_config_var_with_descritpion" { | ||
| name = "Test Space with creation options" | ||
| resource "retool_configuration_variable" "test_config_var_with_description" { | ||
| name = "Test Config Var with description" | ||
| description = "This is a test configuration variable with a description" | ||
| value = [ | ||
| values = [ | ||
| { | ||
| environment_id = "production" | ||
| environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod | ||
| value = "value1" | ||
| }, | ||
| { | ||
| environment_id = "staging" | ||
| environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging | ||
| value = "value2" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| resource "retool_configuration_variable" "test_config_var_as_secret" { | ||
| name = "Test Space with creation options" | ||
| description = "This is a test configuration variable with a description" | ||
| name = "Test Secret Config Var" | ||
| description = "This is a secret configuration variable" | ||
| secret = true | ||
| value = [ | ||
| values = [ | ||
| { | ||
| environment_id = "production" | ||
| value = "value1" | ||
| environment_id = "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" # prod | ||
| value = "secret_value1" | ||
| }, | ||
| { | ||
| environment_id = "staging" | ||
| value = "value2" | ||
| environment_id = "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e" # staging | ||
| value = "secret_value2" | ||
| } | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| package acctest | ||
|
|
||
| import ( | ||
| "crypto/tls" | ||
| "net/http" | ||
| "os" | ||
| "path" | ||
|
|
@@ -28,11 +29,21 @@ const ( | |
| func newHTTPRecorder(t *testing.T) *recorder.Recorder { | ||
| t.Helper() | ||
|
|
||
| // Create an HTTP client with TLS verification disabled for recording. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to make this change to record the tests, at least with an agent. |
||
| httpClient := &http.Client{ | ||
| Transport: &http.Transport{ | ||
| TLSClientConfig: &tls.Config{ | ||
| InsecureSkipVerify: true, // #nosec G402 -- This is for test recording only | ||
| }, | ||
| }, | ||
| } | ||
|
|
||
| recorderTransport, err := recorder.NewWithOptions( | ||
| &recorder.Options{ | ||
| CassetteName: cassetteName(t.Name()), | ||
| Mode: recorder.ModeRecordOnce, | ||
| SkipRequestLatency: true, | ||
| RealTransport: httpClient.Transport, | ||
| }, | ||
| ) | ||
| require.NoError(t, err) | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quality of life improvement here. IDs for envs are always UUIDs, not names.