Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-dma committed Jan 22, 2015
1 parent 173de0f commit 5a35245
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/u2f-server-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ORIGIN="http://yubico.com"
APPID="http://yubico.com"
AUTH_PARAM="authenticate"
REGISTER_PARAM="register"
ERROR_PARAM="unknown"

REG_CHALLENGE1="TVgGf_GfMfVf4L2KiNmLdyIoR59ez4qtmLwwdG4-lkI"
REG_RESPONSE1="{ \"registrationData\": \"BQRjk4BrghuG1RR0nIzda230YhTj4\
Expand Down Expand Up @@ -85,6 +86,12 @@ jby5jb20iLCAidHlwIjogIm5hdmlnYXRvci5pZC5nZXRBc3NlcnRpb24iIH0=\", \"key\
Handle\": \"1pak7LBnX4OSCkOIKd6P8I7OCwTBc7YKDDJ3Yhn_nArtvgvzn5P0NkcG2A\
1iezF1h6QW8OKQp13lM0P5ZVSf1w\" }"

$(${U2FSERVER} -a${ERROR_PARAM})
RESULT=$?
if [ $RESULT -ne 1 ]; then
exit $EXIT_FAILURE
fi

$(${U2FSERVER} -a${REGISTER_PARAM})
RESULT=$?
if [ $RESULT -ne 1 ]; then
Expand Down

0 comments on commit 5a35245

Please sign in to comment.