@@ -532,7 +532,7 @@ it_skips_excluded_commits_conventional() {
532532}
533533
534534it_skips_non_included_and_excluded_commits () {
535- local repo=$( init_repo)
535+ local repo=$( init_repo)
536536 local ref1=$( make_commit $repo )
537537 local ref2=$( make_commit $repo " not skipped commit" )
538538 local ref3=$( make_commit $repo " not skipped sometimes" )
@@ -545,6 +545,32 @@ local repo=$(init_repo)
545545 "
546546}
547547
548+ it_rejects_filter_with_incorrect_format () {
549+ local repo=$( init_repo)
550+ local ref1=$( make_commit $repo )
551+
552+ set +e
553+ output=$(
554+ jq --arg uri " $( init_repo) " \
555+ --arg ref " $( make_commit " $repo " ) " \
556+ -n ' {
557+ source: {
558+ $uri,
559+ commit_filter: {
560+ include: "a string, not an array",
561+ }
562+ },
563+ version: {
564+ $ref
565+ }
566+ }' | ${resource_dir} /check | tee /dev/stderr
567+ )
568+ exit_code=$?
569+ set -e
570+
571+ test $exit_code -ne 0
572+ }
573+
548574it_does_not_skip_marked_commits_when_disable_skip_configured () {
549575 local repo=$( init_repo)
550576 local ref1=$( make_commit_to_future $repo )
@@ -968,6 +994,7 @@ run it_skips_excluded_commits
968994run it_skips_excluded_commits_conventional
969995run it_skips_non_included_commits
970996run it_skips_non_included_and_excluded_commits
997+ run it_rejects_filter_with_incorrect_format
971998run it_does_not_skip_marked_commits_when_disable_skip_configured
972999run it_fails_if_key_has_password_not_provided
9731000run it_can_unlock_key_with_password
@@ -999,4 +1026,3 @@ run it_checks_lastest_commit
9991026run it_can_check_a_repo_having_multiple_root_commits
10001027run it_checks_with_version_depth
10011028run it_checks_uri_with_tag_filter_and_version_depth
1002-
0 commit comments