Permalink
Browse files

30DaysOfTests: password retry indicates corruption after 3 tries

  • Loading branch information...
conradkdotcom committed Sep 1, 2017
1 parent 5cc8e30 commit a2aaf9c8f2759d56dbc153edb46e111a69fdfe12
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/test-password-retry-nok.sh
@@ -0,0 +1,12 @@
#!/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\nfail\n' | docker run --rm -i -v rooster:/home/rooster rooster list
test "$?" != 0 || exit 1

0 comments on commit a2aaf9c

Please sign in to comment.