logstash-plugins / logstash-integration-kafka

Kafka Integration for Logstash, providing Input and Output Plugins
Apache License 2.0
32 stars 60 forks source link

Unit tests run schema registry integration tests #153

Closed andsel closed 9 months ago

andsel commented 10 months ago

Build scan:

Repro line:

bundle exec rspec --tag "~integration" --tag "~secure_integration"

Reproduces locally?: yes

Applicable branches: any

Failure history:

Failure excerpt:

Stopping SchemaRegistry
+ build/confluent_platform/bin/schema-registry-stop
No running instance found.
+ echo 'Stopping SchemaRegistry'
Stopping SchemaRegistry
+ build/confluent_platform/bin/schema-registry-stop
No running instance found.
+ echo 'Starting SchemaRegistry'
Starting SchemaRegistry
+ build/confluent_platform/bin/schema-registry-start build/confluent_platform/etc/schema-registry/schema-registry.properties
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 0.02
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 0.04
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 0.08
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 0.16
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 0.32
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 0.64
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 1.28
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
Failed (Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused). Sleeping for 2.0
FFF+ echo 'Stopping SchemaRegistry'
Stopping SchemaRegistry
+ build/confluent_platform/bin/schema-registry-stop
+ sleep 5
......./Users/andrea/.rvm/gems/jruby-9.3.10.0/gems/rspec-mocks-3.12.6/lib/rspec/mocks/instance_method_stasher.rb:8: warning: singleton on non-persistent Java type Java::OrgApacheKafkaClientsProducer::KafkaProducer (https://github.com/jruby/jruby/wiki/Persistence)
...........

Failures:

  1) schema registry connection options remote endpoint validation should fail if not reachable
     Failure/Error: Unable to find matching line from backtrace

     Manticore::SocketException:
       Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused
     # ------------------
     # --- Caused by: ---
     # Java::JavaNet::ConnectException:
     #   Connection refused
     #   java.base/sun.nio.ch.Net.pollConnect(Native Method)

  2) schema registry connection options remote endpoint validation should fail if any topic is not matched by a subject on the schema registry
     Failure/Error: Unable to find matching line from backtrace

     Manticore::SocketException:
       Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused
     # ------------------
     # --- Caused by: ---
     # Java::JavaNet::ConnectException:
     #   Connection refused
     #   java.base/sun.nio.ch.Net.pollConnect(Native Method)

  3) schema registry connection options remote endpoint validation register with subject present should correctly complete registration phase
     Failure/Error: Unable to find matching line from backtrace

     Manticore::SocketException:
       Connect to localhost:8081 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused
     # ------------------
     # --- Caused by: ---
     # Java::JavaNet::ConnectException:
     #   Connection refused
     #   java.base/sun.nio.ch.Net.pollConnect(Native Method)

Finished in 47.73 seconds (files took 1.75 seconds to load)
56 examples, 3 failures

Failed examples:

rspec ./spec/integration/inputs/kafka_spec.rb:316 # schema registry connection options remote endpoint validation should fail if not reachable
rspec ./spec/integration/inputs/kafka_spec.rb:322 # schema registry connection options remote endpoint validation should fail if any topic is not matched by a subject on the schema registry
rspec ./spec/integration/inputs/kafka_spec.rb:344 # schema registry connection options remote endpoint validation register with subject present should correctly complete registration phase