stomp 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,7 @@ class TestURLLogins < Test::Unit::TestCase
54
54
  @badparms = "failover://(stomp://#{hostname}:#{portnum})?a=b&noequal"
55
55
 
56
56
  @client = nil
57
+ @turdbg = ENV['TURDBG'] ? true : false
57
58
  end
58
59
 
59
60
  def teardown
@@ -62,16 +63,23 @@ class TestURLLogins < Test::Unit::TestCase
62
63
 
63
64
  # test stomp:// URLs
64
65
  def test_0010_stomp_urls()
66
+ mn = "test_0010_stomp_urls" if @turdbg
67
+ p [ "01", mn, "starts" ] if @turdbg
68
+
65
69
  @tdstomp.each_with_index do |url, ndx|
66
70
  c = Stomp::Client.new(url)
67
71
  assert !c.nil?, url
68
72
  assert c.open?, url
69
73
  c.close
70
74
  end
75
+ p [ "99", mn, "ends" ] if @turdbg
71
76
  end
72
77
 
73
78
  # test failover:// urls - tcp
74
79
  def test_0020_failover_urls_tcp()
80
+ mn = "test_0020_failover_urls_tcp" if @turdbg
81
+ p [ "01", mn, "starts" ] if @turdbg
82
+
75
83
  @tdfailover.each_with_index do |url, ndx|
76
84
  # p [ "xurl", url, "xndx", ndx ]
77
85
  c = Stomp::Client.new(url)
@@ -79,10 +87,14 @@ class TestURLLogins < Test::Unit::TestCase
79
87
  assert c.open?, url
80
88
  c.close
81
89
  end
90
+ p [ "99", mn, "ends" ] if @turdbg
82
91
  end
83
92
 
84
93
  # test failover:// urls - ssl
85
- def test_0020_failover_urls_ssl()
94
+ def test_0030_failover_urls_ssl()
95
+ mn = "test_0030_failover_urls_ssl" if @turdbg
96
+ p [ "01", mn, "starts" ] if @turdbg
97
+
86
98
  @sslfailover.each_with_index do |url, ndx|
87
99
  # p [ "sslxurl", url, "sslxndx", ndx ]
88
100
  c = Stomp::Client.new(url)
@@ -90,13 +102,18 @@ class TestURLLogins < Test::Unit::TestCase
90
102
  assert c.open?, url
91
103
  c.close
92
104
  end
105
+ p [ "99", mn, "ends" ] if @turdbg
93
106
  end if ENV['STOMP_TESTSSL']
94
107
 
95
108
  # test failover:// with bad parameters
96
- def test_0020_failover_badparms()
109
+ def test_0040_failover_badparms()
110
+ mn = "test_0040_failover_badparms" if @turdbg
111
+ p [ "01", mn, "starts" ] if @turdbg
112
+
97
113
  assert_raise(Stomp::Error::MalformedFailoverOptionsError) {
98
114
  _ = Stomp::Client.new(@badparms)
99
115
  }
116
+ p [ "99", mn, "ends" ] if @turdbg
100
117
  end
101
118
 
102
119
  end unless ENV['STOMP_RABBIT']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stomp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian McCallister
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-10-27 00:00:00.000000000 Z
14
+ date: 2018-11-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec