Sha256: 1039e7a6dca144cf7638dec8152db595fd2235cb4124e2178cd2be20852163f8

Contents?: true

Size: 710 Bytes

Versions: 17

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

class MockBaseClient
  STAGING_ENV_ID = 1
  PRODUCTION_ENV_ID = 2
  TEST_ENV_ID = 3
  attr_reader :namespace, :logger, :config_client, :options, :posts

  def initialize(options = Prefab::Options.new)
    @options = options
    @namespace = namespace
    @config_client = MockConfigClient.new
    @posts = []
  end

  def instance_hash
    'mock-base-client-instance-hash'
  end

  def project_id
    1
  end

  def post(_, _)
    raise 'Use wait_for_post_requests'
  end

  def log
    @logger
  end

  def context_shape_aggregator; end

  def evaluation_summary_aggregator; end

  def example_contexts_aggregator; end

  def config_value(key)
    @config_values[key]
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.8.8.pre.1 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.7 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.6 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.5 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.4 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.3 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.2 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.1 test/support/mock_base_client.rb
prefab-cloud-ruby-1.8.0 test/support/mock_base_client.rb
prefab-cloud-ruby-1.7.2 test/support/mock_base_client.rb
prefab-cloud-ruby-1.7.1 test/support/mock_base_client.rb
prefab-cloud-ruby-1.7.0 test/support/mock_base_client.rb
prefab-cloud-ruby-1.6.2 test/support/mock_base_client.rb
prefab-cloud-ruby-1.6.1 test/support/mock_base_client.rb
prefab-cloud-ruby-1.6.0 test/support/mock_base_client.rb
prefab-cloud-ruby-1.6.0.pre2 test/support/mock_base_client.rb
prefab-cloud-ruby-1.6.0.pre1 test/support/mock_base_client.rb