lbspec 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -54,6 +54,18 @@ describe 'vhost_c:80' do
54
54
  it { should transfer(['node_b','node_c']).port(80) }
55
55
  end
56
56
 
57
+ describe 'vhost_c:80' do
58
+ it { should transfer(['node_b','node_c']).port(53).udp }
59
+ end
60
+
61
+ describe 'vhost_c:80' do
62
+ it { should transfer('node_c').http.path('/test/') }
63
+ end
64
+
65
+ describe 'vhost_c:443' do
66
+ it { should transfer(['node_b','node_c']).port(80).https.path('/test/') }
67
+ end
68
+
57
69
  ```
58
70
 
59
71
  ## Contributing
@@ -100,7 +100,6 @@ RSpec::Matchers.define :transfer do |nodes|
100
100
  end
101
101
 
102
102
  def disconnect_nodes
103
- sleep 1
104
103
  @threads.each do |t|
105
104
  t.kill
106
105
  end
@@ -123,11 +122,11 @@ RSpec::Matchers.define :transfer do |nodes|
123
122
  def send_request_application(addr, port)
124
123
  case @application
125
124
  when :http
126
- query = "?#{@keyword}"
127
- system("curl -sm 1 http://#{addr}:#{port}#{@http_path}#{query}")
125
+ uri = 'http://' + "#{addr}:#{port}#{@http_path}?#{@keyword}"
126
+ system("curl -o /dev/null -s #{uri}")
128
127
  when :https
129
- query = "?#{@keyword}"
130
- system("curl -sm 1 -k https://#{addr}:#{port}#{@http_path}#{query}")
128
+ uri = 'https://' + "#{addr}:#{port}#{@http_path}?#{@keyword}"
129
+ system("curl -o /dev/null -s -k #{uri}")
131
130
  end
132
131
  end
133
132
 
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  # Lbspec is an RSpec plugin for easy Loadbalancer testing.
3
3
  module Lbspec
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: -4545456457714803124
201
+ hash: 987805582344225460
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements:
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  segments:
209
209
  - 0
210
- hash: -4545456457714803124
210
+ hash: 987805582344225460
211
211
  requirements: []
212
212
  rubyforge_project:
213
213
  rubygems_version: 1.8.21