Sha256: 3d639466d93e8c3ecaf45f1068af6738907b6a12f80e4a69ab80a6f475c426c2

Contents?: true

Size: 628 Bytes

Versions: 43

Compression:

Stored size: 628 Bytes

Contents

require 'pact/consumer/mock_service/rack_request_helper'
module Pact
  module Consumer
    class MockServiceAdministrationEndpoint

      attr_accessor :logger, :name

      def initialize name, logger
        @name = name
        @logger = logger
      end

      include RackRequestHelper

      def match? env
        headers_from(env)['X-Pact-Mock-Service'] &&
        env['REQUEST_PATH'] == request_path &&
          env['REQUEST_METHOD'] == request_method
      end

      def request_path
        raise NotImplementedError
      end

      def request_method
        raise NotImplementedError
      end

    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
pact-1.0.36 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.35 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.34 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.33 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.32 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.31 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.30 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.29 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.28 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.27 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.26 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.25 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.24 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.23 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.22 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.21 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.20 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.19 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.18 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
pact-1.0.15 lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb