Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenTofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
6cf02038
Unverified
Commit
6cf02038
authored
7 months ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Rename `DEBUG_OUTPUT` to `GITLAB_TOFU_DEBUG`
Changelog: changed
parent
bee398de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gitlab-tofu.sh
+2
-1
2 additions, 1 deletion
src/gitlab-tofu.sh
tests/unit/gitlab-tofu.bats
+1
-1
1 addition, 1 deletion
tests/unit/gitlab-tofu.bats
with
3 additions
and
2 deletions
src/gitlab-tofu.sh
+
2
−
1
View file @
6cf02038
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#
#
# Respected Environment Variables:
# Respected Environment Variables:
# --------------------------------
# --------------------------------
# GITLAB_TOFU_DEBUG: if set to true will enable xtrace.
# GITLAB_TOFU_SOURCE: forces this script in source-mode. Required when source auto-detection fails.
# GITLAB_TOFU_SOURCE: forces this script in source-mode. Required when source auto-detection fails.
# GITLAB_TOFU_APPLY_NO_PLAN: if set to true, the apply command does not use a plan cache file.
# GITLAB_TOFU_APPLY_NO_PLAN: if set to true, the apply command does not use a plan cache file.
# GITLAB_TOFU_PLAN_NAME: the name of the plan cache and json files. Defaults to `plan`.
# GITLAB_TOFU_PLAN_NAME: the name of the plan cache and json files. Defaults to `plan`.
...
@@ -42,7 +43,7 @@
...
@@ -42,7 +43,7 @@
# set some shell options
# set some shell options
set
-o
errexit
set
-o
errexit
if
[
"
${
DEBUG_OUTPUT
}
"
=
"true"
]
;
then
if
[
"
${
GITLAB_TOFU_DEBUG
}
"
=
"true"
]
;
then
set
-o
xtrace
set
-o
xtrace
fi
fi
...
...
This diff is collapsed.
Click to expand it.
tests/unit/gitlab-tofu.bats
+
1
−
1
View file @
6cf02038
...
@@ -7,7 +7,7 @@ load "$BATS_LIBS/bats-support/load"
...
@@ -7,7 +7,7 @@ load "$BATS_LIBS/bats-support/load"
load "$BATS_LIBS/bats-assert/load"
load "$BATS_LIBS/bats-assert/load"
setup() {
setup() {
export
DEBUG_OUTPUT
=true
export
GITLAB_TOFU_DEBUG
=true
# Change cwd to test specific directory
# Change cwd to test specific directory
cd "$BATS_TEST_TMPDIR"
cd "$BATS_TEST_TMPDIR"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment