uusia testejä
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 26s
acc-tests Cucumber test report
CI Feature / Cucumber tests (push) Successful in 1m4s
unit-tests Bats test report
CI Feature / Bats tests (push) Successful in 1m48s
CI Feature / Report Summary (push) Successful in 5s
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 26s
acc-tests Cucumber test report
CI Feature / Cucumber tests (push) Successful in 1m4s
unit-tests Bats test report
CI Feature / Bats tests (push) Successful in 1m48s
CI Feature / Report Summary (push) Successful in 5s
This commit is contained in:
@@ -153,6 +153,21 @@ teardown() {
|
||||
[ "$NEXT_VERSION" = "0.3.2" ]
|
||||
}
|
||||
|
||||
@test "VERSION_FILE=Chart-umbrella.yaml extracts only top-level version" {
|
||||
mock_set_sequence '[{"code": 200, "body": []}]'
|
||||
mock_start
|
||||
|
||||
export VERSION_FILE="$BATS_TEST_DIRNAME/fixtures/check-version/Chart-umbrella.yaml"
|
||||
run bash scripts/check-version.sh
|
||||
|
||||
echo "STATUS=$status"
|
||||
echo "OUTPUT=$output"
|
||||
[ "$status" -eq 0 ]
|
||||
source /tmp/build-ctx/build.env
|
||||
echo "NEXT_VERSION=$NEXT_VERSION"
|
||||
[ "$NEXT_VERSION" = "0.1.0" ]
|
||||
}
|
||||
|
||||
@test "no version source exits with error" {
|
||||
mock_set_sequence '[{"code": 200, "body": []}]'
|
||||
mock_start
|
||||
|
||||
Reference in New Issue
Block a user