Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
add restart test
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Vieux <[email protected]>
  • Loading branch information
vieux committed Sep 7, 2017
1 parent 02e50b3 commit 6dc5a16
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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


0 comments on commit 6dc5a16

Please sign in to comment.