Skip to content
Snippets Groups Projects
Commit 45a8e473 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check padded length

parent 1a4f56f4
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,10 @@ function remove_padding {
function run_tests {
pass="SuperSecretPassword"
padded=$(pad_string "$pass")
echo "|${padded}|"
if [ ${#padded} -ne 128 ]; then
echo $'Incorrect padded length'
exit 78352
fi
${PROJECT_NAME}-pass -u root -a tests -p "$pass"
returned_pass=$(${PROJECT_NAME}-pass -u root -a tests)
if [[ "$pass" != "$returned_pass" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment