Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-13431

Implement a unit test that tests transactions across multiple datasources

    Details

    • Type: Task Task
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Quality Assurance
    • Labels:
    • Similar issues:
      KULRICE-4944Implement multiple test environments
      KULRICE-13860Implement a more extensive suite of integration and unit tests against the KSB module
      KULRICE-770Implement unit test for WorkgroupXmlExporter.
      KULRICE-4911Implement version compatibility unit tests
      KULRICE-10546Establish unit tests for implementing multi-threading
      KULRICE-3860Make KSB unit tests work with JPA
      KULRICE-2528Implement a unit test to test delegation routing for Kim responsibilities
      KULRICE-2573Write a unit test to test new KIM-based exception routing
      KULRICE-6336Fix issue of multiple datasources and transaction managers being loaded and configured via CommonSpringBeans.xml
      KULRICE-4467Unit test for org.kuali.rice.kns.bo.SessionDocumentTest
    • Rice Team:
      QA

      Description

      We used to have a test that verified this with JOTM I think but it's no longer in there. Since we've switched to Atomikos, we should do this to verify that our set up is sane. Here's one way we could accomplish this:

      1) Use the datasource configured for the unit tests (probably oracle)
      2) Configure an embedded jetty with a different datasource
      3) Execute a transaction on both of those datasources
      4) Attempt a rollback and verify that it worked

        Activity

        Hide
        Eric Westfall added a comment -

        Look at org.kuali.rice.jta.JtaTest in the shared module for an example.

        Show
        Eric Westfall added a comment - Look at org.kuali.rice.jta.JtaTest in the shared module for an example.
        Hide
        Eric Westfall added a comment -

        Assigning to Nate. Nate, I think you might have already done this as part of your JPA testing which is why I'm assigning to you

        Show
        Eric Westfall added a comment - Assigning to Nate. Nate, I think you might have already done this as part of your JPA testing which is why I'm assigning to you
        Hide
        Nate Johnson (Inactive) added a comment -

        I've sort of done this, but not as complex. I just ensured that transactions rollback and commit across OJB and JPA. It's a decent start to this test though.

        Show
        Nate Johnson (Inactive) added a comment - I've sort of done this, but not as complex. I just ensured that transactions rollback and commit across OJB and JPA. It's a decent start to this test though.
        Hide
        Nate Johnson (Inactive) added a comment -

        Eric - I assume you meant an embedded "derby" rather than "jetty" above?

        Show
        Nate Johnson (Inactive) added a comment - Eric - I assume you meant an embedded "derby" rather than "jetty" above?
        Hide
        Eric Westfall added a comment -

        yes, i think you are correct

        Show
        Eric Westfall added a comment - yes, i think you are correct
        Hide
        Eric Westfall added a comment -

        Nate, did you want to try and get this in prior to 0.9.3 or should I push it to 0.9.4?

        Show
        Eric Westfall added a comment - Nate, did you want to try and get this in prior to 0.9.3 or should I push it to 0.9.4?
        Hide
        Nate Johnson (Inactive) added a comment -

        Yeah, I'm not going to have time for this right now. Will move to 094 and unassign myself.

        Show
        Nate Johnson (Inactive) added a comment - Yeah, I'm not going to have time for this right now. Will move to 094 and unassign myself.

          People

          • Assignee:
            Unassigned
            Reporter:
            Eric Westfall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 4 hours
              4h
              Remaining:
              Remaining Estimate - 4 hours
              4h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Structure Helper Panel