On my side I still cannot get pass the SNMP Alert test failure.  I ran the
test from the console using
/bin/sh -c cd /root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts
&& /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/bin/java -jar
/root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts/target/surefire/surefirebooter2029343003930782395.jar
/root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts/target/surefire/surefire6891665004706534979tmp
/root/incubator-cloudstack/plugins/alert-handlers/snmp-alerts/target/surefire/surefire_467824344446886401383tmp

and this is what I get:

1,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  Error in crearting snmp object\u002C
eng-testing-cstack_master: eng-testing-cstack_master\n
8,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,
error snmpHelper list size not as expected  expected:<0> but was:<2>,null,
error snmpHelper list size not as expected  expected:<0> but
was:<2>,junit.framework.AssertionFailedError:  error snmpHelper list size
not as expected  expected:<0> but was:<2>\n\tat
junit.framework.Assert.fail(Assert.java:50)\n\tat
junit.framework.Assert.failNotEquals(Assert.java:287)\n\tat
junit.framework.Assert.assertEquals(Assert.java:67)\n\tat
junit.framework.Assert.assertEquals(Assert.java:199)\n\tat
org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest.appendTest(SnmpTrapAppenderTest.java:44)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:616)\n\tat
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)\n\tat
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)\n\tat
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)\n\tat
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)\n\tat
org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)\n\tat
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)\n\tat
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)\n\tat
org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)\n\tat
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)\n\tat
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)\n\tat
org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)\n\tat
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)\n\tat
org.junit.runners.ParentRunner.run(ParentRunner.java:300)\n\tat
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)\n\tat
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)\n\tat
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:616)\n\tat
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)\n\tat
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)\n
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  size of ip addresses \u002C communities\u002C and ports
list doesn\'t match\u002C setting all to null\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidIpInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  Invalid format for the IP Addresses or Ports parameter
\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidIpInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidPortInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  Invalid format for the IP Addresses or Ports parameter
\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,InvalidPortInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,mismatchListLengthInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
4,0001,log4j:ERROR  size of ip addresses \u002C communities\u002C and ports
list doesn\'t match\u002C setting all to null\n
6,1,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,mismatchListLengthInputTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest),null,null,null
2,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest,null,null,null
1,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseAlertTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseAlertTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithPairDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithPairDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithKeyValueDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,ParseAlertWithKeyValueDelimeterInMessageTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
5,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseRandomTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
6,1,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,parseRandomTest(org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest),null,null,null
2,1,org.apache.maven.surefire.junit4.JUnit4Provider,org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest,null,null,null
Z,0,BYE!

Either the test is wrong, or something on my setup breaks it.  We tried on
another CentOS box, and we have the same issue.

Thanks!

Francois


On Mon, Mar 25, 2013 at 7:02 AM, Prasanna Santhanam <t...@apache.org> wrote:

> On Fri, Mar 22, 2013 at 03:46:36PM -0700, Min Chen wrote:
> > Results :
> >
> > Failed tests:
> >
> testCreateVMFromSpecLegacy(com.cloud.hypervisor.kvm.resource.LibvirtComputi
> > ngResourceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
> >
> >
> testCreateVMFromSpec(com.cloud.hypervisor.kvm.resource.LibvirtComputingReso
> > urceTest): expected:<...oport='yes' listen='[1.2.3.4']/>(..)
> >
> *Fixed* these over the weekend.
>
> --
> Prasanna.,
>

Reply via email to