Skip to content

Commit

Permalink
merge: #7517
Browse files Browse the repository at this point in the history
7517: [Backport stable/1.1] Remove outdated test cases r=npepinpe a=github-actions[bot]

# Description
Backport of #7503 to `stable/1.1`.

relates to 

Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
  • Loading branch information
zeebe-bors-cloud[bot] and npepinpe authored Jul 16, 2021
2 parents 0ab9aaa + beaba6d commit 60e2501
Showing 1 changed file with 0 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
public final class ReplayStateTest {

private static final String PROCESS_ID = "process";
private static final String PROCESS_CHILD_ID = "child_process";
@Parameter public TestCase testCase;

private long lastProcessedPosition = -1L;
Expand Down Expand Up @@ -91,105 +90,6 @@ public static Collection<TestCase> testRecords() {

return RecordingExporter.messageRecords(MessageIntent.EXPIRED).getFirst();
}),
// TODO(npepinpe): remove after https://github.com/camunda-cloud/zeebe/issues/6568
testCase("timer start event")
.withProcess(
Bpmn.createExecutableProcess(PROCESS_ID)
.startEvent("timer")
.timerWithDateExpression("now()")
.endEvent()
.done())
.withExecution(
engine ->
RecordingExporter.processInstanceRecords(
ProcessInstanceIntent.ELEMENT_COMPLETED)
.withBpmnProcessId(PROCESS_ID)
.withElementType(BpmnElementType.PROCESS)
.getFirst()),
// TODO(npepinpe): remove after https://github.com/camunda-cloud/zeebe/issues/6568
testCase("intermediate timer catch event")
.withProcess(
Bpmn.createExecutableProcess(PROCESS_ID)
.startEvent()
.intermediateCatchEvent("timer")
.timerWithDuration("PT0S")
.endEvent()
.done())
.withExecution(
engine -> {
final long piKey = engine.processInstance().ofBpmnProcessId(PROCESS_ID).create();
return RecordingExporter.processInstanceRecords(
ProcessInstanceIntent.ELEMENT_COMPLETED)
.withProcessInstanceKey(piKey)
.withElementType(BpmnElementType.PROCESS)
.getFirst();
}),
// TODO(npepinpe): remove after https://github.com/camunda-cloud/zeebe/issues/6568
testCase("interrupting timer boundary event")
.withProcess(
Bpmn.createExecutableProcess(PROCESS_ID)
.startEvent()
.serviceTask("task", b -> b.zeebeJobType("type"))
.boundaryEvent("timer", b -> b.cancelActivity(true))
.timerWithDuration("PT0S")
.endEvent("end")
.done())
.withExecution(
engine -> {
final long piKey = engine.processInstance().ofBpmnProcessId(PROCESS_ID).create();
return RecordingExporter.processInstanceRecords(
ProcessInstanceIntent.ELEMENT_COMPLETED)
.withProcessInstanceKey(piKey)
.withElementType(BpmnElementType.PROCESS)
.getFirst();
}),
// TODO(@korthout): remove after https://github.com/camunda-cloud/zeebe/issues/6197
testCase("interrupting timer boundary event on call activity")
.withProcess(
Bpmn.createExecutableProcess(PROCESS_CHILD_ID)
.startEvent()
.serviceTask("task", b -> b.zeebeJobType("type"))
.endEvent()
.done())
.withProcess(
Bpmn.createExecutableProcess(PROCESS_ID)
.startEvent()
.callActivity("call-child", b -> b.zeebeProcessId(PROCESS_CHILD_ID))
.boundaryEvent("timer", b -> b.cancelActivity(true))
.timerWithDuration("PT1M")
.endEvent("end")
.done())
.withExecution(
engine -> {
final long piKey = engine.processInstance().ofBpmnProcessId(PROCESS_ID).create();
RecordingExporter.jobRecords(JobIntent.CREATED).await();
engine.getClock().addTime(Duration.ofMinutes(1));
return RecordingExporter.processInstanceRecords(
ProcessInstanceIntent.ELEMENT_COMPLETED)
.withProcessInstanceKey(piKey)
.withElementType(BpmnElementType.PROCESS)
.getFirst();
}),
// TODO(npepinpe): remove after https://github.com/camunda-cloud/zeebe/issues/6568
testCase("non-interrupting timer boundary event")
.withProcess(
Bpmn.createExecutableProcess(PROCESS_ID)
.startEvent()
.serviceTask("task", b -> b.zeebeJobType("type"))
.boundaryEvent("timer", b -> b.cancelActivity(false))
.timerWithCycle("R1/PT0S")
.endEvent("end")
.done())
.withExecution(
engine -> {
final long piKey = engine.processInstance().ofBpmnProcessId(PROCESS_ID).create();
return RecordingExporter.processInstanceRecords(
ProcessInstanceIntent.ELEMENT_COMPLETED)
.withProcessInstanceKey(piKey)
.withElementType(BpmnElementType.END_EVENT)
.withElementId("end")
.getFirst();
}),
testCase("throw error end event")
.withProcess(
Bpmn.createExecutableProcess(PROCESS_ID)
Expand Down

0 comments on commit 60e2501

Please sign in to comment.