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.27.9 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.27.8 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.27.4 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.27.2 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.27.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.27.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.26.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.25.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.25.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.24.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.23.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.22.3 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.22.2 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.22.1 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.21.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.20.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb
pact_broker-client-1.19.0 spec/lib/pact_broker/client/hal/authorization_header_redactor_spec.rb