Skip to content
Snippets Groups Projects
Unverified Commit aac4ec40 authored by Timo Furrer's avatar Timo Furrer
Browse files

Rename terraform/ test directory to iac/

parent 8c3ef949
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ include:
- templates/*.yml
- tests/integration.gitlab-ci.yml
- tests/integration-tests/*.yml
- tests/terraform/**.tf
- tests/iac/**.tf
- backports/*.gitlab-ci.yml
- backports/OpenTofu/*.gitlab-ciyml
- component: gitlab.com/components/container-scanning/container-scanning@3.0
......
File moved
File moved
......@@ -3,7 +3,7 @@ component:
variables:
OPENTOFU_VERSION: $LATEST_OPENTOFU_VERSION
TEST_TF_STATE_NAME: ci-integration-$CI_PIPELINE_IID-$CI_NODE_INDEX
TEST_TF_ROOT: tests/terraform
TEST_TF_ROOT: tests/iac
trigger:
include: tests/integration-tests/$PIPELINE_NAME.gitlab-ci.yml
strategy: depend
......@@ -19,7 +19,7 @@ backport-templates:
GITLAB_OPENTOFU_VERSION: $CI_COMMIT_SHA
OPENTOFU_VERSION: $LATEST_OPENTOFU_VERSION
TF_STATE_NAME: ci-integration-backports-$CI_PIPELINE_IID-$CI_NODE_INDEX
TF_ROOT: tests/terraform
TF_ROOT: tests/iac
trigger:
include: tests/integration-tests/$PIPELINE_NAME.gitlab-ci.yml
strategy: depend
......
variables:
TEST_PROJECT_DIR: 'tests/iac'
.gitlab-tofu-test-base:
image: "$GITLAB_OPENTOFU_IMAGE_NAME"
variables:
......@@ -5,7 +8,7 @@
cache:
key: "$OPENTOFU_VERSION-$CI_COMMIT_REF_SLUG"
paths:
- tests/terraform/.terraform/
- $TEST_PROJECT_DIR/.terraform/
before_script:
- gitlab-tofu version
- jq --version
......@@ -17,13 +20,13 @@
- .gitlab-tofu-test-base
before_script:
- !reference [.gitlab-tofu-test-base, before_script]
- cd tests/terraform
- cd $TEST_PROJECT_DIR
.test-gitlab-tofu-root:
extends:
- .gitlab-tofu-test-base
variables:
TF_ROOT: tests/terraform
TF_ROOT: $TEST_PROJECT_DIR
gitlab-tofu-init:
extends:
......@@ -78,7 +81,7 @@ gitlab-tofu-init-tf-root-with-cd:
- .opentofu-versions
stage: test
script:
- cd tests/terraform
- cd $TEST_PROJECT_DIR
- export DEBUG_OUTPUT=true
- gitlab-tofu init
......@@ -227,7 +230,7 @@ gitlab-tofu-plan:
- if [[ ! -f "plan.json" ]]; then echo "expected to find a plan.json file"; exit 1; fi
artifacts:
paths:
- "tests/terraform/*-plan.cache"
- "$TEST_PROJECT_DIR/*-plan.cache"
gitlab-tofu-apply:
extends:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment