Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-681

Create a unit test harness to easily test samza tasks

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.9.0
    • None
    • test
    • None

    Description

      We don't have a standardized test framework for unit testing samza tasks. Currently, in order to test the proper functionality of a task we have to bring up the system (kafka) and its dependencies (zk).

      Goals:

      • The harness should abstract several notions around the system and its partitions, without mocking them, and hold task context and state in memory.
      • The harness should let you inject several <key,value> pairs that would normally be passed in by the `SystemStream` provided in `tasks.input`.
      • The same harness should offer an interface to visualize all the corresponding <key,value> pairs collected in the message `Collector`, which are the output of the `process`ed or `window`ed input <key,value> pairs previously injected.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            joseangel Jose Martinez
            depombo Luis De Pombo

            Dates

              Created:
              Updated:

              Slack

                Issue deployment