Skip to content

Commit bf03b12

Browse files
author
Maurice Faber
committed
fix: bats [ci skip]
1 parent a2043f0 commit bf03b12

File tree

3 files changed

+1
-31
lines changed

3 files changed

+1
-31
lines changed

bin/tests/bootstrap.bats

-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function teardown () {
1717
# env folder creation #
1818
#######################
1919
@test "env folder should not be overwritten" {
20-
git init "$ENV_DIR"
2120
cluster_path="$env_path/cluster.yaml"
2221
mkdir -p "$env_path" && touch $cluster_path && echo "clouds: please-do-not-remove" > $cluster_path
2322
binzx/otomi bootstrap
@@ -27,7 +26,6 @@ function teardown () {
2726
}
2827

2928
@test "env folder should be created after bootstrap.sh" {
30-
git init "$ENV_DIR"
3129
binzx/otomi bootstrap
3230
assert_file_exist "$env_path/charts"
3331
assert_file_exist "$env_path/teams"

bin/tests/common.bats

-28
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"score-templates": "TESTING=1 binzx/otomi score-templates",
107107
"spellcheck": "cspell '/docs/**/**.md' '/values-schema.yaml' '/*.md' '/.values/README.md'",
108108
"test": "run-s spellcheck test:bats lint validate-templates check-policies",
109-
"test:bats": "TESTING=1 binzx/otomi x bats -T bin/tests",
109+
"test:bats": "TESTING=1 binzx/otomi x bats -- -T bin/tests",
110110
"test:ci": "TESTING=1 binzx/otomi x src/ci-tests.ts",
111111
"test:opa": "binzx/otomi x opa test policies -v",
112112
"un-release": "sh -c 'git tag -d $1 && git push origin :refs/tags/$1' sh",

0 commit comments

Comments
 (0)