Sha256: e1721ec15f5c28d9919dd0a738f95c5cd47029f301b8bb2291ae5c64c0a29cef

Contents?: true

Size: 474 Bytes

Versions: 44

Compression:

Stored size: 474 Bytes

Contents

module CcApiStub
  module ServiceInstances
    extend Helper

    class << self
      def succeed_to_create
        response_body = Helper.load_fixtures("fake_cc_created_service_instance")
        stub_post(collection_endpoint, {}, response(201, response_body))
      end

      private

      def object_endpoint(id = nil)
        %r{/v2/service_instances/#{id}[^/]+$}
      end

      def collection_endpoint
        %r{/v2/service_instances$}
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 4 rubygems

Version Path
cfoundry-4.3.5.rc1 lib/cc_api_stub/service_instances.rb
cfoundry-4.3.4 lib/cc_api_stub/service_instances.rb
cfoundry-4.3.4.rc1 lib/cc_api_stub/service_instances.rb
cfoundry-4.3.3 lib/cc_api_stub/service_instances.rb