Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-2533

UpdateWorkingCopyPhaseTest fails in continuum-release, file url is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.4.0 (Beta)
    • 1.4.1
    • SCM
    • None
    • Subversion-Kommandozeilenclient, Version 1.6.6-SlikSvn-tag-1.6.6@40358-WIN32.

      Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
      Java version: 1.6.0_17
    • Patch

    Description

      The error is: "Unable to open an ra_local session to URL".
      This can be corrected by adding a third "/" to the scm URL
      in line 114 (Revision 928595) to org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest
      so that the URL reads:
      "scm:svn:file:///" + projectUrl
      There is an empty hostname, so the third slash seems to be required,
      See
      http://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.advanced.reposurls
      for reference.

      -------------------------------------------------------------------------------
      Test set: org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest
      -------------------------------------------------------------------------------
      Tests run: 3, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 12.032 sec <<< FAILURE!
      testWorkingDirDoesNotExist(org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest) Time elapsed: 10.922 sec <<< ERROR!
      org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to checkout project
      Provider message:
      The svn command failed.
      Command output:
      svn: Unable to open an ra_local session to URL
      svn: Unable to open repository 'file://d:/Development/workspace/external/continuum-1.4.0/continuum-release/target/scm-test/trunk'

      at org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhase.execute(UpdateWorkingCopyPhase.java:126)
      at org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest.testWorkingDirDoesNotExist(UpdateWorkingCopyPhaseTest.java:63)

      testWorkingDirAlreadyExistsWithProjectCheckout(org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest) Time elapsed: 0.453 sec <<< FAILURE!
      junit.framework.AssertionFailedError
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at junit.framework.Assert.assertTrue(Assert.java:27)
      at org.apache.maven.continuum.release.phase.UpdateWorkingCopyPhaseTest.testWorkingDirAlreadyExistsWithProjectCheckout(UpdateWorkingCopyPhaseTest.java:79)

      Attachments

        1. urlpatch
          0.7 kB
          Reimer Prochnow

        Activity

          People

            evenisse Emmanuel Venisse
            reimer Reimer Prochnow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: