Permalink
Browse files

30DaysOfTests: rename command

  • Loading branch information...
conradkdotcom committed Sep 13, 2017
1 parent 2ac9ea7 commit b69856095c52f6a58bb0aa9ec6defb5ae7c767c7
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/test-command-rename.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
# renaming worked
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster rename YouTube Videos || exit 1
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list | grep Videos | grep yt@example.com || exit 1

0 comments on commit b698560

Please sign in to comment.