From 421fc4e29804d34c601f4c6420136f8fcabf6c32 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Fri, 28 May 2021 14:18:58 -0700 Subject: [PATCH] Add a testcase for github HTTPS --- test_e2e.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test_e2e.sh b/test_e2e.sh index 5f82c0e..8f78d63 100755 --- a/test_e2e.sh +++ b/test_e2e.sh @@ -1432,6 +1432,23 @@ assert_file_eq "$ROOT"/link/file2 "$TESTCASE" # Wrap up 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... echo echo "all tests passed: cleaning up $DIR"