java.lang.AssertionError: expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo>

Sonatype JIRA | Peter Lynch | 5 years ago
  1. 0

    This IT passed on linux build but then failed on windows. Word has it was flaky ArtifactInfo provider/ indexing {noformat} Failed org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo (from Nexus3615ArtifactInfoProviderIT) Failing for the past 2 builds (Since #343 ) Took 53 ms. add description Error Message expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo> Stacktrace java.lang.AssertionError: expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:489) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:171) at org.testng.Assert.assertEquals(Assert.java:181) at org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.validate(Nexus3615ArtifactInfoProviderIT.java:53) at org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo(Nexus3615ArtifactInfoProviderIT.java:48) Standard Output [INFO] Loading Nexus Configuration... [INFO] Configuration loaded succesfully. [INFO] Loading Nexus configuration from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Configuration file is invalid, attempting upgrade [INFO] Trying to upgrade the configuration file X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Upgrading old Nexus configuration file (version 1.0.8) from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Nexus configuration file upgraded to current version 1.4.6 succesfully. [INFO] Creating backup from the old file and saving the upgraded configuration. [INFO] Loading Nexus configuration from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Configuration loaded succesfully. [INFO] Nexus configuration validated succesfully. [INFO] Applying Nexus Configuration... [INFO] Nexus configuration validated succesfully. =================================== Application context "jetty" dump: "application-port"="63175" (raw: "63175", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) "nexus-webapp"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "${bundleBasedir}/nexus", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) "bundleBasedir"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT", src: filter(keyIsIn:[bundleBasedir], system:properties)) "nexus-webapp-context-path"="/nexus" (raw: "/nexus", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) Total of 5 entries. =================================== =================================== Application context "nexus" dump: "nexus-work"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "index.template.file"="templates/index-debug.vm" (raw: "templates/index-debug.vm", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "runtime"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${bundleBasedir}/nexus/WEB-INF", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "application-port"="63175" (raw: "63175", src: map: quasiParent (size:5)) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: map: quasiParent (size:5)) "application-conf"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir/conf" (raw: "${nexus-work}/conf", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "nexus-webapp"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus", src: map: quasiParent (size:5)) "nexus-app"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${runtime}", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "security-xml-file"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir/conf/security.xml" (raw: "${nexus-work}/conf/security.xml", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "log-config-dir"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf", src: filter(keyStartsWith:[nexus.], system:properties)) "bundleBasedir"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT", src: map: quasiParent (size:5)) "nexus-webapp-context-path"="/nexus" (raw: "/nexus", src: map: quasiParent (size:5)) Total of 12 entries. =================================== 2011-08-16 05:09:00 INFO [-main-thread-88] - org.sonatype.security.configuration.source.FileSecurityConfigurationSource - Loading Security configuration from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\security-configuration.xml Result: org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo() ===> FAILED Standard Error 2011-08-16 05:08:53.284:INFO::Graceful shutdown SelectChannelConnector@0.0.0.0:63175 STARTED 2011-08-16 05:08:53.284:INFO::Graceful shutdown o.e.j.w.WebAppContext{/nexus,file:/X:/s/workspace/nexus-oss/67cb98c1/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-16 05:08:54.339:INFO::stopped o.e.j.w.WebAppContext{/nexus,file:/X:/s/workspace/nexus-oss/67cb98c1/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-16 05:08:56.675:INFO::jetty-7.4.4.v20110707 2011-08-16 05:08:56.675:INFO:org.sonatype.plexus.jetty.custom.DisableTagLibsListener:Disabling TLD support for: null (context path: /nexus) 2011-08-16 05:08:57.312:INFO::NO JSP Support for /nexus, did not find org.apache.jasper.servlet.JspServlet 2011-08-16 05:08:57.323:INFO:/nexus:Configuring Nexus in bundle... 2011-08-16 05:08:57.324:INFO:/nexus:Setting Plexus basedir context variable to (pre-set in System properties): X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT 2011-08-16 05:09:02.129:INFO::started o.e.j.w.WebAppContext{/nexus,file:/X:/s/workspace/nexus-oss/67cb98c1/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-16 05:09:04.705:INFO::Started SelectChannelConnector@0.0.0.0:63175 STARTING 2011-08-16 05:09:04.726:INFO:/nexus:nexus: [Noelios Restlet Engine] - Attaching application: org.sonatype.nexus.rest.NexusApplication@2058e330 to URI: /nexus {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    java.lang.AssertionError: expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo>
  2. 0

    must be(expected_value) test failed messages are confusing

    GitHub | 4 years ago | epishkin
    java.lang.AssertionError: expected:<expected value> but was:<null>
  3. 0

    how to verify text while page is loading in webdriver

    Google Groups | 5 years ago | mari muthu
    java.lang.AssertionError: expected:<> but was:<Successfully added page>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tests fail for phone numbers

    GitHub | 1 year ago | sanojb
    java.lang.AssertionError: expected:<tel:+1%20573.204-2331> but was:<tel:/+1%20573.204-2331>
  6. 0

    assertEquals(Collection, Collection) prints "null" when collections are different sizes

    GitHub | 3 years ago | dimo414
    java.lang.AssertionError: null: lists don't have the same size expected [1] but found [0]

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo>

      at org.testng.Assert.fail()
    2. TestNG
      Assert.assertEquals
      1. org.testng.Assert.fail(Assert.java:89)
      2. org.testng.Assert.failNotEquals(Assert.java:489)
      3. org.testng.Assert.assertEquals(Assert.java:118)
      4. org.testng.Assert.assertEquals(Assert.java:171)
      5. org.testng.Assert.assertEquals(Assert.java:181)
      5 frames
    3. org.sonatype.nexus
      Nexus3615ArtifactInfoProviderIT.groupInfo
      1. org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.validate(Nexus3615ArtifactInfoProviderIT.java:53)
      2. org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo(Nexus3615ArtifactInfoProviderIT.java:48)
      2 frames