Permalink
Browse files

30DaysOfTests: password retry succeeds on 3rd try

  • Loading branch information...
conradkdotcom committed Sep 1, 2017
1 parent c4da043 commit 5cc8e3059ebbc59bf9b3c45ff21af6665bf99704
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/test-password-retry-ok.sh
@@ -0,0 +1,11 @@
#!/bin/bash
# create a new empty volume for tests
docker volume rm rooster >& /dev/null
docker volume create rooster >& /dev/null
# create a file
printf 'y\nxxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list || exit 1
# try repeating password, OK on 3rd try
printf 'fail\nfail\nxxxx\n' | docker run --rm -i -v rooster:/home/rooster rooster list || exit 3

0 comments on commit 5cc8e30

Please sign in to comment.