Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1d16d6f
dummy for PR
kayman-mk Jan 6, 2023
be38c2c
move integration tests into separate directory
kayman-mk Jan 6, 2023
d3c66c5
create module for unit tests
kayman-mk Jan 6, 2023
b948be7
Merge remote-tracking branch 'origin/main' into kayma/unit-test
kayman-mk Jan 9, 2023
f8ceca6
add dummy test
kayman-mk Jan 9, 2023
2113366
add dummy test
kayman-mk Jan 9, 2023
c30745e
UNIT-TEST
kayman-mk Jan 10, 2023
d729e11
Merge branch 'main' of github.com:npalm/terraform-aws-gitlab-runner i…
kayman-mk Jan 10, 2023
4032411
Merge remote-tracking branch 'origin/main' into kayma/unit-test
kayman-mk Jan 12, 2023
ae561a1
fix script errors
kayman-mk Jan 12, 2023
1fc2794
format code
kayman-mk Jan 12, 2023
2bf35a8
show plan changes
kayman-mk Jan 22, 2023
de84801
merge main
kayman-mk Mar 16, 2023
83bd552
merge main
kayman-mk Mar 16, 2023
6f77532
merge main
kayman-mk Nov 11, 2023
dce24bc
add go.mod/sum
kayman-mk Nov 11, 2023
91d7d0c
Merge branch 'main' into kayma/unit-test
kayman-mk Nov 11, 2023
2924a8d
remove go files
kayman-mk Nov 11, 2023
744f4c4
Merge branch 'kayma/unit-test' of github.com:Hapag-Lloyd/terraform-a…
kayman-mk Nov 11, 2023
fdb7f29
migrate to v7
kayman-mk Nov 11, 2023
e23fc60
trying `terraform test`
kayman-mk Nov 11, 2023
f2edafb
add ci step to execute tests
kayman-mk Nov 11, 2023
d71cc32
UNIT-TEST
kayman-mk Nov 11, 2023
522a7b9
UNIT-TEST
kayman-mk Nov 11, 2023
0f648ca
UNIT-TEST
kayman-mk Nov 11, 2023
91ac1e7
UNIT-TEST
kayman-mk Nov 11, 2023
c3966db
UNIT-TEST
kayman-mk Nov 11, 2023
1023a7c
UNIT-TEST
kayman-mk Nov 11, 2023
168cb1b
UNIT-TEST
kayman-mk Nov 11, 2023
31d9e38
UNIT-TEST
kayman-mk Nov 11, 2023
6f4e8e7
UNIT-TEST
kayman-mk Nov 11, 2023
4d1f04d
UNIT-TEST
kayman-mk Nov 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

A few sentences describing the overall goals of the pull request's commits.

Note: The whole PR is used as commit message.

## Migrations required

YES | NO - If yes please describe the migration.
Yes or No - If yes please describe the migration. For bigger changes please provide a migration script.

## Verification

Please mention the examples you have verified.
Please mention how you test the changes. Ideally add automated tests (see tests/ folder)
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# ignore: "tags not used", "access analyzer not used", "shield advanced not used"
- run: kics scan -p . -o . --exclude-queries e38a8e0a-b88b-4902-b3fe-b0fcb17d5c10,e592a0c5-5bdb-414c-9066-5dba7cdea370,084c6686-2a70-4710-91b1-000393e54c12
- run: kics scan -p . -o . --config .kics.yml --exclude-queries e38a8e0a-b88b-4902-b3fe-b0fcb17d5c10,e592a0c5-5bdb-414c-9066-5dba7cdea370,084c6686-2a70-4710-91b1-000393e54c12

tflint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -151,3 +151,24 @@ jobs:
uses: aquasecurity/tfsec-pr-commenter-action@7a44c5dcde5dfab737363e391800629e27b6376b # v1.3.1
with:
github_token: ${{ github.token }}

tests:
name: Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
aws-region: eu-central-1
role-to-assume: ${{ secrets.TERRAFORM_ADMIN_ROLE_ARN }}
role-session-name: GitHubActions
- name: Setup Terraform CLI
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
with:
terraform_version: "1.6.3"
- run: terraform init -get -backend=false -input=false
- run: terraform test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ debug/
!.release/package*
!.release/*.lock

# tests
*.tfplan.json

# VS Code
.vscode/

Expand Down
2 changes: 2 additions & 0 deletions .kics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude-paths:
- "tests/"
59 changes: 0 additions & 59 deletions test/README.md

This file was deleted.

125 changes: 0 additions & 125 deletions test/aws_spot_gitlab_runner_test.go

This file was deleted.

51 changes: 0 additions & 51 deletions test/config/config.go

This file was deleted.

64 changes: 0 additions & 64 deletions test/go.mod

This file was deleted.

Loading