Skip to content

Commit

Permalink
Label tests that need UsesProcessingTimeTimers
Browse files Browse the repository at this point in the history
  • Loading branch information
kennknowles committed Feb 15, 2022
1 parent e300702 commit c5b14de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import org.apache.beam.sdk.testing.PAssert;
import org.apache.beam.sdk.testing.TestPipeline;
import org.apache.beam.sdk.testing.TestStream;
import org.apache.beam.sdk.testing.UsesProcessingTimeTimers;
import org.apache.beam.sdk.testing.UsesTestStreamWithProcessingTime;
import org.apache.beam.sdk.testing.UsesTimersInParDo;
import org.apache.beam.sdk.testing.UsesUnboundedPCollections;
Expand Down Expand Up @@ -242,7 +243,12 @@ public void testAfterProcessingTimeContinuationTriggerEarly() throws Exception {
* suite.
*/
@Test
@Category({ValidatesRunner.class, UsesTimersInParDo.class, UsesUnboundedPCollections.class})
@Category({
ValidatesRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesUnboundedPCollections.class
})
public void testAfterProcessingTimeContinuationTriggerUsingState() throws Exception {
final long triggerMillis = 1;
final long waitMillis = 500;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
import org.apache.beam.sdk.testing.UsesOnWindowExpiration;
import org.apache.beam.sdk.testing.UsesOrderedListState;
import org.apache.beam.sdk.testing.UsesParDoLifecycle;
import org.apache.beam.sdk.testing.UsesProcessingTimeTimers;
import org.apache.beam.sdk.testing.UsesRequiresTimeSortedInput;
import org.apache.beam.sdk.testing.UsesSetState;
import org.apache.beam.sdk.testing.UsesSideInputs;
Expand Down Expand Up @@ -2130,7 +2131,7 @@ public Duration getAllowedTimestampSkew() {
}

@Test
@Category({ValidatesRunner.class, UsesTimersInParDo.class})
@Category({ValidatesRunner.class, UsesTimersInParDo.class, UsesProcessingTimeTimers.class})
public void testProcessElementSkew() {
TimestampedValues<KV<String, Duration>> input =
Create.timestamped(Arrays.asList(KV.of("2", Duration.millis(1L))), Arrays.asList(1L));
Expand Down Expand Up @@ -4356,7 +4357,7 @@ public void onTimer() {}
}

@Test
@Category({ValidatesRunner.class, UsesTimersInParDo.class})
@Category({ValidatesRunner.class, UsesTimersInParDo.class, UsesProcessingTimeTimers.class})
public void testOutOfBoundsProcessingTimeTimerHold() throws Exception {
final String timerId = "foo";

Expand Down Expand Up @@ -4402,6 +4403,7 @@ public void onTimer() {}
@Category({
ValidatesRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class
})
Expand Down Expand Up @@ -4572,6 +4574,7 @@ public void onTimer(@Timestamp Instant timestamp, OutputReceiver<KV<Long, Instan
@Category({
ValidatesRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class
})
Expand Down Expand Up @@ -5000,6 +5003,7 @@ public void onTimer(
ValidatesRunner.class,
UsesStatefulParDo.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class,
UsesTestStreamWithOutputTimestamp.class
Expand Down Expand Up @@ -5269,6 +5273,7 @@ public void onTimer2(
@Category({
NeedsRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class
})
Expand Down Expand Up @@ -5349,6 +5354,7 @@ public void onTimer(OutputReceiver<Long> r) {
@Category({
NeedsRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class
})
Expand Down Expand Up @@ -5426,6 +5432,7 @@ public void onTimer(OutputReceiver<Long> r) {
@Category({
NeedsRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class
})
Expand Down Expand Up @@ -5539,6 +5546,7 @@ public void clearTimer(OutputReceiver<Long> r) {
@Category({
NeedsRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class
})
Expand Down Expand Up @@ -6174,6 +6182,7 @@ public void onTimer2(@Timestamp Instant ts, OutputReceiver<String> r) {
@Category({
ValidatesRunner.class,
UsesTimersInParDo.class,
UsesProcessingTimeTimers.class,
UsesTestStream.class,
UsesTestStreamWithProcessingTime.class,
UsesTimerMap.class
Expand Down

0 comments on commit c5b14de

Please sign in to comment.