Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-1354

Could not pass the test phase when building nvp plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.2.0
    • Network Devices
    • Security Level: Public (Anyone can view this level - this is the default.)
    • osx 10.8.2
      apache-maven-3.0.4

    Description

      Pull the latest code on master and build:
      bash$ mvn clean install -P developer,systemvm

      results :

      Failed tests: testImplement(com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest)
      testImplementWithCidr(com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest)
      testImplementURIException(com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest): (..)

      Tests run: 72, Failures: 3, Errors: 0, Skipped: 0

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project cloud-plugin-network-nvp: There are test failures.
      [ERROR]
      [ERROR] Please refer to /Users/gavin_lee/projects/cs-apache/incubator-cloudstack/plugins/network-elements/nicira-nvp/target/surefire-reports for the individual test results.
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project cloud-plugin-network-nvp: There are test failures.

      Please refer to /Users/gavin_lee/projects/cs-apache/incubator-cloudstack/plugins/network-elements/nicira-nvp/target/surefire-reports for the individual test results.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

      For the above 3 failures, maven surefire plugin reports as following:

      testImplement(com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest) Time elapsed: 0.052 sec <<< FAILURE!
      java.lang.AssertionError
      at org.junit.Assert.fail(Assert.java:92)
      at org.junit.Assert.assertTrue(Assert.java:43)
      at org.junit.Assert.assertTrue(Assert.java:54)
      at com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest.testImplement(NiciraNvpGuestNetworkGuruTest.java:282)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      testImplementWithCidr(com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest) Time elapsed: 0 sec <<< FAILURE!
      java.lang.AssertionError
      at org.junit.Assert.fail(Assert.java:92)
      at org.junit.Assert.assertTrue(Assert.java:43)
      at org.junit.Assert.assertTrue(Assert.java:54)
      at com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest.testImplementWithCidr(NiciraNvpGuestNetworkGuruTest.java:339)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      testImplementURIException(com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest) Time elapsed: 0.011 sec <<< FAILURE!
      Wanted but not invoked:
      agentManager.easySend(42, <any>);
      -> at com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest.testImplementURIException(NiciraNvpGuestNetworkGuruTest.java:396)
      Actually, there were zero interactions with this mock.

      at com.cloud.network.guru.NiciraNvpGuestNetworkGuruTest.testImplementURIException(NiciraNvpGuestNetworkGuruTest.java:396)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Attachments

        Activity

          People

            htrippaers Hugo Trippaers
            gavinlee Gavin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified