Skip to content

Commit

Permalink
tests: fix integration tests
Browse files Browse the repository at this point in the history
* The newer versions of the sshd docker container needs a specific
  environment variable to enable the root user SSH access.

Change-Id: Ifb103b9a855fc13600a554d9570c265a60e2737f
  • Loading branch information
volans- committed Apr 20, 2021
1 parent 913a3d4 commit 8da8081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cumin/tests/integration/transports/clustershell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ EOF
for index in {1..5}; do
HOST_NAME="${CUMIN_IDENTIFIER}-${index}"
# TODO: use a custom-generated image
docker run -d -p "222${index}:22" -v "/${CUMIN_TMPDIR}/id_${SSH_KEY_ALGO}.pub:/root/.ssh/authorized_keys" --name "${HOST_NAME}" "panubo/sshd" > /dev/null
docker run -d -p "222${index}:22" -v "/${CUMIN_TMPDIR}/id_${SSH_KEY_ALGO}.pub:/root/.ssh/authorized_keys" -e SSH_ENABLE_ROOT=true --name "${HOST_NAME}" "panubo/sshd" > /dev/null
DOCKER_INSTANCES="${DOCKER_INSTANCES} ${HOST_NAME}"
SSH_ALIASES="${SSH_ALIASES}
Host ${HOST_NAME}
Expand All @@ -47,6 +47,7 @@ EOF
}

function run_tests() {
sleep 5 # Make sure all SSH servers are up and running
cumin --force -c "${CUMIN_TMPDIR}/config.yaml" "${CUMIN_IDENTIFIER}-[1-2,5]" "touch /tmp/maybe"
cumin --force -c "${CUMIN_TMPDIR}/config.yaml" "${CUMIN_IDENTIFIER}-[1-5]" 'echo -e "First\nSecond\nThird" > /tmp/out'
py.test -n auto --strict --cov-report term-missing --cov=cumin cumin/tests/integration
Expand Down

0 comments on commit 8da8081

Please sign in to comment.