Permalink
Browse files

[project @ whitespace]

Ignore-this: e4b91f8280dc1591726467448a468188
  • Loading branch information...
1 parent 6bff93e commit 4d0da03ba0cb16684212d48b98f67195a3ee7b54 tailor committed Jul 1, 2009
Showing with 18 additions and 18 deletions.
  1. +18 −18 test/test_associationmanager.rb
@@ -314,9 +314,9 @@ def test_bad_response
# in an unsupported-type response is absent.
def test_empty_assoc_type
msg = mk_message({'error' => 'Unsupported type',
- 'error_code' => 'unsupported-type',
- 'session_type' => 'new-session-type',
- })
+ 'error_code' => 'unsupported-type',
+ 'session_type' => 'new-session-type',
+ })
assert_log_matches('Unsupported association type',
"Server #{@server_url} responded with unsupported "\
@@ -331,9 +331,9 @@ def test_empty_assoc_type
# in an unsupported-type response is absent.
def test_empty_session_type
msg = mk_message({'error' => 'Unsupported type',
- 'error_code' => 'unsupported-type',
- 'assoc_type' => 'new-assoc-type',
- })
+ 'error_code' => 'unsupported-type',
+ 'assoc_type' => 'new-assoc-type',
+ })
assert_log_matches('Unsupported association type',
"Server #{@server_url} responded with unsupported "\
@@ -352,10 +352,10 @@ def test_not_allowed
@allowed_types = [['assoc_bogus', 'session_bogus']]
}
msg = mk_message({'error' => 'Unsupported type',
- 'error_code' => 'unsupported-type',
- 'assoc_type' => 'not-allowed',
- 'session_type' => 'not-allowed',
- })
+ 'error_code' => 'unsupported-type',
+ 'assoc_type' => 'not-allowed',
+ 'session_type' => 'not-allowed',
+ })
assert_log_matches('Unsupported association type',
'Server sent unsupported session/association type:') {
@@ -367,10 +367,10 @@ def test_not_allowed
# retry to get an association with the new preferred type.
def test_unsupported_with_retry
msg = mk_message({'error' => 'Unsupported type',
- 'error_code' => 'unsupported-type',
- 'assoc_type' => 'HMAC-SHA1',
- 'session_type' => 'DH-SHA1',
- })
+ 'error_code' => 'unsupported-type',
+ 'assoc_type' => 'HMAC-SHA1',
+ 'session_type' => 'DH-SHA1',
+ })
assoc = Association.new('handle', 'secret', Time.now, 10000, 'HMAC-SHA1')
@@ -383,10 +383,10 @@ def test_unsupported_with_retry
# retry, but the retry fails and nil is returned instead.
def test_unsupported_with_retry_and_fail
msg = mk_message({'error' => 'Unsupported type',
- 'error_code' => 'unsupported-type',
- 'assoc_type' => 'HMAC-SHA1',
- 'session_type' => 'DH-SHA1',
- })
+ 'error_code' => 'unsupported-type',
+ 'assoc_type' => 'HMAC-SHA1',
+ 'session_type' => 'DH-SHA1',
+ })
assert_log_matches('Unsupported association type',
"Server #{@server_url} refused") {

0 comments on commit 4d0da03

Please sign in to comment.