sippy_cup 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cec1cec887891ded08da44c8bf7e35d533923924
4
- data.tar.gz: 3f79938ed6a455dd62b883f4db39ddd6273876a2
3
+ metadata.gz: 650efa322556dc1bc094c6d74d2787f02ea61189
4
+ data.tar.gz: ade1161d858b4c428def8871926711af500f2fac
5
5
  SHA512:
6
- metadata.gz: 63276337ff8887505d17e00dc3e26ff1ae4670b6f905d432bc911c082f7dc740c23acdcd8e7f17466fdf0746d2756e67fad1f4ebeae3cd37acf43e9884c92852
7
- data.tar.gz: 3bce73eada59e55f0610a8667441712c3b3b3f93d36ec7311f38b4f63569440998972c94a21eafd5064c703a7dbf0b60413aef2a132dbdfde77d72d8c57b252b
6
+ metadata.gz: bcc968241f413e997b7772638eee656b26a33d97f661bccf55087622c9352786270dc09a07a62158ac0c5d7ee6801ef22502b57a50c3050adcbea146f6f649f5
7
+ data.tar.gz: fd3b9953d323f1c39bdbcb425b44822f455a5c67c089e5a5c21268008edacc7523ba986b62b416cfa97d4bf7a0111ba0f839342c944897767313aa4b3d559a9c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # develop
2
2
 
3
+ # [0.7.1](https://github.com/mojolingo/sippy_cup/compare/v0.7.0...v0.7.1)
4
+ * Bugfix: Ensure destination user is parsed out from `:to` correctly
5
+
3
6
  # [0.7.0](https://github.com/mojolingo/sippy_cup/compare/v0.6.0...v0.7.0)
4
7
  * Feature: Permit `To` domain to be different from the destination. This permits testing multi-tenant systems more easily.
5
8
 
@@ -105,7 +105,7 @@ module SippyCup
105
105
  options[:l] = max_concurrent if max_concurrent
106
106
  options[:m] = @scenario_options[:number_of_calls] if @scenario_options[:number_of_calls]
107
107
  options[:r] = @scenario_options[:calls_per_second] if @scenario_options[:calls_per_second]
108
- options[:s] = @scenario_options[:to] if @scenario_options[:to]
108
+ options[:s] = @scenario_options[:to].split('@').first if @scenario_options[:to]
109
109
 
110
110
  options[:i] = @scenario_options[:source] if @scenario_options[:source]
111
111
  options[:mp] = @scenario_options[:media_port] if @scenario_options[:media_port]
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module SippyCup
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
@@ -190,7 +190,7 @@ steps:
190
190
  end
191
191
 
192
192
  it 'should set the -s option' do
193
- expect_command_execution(/-s frank/)
193
+ expect_command_execution(/-s frank /)
194
194
  subject.run
195
195
  end
196
196
  end
@@ -97,8 +97,8 @@ describe SippyCup::Scenario do
97
97
 
98
98
  it "includes the specified user in the To header and URI line" do
99
99
  subject.invite
100
- subject.to_xml.should match(%r{To: <sip:\[service\]@\[remote_ip\]})
101
- subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]})
100
+ subject.to_xml.should match(%r{To: <sip:\[service\]@\[remote_ip\]:\[remote_port\]})
101
+ subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]:\[remote_port\]})
102
102
  end
103
103
  end
104
104
 
@@ -107,16 +107,16 @@ describe SippyCup::Scenario do
107
107
 
108
108
  it "includes the specified address in the To header, but not the URI line" do
109
109
  subject.invite
110
- subject.to_xml.should match(%r{To: <sip:\[service\]@foo.bar})
111
- subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]})
110
+ subject.to_xml.should match(%r{To: <sip:\[service\]@foo.bar:\[remote_port\]})
111
+ subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]:\[remote_port\]})
112
112
  end
113
113
  end
114
114
 
115
115
  context "when no to is specified" do
116
116
  it "uses a default of '[remote_ip]' in the To header and URI line" do
117
117
  subject.invite
118
- subject.to_xml.should match(%r{To: <sip:\[service\]@\[remote_ip\]})
119
- subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]})
118
+ subject.to_xml.should match(%r{To: <sip:\[service\]@\[remote_ip\]:\[remote_port\]})
119
+ subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]:\[remote_port\]})
120
120
  end
121
121
  end
122
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sippy_cup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Klang