Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11003

Provide mock sources and sinks for Hydrator plugin unit tests

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: Pipeline Plugins, Pipelines
    • Labels:
      None
    • Release Notes:
      Added a hydrator-test module that contains mock plugins for unit testing other hydrator plugins.
    • Rank:
      1|hzz65b:

      Description

      A bunch of the unit tests in the hydrator-plugins repo use plugins from the core-plugins module in their unit tests. This is bad because it means the unit test for cassandra is really not just testing cassandra, it is also testing another plugin. And if that plugin changes, it may break the unit test.

      Instead, the mocks used by the cdap apps should be pulled out into a tests module that can be used by the app unit tests as well as by plugins unit tests.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ashau Albert Shau
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: