Add a testcase for github HTTPS

This commit is contained in:
Tim Hockin 2021-05-28 14:18:58 -07:00
parent 5ecd341782
commit 421fc4e298
1 changed files with 17 additions and 0 deletions

View File

@ -1432,6 +1432,23 @@ assert_file_eq "$ROOT"/link/file2 "$TESTCASE"
# Wrap up # Wrap up
pass pass
##############################################
# Test github HTTPS
# TODO: it would be better if we set up a local HTTPS server
##############################################
testcase "github-https"
GIT_SYNC \
--one-time \
--repo="https://github.com/kubernetes/git-sync" \
--branch=e2e-branch \
--rev=HEAD \
--root="$ROOT" \
--dest="link" \
> "$DIR"/log."$TESTCASE" 2>&1
assert_file_exists "$ROOT"/link/LICENSE
# Wrap up
pass
# Finally... # Finally...
echo echo
echo "all tests passed: cleaning up $DIR" echo "all tests passed: cleaning up $DIR"