Skip to content

Commit ec5447d

Browse files
committed
add tests for using an underscore in tag name
1 parent f2d19fe commit ec5447d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test.bats

+16
Original file line numberDiff line numberDiff line change
@@ -670,3 +670,19 @@ EOF
670670
[ ! -z $status ]
671671
[ "$(echo "$output" | jq .)" == "$(echo "$expected" | jq .)" ]
672672
}
673+
674+
@test "test parseImageName using image starting with underscore" {
675+
IMAGE="_something:tag123"
676+
TAGVAR=false
677+
run parseImageName
678+
[ $status -eq 13 ]
679+
}
680+
681+
@test "test parseImageName using image containing an underscore in tag name" {
682+
IMAGE="something:tag_123"
683+
TAGVAR=false
684+
run parseImageName
685+
[ ! -z $status ]
686+
[ "$output" == "something:tag_123" ]
687+
echo "output = $output" 1>&2
688+
}

0 commit comments

Comments
 (0)