sippy_cup 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/README.markdown +2 -2
- data/bin/sippy_cup +1 -2
- data/lib/sippy_cup/runner.rb +3 -2
- data/lib/sippy_cup/scenario.rb +1 -1
- data/lib/sippy_cup/version.rb +1 -1
- metadata +122 -88
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# [0.2.1](https://github.com/bklang/sippy_cup/compare/v0.2.0...v0.2.1)
|
2
|
+
* Bugfix: fix the name of the compiled files
|
3
|
+
* Bugfix: Fix SIPp arg to enable trace stats
|
4
|
+
|
1
5
|
# [0.2.0](https://github.com/bklang/sippy_cup/compare/v0.1.1...v0.2.0)
|
2
6
|
* Add new command-line ability to parse and run Sippy Cup YAML
|
3
7
|
* Bugfixes & documentation
|
data/README.markdown
CHANGED
@@ -71,8 +71,8 @@ Next, compile and run the scenario:
|
|
71
71
|
|
72
72
|
```Shell
|
73
73
|
$ sippy_cup -cr my_test_scenario.yml
|
74
|
-
Compiling media to /Users/bklang/src/sippy_cup/
|
75
|
-
Compiling scenario to /Users/bklang/src/sippy_cup/
|
74
|
+
Compiling media to /Users/bklang/src/sippy_cup/my_test_scenario.pcap...done.
|
75
|
+
Compiling scenario to /Users/bklang/src/sippy_cup/my_test_scenario.xml...done.
|
76
76
|
"Preparing to run SIPp command: sudo sipp -i 192.0.2.15 -p 8836 -sf /Users/bklang/src/sippy_cup/my_test_scenario.xml -l 10 -m 20 -r 5 -s 1 > /dev/null 2>&1"
|
77
77
|
$
|
78
78
|
```
|
data/bin/sippy_cup
CHANGED
@@ -62,10 +62,9 @@ unless @compile || @run
|
|
62
62
|
end
|
63
63
|
|
64
64
|
@definition = YAML.load File.read @definition_file
|
65
|
-
@scenario_base = @definition_file.gsub /\.yml$/, ''
|
66
65
|
|
67
66
|
unless @definition.has_key? :scenario
|
68
|
-
@definition[:scenario] =
|
67
|
+
@definition[:scenario] = @definition_file.gsub /\.yml$/, ''
|
69
68
|
end
|
70
69
|
unless @definition.has_key? :name
|
71
70
|
@definition[:name] = @definition[:scenario]
|
data/lib/sippy_cup/runner.rb
CHANGED
@@ -34,9 +34,10 @@ module SippyCup
|
|
34
34
|
command << " -l #{@options[:max_concurrent]} -m #{@options[:number_of_calls]} -r #{@options[:calls_per_second]}"
|
35
35
|
command << " -s #{sip_user}"
|
36
36
|
if @options[:stats_file]
|
37
|
-
stats_interval = @options[:stats_interval] ||
|
38
|
-
command << " -
|
37
|
+
stats_interval = @options[:stats_interval] || 1
|
38
|
+
command << " -trace_stat -stf #{@options[:stats_file]} -fd #{stats_interval}"
|
39
39
|
end
|
40
|
+
command << "#{@options[:destination]}"
|
40
41
|
command << " > /dev/null 2>&1" unless @options[:full_sipp_output]
|
41
42
|
command
|
42
43
|
end
|
data/lib/sippy_cup/scenario.rb
CHANGED
data/lib/sippy_cup/version.rb
CHANGED
metadata
CHANGED
@@ -1,117 +1,154 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sippy_cup
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Ben Klang
|
9
9
|
- Will Drexler
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-08-27 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
17
16
|
name: packetfu
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
20
18
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
25
23
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: nokogiri
|
29
24
|
prerelease: false
|
30
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: nokogiri
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
31
34
|
none: false
|
32
|
-
requirements:
|
35
|
+
requirements:
|
33
36
|
- - ~>
|
34
|
-
- !ruby/object:Gem::Version
|
37
|
+
- !ruby/object:Gem::Version
|
35
38
|
version: 1.6.0
|
36
39
|
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: activesupport
|
40
40
|
prerelease: false
|
41
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.6.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: activesupport
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
42
50
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
51
|
+
requirements:
|
52
|
+
- - ! '>'
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
47
55
|
type: :runtime
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: guard-rspec
|
51
56
|
prerelease: false
|
52
|
-
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
58
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
59
|
+
requirements:
|
60
|
+
- - ! '>'
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: guard-rspec
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
58
71
|
type: :development
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: rspec
|
62
72
|
prerelease: false
|
63
|
-
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
74
|
none: false
|
65
|
-
requirements:
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: rspec
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
66
84
|
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version:
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '2.11'
|
69
87
|
type: :development
|
70
|
-
version_requirements: *id005
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: simplecov
|
73
88
|
prerelease: false
|
74
|
-
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
75
90
|
none: false
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version:
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '2.11'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: simplecov
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
80
103
|
type: :development
|
81
|
-
version_requirements: *id006
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: simplecov-rcov
|
84
104
|
prerelease: false
|
85
|
-
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
106
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version:
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov-rcov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
91
119
|
type: :development
|
92
|
-
version_requirements: *id007
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: ci_reporter
|
95
120
|
prerelease: false
|
96
|
-
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: ci_reporter
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
97
130
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version:
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
102
135
|
type: :development
|
103
|
-
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
104
143
|
description: This tool makes it easier to generate SIPp load tests with DTMF interactions.
|
105
|
-
email:
|
144
|
+
email:
|
106
145
|
- bklang&mojolingo.com
|
107
146
|
- wdrexler&mojolingo.com
|
108
|
-
executables:
|
147
|
+
executables:
|
109
148
|
- sippy_cup
|
110
149
|
extensions: []
|
111
|
-
|
112
150
|
extra_rdoc_files: []
|
113
|
-
|
114
|
-
files:
|
151
|
+
files:
|
115
152
|
- .gitignore
|
116
153
|
- .ruby-version
|
117
154
|
- CHANGELOG.md
|
@@ -139,32 +176,29 @@ files:
|
|
139
176
|
- spec/spec_helper.rb
|
140
177
|
homepage: https://github.com/bklang/sippy_cup
|
141
178
|
licenses: []
|
142
|
-
|
143
179
|
post_install_message:
|
144
180
|
rdoc_options: []
|
145
|
-
|
146
|
-
require_paths:
|
181
|
+
require_paths:
|
147
182
|
- lib
|
148
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
184
|
none: false
|
150
|
-
requirements:
|
151
|
-
- -
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version:
|
154
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ! '>='
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
190
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version:
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
160
195
|
requirements: []
|
161
|
-
|
162
196
|
rubyforge_project:
|
163
197
|
rubygems_version: 1.8.25
|
164
198
|
signing_key:
|
165
199
|
specification_version: 3
|
166
200
|
summary: SIPp profile and RTP stream generator
|
167
|
-
test_files:
|
201
|
+
test_files:
|
168
202
|
- spec/sippy_cup/media_spec.rb
|
169
203
|
- spec/sippy_cup/runner_spec.rb
|
170
204
|
- spec/sippy_cup/scenario_spec.rb
|