Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8622

jmx config generator test failing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 17.0.0
    • Fix Version/s: Backlog
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      java version "1.8.0_45"
      Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

      Description

      Building openNMS on my system using compile.pl I got a couple of test failing
      on project features/jmx-config-generator.

      [main] INFO org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest - <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <jmx-datacollection-config xmlns="http://xmlns.opennms.org/xsd/config/jmx-datacollection">
      <jmx-collection name="JSR160-testService">
      <rrd step="300">
      <rra>RRA:AVERAGE:0.5:1:2016</rra>
      <rra>RRA:AVERAGE:0.5:12:1488</rra>
      <rra>RRA:AVERAGE:0.5:288:366</rra>
      <rra>RRA:MAX:0.5:288:366</rra>
      <rra>RRA:MIN:0.5:288:366</rra>
      </rrd>
      <mbeans>
      <mbean name="java.lang.GarbageCollector" objectname="java.lang:type=GarbageCollector,name=PS MarkSweep">
      <attrib name="CollectionCount" alias="0CollectionCount" type="gauge"/>
      <attrib name="CollectionTime" alias="0CollectionTime" type="gauge"/>
      </mbean>
      <mbean name="java.lang.GarbageCollector" objectname="java.lang:type=GarbageCollector,name=PS Scavenge">
      <attrib name="CollectionCount" alias="1CollectionCount" type="gauge"/>
      <attrib name="CollectionTime" alias="1CollectionTime" type="gauge"/>
      <comp-attrib name="LastGcInfo" alias="LastGcInfo" type="Composite">
      <comp-member name="GcThreadCount" alias="0LasGcInfGcThreCoun" type="gauge"/>
      <comp-member name="duration" alias="0LastGcInfoDuration" type="gauge"/>
      <comp-member name="endTime" alias="0LastGcInfoEndTime" type="gauge"/>
      <comp-member name="id" alias="0LastGcInfoId" type="gauge"/>
      <comp-member name="startTime" alias="0LastGcInfoStarTime" type="gauge"/>
      </comp-attrib>
      </mbean>
      </mbeans>
      </jmx-collection>
      </jmx-datacollection-config>

      Tests run: 8, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.059 sec <<< FAILURE! - in org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest
      testGenerateJmxConfigModelUsingMbeanFilter(org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest) Time elapsed: 0.064 sec <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<1>
      at org.junit.Assert.fail(Assert.java:93)
      at org.junit.Assert.failNotEquals(Assert.java:647)
      at org.junit.Assert.assertEquals(Assert.java:128)
      at org.junit.Assert.assertEquals(Assert.java:472)
      at org.junit.Assert.assertEquals(Assert.java:456)
      at org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter(JmxDatacollectionConfiggeneratorTest.java:133)

      testGenerateJmxConfigModelUsingMbeanFilter(org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest) Time elapsed: 0.015 sec <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<1>
      at org.junit.Assert.fail(Assert.java:93)
      at org.junit.Assert.failNotEquals(Assert.java:647)
      at org.junit.Assert.assertEquals(Assert.java:128)
      at org.junit.Assert.assertEquals(Assert.java:472)
      at org.junit.Assert.assertEquals(Assert.java:456)
      at org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter(JmxDatacollectionConfiggeneratorTest.java:133)

      Running org.opennms.features.jmxconfiggenerator.jmxconfig.query.FilterCriteriaTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.opennms.features.jmxconfiggenerator.jmxconfig.query.FilterCriteriaTest

      Results :

      Failed tests:
      org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter(org.opennms.features.jmxconfiggenerator.jmxconfig.JmxDatacollectionConfiggeneratorTest)
      Run 1: JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter:133 expected:<0> but was:<1>
      Run 2: JmxDatacollectionConfiggeneratorTest.testGenerateJmxConfigModelUsingMbeanFilter:133 expected:<0> but was:<1>

      Tests run: 13, Failures: 1, Errors: 0, Skipped: 0

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rssntn67 Antonio Russo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: