Sha256: cb02e96ea6f1784c00d0456ac3168483c8a697e2fe3d9b0559adf39c5086d36a
Contents?: true
Size: 1.65 KB
Versions: 3
Compression:
Stored size: 1.65 KB
Contents
require 'webmock/rspec' require 'avro_turf/confluent_schema_registry' require 'avro_turf/test/fake_confluent_schema_registry_server' describe AvroTurf::ConfluentSchemaRegistry do let(:user) { "abc" } let(:password) { "xxyyzz" } let(:client_cert) { "test client cert" } let(:client_key) { "test client key" } let(:client_key_pass) { "test client key password" } let(:connect_timeout) { 10 } context 'authenticated by cert' do it_behaves_like "a confluent schema registry client" do let(:registry) { described_class.new( registry_url, logger: logger, client_cert: client_cert, client_key: client_key, client_key_pass: client_key_pass ) } end end context 'authenticated by basic auth' do it_behaves_like "a confluent schema registry client" do let(:registry) { described_class.new( registry_url, user: user, password: password, ) } end end context 'with connect_timeout' do it_behaves_like "a confluent schema registry client" do let(:registry) { described_class.new( registry_url, user: user, password: password, connect_timeout: connect_timeout ) } end end context 'with non default schema_context' do it_behaves_like "a confluent schema registry client", schema_context: 'other' do let(:registry) { described_class.new( registry_url, schema_context: 'other', user: user, password: password, connect_timeout: connect_timeout ) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
avro_turf-1.17.0 | spec/confluent_schema_registry_spec.rb |
avro_turf-1.16.0 | spec/confluent_schema_registry_spec.rb |
avro_turf-1.15.0 | spec/confluent_schema_registry_spec.rb |