Sha256: fcfe5c11aa0f42ce4b16b4378a69e88f6f50e2f8dcb86e6f32b41fa58d1eaf5a

Contents?: true

Size: 509 Bytes

Versions: 97

Compression:

Stored size: 509 Bytes

Contents

require 'pact_broker/client/hal/authorization_header_redactor'

module PactBroker
  module Client
    module Hal
      describe AuthorizationHeaderRedactor do
        let(:stream) { StringIO.new }
        let(:stream_redactor) { AuthorizationHeaderRedactor.new(stream) }

        it "redacts the authorizaton header" do
          stream_redactor << "\\r\\nAuthorization: Bearer TOKEN\\r\\n"
          expect(stream.string).to eq "\\r\\nAuthorization: [redacted]\\r\\n"
        end
      end
    end
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
pact_broker-client-1.75.3 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.75.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.75.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.74.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.73.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.72.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.71.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.70.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.69.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.68.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.67.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.66.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.66.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.65.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.64.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.63.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.62.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.62.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.61.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.61.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb