Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-13936

AFT Failure DemoTravelAccountMaintenanceViewPermissionAft Download Attachment button not present

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.5.1
    • Component/s: Development, Regression
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Team:
      Middleware
    • Sprint:
      Middleware 2.5.1 Sprint 2
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Story Points:
      1

      Description

      AFT Step: Open http://env14.rice.kuali.org/kr-krad/kradsampleapp?viewId=KradSampleAppHome
      AFT Step: Click Demo Link
      AFT Step: Click Travel Account Maintenance (New) link.
      AFT Step: Type into document.documentHeader.documentDescription the text: Travel Account Maintenance AdHoc Recipients Document 14132he922667
      AFT Step: Type into document.newMaintainableObject.dataObject.number the text: 2667
      AFT Step: Type into document.newMaintainableObject.dataObject.name the text: 14132he922667
      AFT Step: Type into newCollectionLines['document.notes'].noteText the text: Bonzo!
      AFT Step: Type into attachmentFile the text: /var/folders/g4/mx49t0p54dbgfl_bzbcf_qt00000gn/T/junit1074033552408781357/attachment.oth
      AFT Step: Select OTH from newCollectionLines['document.notes'].attachment.attachmentTypeCode
      AFT Step: Is text 'Bonzo!' present? true
      AFT Step: Assert text 'attachment.oth' is present.
      AFT Step: Click Ad Hoc Recipients link.
      AFT Step: Type into newCollectionLines['document.adHocRoutePersons'].id the text: dev1
      AFT Step: Click Submit button.
      AFT Step: Click OK Confirmation
      AFT Step: Is text 'Document was successfully submitted.' present? true
      AFT Step: Is text 'Document was successfully submitted.' present? true
      AFT Step: Type into backdoorId the text: dev1
      AFT Step: Click Backdoor Login
      AFT Step: Assert text 'Bonzo!' is present.
      AFT Step: Assert text 'attachment.oth' is present.
      AFT Step: Assert Download Attachment button is enabled

      DemoTravelAccountMaintenanceViewPermissionAft.testDemoTravelAccountViewPermissionT2Nav
      org.kuali.rice.krad.demo.travel.account.DemoTravelAccountMaintenanceViewPermissionAft.testDemoTravelAccountViewPermissionT2Nav
      http://ci.kuali.org/view/rice/view/2.5/view/release/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/lastCompletedBuild/testReport/org.kuali.rice.krad.demo.travel.account/DemoTravelAccountMaintenanceViewPermissionAft/testDemoTravelAccountViewPermissionT2Nav/

      DemoTravelAccountMaintenanceViewPermissionAft.testDemoTravelAccountViewPermissionT2Bookmark
      org.kuali.rice.krad.demo.travel.account.DemoTravelAccountMaintenanceViewPermissionAft.testDemoTravelAccountViewPermissionT2Bookmark
      http://ci.kuali.org/view/rice/view/2.5/view/release/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/lastCompletedBuild/testReport/org.kuali.rice.krad.demo.travel.account/DemoTravelAccountMaintenanceViewPermissionAft/testDemoTravelAccountViewPermissionT2Bookmark/

        Attachments

          Issue Links

            Activity

            Hide
            sedgar Steve Edgar (Inactive) added a comment -

            If I impex and run this test locally, it passes. If I run it against env14, it fails, as described in this case.

            When I look at KIM roles and permissions locally, I see that the principal ID "dev1" has the role "Sample App Admin", to which this permission is assigned ...

            attachmentTypeCode=OTH, documentTypeName=TravelDocument

            When I look at KIM roles and permissions on env14, I see that the principal ID "dev1" has the role "Sample App Admin", but that role is not assigned the permission ...

            attachmentTypeCode=OTH, documentTypeName=TravelDocument

            The test in this case uses the principal ID "dev1". This explains the test passing locally, but failing on env14.

            What I'm not sure of is why the difference in assigned permissions between my local instance and env14 (Am adding Kristina as a watcher in case she knows a possible cause for this.)

            Show
            sedgar Steve Edgar (Inactive) added a comment - If I impex and run this test locally, it passes. If I run it against env14, it fails, as described in this case. When I look at KIM roles and permissions locally, I see that the principal ID "dev1" has the role "Sample App Admin", to which this permission is assigned ... attachmentTypeCode=OTH, documentTypeName=TravelDocument When I look at KIM roles and permissions on env14, I see that the principal ID "dev1" has the role "Sample App Admin", but that role is not assigned the permission ... attachmentTypeCode=OTH, documentTypeName=TravelDocument The test in this case uses the principal ID "dev1". This explains the test passing locally, but failing on env14. What I'm not sure of is why the difference in assigned permissions between my local instance and env14 (Am adding Kristina as a watcher in case she knows a possible cause for this.)
            Hide
            sedgar Steve Edgar (Inactive) added a comment -

            Consulted with Kristina, who found that the MySQL and Oracle SQL files which create the KIM permission and role assignments differed in that the MySQL version did not assign the needed permission to the role “Sample App Admin”. However, the Oracle version did make this assignment.

            Kristina reports that “Impex is taken off Oracle”, and that “My SQL is used to populate the databases of the running environments.” This explains why the test passes locally, but fails on env14.

            Kristina will coordinate with Martin to add the missing INSERT statement to the MySQL file. After that, we’ll wait for the AFT to run a few times, to make sure there are no other problems.

            Show
            sedgar Steve Edgar (Inactive) added a comment - Consulted with Kristina, who found that the MySQL and Oracle SQL files which create the KIM permission and role assignments differed in that the MySQL version did not assign the needed permission to the role “Sample App Admin”. However, the Oracle version did make this assignment. Kristina reports that “Impex is taken off Oracle”, and that “My SQL is used to populate the databases of the running environments.” This explains why the test passes locally, but fails on env14. Kristina will coordinate with Martin to add the missing INSERT statement to the MySQL file. After that, we’ll wait for the AFT to run a few times, to make sure there are no other problems.
            Hide
            sedgar Steve Edgar (Inactive) added a comment -

            These tests passed in build 286 ...

            https://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/286/

            I'll wait for one more round of testing, and if the tests pass, I will resolve this case.

            Show
            sedgar Steve Edgar (Inactive) added a comment - These tests passed in build 286 ... https://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/286/ I'll wait for one more round of testing, and if the tests pass, I will resolve this case.
            Hide
            sedgar Steve Edgar (Inactive) added a comment -
            Show
            sedgar Steve Edgar (Inactive) added a comment - These tests passed again. (Build 287) https://ci.kuali.org/job/rice-2.5-test-functional-env14-jenkins-krad-sampleapp/287/testReport/ Resolving this case.
            Hide
            mztaylor Martin Taylor (Inactive) added a comment -

            Closing 2.5.1 Development

            Show
            mztaylor Martin Taylor (Inactive) added a comment - Closing 2.5.1 Development

              People

              • Assignee:
                sedgar Steve Edgar (Inactive)
                Reporter:
                eghm-kuali-m Erik Meade
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: