Skip to content

Commit

Permalink
send_msg event should emit contact_uuid not contact
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Jun 6, 2017
1 parent 7f25176 commit 5372b01
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 68 deletions.
10 changes: 5 additions & 5 deletions cmd/flowrunner/testdata/flows/all_actions_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"type": "remove_from_group"
},
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Hi Ben Haggerty, are you ready to complete today's survey?",
Expand Down Expand Up @@ -197,7 +197,7 @@
"type": "remove_from_group"
},
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Hi Ben Haggerty, are you ready to complete today's survey?",
Expand Down Expand Up @@ -240,7 +240,7 @@
],
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "a58be63b-907d-4a1a-856b-0bb5579d7507",
"uuid": "ba6b7f30-d8c6-4649-9496-55471b2ff4ab"
"uuid": "2159853a-e5bd-4498-a030-0e8e35499c07"
}
],
"results": {
Expand All @@ -254,7 +254,7 @@
},
"status": "C",
"timesout_on": "2000-01-01T00:00:00.000000000-00:00",
"uuid": "05c14741-8491-4644-925a-079a22c5fcdd"
"uuid": "4d757be9-7d6d-4a17-9165-fb89bc2223fa"
},
{
"channel_uuid": "",
Expand All @@ -269,7 +269,7 @@
"results": {},
"status": "C",
"timesout_on": "2000-01-01T00:00:00.000000000-00:00",
"uuid": "3f279e76-8c2c-4868-a825-9ea05957e226"
"uuid": "7f93bebb-3448-41a4-aad6-e7b76e370298"
}
]
}
Expand Down
25 changes: 13 additions & 12 deletions cmd/flowrunner/testdata/flows/brochure_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"events": [
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Hi! What is your name?",
Expand All @@ -30,7 +30,7 @@
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
"events": [
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Hi! What is your name?",
Expand All @@ -40,7 +40,7 @@
"exit_uuid": "2d481ce6-efcf-4898-a825-f76208e32f2a",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "32bc60ad-5c86-465e-a6b8-049c44ecce49",
"uuid": "83635cfd-6bcd-42aa-b6d5-a8f17313288a"
"uuid": "57a6ad4c-5be8-43af-8109-6f9874370623"
},
{
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
Expand All @@ -53,13 +53,13 @@
}
],
"node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82",
"uuid": "059e764e-d93b-4b63-bc06-155b73fef755"
"uuid": "eb3fc259-d250-44cb-9876-2a3870087422"
}
],
"results": {},
"status": "A",
"timesout_on": "2000-01-01T00:00:00.000000000-00:00",
"uuid": "abac4eb5-d3d7-419b-93aa-101af08deafe",
"uuid": "4d744147-38a4-46a1-95af-3b5de831e8c5",
"wait": {
"timeout": 600,
"type": "msg"
Expand Down Expand Up @@ -107,7 +107,7 @@
"type": "add_to_group"
},
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Great, you are Ryan Lewis, thanks for joining!",
Expand Down Expand Up @@ -138,7 +138,7 @@
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
"events": [
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Hi! What is your name?",
Expand All @@ -148,7 +148,7 @@
"exit_uuid": "2d481ce6-efcf-4898-a825-f76208e32f2a",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "32bc60ad-5c86-465e-a6b8-049c44ecce49",
"uuid": "83635cfd-6bcd-42aa-b6d5-a8f17313288a"
"uuid": "57a6ad4c-5be8-43af-8109-6f9874370623"
},
{
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
Expand Down Expand Up @@ -182,7 +182,7 @@
"exit_uuid": "37d8813f-1402-4ad2-9cc2-e9054a96525b",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82",
"uuid": "059e764e-d93b-4b63-bc06-155b73fef755"
"uuid": "eb3fc259-d250-44cb-9876-2a3870087422"
},
{
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
Expand All @@ -206,16 +206,17 @@
"type": "add_to_group"
},
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Great, you are Ryan Lewis, thanks for joining!",
"type": "send_msg"
}
],
"exit_uuid": "388bbce3-8079-4573-922f-8dea469d93f3",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "7acb54fd-0db0-40b9-970b-93f7bfb4277b",
"uuid": "a2fd3db5-50c0-40d1-b071-307619b144f4"
"uuid": "e45184d1-32a7-493a-ac3e-fabc8b7792ca"
}
],
"results": {
Expand All @@ -228,7 +229,7 @@
},
"status": "C",
"timesout_on": "2000-01-01T00:00:00.000000000-00:00",
"uuid": "abac4eb5-d3d7-419b-93aa-101af08deafe"
"uuid": "4d744147-38a4-46a1-95af-3b5de831e8c5"
}
]
}
Expand Down
24 changes: 12 additions & 12 deletions cmd/flowrunner/testdata/flows/default_result_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"events": [
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "What is your name?",
Expand All @@ -30,7 +30,7 @@
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
"events": [
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "What is your name?",
Expand All @@ -40,7 +40,7 @@
"exit_uuid": "19f677bf-2b34-48bd-8a05-3839191b51b2",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "4fd923cc-b39f-4722-b1ea-22ce1ef388de",
"uuid": "3dca8f9a-89af-4bef-9cad-51e545265209"
"uuid": "0b243740-70fa-4b3e-b640-5734b9ee096a"
},
{
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
Expand All @@ -53,13 +53,13 @@
}
],
"node_uuid": "3a430844-e259-4dcd-9a1d-7bef3168d43f",
"uuid": "add4b286-1f60-4c31-aa4f-5c2a37784f4b"
"uuid": "a739117e-12c0-4433-a490-5582fe88aa0c"
}
],
"results": {},
"status": "A",
"timesout_on": "2000-01-01T00:00:00.000000000-00:00",
"uuid": "95ce3732-de20-4a1e-9017-8dd2ccc72298",
"uuid": "907dd178-19a5-429d-a61e-7791e1db9e06",
"wait": {
"type": "msg"
}
Expand Down Expand Up @@ -103,7 +103,7 @@
"value": "Ryan"
},
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Great, pleased to meet you Ryan",
Expand Down Expand Up @@ -134,7 +134,7 @@
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
"events": [
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "What is your name?",
Expand All @@ -144,7 +144,7 @@
"exit_uuid": "19f677bf-2b34-48bd-8a05-3839191b51b2",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "4fd923cc-b39f-4722-b1ea-22ce1ef388de",
"uuid": "3dca8f9a-89af-4bef-9cad-51e545265209"
"uuid": "0b243740-70fa-4b3e-b640-5734b9ee096a"
},
{
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
Expand Down Expand Up @@ -178,7 +178,7 @@
"exit_uuid": "cf9a2465-049a-4ba1-95ed-eb60fb45fd63",
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "3a430844-e259-4dcd-9a1d-7bef3168d43f",
"uuid": "add4b286-1f60-4c31-aa4f-5c2a37784f4b"
"uuid": "a739117e-12c0-4433-a490-5582fe88aa0c"
},
{
"arrived_on": "2000-01-01T00:00:00.000000000-00:00",
Expand All @@ -199,7 +199,7 @@
"value": "Ryan"
},
{
"contact": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"contact_uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3",
"created_on": "2000-01-01T00:00:00.000000000-00:00",
"step_uuid": "",
"text": "Great, pleased to meet you Ryan",
Expand All @@ -208,7 +208,7 @@
],
"left_on": "2000-01-01T00:00:00.000000000-00:00",
"node_uuid": "2929d2fc-2778-4d98-a4bc-73a7345710b0",
"uuid": "2cc1163c-9b88-4991-838b-b71e40661862"
"uuid": "a51bb7cd-afae-4e1f-9836-f163715fedc6"
}
],
"results": {
Expand All @@ -222,7 +222,7 @@
},
"status": "C",
"timesout_on": "2000-01-01T00:00:00.000000000-00:00",
"uuid": "95ce3732-de20-4a1e-9017-8dd2ccc72298"
"uuid": "907dd178-19a5-429d-a61e-7791e1db9e06"
}
]
}
Expand Down
Loading

0 comments on commit 5372b01

Please sign in to comment.