From 8d3ceb7a30ee272bd3fe092398dfad07c59b8ac9 Mon Sep 17 00:00:00 2001 From: Hamel Husain Date: Fri, 23 Aug 2019 15:49:38 -0700 Subject: [PATCH] update payload script to send different kinds of payloads --- tests/payload2.json | 15 +++++++++++++++ tests/send_payload.sh | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/payload2.json mode change 100644 => 100755 tests/send_payload.sh diff --git a/tests/payload2.json b/tests/payload2.json new file mode 100644 index 00000000..272fc00f --- /dev/null +++ b/tests/payload2.json @@ -0,0 +1,15 @@ +{ +"action": "opened", + "issue": { + "number": 5, + "title": "TESTING THIS", + "body": "Testing the app with the payload." + }, + "repository": { + "full_name": "abcdefgs0324/Issue-Label-Bot", + "private": false + }, + "installation": { + "id": 1585757 + } +} \ No newline at end of file diff --git a/tests/send_payload.sh b/tests/send_payload.sh old mode 100644 new mode 100755 index 28b285c7..092e2f58 --- a/tests/send_payload.sh +++ b/tests/send_payload.sh @@ -1,2 +1,3 @@ #!/bin/sh -curl -X POST -H "Content-Type: application/json" -H "X-GitHub-Event: issues" -H "X-Hub-Signature: sha1=fakedontneedfortesting" -d "@payload.json" http://localhost:3000/event_handler \ No newline at end of file +curl -X POST -H "Content-Type: application/json" -H "X-GitHub-Event: issues" -H "X-Hub-Signature: sha1=fakedontneedfortesting" -d "@payload.json" http://localhost:3000/event_handler +curl -X POST -H "Content-Type: application/json" -H "X-GitHub-Event: issues" -H "X-Hub-Signature: sha1=fakedontneedfortesting" -d "@payload2.json" http://localhost:3000/event_handler \ No newline at end of file