Sha256: a89a109aa9ce66674f183fa08bb91654c114f15c160ce2a35c590a3302cdd1e9

Contents?: true

Size: 547 Bytes

Versions: 9

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true
# rubocop:todo all

require 'lite_spec_helper'

describe Mongo::Server::Monitor::AppMetadata do

  describe '#document' do
    let(:document) do
      app_metadata.send(:document)
    end

    context 'when user is given and auth_mech is not given' do
      let(:app_metadata) do
        described_class.new(user: 'foo')
      end

      it 'does not include saslSupportedMechs' do
        expect(document).not_to have_key(:saslSupportedMechs)
      end
    end

    it_behaves_like 'app metadata document'
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/mongo/server/monitor/app_metadata_spec.rb
mongo-2.20.1 spec/mongo/server/monitor/app_metadata_spec.rb
mogno-2.20.0 spec/mongo/server/monitor/app_metadata_spec.rb
mogno-1.0.0 spec/mongo/server/monitor/app_metadata_spec.rb
mongo-2.20.0 spec/mongo/server/monitor/app_metadata_spec.rb
mongo-2.19.3 spec/mongo/server/monitor/app_metadata_spec.rb
mongo-2.19.2 spec/mongo/server/monitor/app_metadata_spec.rb
mongo-2.19.1 spec/mongo/server/monitor/app_metadata_spec.rb
mongo-2.19.0 spec/mongo/server/monitor/app_metadata_spec.rb