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

TCK: Contesting tests that reference Pluto-specific security roles

    XMLWordPrintableJSON

Details

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

    Description

      TCK test cases

      • V2RequestTests_PortletRequest_ApiEvent_isUserInRole1
      • V2RequestTests_PortletRequest_ApiResource_isUserInRole1
      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_isUserInRole1
      • AnnotationPortletConfigTests_SPEC2_28_SecurityRole

      test the requirement "Method isUserInRole(): returns true if the authenticated user is in the specified role" as specified in Portlet Spec 3.0 Chapter 24.2, 24.3, and JavaDoc.

      The test cases perform the tests by doing the following check:

      boolean usrole=portletReq.isUserInRole("pluto");
      
      if(usrole==true) {
         tr46.setTcSuccess(true);
      } else {
         tr46.appendTcDetail("The Authenticated user is not in Specified Role");
      }
      

      The problem is, the role used in the test case is Pluto specific, while other portal vendors may use complete different role names. For example, there's no role named "pluto" in Liferay, so the test cases fail in Liferay.

      The proposed solution is to use a Maven profile that contains a property with a role name that is unique to each portal vendor.

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            dantewang Dante Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: