Sha256: acfea4e94af826e66dfbbc225f6cf2d6418cea044358aae553a2a073d32631d6

Contents?: true

Size: 911 Bytes

Versions: 51

Compression:

Stored size: 911 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'RubyRabbitmqJanus::RRJAdmin -- stop_text2pcap', type: :request,
                                                          level: :admin,
                                                          broken: true,
                                                          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

51 entries across 51 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.306 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.305 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.302 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.297 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.296 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.286 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.285 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.284 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.1 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.1.pre.274 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.272 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.0 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.269 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.267 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.6.0 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.263 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.261 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.260 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.259 spec/request/admin/request_stop_text2pcap_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.258 spec/request/admin/request_stop_text2pcap_spec.rb