Sha256: d77320c81994a0814005aabc817edb2674688a82820b19c07f77e96fa7c5674c
Contents?: true
Size: 1.36 KB
Versions: 9
Compression:
Stored size: 1.36 KB
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyRabbitmqJanus::RRJAdmin, type: :request, level: :admin, broken: true, name: :stop_pcap do before { helper_janus_instance_without_token } let(:type) { 'admin::stop_pcap' } let(:number) { '1' } let(:schema_success) { 'base::success' } let(:parameter) { {} } describe 'request #stop_pcap' do context 'when no session/handle' do let(:exception_class) { RubyRabbitmqJanus::Errors::Janus::Responses::InvalidRequestPath } let(:exception_message) { "[457] Reason : Unhandled request 'stop_pcap' at this path" } include_examples 'when transaction admin exception' end context 'when session/handle exist' do before { helper_janus_instance_create_handle } context "with pcap don't started" do let(:exception_class) { RubyRabbitmqJanus::Errors::Janus::Responses::Unknown } let(:exception_message) { '[490] Reason : Capture not started' } include_examples 'when transaction admin exception' end context 'with pcap started' do before { helper_janus_start_pcap } let(:info) { :janus } let(:info_type) { String } include_examples 'when transaction admin success info' end end end end
Version data entries
9 entries across 9 versions & 1 rubygems