Skip to content

Commit

Permalink
30DaysOfTests: password retry indicates corruption after 3 tries
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Sep 1, 2017
1 parent 5cc8e30 commit a2aaf9c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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.