Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/scripts/verify-shim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ expect_status() { # $1 = path, $2 = expected status
}

# Every retired tool root and sub-route 301s home (spec redirect table).
# The two converter tool roots deep-link the direction instead (defect
# fix: legacy /json2csv regulars land in JSON→CSV mode); sub-routes of
# every tool still go straight home.
# The converter and JSON-input tool roots deep-link the direction instead
# (defect fix: legacy /json2csv, /json_beautifier, and /json_validator
# regulars land in JSON→CSV mode); sub-routes of every tool still go
# straight home.
for tool in csv2json json2csv json_validator json_beautifier sql2json csvjson2json datajanitor; do
case "$tool" in
csv2json) expect_redirect "/$tool" "/?direction=csv2json" ;;
json2csv) expect_redirect "/$tool" "/?direction=json2csv" ;;
*) expect_redirect "/$tool" ;;
csv2json) expect_redirect "/$tool" "/?direction=csv2json" ;;
json2csv|json_validator|json_beautifier) expect_redirect "/$tool" "/?direction=json2csv" ;;
*) expect_redirect "/$tool" ;;
esac
expect_redirect "/$tool/sub/route"
done
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading