1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash test_description='Test insert' . ./setup.sh test_expect_success 'Test "insert" command' ' pass init $KEY1 && echo "Hello world" | pass insert -e cred1 && [[ $(pass show cred1) == "Hello world" ]] ' test_done