-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,019 additions
and
142 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -9,4 +9,6 @@ tests/ | |
|
||
.idea | ||
**/*.lock.hcl | ||
**/*.backup | ||
**/*.backup | ||
|
||
.DS_Store |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
data "codefresh_team" "admins" { | ||
name = "admins" | ||
} | ||
|
||
data "codefresh_team" "users" { | ||
name = "users" | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
variable "api_url" {} | ||
|
||
variable "default_acccount_limits" { | ||
type = map(any) | ||
default = { | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,15 @@ | ||
# Equivalence Tests | ||
|
||
This directory contains equivalence tests for the provider. | ||
|
||
See: https://github.com/opentofu/equivalence-testing | ||
|
||
## Updating Equivalence Test Cases | ||
|
||
When additional examples are added to [examples/](../../../examples), the equivalence test cases should be updated as well. | ||
|
||
```bash | ||
$ ./update-test-cases.sh | ||
``` | ||
|
||
Then, |
This file contains 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,22 @@ | ||
#!/bin/bash | ||
|
||
source $(realpath $(dirname $0))/lib.sh | ||
|
||
for i in $(find $(realpath $(dirname $0))/results/terraform -mindepth 1 -not -path '**/*/.*' -type d); do | ||
test_case_name=$(basename ${i}) | ||
print_style "Test case " | ||
print_style "${test_case_name}" "info" | ||
print_style ":\n" | ||
for f in $(find ${i} -type f); do | ||
print_style " * comparing " | ||
print_style "results/terraform/$(basename ${f})" "info" | ||
print_style " and " | ||
print_style "results/opentofu/$(basename ${f})" "info" | ||
print_style ": " | ||
diff \ | ||
$(realpath $(dirname $0))/results/terraform/$(basename ${i})/$(basename ${f}) \ | ||
$(realpath $(dirname $0))/results/opentofu/$(basename ${i})/$(basename ${f}) \ | ||
|| print_style "FAILED\n" "danger" \ | ||
&& print_style "PASS\n" "success" | ||
done | ||
done |
This file contains 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,22 @@ | ||
#!/bin/bash | ||
|
||
# prints colored text | ||
print_style () { | ||
|
||
if [ "$2" == "info" ] ; then | ||
COLOR="96m"; | ||
elif [ "$2" == "success" ] ; then | ||
COLOR="92m"; | ||
elif [ "$2" == "warning" ] ; then | ||
COLOR="93m"; | ||
elif [ "$2" == "danger" ] ; then | ||
COLOR="91m"; | ||
else #default color | ||
COLOR="0m"; | ||
fi | ||
|
||
STARTCOLOR="\e[$COLOR"; | ||
ENDCOLOR="\e[0m"; | ||
|
||
printf "$STARTCOLOR%b$ENDCOLOR" "$1"; | ||
} |
Oops, something went wrong.