Permalink
Browse files

30DaysOfTests: list command

  • Loading branch information...
conradkdotcom committed Sep 13, 2017
1 parent 7a1914d commit 6b1205282967490d24ad7306d12cbffbf6a05466
Showing with 13 additions and 0 deletions.
  1. +13 −0 tests/test-command-list.sh
View
@@ -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 YouTube yt@example.com || exit 1
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster generate Google google@example.com || exit 1
# check that password is listed
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list | grep YouTube | grep yt@example.com || exit 1
printf 'xxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list | grep Google | grep google@example.com || exit 1

0 comments on commit 6b12052

Please sign in to comment.