[shaun@arch ruby-net-ldap]$ bundle exec rake spec
/home/shaun/.rbenv/versions/1.9.3-p545/bin/ruby -S rspec ./spec/integration/ssl_ber_spec.rb ./spec/unit/ber/ber_spec.rb ./spec/unit/ber/core_ext/array_spec.rb ./spec/unit/ber/core_ext/string_spec.rb ./spec/unit/ldap/dn_spec.rb ./spec/unit/ldap/entry_spec.rb ./spec/unit/ldap/filter_parser_spec.rb ./spec/unit/ldap/filter_spec.rb ./spec/unit/ldap/search_spec.rb ./spec/unit/ldap_spec.rb -Ispec:lib
BER serialisation (SSL)
^C
Exiting... Interrupt again to exit immediately.
Freezes there until I kill it.
[shaun@arch ruby-net-ldap]$ bundle exec rake test
/home/shaun/.rbenv/versions/2.1.1/bin/ruby -w -Ilib:bin:test:. -e 'require "rubygems"; require "minitest/autorun"; require "test/test_entry.rb"; require "test/test_ldif.rb"; require "test/test_password.rb"; require "test/test_filter.rb"; require "test/test_rename.rb"; require "test/test_snmp.rb"; require "test/test_ldap_connection.rb"' --
/home/shaun/Projects/ruby-net-ldap/lib/net/ldap.rb:1375: warning: assigned but unused variable - sort_control
/home/shaun/Projects/ruby-net-ldap/lib/net/ldap/password.rb:33: warning: mismatched indentations at 'end' with 'case' at 23
/home/shaun/Projects/ruby-net-ldap/lib/net/ldap/password.rb:21: warning: assigned but unused variable - attribute_value
/home/shaun/Projects/ruby-net-ldap/test/test_snmp.rb:15: warning: assigned but unused variable - ary
Run options: --seed 62517
# Running tests:
.......................F..F...
Finished tests in 0.019945s, 1504.1319 tests/s, 7570.7974 assertions/s.
1) Failure:
TestSnmp#test_get_request [/home/shaun/Projects/ruby-net-ldap/test/test_snmp.rb:54]:
<"0'\x02\x01\x00\x04\x06public\xA0\x1A\x02\x02?*\x02\x01\x00\x02\x01\x000\x0E0\f\x06\b+\x06\x01\x02\x01\x01\x01\x00\x05\x00"> expected but was
<"0'\u0002\u0001\u0000\u0004\u0006public\xA0\u001A\u0002\u0002?*\u0002\u0001\u0000\u0002\u0001\u00000\u000E0\f\u0006\b+\u0006\u0001\u0002\u0001\u0001\u0001\u0000\u0005\u0000">.
2) Failure:
TestSnmp#test_make_response [/home/shaun/Projects/ruby-net-ldap/test/test_snmp.rb:86]:
<"0+\u0002\u0001\u0000\u0004\u0006public\xA2\u001E\u0002\u0002'\u000F\u0002\u0001\u0000\u0002\u0001\u00000\u00120\u0010\u0006\b+\u0006\u0001\u0002\u0001\u0001\u0001\u0000\u0004\u0004test"> expected but was
<"0+\x02\x01\x00\x04\x06public\xA2\x1E\x02\x02'\x0F\x02\x01\x00\x02\x01\x000\x120\x10\x06\b+\x06\x01\x02\x01\x01\x01\x00\x04\x04test">.
30 tests, 151 assertions, 2 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [/home/shaun/.rbenv/versions/2.1.1/bin/ruby...]
Tasks: TOP => test
(See full trace by running task with --trace)
(After applying the fix to close the pipe explicitly when closing the SSL socket.)
[shaun@arch ruby-net-ldap]$ bundle exec rake spec
/home/shaun/.rbenv/versions/2.1.1/bin/ruby -S rspec ./spec/integration/ssl_ber_spec.rb ./spec/unit/ber/ber_spec.rb ./spec/unit/ber/core_ext/array_spec.rb ./spec/unit/ber/core_ext/string_spec.rb ./spec/unit/ldap/dn_spec.rb ./spec/unit/ldap/entry_spec.rb ./spec/unit/ldap/filter_parser_spec.rb ./spec/unit/ldap/filter_spec.rb ./spec/unit/ldap/search_spec.rb ./spec/unit/ldap_spec.rb -Ispec:lib
[** output trimmed **]
Failures:
1) BER encoding of numbers should encode 128 as "\u0002\u0001\x80"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0001\x80"
got: "\x02\x01\x80" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
2) BER encoding of numbers should encode 255 as "\u0002\u0001\xFF"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0001\xFF"
got: "\x02\x01\xFF" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
3) BER encoding of numbers should encode 65535 as "\u0002\u0002\xFF\xFF"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0002\xFF\xFF"
got: "\x02\x02\xFF\xFF" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
4) BER encoding of numbers should encode 16777215 as "\u0002\u0003\xFF\xFF\xFF"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0003\xFF\xFF\xFF"
got: "\x02\x03\xFF\xFF\xFF" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
5) BER encoding of numbers should encode 1073741823 as "\u0002\u0004?\xFF\xFF\xFF"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0004?\xFF\xFF\xFF"
got: "\x02\x04?\xFF\xFF\xFF" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
6) BER encoding of numbers should encode 1342177279 as "\u0002\u0004O\xFF\xFF\xFF"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0004O\xFF\xFF\xFF"
got: "\x02\x04O\xFF\xFF\xFF" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
7) BER encoding of numbers should encode 500 as "\u0002\u0002\u0001\xF4"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0002\u0001\xF4"
got: "\x02\x02\x01\xF4" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
8) BER encoding of numbers should encode 50000 as "\u0002\u0002\xC3P"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0002\xC3P"
got: "\x02\x02\xC3P" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
9) BER encoding of numbers should encode 5000000000 as "\u0002\u0005\u0001*\u0005\xF2\u0000"
Failure/Error: number.to_ber.should == expected_encoding
expected: "\u0002\u0005\u0001*\u0005\xF2\u0000"
got: "\x02\x05\x01*\x05\xF2\x00" (using ==)
# ./spec/unit/ber/ber_spec.rb:56:in `block (4 levels) in <top (required)>'
10) BER encoding of strings should properly encode UTF-8 strings
Failure/Error: "\x04\x02\xC3\xA5"
expected: "\u0004\u0002å"
got: "\x04\x02\xC3\xA5" (using ==)
# ./spec/unit/ber/ber_spec.rb:82:in `block (3 levels) in <top (required)>'
11) BER encoding of strings should properly encode binary data strings using to_ber_bin
Failure/Error: "\x04\x10" + "j1\xB4\xA1*\xA2zA\xAC\xA9`?'\xDDQ\x16"
expected: "\u0004\u0010j1\xB4\xA1*\xA2zA\xAC\xA9`?'\xDDQ\u0016"
got: "\x04\x10j1\xB4\xA1*\xA2zA\xAC\xA9`?'\xDDQ\x16" (using ==)
# ./spec/unit/ber/ber_spec.rb:90:in `block (3 levels) in <top (required)>'
12) Net::LDAP::Filter with a well-known BER string <- .to_ber unescapes escaped characters
Failure/Error: filter.to_ber.should == ber
expected: "\xA4-\u0004\vobjectclass0\u001E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar"
got: "\xA4-\x04\vobjectclass0\x1E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar" (using ==)
# ./spec/unit/ldap/filter_spec.rb:102:in `block (5 levels) in <top (required)>'
13) Net::LDAP::Filter with a well-known BER string <- .to_ber unescapes escaped characters
Failure/Error: filter.to_ber.should == ber
expected: "\xA4-\u0004\vobjectclass0\u001E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar"
got: "\xA4-\x04\vobjectclass0\x1E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar" (using ==)
# ./spec/unit/ldap/filter_spec.rb:102:in `block (5 levels) in <top (required)>'
14) Net::LDAP::Filter with a well-known BER string <- .to_ber unescapes escaped characters
Failure/Error: filter.to_ber.should == ber
expected: "\xA4-\u0004\vobjectclass0\u001E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar"
got: "\xA4-\x04\vobjectclass0\x1E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar" (using ==)
# ./spec/unit/ldap/filter_spec.rb:102:in `block (5 levels) in <top (required)>'
15) Net::LDAP::Filter with a well-known BER string <- .to_ber unescapes escaped characters
Failure/Error: filter.to_ber.should == ber
expected: "\xA4-\u0004\vobjectclass0\u001E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar"
got: "\xA4-\x04\vobjectclass0\x1E\x80\bfoo*\\bar\x81\bfoo*\\bar\x82\bfoo*\\bar" (using ==)
# ./spec/unit/ldap/filter_spec.rb:102:in `block (5 levels) in <top (required)>'
Finished in 0.09801 seconds
108 examples, 15 failures