-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: Adding integration tests #4198
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 74 commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
c35e08a
feat: Adding integration tests
yhakbar 7067ac8
feat: Adding SSH integration test
yhakbar 634cda7
feat: Bumping versions for fixtures
yhakbar f53e2a9
feat: Adding SOPS integration tests
yhakbar 73e2929
feat: Adding pre-commit hooks
yhakbar c968174
feat: Upgrading pre-commit
yhakbar 399f056
feat: Adding pre-commit to mise.toml for precommit workflow
yhakbar 7a7bd23
tmp: Pinning feature branch for pre-commit hooks
yhakbar 75a867f
fix: Adjusting usage of `copyEnvironmentWithTflint`
yhakbar 78354e2
fix: Adjusting usage of `copyEnvironmentToPath`
yhakbar 5f8bf30
fix: Adjusting setup for tflint workflow
yhakbar ab52b5a
fix: Adding `-v` flag
yhakbar e365744
fix: Adjusting wordsplitting
yhakbar 09eaa79
fix: Fixing race condition for CAS
yhakbar 2018e20
fix: Adding race test
yhakbar efb5fc2
Merge remote-tracking branch 'origin/main' into feat/adding-integrati…
denis256 3f3af57
Pre commit switch to v0.1.29
denis256 8082f3d
Base test update
denis256 d5668b5
Base test update
denis256 8456fde
Base tests update
denis256 53c4a8e
Mise CICD
denis256 8331fbf
Precommit setup
denis256 d92b094
Updated report path
denis256 b8889e8
Added uploading of platform specific test results
denis256 8c13a8d
Added mise profile
denis256 cf96dec
Lint issues
denis256 a95f778
Base test update
denis256 c86b7c3
pre-commit simplification
denis256 e34f916
Goimports install
denis256 02bc39b
Output fetching
denis256 c3f9d09
Merge remote-tracking branch 'origin/main' into feat/adding-integrati…
denis256 c29abad
Add GCP test
denis256 dadcb42
GCP cleanup
denis256 8df51aa
Integration tests update
denis256 88cdb31
add secrets fetching
denis256 623bacf
Add auth config
denis256 5845404
Cleanup integration
denis256 46a3ce1
Secrets update
denis256 0cafd29
Tests update
denis256 793a234
Tests simplification
denis256 da070d5
Add cicd tools to install
denis256 e20b112
Add github keys
denis256 15dc7c9
updated passing of secrets
denis256 61542b0
Updated passing keys
denis256 aa12ceb
add engine download step
denis256 7066905
Added aws credentials for tflint
denis256 8b08116
Removed unused reference to secrets
denis256 bdb662c
secrets cleanup
denis256 95f3a1d
secrets update
denis256 0ffc274
Integration tests update
denis256 00c488d
Added run pattern and tags
denis256 c3d35c5
Cleanup
denis256 0b4e6d4
Cleanup
denis256 349251b
Setup update
denis256 1075702
Scripts update
denis256 e753ec0
Scripts update
denis256 1f5e6f4
Add logging of each script
denis256 dfb40c8
Add skip flag
denis256 a29cf4b
Fixed sops tests
denis256 77c61a7
Google project switch
denis256 b79d4cf
Creds update
denis256 730d5a7
gcp setting
denis256 d0bb727
PR fixes
denis256 f0838d6
Updated repo path
denis256 dede13c
tflint update
denis256 50d4fd1
Getter ssh test update
denis256 bff9d45
Test update
denis256 80f64dc
SSH fix
denis256 5be046a
GCP cleanup
denis256 e0bb10f
Merge branch 'main' into feat/adding-integration-tests
denis256 8359e43
Add secrets sourcing
denis256 f27c13f
Add setting of GOOGLE_SERVICE_ACCOUNT_JSON
denis256 09cae1a
GCP key generation
denis256 2407f3d
Add gcp skip flag
denis256 3ab43f8
PR comments
denis256 26f2f73
Script update
denis256 8a92977
fix: Moving workflow interpolation to env vars
yhakbar 76c8f8d
fix: Fixing workflow references
yhakbar f0ad39e
fix: Adjusting permissions
yhakbar eaa59fc
fix: Marking `SCRIPT_PATHS` as optional
yhakbar 360c437
fix: Join scripts
yhakbar 679b2b8
fix: Join secrets
yhakbar 3817f53
fix: Setting `ENV_FILE` appropriately
yhakbar 48fcee7
fix: Marking `SECRETS` as optional
yhakbar 4a97781
fix: Marking `SETUP_SCRIPTS` as optional
yhakbar 9f02c60
fix: Adjusting usage of `SCRIPT_PATHS`
yhakbar db7bbf3
fix: Always make the env file
yhakbar b8b7b75
fix: Adjusting check for scripts
yhakbar 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
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 -euo pipefail | ||
| export TOFU_ENGINE_VERSION="v0.0.16" | ||
| export REPO="gruntwork-io/terragrunt-engine-opentofu" | ||
| export ASSET_NAME="terragrunt-iac-engine-opentofu_rpc_${TOFU_ENGINE_VERSION}_linux_amd64.zip" | ||
| pushd . | ||
| # Download the engine binary | ||
| mkdir -p /tmp/engine | ||
| cd /tmp/engine | ||
| wget -O "engine.zip" "https://github.com/${REPO}/releases/download/${TOFU_ENGINE_VERSION}/${ASSET_NAME}" | ||
| unzip -o "engine.zip" | ||
| popd |
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,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
| echo "$GCLOUD_SERVICE_KEY" > "${HOME}/gcloud-service-key.json" | ||
| export GOOGLE_APPLICATION_CREDENTIALS="${HOME}/gcloud-service-key.json" |
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,5 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| gpg --import --no-tty --batch --yes ./test/fixtures/sops/test_pgp_key.asc |
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,9 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| SSH_KEY="${GHA_DEPLOY_KEY:?Required environment variable GHA_DEPLOY_KEY}" | ||
|
|
||
| mkdir -p ~/.ssh | ||
| echo "$SSH_KEY" > ~/.ssh/id_rsa | ||
| chmod 600 ~/.ssh/id_rsa |
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,5 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo 'tflint = "0.47.0"' >> mise.toml | ||
denis256 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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.