Sha256: d347cd620850fc7fb48bcc9c668c5db423ce3fbe75f1060d75d3150ab47d27b6

Contents?: true

Size: 839 Bytes

Versions: 5

Compression:

Stored size: 839 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'RubyRabbitmqJanus::RRJAdmin -- stop_text2pcap', type: :request,
                                                          level: :admin,
                                                          name: :stop_text2pcap do
  before do
    help_admin_prepare
    help_admin_create_session
    help_admin_create_handler
    help_admin_request_before('admin::start_text2pcap', param_before)
    help_admin_request_tested
  end

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

  it { expect(@transaction.to_json).to match_json_schema('base::success') }
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_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.5.1 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.5.1.pre.215 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.5.0 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.213 spec/request/admin/request_stop_text2pcap_spec.rb