Skip to content

Commit d9e6102

Browse files
committed
feat: configures test script to work against archived repo
The reason is that operator testing harness we rely expects the structure of the repo prior to the split and will not work yet with the new approach. I have raised the question in the repo on one of my PRs https://github.com/redhat-openshift-ecosystem/operator-test-playbooks/pull/247\#issuecomment-923966892
1 parent a91cda4 commit d9e6102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release/operatorhub/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ while test $# -gt 0; do
2222
;;
2323
-t)
2424
shift
25-
runTests=1
2625
if test $# -gt 0; then
2726
tests=$1
2827
fi
@@ -56,12 +55,13 @@ OPERATOR_HUB=${OPERATOR_HUB:-"community-operators"}
5655
TMP_DIR=$(mktemp -d -t "${OPERATOR_NAME}.XXXXXXXXXX")
5756
trap '{ rm -rf -- "$TMP_DIR"; }' EXIT
5857

58+
#### We can keep old repository to run tests (upstream testing script still relies on that)
5959
OWNER="${OWNER:-operator-framework}"
6060
HUB_REPO_URL="${HUB_REPO_URL:-https://github.com/${OWNER}/community-operators.git}"
6161
HUB_BASE_BRANCH="${HUB_BASE_BRANCH:-master}"
6262

6363
FORK="${FORK:-maistra}"
64-
FORK_REPO_URL="${FORK_REPO_URL:-https://${GIT_USER}:${GITHUB_TOKEN}@github.com/${FORK}/community-operators.git}"
64+
FORK_REPO_URL="${FORK_REPO_URL:-https://${GIT_USER}:${GITHUB_TOKEN}@github.com/${FORK}/community-operators-archived.git}"
6565

6666
BRANCH=${BRANCH:-"${OPERATOR_HUB}/${OPERATOR_NAME}-${OPERATOR_VERSION}"}
6767

0 commit comments

Comments
 (0)