webhooks: Move all fixtures to zerver/webhooks/<webhook_name>/fixtures.

All webhook fixtures in zerver/fixtures/<webhook_name> have now
been moved to dedicated webhook-specific directories under
zerver/webhooks/<webhook_name>/fixtures, where <webhook_name> is
the name of the webhook.
This commit is contained in:
Eeshan Garg
2017-04-27 16:49:05 -02:30
committed by Tim Abbott
parent dcc2b3a900
commit aa12002be7
381 changed files with 414 additions and 39 deletions

View File

@@ -0,0 +1,14 @@
{"freshdesk_webhook":
{
"triggered_event":"{ticket_action:created}",
"ticket_id":"12",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/12",
"ticket_type":"Problem",
"ticket_subject":"Not enough ☃ guinea pigs",
"ticket_description":"<div>There are too many cat pictures on the internet ☃. We need more guinea pigs. Exhibit 1:</div>\n<div><br></div>\n<div></div>\n<div><img src=\"http://cdn.freshdesk.com/data/helpdesk/attachments/production/12744808/original/guinea_pig.png?1383958880\" class=\"inline-image\" data-id=\"12744808\" style=\"\"></div>\n<br>",
"ticket_status":"Open",
"ticket_priority":"Urgent",
"requester_name":"Requester ☃ Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@@ -0,0 +1,14 @@
{"freshdesk_webhook":
{
"triggered_event":"{priority:{from:3,to:1}}",
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_status":"Resolved",
"ticket_priority":"Low",
"requester_name":"Requester Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@@ -0,0 +1,14 @@
{"freshdesk_webhook":
{
"triggered_event":"{note_type:private}",
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_status":"Open",
"ticket_priority":"Medium",
"requester_name":"Requester Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@@ -0,0 +1,14 @@
{"freshdesk_webhook":
{
"triggered_event":"{note_type:public}",
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject",
"ticket_description":"<div>Test ticket description.</div>",
"ticket_status":"Open",
"ticket_priority":"Medium",
"requester_name":"Requester Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@@ -0,0 +1,14 @@
{"freshdesk_webhook":
{
"triggered_event":"{status:{from:4,to:6}}",
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject ☃",
"ticket_description":"<div>Test ticket description ☃.</div>",
"ticket_status":"Waiting on Customer",
"ticket_priority":"Low",
"requester_name":"Requester Bob",
"requester_email":"requester-bob@example.com",
}
}

View File

@@ -0,0 +1,14 @@
{"freshdesk_webhook":
{
"triggered_event":"{ticket_action:created}",
"ticket_id":"11",
"ticket_url":"http://test1234zzz.freshdesk.com/helpdesk/tickets/11",
"ticket_type":"Incident",
"ticket_subject":"Test ticket subject ☃",
"ticket_description":"<div>Test ticket description ☃.</div>",
"ticket_status":"Pending",
"ticket_priority":"High",
"requester_name":"Requester ☃ Bob",
"requester_email":"requester-bob@example.com",
}
}