From 5cc347f1c27bb21241248443ba372d310ac73dac Mon Sep 17 00:00:00 2001 From: gabrie30 Date: Fri, 20 Sep 2024 09:11:37 -0700 Subject: [PATCH] Update github_cloud_integration_tests.sh (#455) --- scripts/github_cloud_integration_tests.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/github_cloud_integration_tests.sh b/scripts/github_cloud_integration_tests.sh index 8f9c78db..496b5311 100755 --- a/scripts/github_cloud_integration_tests.sh +++ b/scripts/github_cloud_integration_tests.sh @@ -8,7 +8,9 @@ cp ./ghorg /usr/local/bin GITHUB_ORG=forcepushtoproduction GHORG_TEST_REPO=ghorg-ci-test +GHORG_TEST_SELF_PRIVATE_REPO=ghorg_testing_private REPO_WITH_TESTING_TOPIC=ghorg-repo-with-topic-of-testing +GITHUB_SELF=gabrie30 ghorg version @@ -34,6 +36,17 @@ else exit 1 fi +# user cloning selfs private repo +ghorg clone $GITHUB_SELF --clone-type=user --topics=ghogtestprivate --token=$GITHUB_TOKEN --path=/tmp --output-dir=testing_self_private_repo + +if [ -e /tmp/testing_self_private_repo/$GHORG_TEST_SELF_PRIVATE_REPO ] +then + echo "Pass: github self private repos clone" +else + echo "Fail: github self private repos clone" + exit 1 +fi + # clone an org with configuration file set by config flag ghorg clone $GITHUB_ORG --token=$GITHUB_TOKEN --config=$PWD/scripts/testing_confs/alternative_clone_path_conf.yaml