Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-1543

TestPipeline: @Rule error message confusing/javadoc doesn't explain proper usage

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Component/s: sdk-java-core
    • Labels:
      None

      Description

      I'm working on JdbcIOIT. Trying to run the checked-in version, I encountered this error:
      "Attempted to run a pipeline while it's enforcement level was not set. Are you using TestPipeline without a @Rule annotation?"

      This error does not give me enough information to diagnose:
      a) what problem is occurring
      b) what I can do to solve it

      Checking the javadocs for TestPipeline, I don't see any information about @Rule or anything of that nature.

      I did some github blame-ing on that string, and found BEAM-1205 and the accompanying PR, however it was also unclear from BEAM-1205 exactly what I'm supposed to do to make this test work.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                staslev Stas Levin
                Reporter:
                sisk Stephen Sisk
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h