-
Notifications
You must be signed in to change notification settings - Fork 450
[terraform] Add Custom Download Server Support for Terraform Dev Container Feature #1364
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
Open
iTiPo
wants to merge
9
commits into
devcontainers:main
Choose a base branch
from
iTiPo:custom-server-to-download-terraform
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2fc2f3a
Add custom download server option to download terraform
iTiPo c4bd98a
Bump Terraform version to 1.4.0 in devcontainer feature configuration
iTiPo 8a9dab5
Update custom download server documentation and implementation to req…
iTiPo 54edd48
Remove my changes from an auto-generated file
iTiPo f3e4823
Remove my changes from an auto-generated file
iTiPo 57dfb82
Add security considerations for custom download servers in documentation
iTiPo 8873bed
Update security considerations section in documentation with warning …
iTiPo 7f654ca
Return leading empty lines back to NOTES.md
iTiPo 2e9c1d2
Fix formatting in custom download server scripts by ensuring consiste…
iTiPo 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Import test library | ||
source dev-container-features-test-lib | ||
|
||
# Check if terraform was installed correctly and it's the expected version | ||
check "terraform installed" terraform --version | ||
check "terraform version matches" terraform --version | grep "1.6.5" | ||
|
||
# Report results | ||
reportResults |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Import test library | ||
source dev-container-features-test-lib | ||
|
||
# Check if terraform was installed correctly and it's the expected version | ||
check "terraform installed" terraform --version | ||
check "terraform version matches" terraform --version | grep "1.6.5" | ||
|
||
# Check if sentinel was installed correctly | ||
check "sentinel installed" sentinel --version | ||
|
||
# Report results | ||
reportResults |
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
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.
Since the default is already
"https://releases.hashicorp.com"
, this test makes the case that adding it does not break functionality. However, I would like to test that it does override - I can see from the code that it does, but still would be good to systematically test it. Would you be able to make an additional test with a fake URL and expect that it fails please?Uh oh!
There was an error while loading. Please reload this page.
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.
@AlvaroRausell could you tell me how I can check that the feature installation fails? I didn't find any examples of such checks in the repository?