From 6dc5a16e7a1dae0f76a599afdcb3d1979515e5b2 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 7 Sep 2017 10:21:00 -0700 Subject: [PATCH] add restart test Signed-off-by: Victor Vieux --- .travis/integration.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis/integration.sh b/.travis/integration.sh index 3f13900..0198c62 100755 --- a/.travis/integration.sh +++ b/.travis/integration.sh @@ -37,7 +37,14 @@ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world #cat /var/lib/docker/plugins/sshfs-state.json docker volume rm sshvolume -echo "# test4: source" +echo "# test4: restart" +docker volume create -d vieux/sshfs:$TAG -o sshcmd=root@localhost:/ -o port=2222 -o password=root sshvolume +docker run --rm -v sshvolume:/write busybox sh -c "echo hello > /write/world" +docker restart sshd +docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world +docker volume rm sshvolume + +echo "# test5: source" docker plugin disable vieux/sshfs:$TAG docker plugin set vieux/sshfs:$TAG state.source=/tmp docker plugin enable vieux/sshfs:$TAG @@ -47,7 +54,7 @@ docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world #cat /tmp/sshfs-state.json docker volume rm sshvolume -echo "# test5: ssh key" +echo "# test6: ssh key" docker plugin disable vieux/sshfs:$TAG docker plugin set vieux/sshfs:$TAG sshkey.source=`pwd`/.travis/ssh/ docker plugin enable vieux/sshfs:$TAG @@ -56,3 +63,5 @@ docker run --rm -v sshvolume:/write busybox sh -c "echo hello > /write/world" docker run --rm -v sshvolume:/read busybox grep -Fxq hello /read/world #cat /var/lib/docker/plugins/sshfs-state.json docker volume rm sshvolume + +