@@ -345,7 +345,9 @@ public void shouldReturnWorkflowInstancesData() throws Exception {
345345 WorkflowInstance wfi = WorkflowInstance.create(WORKFLOW.id(), "2016-08-10");
346346 storage.writeEvent(create(Event.triggerExecution(wfi, NATURAL_TRIGGER, TRIGGER_PARAMETERS), 0L, ms("07:00:00")));
347347 storage.writeEvent(create(Event.dequeue(wfi, ImmutableSet.of()), 1L, ms("07:00:01")));
348- storage.writeEvent(create(Event.started(wfi), 2L, ms("07:00:02")));
348+ storage.writeEvent(create(Event.submit(wfi, EXECUTION_DESCRIPTION, "exec"), 2L, ms("07:00:02")));
349+ storage.writeEvent(create(Event.submitted(wfi, "exec", "test"), 3L, ms("07:00:03")));
350+ storage.writeEvent(create(Event.started(wfi), 4L, ms("07:00:04")));
349351
350352 Response<ByteString> response =
351353 awaitResponse(serviceHelper.request("GET", path("/foo/bar/instances")));
@@ -361,7 +363,7 @@ public void shouldReturnWorkflowInstancesData() throws Exception {
361363 assertJson(response, "[0].triggers.[0].complete", is(false));
362364 assertJson(response, "[0].triggers.[0].executions", hasSize(1));
363365 assertJson(response, "[0].triggers.[0].executions.[0].execution_id", is("exec"));
364- assertJson(response, "[0].triggers.[0].executions.[0].docker_image", is("img "));
366+ assertJson(response, "[0].triggers.[0].executions.[0].docker_image", is("busybox:1.1 "));
365367 assertJson(response, "[0].triggers.[0].executions.[0].statuses", hasSize(2));
366368 assertJson(response, "[0].triggers.[0].executions.[0].statuses.[0].status", is("SUBMITTED"));
367369 assertJson(response, "[0].triggers.[0].executions.[0].statuses.[1].status", is("STARTED"));
@@ -386,7 +388,9 @@ public void shouldReturnWorkflowRangeOfInstancesData() throws Exception {
386388 WorkflowInstance wfi = WorkflowInstance.create(WORKFLOW.id(), "2016-08-10");
387389 storage.writeEvent(create(Event.triggerExecution(wfi, NATURAL_TRIGGER, TRIGGER_PARAMETERS), 0L, ms("07:00:00")));
388390 storage.writeEvent(create(Event.dequeue(wfi, ImmutableSet.of()), 1L, ms("07:00:01")));
389- storage.writeEvent(create(Event.started(wfi), 2L, ms("07:00:02")));
391+ storage.writeEvent(create(Event.submit(wfi, EXECUTION_DESCRIPTION, "exec"), 2L, ms("07:00:02")));
392+ storage.writeEvent(create(Event.submitted(wfi, "exec", "test"), 3L, ms("07:00:03")));
393+ storage.writeEvent(create(Event.started(wfi), 4L, ms("07:00:04")));
390394
391395 Response<ByteString> response =
392396 awaitResponse(serviceHelper.request("GET", path("/foo/bar/instances?start=2016-08-10")));
@@ -402,7 +406,7 @@ public void shouldReturnWorkflowRangeOfInstancesData() throws Exception {
402406 assertJson(response, "[0].triggers.[0].complete", is(false));
403407 assertJson(response, "[0].triggers.[0].executions", hasSize(1));
404408 assertJson(response, "[0].triggers.[0].executions.[0].execution_id", is("exec"));
405- assertJson(response, "[0].triggers.[0].executions.[0].docker_image", is("img "));
409+ assertJson(response, "[0].triggers.[0].executions.[0].docker_image", is("busybox:1.1 "));
406410 assertJson(response, "[0].triggers.[0].executions.[0].statuses", hasSize(2));
407411 assertJson(response, "[0].triggers.[0].executions.[0].statuses.[0].status", is("SUBMITTED"));
408412 assertJson(response, "[0].triggers.[0].executions.[0].statuses.[1].status", is("STARTED"));
@@ -438,9 +442,9 @@ public void shouldReturnWorkflowInstanceData() throws Exception {
438442 assertJson(response, "triggers.[0].executions.[0].statuses.[0].status", is("SUBMITTED"));
439443 assertJson(response, "triggers.[0].executions.[0].statuses.[1].status", is("STARTED"));
440444 assertJson(response, "triggers.[0].executions.[0].statuses.[0].timestamp",
441- is("2016-08-10T07:00:01Z "));
445+ is("2016-08-10T07:00:03Z "));
442446 assertJson(response, "triggers.[0].executions.[0].statuses.[1].timestamp",
443- is("2016-08-10T07:00:02Z "));
447+ is("2016-08-10T07:00:04Z "));
444448 }
445449
446450 @Test
0 commit comments