logstash-plugins / logstash-integration-snmp

Logstash Integration Plugin for SNMP, including SNMP input and SNMP Trap Plugins
Apache License 2.0
0 stars 3 forks source link

Tests are failing after upgraded Gradle #63

Closed edmocosta closed 2 months ago

edmocosta commented 3 months ago

Unit and integration tests are failing after upgrading Gradle/Java. It seems the error only happen with ELASTIC_STACK_VERSION=8.x DOCKER_ENV=dockerjdk17.env, which runs Java 17 and for some reason, started to fail with the new Gradle version.

Making those methods used by the tests public should solve the problem.

NoMethodError: undefined method `send_trap_v2c' for #<Java::OrgLogstashSnmp::SnmpTestTrapSender:0x683b0f61>
snmp_ls  | Did you mean?  send_trap_v1
ci-logstash-1  |   6) SNMP input plugins LogStash::Inputs::Snmp behaves like a common SNMP plugin oid_mapping_format validation build_mib_manager! with `oid_mapping_format` set to `ruby_snmp` should use `Java::OrgLogstashSnmp::RubySnmpOidFieldMapper` field mapper
ci-logstash-1  |      Failure/Error: expect(mib_manager.getFieldMapper).to be_a expected_kind
ci-logstash-1  |      
ci-logstash-1  |      NoMethodError:
ci-logstash-1  |        undefined method `getFieldMapper' for #<Java::OrgLogstashSnmpMib::MibManager:0x15682e7f>