Skip to content

Commit aed52c5

Browse files
Fixed test timeouts (#632)
1 parent 0fed503 commit aed52c5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/openshift-upgrade-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: cd scripts && ./openshift-upgrade-test.sh
6666
env:
6767
OC_TOKEN: ${{ secrets.OPENSHIFT_UPGRADE_TOKEN }}
68-
CLUSTER_API_URL: ${{ secrets.OPENSHIFT_SERVER_API }}
68+
CLUSTER_API_URL: ${{ secrets.OPENSHIFT_UPGRADE_SERVER_API }}
6969
LATEST_RELEASE_REGISTRY: ${{ github.event.inputs.previousReleaseRegistry }}
7070
REGISTRY: ${{ github.event.inputs.registryForNewRelease }}
7171

scripts/openshift-upgrade-test.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
set -eou pipefail
44

55
# This test is designed to be launched from "mongodb-atlas-kubernetes/scripts" catalog
6+
#
7+
# Before running, make sure you have the following tools:
8+
# * opm 4.9+
9+
# * kustomize
10+
# * operator-sdk
11+
# * controller-gen
12+
# * yq
13+
#
614
# Test conf
715
TEST_NAMESPACE=${TEST_NAMESPACE:-"atlas-upgrade-test"}
816
LATEST_RELEASE_VERSION="${LATEST_RELEASE_VERSION:-1.0.0}"
@@ -30,9 +38,9 @@ OPERATOR_CATALOG_IMAGE="${REGISTRY}/${OPERATOR_NAME}-catalog:${CURRENT_VERSION}"
3038
OPERATOR_CATALOGSOURCE_NAME="${OPERATOR_CATALOG_NAME}"
3139
OPERATOR_SUBSCRIPTION_NAME="${OPERATOR_NAME}-subscription"
3240

33-
millisecond=1
34-
second=$(( 1000 * millisecond ))
35-
DEFAULT_TIMEOUT=$((2 * second))
41+
second=1
42+
minute=$(( 60 * second ))
43+
DEFAULT_TIMEOUT=$((4 * minute))
3644

3745
if [ -z "${OC_TOKEN+x}" ]; then
3846
echo "OC_TOKEN is not set"

0 commit comments

Comments
 (0)