Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-652

TCK: V2RequestTests getPortalContext test failures caused by an incorrect version in the context-path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • tck
    • None

    Description

      The following test cases assume a hard-coded version of "2.1.0-SNAPSHOT" in the context-path:

      • V2RequestTests_PortletRequest_ApiResource_getPortalContext
      • V2RequestTests_PortletRequest_ApiRender_getPortalContext
      • V2RequestTests_PortletRequest_ApiEvent_getPortalContext
      • V2RequestTests_PortletRequest_ApiAction_getPortalContext

      For example:

      RequestTests_PortletRequest_ApiResource.java
      if(gpc.equals("pluto-portal-driver/2.1.0-SNAPSHOT")) {
          tr36.setTcSuccess(true);
      } else {
          tr36.setTcDetail("The PortalContext for the portal is invalid");
      }
      

      This issue needs a more comprehensive fix as part of PLUTO-653, but can be fixed in the short term with the following:

      -      if(gpc.equals("pluto-portal-driver/2.1.0-SNAPSHOT")) {
      +      if(gpc.startsWith("pluto-portal-driver/3.0")) {
      

      Attachments

        Issue Links

          Activity

            People

              ngriffin7a Neil Griffin (Inactive)
              ngriffin7a Neil Griffin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: