Permalink
Browse files

30DaysOfTests: set-master-password command

  • Loading branch information...
conradkdotcom committed Sep 13, 2017
1 parent 23efdd3 commit 7a1914d180fb386e661f2bf207ca5eaee7fdb224
Showing with 14 additions and 0 deletions.
  1. +14 −0 tests/test-command-set-master-password.sh
@@ -0,0 +1,14 @@
#!/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 list || exit 1
# change password to abcd
printf 'xxxx\nabcd\nabcd\n' | docker run --rm -i -v rooster:/home/rooster rooster set-master-password || exit 1
# check that password works
printf 'abcd\n' | docker run --rm -i -v rooster:/home/rooster rooster list || exit 1

0 comments on commit 7a1914d

Please sign in to comment.