Permalink
Browse files

30DaysOfTests: transfer command

  • Loading branch information...
conradkdotcom committed Sep 13, 2017
1 parent b698560 commit d172719105175bc142de9d49d737bb2da653b1e5
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/test-command-transfer.sh
@@ -0,0 +1,13 @@
#!/bin/bash
# create a new empty volume for tests
docker volume rm rooster >& /dev/null
docker volume create rooster >& /dev/null
# create the file
printf 'y\nxxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster generate -s YouTube yt@example.com || exit 1
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list | grep YouTube | grep yt@example.com || exit 1
# transfer worked
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster transfer YouTube vids@example.com || exit 1
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list | grep YouTube | grep vids@example.com || exit 1

0 comments on commit d172719

Please sign in to comment.