diff options
author | Azul <azul@leap.se> | 2012-06-26 23:02:51 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-06-26 23:02:51 +0200 |
commit | bd88f52b03c2b8061aa753b7d925dd9bc4057e6e (patch) | |
tree | 44fc927200d8a9423e0653a1a6c648da61f7d9f4 /test | |
parent | 12b30b7e861c510593c6a8bd4bae68c2126106db (diff) |
first steps towards adding a server side srp flow to the example
Diffstat (limited to 'test')
-rw-r--r-- | test/auth_test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/auth_test.rb b/test/auth_test.rb index e6c4017..0f76404 100644 --- a/test/auth_test.rb +++ b/test/auth_test.rb @@ -10,15 +10,19 @@ class AuthTest < Test::Unit::TestCase end def test_successful_auth + print "salt: " + puts @client.salt + print "verifier: " + puts @client.verifier assert @client.authenticate(@server, @username, @password) end def test_wrong_password - assert !@client.authenticate(@server, @username, "password") + assert !@client.authenticate(@server, @username, "wrong password") end def test_wrong_username - assert !@client.authenticate(@server, "username", @password) + assert !@client.authenticate(@server, "wrong username", @password) end end |