ruby_rabbitmq_janus 2.5.0.pre.210 → 2.5.0.pre.213
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/requests/admin/{handles.json → list_handles.json} +0 -0
- data/config/requests/admin/{sessions.json → list_sessions.json} +0 -0
- data/config/requests/admin/{tokens.json → list_tokens.json} +0 -0
- data/config/requests/admin/set_libnice_debug.json +6 -0
- data/config/requests/admin/set_locking_debug.json +2 -2
- data/config/requests/admin/set_log_colors.json +6 -0
- data/config/requests/admin/set_log_level.json +2 -2
- data/config/requests/admin/set_log_timestamps.json +6 -0
- data/config/requests/admin/set_max_nack_queue.json +6 -0
- data/config/requests/admin/set_no_media_timer.json +6 -0
- data/config/requests/admin/set_session_timeout.json +7 -0
- data/config/requests/admin/start_pcap.json +5 -3
- data/config/requests/admin/stop_pcap.json +2 -0
- data/config/requests/admin/stop_text2pcap.json +1 -1
- data/lib/generators/ruby_rabbitmq_janus/initializer_generator.rb +1 -1
- data/lib/generators/ruby_rabbitmq_janus/install_generator.rb +1 -1
- data/lib/generators/ruby_rabbitmq_janus/migration_generator.rb +1 -1
- data/lib/rrj/info.rb +1 -1
- data/lib/rrj/janus/processus/event.rb +1 -1
- data/lib/rrj/janus/processus/event_admin.rb +5 -1
- data/lib/rrj/janus/processus/keepalive/keepalive_thread.rb +0 -4
- data/lib/rrj/janus/transactions/admin.rb +2 -0
- data/lib/rrj/rabbit/propertie.rb +6 -2
- data/lib/rrj/rabbit/publish/listener_admin.rb +3 -0
- data/lib/rrj/rabbit/publish/publisher_admin.rb +8 -7
- data/lib/rrj/tools/gem/config.rb +2 -0
- data/lib/rrj/tools/replaces/admin.rb +21 -35
- data/spec/request/admin/request_add_token_spec.rb +29 -0
- data/spec/request/admin/request_allow_token_spec.rb +20 -0
- data/spec/request/admin/request_disallow_token_spec.rb +20 -0
- data/spec/request/admin/request_handle_info_spec.rb +13 -14
- data/spec/request/admin/request_list_handles_spec.rb +19 -0
- data/spec/request/admin/request_list_sessions_spec.rb +20 -0
- data/spec/request/admin/request_list_tokens_spec.rb +18 -0
- data/spec/request/admin/request_remove_token_spec.rb +18 -0
- data/spec/request/admin/request_set_libnice_debug_spec.rb +28 -0
- data/spec/request/admin/request_set_locking_debug_spec.rb +20 -10
- data/spec/request/admin/request_set_log_colors_spec.rb +28 -0
- data/spec/request/admin/request_set_log_level_spec.rb +64 -12
- data/spec/request/admin/request_set_log_timestamps_spec.rb +28 -0
- data/spec/request/admin/request_set_max_nack_queue_spec.rb +28 -0
- data/spec/request/admin/request_set_no_media_timer_spec.rb +28 -0
- data/spec/request/admin/request_set_session_timeout_spec.rb +35 -0
- data/spec/request/admin/request_start_pcap_spec.rb +27 -0
- data/spec/request/admin/request_start_text2pcap_spec.rb +26 -0
- data/spec/request/admin/request_stop_pcap_spec.rb +20 -0
- data/spec/request/admin/request_stop_text2pcap_spec.rb +27 -0
- data/spec/spec_helper.rb +7 -1
- data/spec/support/admin_requester.rb +48 -0
- data/spec/support/schemas/request/admin/{handles.json → list_handles.json} +0 -0
- data/spec/support/schemas/request/admin/{sessions.json → list_sessions.json} +0 -0
- data/spec/support/schemas/request/base/error.json +22 -0
- data/spec/support/schemas/request/base/success.json +11 -0
- metadata +52 -15
- data/spec/request/admin/request_handles_spec.rb +0 -21
- data/spec/request/admin/request_sessions_spec.rb +0 -17
- data/spec/request/admin/request_tokens_spec.rb +0 -13
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- set_log_colors', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :set_log_colors do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_request_tested(parameters)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
14
|
+
let(:type) { 'admin::set_log_colors' }
|
15
|
+
let(:parameters) { { 'colors' => debug } }
|
16
|
+
|
17
|
+
context 'when debug is true' do
|
18
|
+
let(:debug) { true }
|
19
|
+
|
20
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when debug is false' do
|
24
|
+
let(:debug) { false }
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
27
|
+
end
|
28
|
+
end
|
@@ -2,17 +2,69 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe 'RubyRabbitmqJanus::
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- set_log_level', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :set_log_level do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_request_tested(parameters)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
14
|
+
let(:type) { 'admin::set_log_level' }
|
15
|
+
let(:parameters) { { 'level' => level } }
|
16
|
+
|
17
|
+
context 'when change level to 0' do
|
18
|
+
let(:level) { 0 }
|
19
|
+
|
20
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when change level to 1' do
|
24
|
+
let(:level) { 1 }
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
27
|
+
end
|
28
|
+
|
29
|
+
context 'when change level to 2' do
|
30
|
+
let(:level) { 2 }
|
31
|
+
|
32
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'when change level to 3' do
|
36
|
+
let(:level) { 3 }
|
37
|
+
|
38
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'when change level to 4' do
|
42
|
+
let(:level) { 4 }
|
43
|
+
|
44
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
45
|
+
end
|
46
|
+
|
47
|
+
context 'when change level to 5' do
|
48
|
+
let(:level) { 5 }
|
49
|
+
|
50
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'when change level to 6' do
|
54
|
+
let(:level) { 6 }
|
55
|
+
|
56
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
57
|
+
end
|
58
|
+
|
59
|
+
context 'when change level to 7' do
|
60
|
+
let(:level) { 7 }
|
61
|
+
|
62
|
+
it { expect(@transaction.to_json).to match_json_schema(type) }
|
63
|
+
end
|
64
|
+
|
65
|
+
context 'when change level more 7' do
|
66
|
+
let(:level) { rand(8..3056) }
|
67
|
+
|
68
|
+
it { expect(@transaction.to_json).to match_json_schema('base::error') }
|
17
69
|
end
|
18
70
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- set_log_timestamps', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :set_log_timestamps do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_request_tested(parameters)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
14
|
+
let(:type) { 'admin::set_log_timestamps' }
|
15
|
+
let(:parameters) { { 'timestamps' => debug } }
|
16
|
+
|
17
|
+
context 'when debug is true' do
|
18
|
+
let(:debug) { true }
|
19
|
+
|
20
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when debug is false' do
|
24
|
+
let(:debug) { false }
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- set_max_nack_queue', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :set_max_nack_queue do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_request_tested(parameters)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
14
|
+
let(:type) { 'admin::set_max_nack_queue' }
|
15
|
+
let(:parameters) { { 'max_nack_queue' => max } }
|
16
|
+
|
17
|
+
context 'when max is 0' do
|
18
|
+
let(:max) { 0 }
|
19
|
+
|
20
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when max is random' do
|
24
|
+
let(:max) { rand(1..546_465) }
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- set_no_media_timer', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :set_no_media_timer do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_request_tested(parameters)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
14
|
+
let(:type) { 'admin::set_no_media_timer' }
|
15
|
+
let(:parameters) { { 'no_media_timer' => timer } }
|
16
|
+
|
17
|
+
context 'when max is 0' do
|
18
|
+
let(:timer) { 0 }
|
19
|
+
|
20
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when max is random' do
|
24
|
+
let(:timer) { rand(1..546_465) }
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- set_session_timeout', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :set_session_timeout do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_request_tested(parameters)
|
11
|
+
end
|
12
|
+
|
13
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
14
|
+
let(:type) { 'admin::set_session_timeout' }
|
15
|
+
let(:parameters) do
|
16
|
+
{
|
17
|
+
'level' => level,
|
18
|
+
'session_timeout' => timeout
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
context 'when timeout is 0' do
|
23
|
+
let(:timeout) { 0 }
|
24
|
+
let(:level) { rand(0..7) }
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
27
|
+
end
|
28
|
+
|
29
|
+
context 'when timeout is random' do
|
30
|
+
let(:timeout) { rand(1..546_465) }
|
31
|
+
let(:level) { rand(0..7) }
|
32
|
+
|
33
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
# Dont configured in Janus Instance so return automatically an error
|
6
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- start_pcap', type: :request,
|
7
|
+
level: :admin,
|
8
|
+
name: :start_pcap do
|
9
|
+
before do
|
10
|
+
help_admin_prepare
|
11
|
+
help_admin_create_session
|
12
|
+
help_admin_create_handler
|
13
|
+
help_admin_request_tested(parameters)
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
17
|
+
let(:type) { 'admin::start_pcap' }
|
18
|
+
let(:parameters) do
|
19
|
+
{
|
20
|
+
'folder' => '/data',
|
21
|
+
'filename' => 'my-super-file.pcap',
|
22
|
+
'truncate' => 0
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::error') }
|
27
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- start_text2pcap', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :start_text2pcap do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_create_session
|
11
|
+
help_admin_create_handler
|
12
|
+
help_admin_request_tested(parameters)
|
13
|
+
end
|
14
|
+
|
15
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
16
|
+
let(:type) { 'admin::start_text2pcap' }
|
17
|
+
let(:parameters) do
|
18
|
+
{
|
19
|
+
'folder' => '/data',
|
20
|
+
'filename' => 'my-super-file.pcap',
|
21
|
+
'truncate' => 0
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
26
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
# Dont configured in Janus Instance so return automatically an error
|
6
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- stop_pcap', type: :request,
|
7
|
+
level: :admin,
|
8
|
+
name: :stop_pcap do
|
9
|
+
before do
|
10
|
+
help_admin_prepare
|
11
|
+
help_admin_create_session
|
12
|
+
help_admin_create_handler
|
13
|
+
help_admin_request_tested
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
17
|
+
let(:type) { 'admin::stop_pcap' }
|
18
|
+
|
19
|
+
it { expect(@transaction.to_json).to match_json_schema('base::error') }
|
20
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe 'RubyRabbitmqJanus::RRJAdmin -- stop_text2pcap', type: :request,
|
6
|
+
level: :admin,
|
7
|
+
name: :stop_text2pcap do
|
8
|
+
before do
|
9
|
+
help_admin_prepare
|
10
|
+
help_admin_create_session
|
11
|
+
help_admin_create_handler
|
12
|
+
help_admin_request_before('admin::start_text2pcap', param_before)
|
13
|
+
help_admin_request_tested
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
|
17
|
+
let(:type) { 'admin::stop_text2pcap' }
|
18
|
+
let(:param_before) do
|
19
|
+
{
|
20
|
+
'folder' => '/data',
|
21
|
+
'filename' => 'my-super-file.pcap',
|
22
|
+
'truncate' => 0
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
it { expect(@transaction.to_json).to match_json_schema('base::success') }
|
27
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -8,6 +8,7 @@ require 'factory_girl'
|
|
8
8
|
require 'database_cleaner'
|
9
9
|
ENV['MONGO'] = 'true' if ENV['MONGO'].nil?
|
10
10
|
require ENV['MONGO'].match?('true') ? 'mongoid' : 'active_record'
|
11
|
+
require 'timeout'
|
11
12
|
|
12
13
|
require 'ruby_rabbitmq_janus'
|
13
14
|
require 'config/initializer'
|
@@ -15,7 +16,7 @@ require 'config/database'
|
|
15
16
|
require 'config/instance'
|
16
17
|
Dir['spec/factories/*.rb'].each { |f| require File.expand_path(f) }
|
17
18
|
|
18
|
-
$LOAD_PATH.unshift File.expand_path('
|
19
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
19
20
|
|
20
21
|
Dir['spec/support/**/*.rb'].each do |f|
|
21
22
|
require File.expand_path(f)
|
@@ -66,4 +67,9 @@ RSpec.configure do |config|
|
|
66
67
|
find_instance
|
67
68
|
end
|
68
69
|
end
|
70
|
+
|
71
|
+
# Use timeout for requester
|
72
|
+
config.around(:each, type: :request) do |example|
|
73
|
+
Timeout.timeout(5) { example.run }
|
74
|
+
end
|
69
75
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Helpers method for admin requester
|
4
|
+
# Use this methods before execute block 'it'
|
5
|
+
|
6
|
+
# Prepare variable for sending request to RabbitMQ
|
7
|
+
def help_admin_prepare
|
8
|
+
@opt_instance = instance
|
9
|
+
@opt_transaction = {}
|
10
|
+
@transaction = nil
|
11
|
+
end
|
12
|
+
|
13
|
+
# Create a session
|
14
|
+
def help_admin_create_session
|
15
|
+
@gateway.start_transaction(true, @opt_instance) do |transaction|
|
16
|
+
session = transaction.publish_message('base::create', @opt_transaction).session
|
17
|
+
|
18
|
+
@opt_transaction['session_id'] = session
|
19
|
+
@opt_instance.merge!(@opt_transaction)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create a handler (attached to plugin echo test)
|
24
|
+
def help_admin_create_handler
|
25
|
+
@gateway.start_transaction(true, @opt_instance) do |transaction|
|
26
|
+
handler = transaction.publish_message('base::attach', @opt_transaction).sender
|
27
|
+
@opt_transaction['handle_id'] = handler
|
28
|
+
@opt_instance.merge!(@opt_transaction)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Execute an action before test requester result
|
33
|
+
def help_admin_request_before(type_before, admin_opt = {})
|
34
|
+
@opt_transaction.merge!(admin_opt)
|
35
|
+
|
36
|
+
@gateway.start_transaction_admin(@opt_instance) do |transaction|
|
37
|
+
transaction.publish_message(type_before, @opt_transaction)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# Request tested
|
42
|
+
def help_admin_request_tested(admin_opt = {})
|
43
|
+
@opt_transaction.merge!(admin_opt)
|
44
|
+
|
45
|
+
@gateway.start_transaction_admin(@opt_instance) do |transaction|
|
46
|
+
@transaction = transaction.publish_message(type, @opt_transaction)
|
47
|
+
end
|
48
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"type": "object",
|
3
|
+
"properties": {
|
4
|
+
"janus": { "type": "string", "pattern": "error" },
|
5
|
+
"session_id": { "type": "integer" },
|
6
|
+
"transaction": { "type": "string" },
|
7
|
+
"error": {
|
8
|
+
"code": { "type": "integer" },
|
9
|
+
"reason": { "type": "String" },
|
10
|
+
"required": [
|
11
|
+
"code",
|
12
|
+
"reason"
|
13
|
+
]
|
14
|
+
},
|
15
|
+
"handle_id": { "type": "integer" }
|
16
|
+
},
|
17
|
+
"required": [
|
18
|
+
"janus",
|
19
|
+
"transaction",
|
20
|
+
"error"
|
21
|
+
]
|
22
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_rabbitmq_janus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.0.pre.
|
4
|
+
version: 2.5.0.pre.213
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VAILLANT Jeremy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -240,28 +240,42 @@ dependencies:
|
|
240
240
|
requirements:
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.
|
243
|
+
version: 0.65.0
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.
|
250
|
+
version: 0.65.0
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
252
|
+
name: rubocop-rspec
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: '1.
|
257
|
+
version: '1.32'
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: '1.
|
264
|
+
version: '1.32'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: sqlite3
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - '='
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 1.3.13
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - '='
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 1.3.13
|
265
279
|
- !ruby/object:Gem::Dependency
|
266
280
|
name: travis
|
267
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -383,16 +397,22 @@ files:
|
|
383
397
|
- config/requests/admin/allow_token.json
|
384
398
|
- config/requests/admin/disallow_token.json
|
385
399
|
- config/requests/admin/handle_info.json
|
386
|
-
- config/requests/admin/
|
400
|
+
- config/requests/admin/list_handles.json
|
401
|
+
- config/requests/admin/list_sessions.json
|
402
|
+
- config/requests/admin/list_tokens.json
|
387
403
|
- config/requests/admin/remove_token.json
|
388
|
-
- config/requests/admin/
|
404
|
+
- config/requests/admin/set_libnice_debug.json
|
389
405
|
- config/requests/admin/set_locking_debug.json
|
406
|
+
- config/requests/admin/set_log_colors.json
|
390
407
|
- config/requests/admin/set_log_level.json
|
408
|
+
- config/requests/admin/set_log_timestamps.json
|
409
|
+
- config/requests/admin/set_max_nack_queue.json
|
410
|
+
- config/requests/admin/set_no_media_timer.json
|
411
|
+
- config/requests/admin/set_session_timeout.json
|
391
412
|
- config/requests/admin/start_pcap.json
|
392
413
|
- config/requests/admin/start_text2pcap.json
|
393
414
|
- config/requests/admin/stop_pcap.json
|
394
415
|
- config/requests/admin/stop_text2pcap.json
|
395
|
-
- config/requests/admin/tokens.json
|
396
416
|
- config/requests/base/attach.json
|
397
417
|
- config/requests/base/create.json
|
398
418
|
- config/requests/base/destroy.json
|
@@ -513,12 +533,26 @@ files:
|
|
513
533
|
- spec/config/instance.rb
|
514
534
|
- spec/config/mongoid.yml
|
515
535
|
- spec/factories/janus_instance.rb
|
536
|
+
- spec/request/admin/request_add_token_spec.rb
|
537
|
+
- spec/request/admin/request_allow_token_spec.rb
|
538
|
+
- spec/request/admin/request_disallow_token_spec.rb
|
516
539
|
- spec/request/admin/request_handle_info_spec.rb
|
517
|
-
- spec/request/admin/
|
518
|
-
- spec/request/admin/
|
540
|
+
- spec/request/admin/request_list_handles_spec.rb
|
541
|
+
- spec/request/admin/request_list_sessions_spec.rb
|
542
|
+
- spec/request/admin/request_list_tokens_spec.rb
|
543
|
+
- spec/request/admin/request_remove_token_spec.rb
|
544
|
+
- spec/request/admin/request_set_libnice_debug_spec.rb
|
519
545
|
- spec/request/admin/request_set_locking_debug_spec.rb
|
546
|
+
- spec/request/admin/request_set_log_colors_spec.rb
|
520
547
|
- spec/request/admin/request_set_log_level_spec.rb
|
521
|
-
- spec/request/admin/
|
548
|
+
- spec/request/admin/request_set_log_timestamps_spec.rb
|
549
|
+
- spec/request/admin/request_set_max_nack_queue_spec.rb
|
550
|
+
- spec/request/admin/request_set_no_media_timer_spec.rb
|
551
|
+
- spec/request/admin/request_set_session_timeout_spec.rb
|
552
|
+
- spec/request/admin/request_start_pcap_spec.rb
|
553
|
+
- spec/request/admin/request_start_text2pcap_spec.rb
|
554
|
+
- spec/request/admin/request_stop_pcap_spec.rb
|
555
|
+
- spec/request/admin/request_stop_text2pcap_spec.rb
|
522
556
|
- spec/request/base/request_attach_spec.rb
|
523
557
|
- spec/request/base/request_create_spec.rb
|
524
558
|
- spec/request/base/request_destroy_spec.rb
|
@@ -556,6 +590,7 @@ files:
|
|
556
590
|
- spec/rrj/tools/replace/replace_spec.rb
|
557
591
|
- spec/rrj/tools/replace/type_spec.rb
|
558
592
|
- spec/spec_helper.rb
|
593
|
+
- spec/support/admin_requester.rb
|
559
594
|
- spec/support/aruba.rb
|
560
595
|
- spec/support/examples_config.rb
|
561
596
|
- spec/support/examples_message.rb
|
@@ -567,8 +602,8 @@ files:
|
|
567
602
|
- spec/support/schemas/config/rabbit_options_admin.json
|
568
603
|
- spec/support/schemas/config/rabbit_options_admin2.json
|
569
604
|
- spec/support/schemas/request/admin/handle_info.json
|
570
|
-
- spec/support/schemas/request/admin/
|
571
|
-
- spec/support/schemas/request/admin/
|
605
|
+
- spec/support/schemas/request/admin/list_handles.json
|
606
|
+
- spec/support/schemas/request/admin/list_sessions.json
|
572
607
|
- spec/support/schemas/request/admin/set_locking_debug.json
|
573
608
|
- spec/support/schemas/request/admin/set_log_level.json
|
574
609
|
- spec/support/schemas/request/admin/tokens.json
|
@@ -576,8 +611,10 @@ files:
|
|
576
611
|
- spec/support/schemas/request/base/create.json
|
577
612
|
- spec/support/schemas/request/base/destroy.json
|
578
613
|
- spec/support/schemas/request/base/detach.json
|
614
|
+
- spec/support/schemas/request/base/error.json
|
579
615
|
- spec/support/schemas/request/base/info.json
|
580
616
|
- spec/support/schemas/request/base/keepalive.json
|
617
|
+
- spec/support/schemas/request/base/success.json
|
581
618
|
- spec/support/schemas/request/peer/answer.json
|
582
619
|
- spec/support/schemas/request/peer/offer.json
|
583
620
|
- spec/support/schemas/request/peer/trickle.json
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# LCO: tagged broken 2018/01/26 for v2.3.0
|
4
|
-
# see: https://travis-ci.org/dazzl-tv/ruby-rabbitmq-janus/builds/333359315
|
5
|
-
|
6
|
-
require 'spec_helper'
|
7
|
-
|
8
|
-
describe 'RubyRabbitmqJanus::RRJ -- message type handles list' do
|
9
|
-
before(:example) do
|
10
|
-
clear
|
11
|
-
attach_admin
|
12
|
-
@type = 'admin::handles'
|
13
|
-
end
|
14
|
-
|
15
|
-
describe '#start_transaction_admin', type: :request,
|
16
|
-
level: :admin,
|
17
|
-
broken: true,
|
18
|
-
name: :handles do
|
19
|
-
include_examples 'transaction admin should match json schema'
|
20
|
-
end
|
21
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
describe 'RubyRabbitmqJanus::RRJ -- message type sessions list' do
|
6
|
-
before(:example) do
|
7
|
-
clear
|
8
|
-
@type = 'admin::sessions'
|
9
|
-
end
|
10
|
-
|
11
|
-
describe '#start_transaction_admin', type: :request,
|
12
|
-
level: :admin,
|
13
|
-
name: :sessions,
|
14
|
-
broken: true do
|
15
|
-
include_examples 'transaction admin should match json schema'
|
16
|
-
end
|
17
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
describe 'RubyRabbitmqJanus::RRJ -- message type tokens list', broken: true do
|
6
|
-
before(:example) { @type = 'admin::tokens' }
|
7
|
-
|
8
|
-
describe '#start_transaction_admin', type: :request,
|
9
|
-
level: :admin,
|
10
|
-
name: :tokens do
|
11
|
-
include_examples 'transaction admin should match json schema'
|
12
|
-
end
|
13
|
-
end
|