Class: FakeConfluentSchemaRegistryServer
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- FakeConfluentSchemaRegistryServer
- Defined in:
- lib/avro_turf/test/fake_confluent_schema_registry_server.rb
Constant Summary collapse
- SUBJECTS =
Hash.new { Array.new }
- SCHEMAS =
[]
- CONFIGS =
Hash.new
- SUBJECT_NOT_FOUND =
{ error_code: 40401, message: 'Subject not found' }.to_json.freeze
- VERSION_NOT_FOUND =
{ error_code: 40402, message: 'Version not found' }.to_json.freeze
- SCHEMA_NOT_FOUND =
{ error_code: 40403, message: 'Schema not found' }.to_json.freeze
- DEFAULT_GLOBAL_CONFIG =
{ 'compatibility' => 'BACKWARD'.freeze }.freeze
Class Attribute Summary collapse
-
.global_config ⇒ Object
readonly
Returns the value of attribute global_config.
Class Method Summary collapse
Class Attribute Details
.global_config ⇒ Object (readonly)
Returns the value of attribute global_config.
15 16 17 |
# File 'lib/avro_turf/test/fake_confluent_schema_registry_server.rb', line 15 def global_config @global_config end |
Class Method Details
.clear ⇒ Object
135 136 137 138 139 140 |
# File 'lib/avro_turf/test/fake_confluent_schema_registry_server.rb', line 135 def self.clear SUBJECTS.clear SCHEMAS.clear CONFIGS.clear @global_config = DEFAULT_GLOBAL_CONFIG.dup end |