diff --git a/examples/httpv2_recording.json b/examples/httpv2_recording.json new file mode 100644 index 0000000..aa482ca --- /dev/null +++ b/examples/httpv2_recording.json @@ -0,0 +1 @@ +{"pendingTaskStack":[{"id":"Activity_17nl8sw","data":{"resp_get":{"body":{"userId":1,"id":1,"title":"delectus aut autem","completed":false},"mimetype":"application/json","http_status":200,"operator_identifier":"http/GetRequest"}}}]} \ No newline at end of file diff --git a/examples/httpv2_test.bpmn b/examples/httpv2_test.bpmn index 8207cce..c1b8d4a 100644 --- a/examples/httpv2_test.bpmn +++ b/examples/httpv2_test.bpmn @@ -17,25 +17,13 @@ Flow1_1770249220377 Flow_194n4u3 + + + DataStoreReference_001g6et + Property_0zy7o63 + spiff_testFixture = { - "pendingTaskStack": [ - { - "id": "Activity_17nl8sw", - "data": { - "resp_get": { - "body": { - "userId": 1, - "id": 1, - "title": "delectus aut autem", - "completed": False - }, - "mimetype": "application/json", - "http_status": 200, - "operator_identifier": "http/GetRequest" - }, - }, - }, - ], + "pendingTaskStack": httpv2_recording["pendingTaskStack"], } @@ -81,7 +69,9 @@ spiff_testResult = test() Flow_1jcirrx Flow_1dr6ipn + + @@ -111,6 +101,12 @@ spiff_testResult = test() + + + + + + @@ -145,6 +141,10 @@ spiff_testResult = test() + + + + diff --git a/examples/jsonfiledatastore.json b/examples/jsonfiledatastore.json index 20363bb..84298cb 100644 --- a/examples/jsonfiledatastore.json +++ b/examples/jsonfiledatastore.json @@ -1 +1 @@ -{"x": 51} \ No newline at end of file +{"x": 59} \ No newline at end of file diff --git a/examples/manual_tasks_recording.json b/examples/manual_tasks_recording.json new file mode 100644 index 0000000..e976f97 --- /dev/null +++ b/examples/manual_tasks_recording.json @@ -0,0 +1 @@ +{"pendingTaskStack":[{"id":"Activity_1n7p3m4","data":{}},{"id":"Activity_1h7gm30","data":{}}]} \ No newline at end of file diff --git a/examples/manual_tasks_test.bpmn b/examples/manual_tasks_test.bpmn index 80514b2..3b622e7 100644 --- a/examples/manual_tasks_test.bpmn +++ b/examples/manual_tasks_test.bpmn @@ -58,14 +58,18 @@ spiff_testResult = test() Flow1_1770121675349 Flow_0glzdyc + + + DataStoreReference_1cc1o68 + Property_1v7pcii + spiff_testFixture = { - "pendingTaskStack": [ - { "id": "Activity_1n7p3m4", "data": {} }, - { "id": "Activity_1h7gm30", "data": {} }, - ] + "pendingTaskStack": manual_tasks_recording["pendingTaskStack"] } + + @@ -95,6 +99,12 @@ spiff_testResult = test() + + + + + + @@ -129,6 +139,10 @@ spiff_testResult = test() + + + + diff --git a/examples/user_task_recording.json b/examples/user_task_recording.json new file mode 100644 index 0000000..0aa1795 --- /dev/null +++ b/examples/user_task_recording.json @@ -0,0 +1 @@ +{"pendingTaskStack":[{"id":"ut_task","data":{"some_field":"jj"}}]} \ No newline at end of file diff --git a/examples/user_task_test.bpmn b/examples/user_task_test.bpmn index 8e253d2..58f92ef 100644 --- a/examples/user_task_test.bpmn +++ b/examples/user_task_test.bpmn @@ -58,16 +58,23 @@ spiff_testResult = test() Flow1_1770132558798 Flow_1fbs4ll + + + DataStoreReference_1h48ew8 + Property_1dsm2yn + spiff_testFixture = { - "pendingTaskStack": [ - { "id": "ut_task", "data": { "some_field": "jj" } }, - ], + "pendingTaskStack": user_task_recording["pendingTaskStack"], "expected": { "some_field": "jj", } } + + + + @@ -98,6 +105,12 @@ spiff_testResult = test() + + + + + + @@ -132,6 +145,10 @@ spiff_testResult = test() + + + +