After a major version release (7.0.0), our current FVT tests all failed due to some change in the lib. Our pytest version in CI was not pinned, and picked this update up.
34 lines
932 B
Bash
Executable File
34 lines
932 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## This script is to run emqx cluster smoke tests (fvt) in github action
|
|
## This script is executed in paho_client
|
|
|
|
set -x
|
|
set +e
|
|
|
|
EMQX_TEST_DB_BACKEND=$1
|
|
if [ "$EMQX_TEST_DB_BACKEND" = "rlog" ]
|
|
then
|
|
# TODO: target only replica to avoid replication races
|
|
# see: https://github.com/emqx/emqx/issues/6094
|
|
TARGET_HOST="node2.emqx.io"
|
|
else
|
|
# use loadbalancer
|
|
TARGET_HOST="haproxy"
|
|
fi
|
|
|
|
apk update && apk add git curl
|
|
git clone -b develop-4.0 https://github.com/emqx/paho.mqtt.testing.git /paho.mqtt.testing
|
|
pip install pytest==6.2.5
|
|
|
|
pytest -v /paho.mqtt.testing/interoperability/test_client/V5/test_connect.py -k test_basic --host "$TARGET_HOST"
|
|
RESULT=$?
|
|
|
|
pytest -v /paho.mqtt.testing/interoperability/test_client --host "$TARGET_HOST"
|
|
RESULT=$(( RESULT + $? ))
|
|
|
|
# pytest -v /paho.mqtt.testing/interoperability/test_cluster --host1 "node1.emqx.io" --host2 "node2.emqx.io"
|
|
# RESULT=$(( RESULT + $? ))
|
|
|
|
exit $RESULT
|