# you may have to change those settings:
export VMSHED_TEST_TIMEOUT=30m
export DRBD_TESTS_DIR=tests

# may be windrbd-1.1-from-gitlab or windrbd-1.2-from-gitlab
if [ ! "$WINDRBD_VERSION" ] ; then WINDRBD_VERSION=windrbd-1.2-from-gitlab ; fi
export WINDRBD_VERSION
echo "WinDRBD version is $WINDRBD_VERSION ..."

export LINBIT_DOCKER_REGISTRY=nexus.at.linbit.com:5000
export DRBD_TEST_DOCKER_IMAGE=$LINBIT_DOCKER_REGISTRY/drbd9-tests
# accept all 9.X DRBD versions - we have a separate WINDRBD_VERSION
# which we also check and use for provisioning.
export DRBD_VERSION=9.*
export DRBD_UTILS_VERSION=9.0.0.latest-*
# export SKIP_PULL=true
export PULL_WINDOWS_ONLY=true
# export LINBIT_CI_MAX_CPUS=3
# This is required for the connect-5 test: else we get failures
# export LINBIT_CI_MAX_CPUS=5
export LINBIT_CI_MAX_CPUS=6

# fails: (which is intended)
# export VIRTER_TIME_SSH_PING_COUNT=1
# This should be enough:
export VIRTER_TIME_SSH_PING_COUNT=600

# should fail: yes it does!
# export VIRTER_TIME_SHUTDOWN_TIMEOUT=1
export VIRTER_TIME_SHUTDOWN_TIMEOUT=300s

# time ./virter/run-test.sh --variant=windows
time ./virter/run-test.sh --variant=windows --repeats=3
# time ./virter/run-test.sh --variant=windows --torun=diskless --repeats=20
# time ./virter/run-test.sh --variant=windows --torun=diskless --repeats=100
# time ./virter/run-test.sh --variant=windows --torun=diskless --repeats=5
# time ./virter/run-test.sh --variant=windows --torun=invalid-names

# time ./virter/run-test.sh --base-image=windows-server-2019-created-2023 --startvm=250 --torun=add-connect-delete,add-path-multiple-times,connect,diskless,double-promote-diskless,invalid-names,outdate,quorum,quorum-failover-reconnect,rename,resync-after,resync-after-failover-to-dless,resync-initial,split-brain,stress-connect-and-2pc,suspend-io
# time ./virter/run-test.sh --base-image=windows-server-2019-created-2023 --startvm=250 --torun=add-connect-delete,add-path-multiple-times,connect,diskless,double-promote-diskless,invalid-names,outdate,quorum,quorum-failover-reconnect,rename,resync-after,resync-after-failover-to-dless,resync-initial,split-brain,stress-connect-and-2pc,suspend-io --repeats=3
# all tests 3 times.
# time ./virter/run-test.sh --base-image=windows-server-2019-created-2023 --startvm=250 --repeats=3
