Sha256: 23213ac61cbb4b5dd4d04c49fff05f113330bcddacf269aec64cc04938c4a6ea

Contents?: true

Size: 826 Bytes

Versions: 5

Compression:

Stored size: 826 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,
                                                      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

5 entries across 5 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.5.1.pre.217 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.5.1 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.5.1.pre.215 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.5.0 spec/request/admin/request_start_pcap_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.213 spec/request/admin/request_start_pcap_spec.rb