Sha256: c29f57d8b2a467291970e9afdf09f91a04e55ca704d6f128d17afd73b61d4e3a

Contents?: true

Size: 894 Bytes

Versions: 51

Compression:

Stored size: 894 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

# Dont configured in Janus Instance so return automatically an error
describe 'RubyRabbitmqJanus::RRJAdmin -- start_pcap', type: :request,
                                                      level: :admin,
                                                      broken: true,
                                                      name: :start_pcap do
  before do
    help_admin_prepare
    help_admin_create_session
    help_admin_create_handler
    help_admin_request_tested(parameters)
  end

  let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
  let(:type) { 'admin::start_pcap' }
  let(:parameters) do
    {
      'folder' => '/data',
      'filename' => 'my-super-file.pcap',
      'truncate' => 0
    }
  end

  it { expect(@transaction.to_json).to match_json_schema('base::error') }
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.6.0.pre.247 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.246 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.244 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.240 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.239 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.238 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.233 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.229 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.228 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.227 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.226 spec/request/admin/request_start_pcap_spec.rb