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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sippy_cup/runner.rb +1 -1
- data/lib/sippy_cup/version.rb +1 -1
- data/spec/sippy_cup/runner_spec.rb +1 -1
- data/spec/sippy_cup/scenario_spec.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650efa322556dc1bc094c6d74d2787f02ea61189
|
4
|
+
data.tar.gz: ade1161d858b4c428def8871926711af500f2fac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/sippy_cup/runner.rb
CHANGED
@@ -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]
|
data/lib/sippy_cup/version.rb
CHANGED
@@ -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
|