You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "hisao furuichi (Jira)" <ji...@apache.org> on 2023/02/01 04:18:00 UTC
[jira] [Commented] (CAMEL-18980) camel snmp - SNMP Ver1 trap does not work
[ https://issues.apache.org/jira/browse/CAMEL-18980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17682841#comment-17682841 ]
hisao furuichi commented on CAMEL-18980:
----------------------------------------
Hello [~Federico Mariani] , thank you so much for the quick response.
I tried the fix on my laptop, but the test failed with the following messages.
{code:java}
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.032 s <<< FAILURE! - in org.apache.camel.component.snmp.Snmpv1TrapTest
[ERROR] org.apache.camel.component.snmp.Snmpv1TrapTest.testSendReceiveTraps Time elapsed: 11.028 s <<< FAILURE!
java.lang.AssertionError: mock://result Received message count. Expected: <1> but was: <0>
at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1860)
at org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1817)
at org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:449)
at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:427)
at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:417) {code}
Is this work on your environment?
About the backport, yes please backport it to camel-3.x branch too.
> camel snmp - SNMP Ver1 trap does not work
> -----------------------------------------
>
> Key: CAMEL-18980
> URL: https://issues.apache.org/jira/browse/CAMEL-18980
> Project: Camel
> Issue Type: Bug
> Components: camel-snmp
> Affects Versions: 3.20.1
> Reporter: hisao furuichi
> Priority: Minor
> Attachments: Snmpv1TrapTest.java
>
>
> Although camel-snmp supports SNMP v1, v2, and v3 trap, v1 trap does not work as expected.
> By checking the test code for camel-snmp, v2 trap is only tested.
> https://github.com/apache/camel/blob/camel-3.x/components/camel-snmp/src/test/java/org/apache/camel/component/snmp/TrapTest.java
> Based on the TrapTest.java, I implemented a TrapTestSnmpv1.java. Please use the test code for this issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)