Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v9.2.0 #166

Open
wants to merge 387 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
387 commits
Select commit Hold shift + click to select a range
318b1a8
Rework M3 handler to new send
norkans7 Feb 21, 2024
da821a8
Rework MK handler to new send
norkans7 Feb 21, 2024
8f8b59d
Rework MB handler to new send
norkans7 Feb 21, 2024
9caf1e6
Rework MBD handler to new send
norkans7 Feb 21, 2024
0981fe9
Rework MG handler to new send
norkans7 Feb 21, 2024
c914ff0
Rework MTN handler to new send
norkans7 Feb 21, 2024
a4866a6
Rework MT handler to new send
norkans7 Feb 21, 2024
b65364f
Rework meta handlers to new send
norkans7 Feb 21, 2024
7a4fd1e
Rework LN handler to new send
norkans7 Feb 21, 2024
f23d1ac
Merge pull request #696 from nyaruka/sr-sends
rowanseymour Feb 21, 2024
333a378
Adjust channel logs for Twilio
norkans7 Feb 21, 2024
c5ac802
Adjust channel logs for Nexmo
norkans7 Feb 21, 2024
093d89d
Fix Twilio to return Error with reason for Twilio error codes
norkans7 Feb 21, 2024
c2d042c
Merge pull request #700 from nyaruka/line-send
rowanseymour Feb 21, 2024
6b94511
Fix Nexmo specific error code
norkans7 Feb 21, 2024
cb9e60a
Merge pull request #698 from nyaruka/twilio-error
rowanseymour Feb 21, 2024
47a550d
Update CHANGELOG.md for v9.1.8
rowanseymour Feb 21, 2024
de155f3
Use MockResponses and ExpectedRequests in HM tests
norkans7 Feb 22, 2024
cdae535
Use MockResponses and ExpectedRequests in HX tests
norkans7 Feb 22, 2024
0bed394
Use MockResponses and ExpectedRequests in GL tests
norkans7 Feb 22, 2024
3e51060
Use MockResponses and ExpectedRequests in FC tests
norkans7 Feb 22, 2024
b707169
Use MockResponses and ExpectedRequests in FCM tests
norkans7 Feb 22, 2024
4703e03
Use MockResponses and ExpectedRequests in FB tests
norkans7 Feb 22, 2024
23d5cda
Rework FB handler to new send
norkans7 Feb 22, 2024
c96fcaa
Rework FCM handler to new send
norkans7 Feb 22, 2024
0624269
Rework FC handler to new send
norkans7 Feb 22, 2024
fd83cf1
Rework GL handler to new send
norkans7 Feb 22, 2024
49cb89e
Rework HX handler to new send
norkans7 Feb 22, 2024
4a7eb7d
Rework HM handler to new send
norkans7 Feb 22, 2024
d15ff31
Adjust to send the first 10 QRs for Whatsapp when we have more
norkans7 Feb 23, 2024
295d171
Use MockResponses and ExpectedRequests in EX tests
norkans7 Feb 23, 2024
0e14c8f
Rework EX handler to new send
norkans7 Feb 23, 2024
c6ea483
Merge pull request #699 from nyaruka/m-sends
rowanseymour Feb 23, 2024
4974987
Minor cleanup
rowanseymour Feb 23, 2024
2381dca
Merge pull request #705 from nyaruka/minor_cleanup
rowanseymour Feb 23, 2024
d596500
Update CHANGELOG.md for v9.1.9
rowanseymour Feb 23, 2024
4840f93
Adjust Viber send error for extrnal errors
norkans7 Feb 26, 2024
752478e
Adjust Yo and Zenvia error for non 200 response status
norkans7 Feb 26, 2024
e92bd48
Merge pull request #706 from nyaruka/send-errors
rowanseymour Feb 26, 2024
0b3486d
Merge pull request #702 from nyaruka/fgh-sends
rowanseymour Feb 26, 2024
0c27d30
Merge pull request #704 from nyaruka/ex-send
rowanseymour Feb 26, 2024
e733583
Update CHANGELOG.md for v9.1.10
rowanseymour Feb 26, 2024
eb07c98
Make sure we handle connection error properly for WAC
norkans7 Feb 26, 2024
eadf5a7
Merge pull request #707 from nyaruka/send-errors
rowanseymour Feb 27, 2024
760340f
Use MockResponses and ExpectedRequests in I2 tests
norkans7 Feb 21, 2024
dfdd250
Use MockResponses and ExpectedRequests in IB tests
norkans7 Feb 21, 2024
c419307
Use MockResponses and ExpectedRequests in JS tests
norkans7 Feb 21, 2024
6a199db
Use MockResponses and ExpectedRequests in JC tests
norkans7 Feb 21, 2024
e2a55a9
Use MockResponses and ExpectedRequests in JCL tests
norkans7 Feb 21, 2024
ad503f7
Use MockResponses and ExpectedRequests in KN tests
norkans7 Feb 21, 2024
725a77a
Rework KN handler to new send
norkans7 Feb 21, 2024
1bd2574
Rework KWA handler to new send
norkans7 Feb 21, 2024
ec01b24
Rework JCL handler to new send
norkans7 Feb 21, 2024
e422997
Rework JC handler to new send
norkans7 Feb 21, 2024
c8c15c0
Rework JS handler to new send
norkans7 Feb 21, 2024
a157f5a
Rework IB handler to new send
norkans7 Feb 21, 2024
1d61db7
Rework I2 handler to new send
norkans7 Feb 21, 2024
190581c
Remove channel log for IB unexpected group
norkans7 Feb 27, 2024
fa35a8d
Use MockResponses and ExpectedRequests in DA tests
norkans7 Feb 22, 2024
a4bfe48
Use MockResponses and ExpectedRequests in D3C tests
norkans7 Feb 22, 2024
bd2b1e5
Use MockResponses and ExpectedRequests in DS tests
norkans7 Feb 22, 2024
f7bdefd
Use MockResponses and ExpectedRequests in DK tests
norkans7 Feb 22, 2024
9b3f6bb
Use MockResponses and ExpectedRequests in D3C tests
norkans7 Feb 22, 2024
d6ef57c
Rework DK handler to new send
norkans7 Feb 22, 2024
a74c393
Rework DS handler to new send
norkans7 Feb 22, 2024
a1727d1
Rework D3C handler to new send
norkans7 Feb 22, 2024
4943560
Rework DA handler to new send
norkans7 Feb 22, 2024
4fd0863
Make sure we handle connection error properly for D3C
norkans7 Feb 26, 2024
f3401ba
Make sure we truncate up to 10 QRs on D3C
norkans7 Feb 27, 2024
08ce2dc
Adjust send errors
norkans7 Feb 28, 2024
7a79316
Merge pull request #701 from nyaruka/ijk-sends
rowanseymour Feb 28, 2024
fa81698
Merge pull request #703 from nyaruka/d-sends
rowanseymour Feb 28, 2024
b1fbb84
Update CHANGELOG.md for v9.1.11
rowanseymour Feb 28, 2024
17573a3
Rework WA handler to new send, remove channel legacy handler
norkans7 Feb 28, 2024
469b148
Remove test fields no longer used
norkans7 Feb 29, 2024
e328db7
Remove MockResponseStatus and MockResponseBody that are already replaced
norkans7 Feb 29, 2024
d0384d5
Use MockResponses in AT tests
norkans7 Feb 29, 2024
a866538
Replace use of deprecated test fields
norkans7 Feb 29, 2024
c4e50a6
Remove test deprecated fields
norkans7 Feb 29, 2024
6b8af69
Merge pull request #708 from nyaruka/remove-legacy-send
rowanseymour Feb 29, 2024
27c65b5
Merge branch 'main' into remove-deprecated-test-fields
rowanseymour Feb 29, 2024
e6117f4
Merge pull request #709 from nyaruka/remove-deprecated-test-fields
rowanseymour Feb 29, 2024
7775851
Update CHANGELOG.md for v9.1.12
rowanseymour Feb 29, 2024
a43e2f3
Update to chi v5 and go 1.22
rowanseymour Mar 4, 2024
8eb05d7
Merge pull request #710 from nyaruka/chi_v5
rowanseymour Mar 4, 2024
eee6313
Use go 1.22 for docker image
rowanseymour Mar 4, 2024
59765cb
Return error with line attachments issues
norkans7 Mar 7, 2024
66ae5b7
Merge pull request #711 from nyaruka/line-attachnment-err-log
rowanseymour Mar 7, 2024
6019d3d
Update CHANGELOG.md for v9.1.13
rowanseymour Mar 7, 2024
21ccce4
Unresolveable media should create channel log error
rowanseymour Mar 12, 2024
f889b58
Merge pull request #712 from nyaruka/clog_unresolved_attachments
rowanseymour Mar 12, 2024
993344a
Remove S3 region is media hostname before matching the media domain
norkans7 Mar 12, 2024
ebd5ad8
Merge pull request #713 from nyaruka/fix-media-resolve
rowanseymour Mar 12, 2024
db7ae80
Update CHANGELOG.md for v9.1.14
rowanseymour Mar 12, 2024
c9624dc
Update deps
rowanseymour Mar 14, 2024
222ef62
Update CHANGELOG.md for v9.1.15
rowanseymour Mar 14, 2024
a9bdd48
Make parameter with type url to be sent as url buttons
norkans7 Mar 15, 2024
8e6d57d
Add tests for templating with params
norkans7 Mar 15, 2024
4a570e6
Adjust if block condition for URL buttons
norkans7 Mar 15, 2024
6f4016f
Merge pull request #715 from nyaruka/fix-WA-button-url
rowanseymour Mar 15, 2024
ce71e14
Update CHANGELOG.md for v9.1.16
rowanseymour Mar 15, 2024
00fd2c4
Make processing of template components deterministic
rowanseymour Mar 15, 2024
9ba8161
Merge pull request #717 from nyaruka/template_tweak
rowanseymour Mar 15, 2024
d55ff29
Order components in template and fix max length for D3C
norkans7 Mar 15, 2024
9956f20
Remove sorting components
norkans7 Mar 15, 2024
39f06b1
Merge pull request #716 from nyaruka/fix-WA-button-url
rowanseymour Mar 15, 2024
196c706
Fix WA templating generation and add tests
rowanseymour Mar 15, 2024
1ddb1f4
Merge pull request #718 from nyaruka/templates_fix
rowanseymour Mar 15, 2024
d9467e3
Update CHANGELOG.md for v9.1.17
rowanseymour Mar 15, 2024
2a7887a
Fix button URLs for WA templates
norkans7 Mar 18, 2024
980a8e1
Update to use templating components with type
norkans7 Mar 19, 2024
35bed29
Merge pull request #721 from nyaruka/fix-WA-button-component-type
rowanseymour Mar 20, 2024
f76d1c2
Update CHANGELOG.md for v9.1.18
rowanseymour Mar 20, 2024
d4455f4
Use component name to find button index
norkans7 Mar 20, 2024
2a5ca0f
Update test
norkans7 Mar 20, 2024
ba9225b
Merge pull request #722 from nyaruka/fix-component-index
rowanseymour Mar 20, 2024
220fcd3
Update CHANGELOG.md for v9.1.19
rowanseymour Mar 20, 2024
c3ed746
Update payloads for tasks queued to mailroom
rowanseymour Mar 27, 2024
10c2252
Merge pull request #723 from nyaruka/adjust_task_payloads
rowanseymour Mar 28, 2024
5033ef5
Update CHANGELOG.md for v9.1.20
rowanseymour Mar 28, 2024
e27df19
Queue all channel events to mailroom as a single task type
rowanseymour Mar 28, 2024
a1af0c3
Merge pull request #724 from nyaruka/single_channel_event_task
rowanseymour Mar 28, 2024
746618b
Update CHANGELOG.md for v9.1.21
rowanseymour Mar 28, 2024
4b3d7fe
Start writing status field on channel events as P
rowanseymour Apr 2, 2024
48dd9e5
Merge pull request #725 from nyaruka/event_status
rowanseymour Apr 2, 2024
0c80de5
Update CHANGELOG.md for v9.1.22
rowanseymour Apr 2, 2024
9d15c51
Adjust legacy WA channel handler to use templating components
norkans7 Apr 3, 2024
f3c6c96
Merge pull request #726 from nyaruka/fix-legacy-WA-variables
rowanseymour Apr 3, 2024
29098b1
Update CHANGELOG.md for v9.1.23
rowanseymour Apr 3, 2024
13c8509
Stop writing Msg.queued_on
rowanseymour Apr 8, 2024
86ae57e
Merge pull request #728 from nyaruka/no_more_queued_on
rowanseymour Apr 8, 2024
91e5c59
Update CHANGELOG.md for v9.1.24
rowanseymour Apr 8, 2024
a081fe6
Update test data schema inline with recent RP changes
rowanseymour Apr 9, 2024
5123aff
Read templating from new msg field instead of metadata
rowanseymour Apr 16, 2024
35c9d1a
Merge pull request #729 from nyaruka/msg_templating
rowanseymour Apr 17, 2024
9be759a
Update CHANGELOG.md for v9.1.25
rowanseymour Apr 17, 2024
b127728
Use variables in templating instead of params
rowanseymour Apr 17, 2024
5e66496
Merge pull request #730 from nyaruka/params_to_variables
rowanseymour Apr 17, 2024
019d0e7
Update CHANGELOG.md for v9.1.26
rowanseymour Apr 17, 2024
d7d3b5b
Update filetype package to v1.1.3
norkans7 Apr 19, 2024
f8edc01
Merge pull request #731 from nyaruka/attachment-filetype
rowanseymour Apr 22, 2024
3fcfc98
Update deps
rowanseymour Apr 22, 2024
e066c10
Update CHANGELOG.md for v9.1.27
rowanseymour Apr 22, 2024
5c4b60c
Support retrying failed messages for rate limit on Twilio WhatsApp
norkans7 Apr 22, 2024
179f89d
Merge pull request #733 from nyaruka/twilio-whatsapp-retry
rowanseymour Apr 22, 2024
ff06bf4
Update CHANGELOG.md for v9.1.28
rowanseymour Apr 22, 2024
6137e85
Add support for read msg status
norkans7 Apr 25, 2024
3bfd3be
Make sure sent_on is properly set for read status
norkans7 Apr 26, 2024
d774bdd
Prioritize the content-type header for attachments response for mimet…
norkans7 Apr 26, 2024
5de742b
Coverage
norkans7 Apr 26, 2024
99a653a
Merge pull request #736 from nyaruka/attachment-mimetype
rowanseymour Apr 26, 2024
95eedb6
Update CHANGELOG.md for v9.1.29
rowanseymour Apr 26, 2024
cd0bedd
Use filetype package to check file content for application/octet-stre…
norkans7 Apr 26, 2024
d254cb2
Merge pull request #737 from nyaruka/attachment-mimetype
rowanseymour Apr 26, 2024
334e3e6
Update CHANGELOG.md for v9.1.30
rowanseymour Apr 26, 2024
7b116e4
Merge pull request #735 from nyaruka/status-read
rowanseymour Apr 29, 2024
2292ce7
Update CHANGELOG.md for v9.1.31
rowanseymour Apr 29, 2024
c48a61d
Update to new gocommon with urns changes
rowanseymour May 7, 2024
1b97543
Change Channel.IsScheme to take scheme object
rowanseymour May 7, 2024
e4ed5ea
Merge pull request #738 from nyaruka/urns_refactor
rowanseymour May 7, 2024
8df7200
Update CHANGELOG.md for v9.1.32
rowanseymour May 7, 2024
29ce7cd
Update to latest gocommon
rowanseymour May 7, 2024
451ad2c
Trust urns.ParsePhone for phone number parsing
rowanseymour May 8, 2024
33e81c3
Merge pull request #739 from nyaruka/parse_phone
rowanseymour May 8, 2024
d415e63
Update CHANGELOG.md for v9.1.33
rowanseymour May 8, 2024
a1f8a06
Update gocommon
rowanseymour May 8, 2024
f5f1041
Update gocommon
rowanseymour May 8, 2024
a0c89f1
Merge pull request #740 from nyaruka/update_gocommon
rowanseymour May 8, 2024
e4e0d6d
Update CHANGELOG.md for v9.1.34
rowanseymour May 8, 2024
83f34a8
Fix HM token expiration timeout
norkans7 May 9, 2024
09d9981
Merge pull request #741 from nyaruka/fix-hormuud
rowanseymour May 9, 2024
0e6644f
Update CHANGELOG.md for v9.1.35
rowanseymour May 9, 2024
1e6ff95
Update to latest gocommon
rowanseymour May 9, 2024
76a2d1d
Update CHANGELOG.md for v9.1.36
rowanseymour May 9, 2024
eeb5e34
Update to latest gocommon
rowanseymour May 9, 2024
e7ae14e
Update CHANGELOG.md for v9.1.37
rowanseymour May 9, 2024
3fcb647
Fix urns creation so we trigger normalization
norkans7 May 9, 2024
ba05f59
Merge pull request #742 from nyaruka/fix-EX-urns
rowanseymour May 9, 2024
2f475e6
Update CHANGELOG.md for v9.1.38
rowanseymour May 9, 2024
371030a
Update gocommon again!
rowanseymour May 9, 2024
36bcdaa
Allow sender ID tel urns on twilio channels
rowanseymour May 9, 2024
9017ca2
Add test to make sure URN are normalized for EX channel with non phon…
norkans7 May 10, 2024
60f427f
Merge pull request #743 from nyaruka/fix-EX-urns-test
rowanseymour May 10, 2024
1e5ebb7
Pass channel schemes to test.NewMockChannel
norkans7 May 10, 2024
8b1404f
Merge pull request #744 from nyaruka/channel-schemes-test
rowanseymour May 10, 2024
dc1483b
Fix hoormund bug so we don't ignore errors from fetching tokens
rowanseymour May 23, 2024
4c4493e
Merge pull request #749 from nyaruka/hoormund_fix
rowanseymour May 23, 2024
57b9fd1
Use std library errors, part 1
norkans7 May 21, 2024
41067f3
Merge pull request #747 from nyaruka/std-errorr-part-1
rowanseymour May 23, 2024
ff1fd02
Tweak chip handler
rowanseymour May 27, 2024
773ca48
Run server tests on port 8081 to avoid conflicts with local dev server
rowanseymour May 28, 2024
c2e9cdf
Merge pull request #750 from nyaruka/test_port
rowanseymour May 28, 2024
fe76906
Update channel code in chip handler
rowanseymour May 28, 2024
2d3b60d
Update CHANGELOG.md for v9.1.39
rowanseymour May 29, 2024
66d0621
Set content-type header in chip handler
rowanseymour May 29, 2024
d2d38fb
Update CHANGELOG.md for v9.1.40
rowanseymour May 29, 2024
e2060e7
Update github actions versions
rowanseymour May 29, 2024
2b4156f
Add attachment support for chip
rowanseymour May 29, 2024
6a6cc97
Update CHANGELOG.md for v9.1.41
rowanseymour May 29, 2024
0437766
Update codecov action version
rowanseymour May 29, 2024
43f290b
Tweak error handling in legacy whatsapp handler
rowanseymour May 30, 2024
2fe6ac9
Use std library errors, part 2
norkans7 May 21, 2024
fbdc873
Update to latest redisx
norkans7 May 21, 2024
2859b4f
Format imports
norkans7 May 30, 2024
065b45b
Add support for sending Twilio Template
norkans7 May 30, 2024
c6be0bc
Merge pull request #751 from nyaruka/TWA-templates
rowanseymour Jun 3, 2024
910c15d
Merge pull request #748 from nyaruka/std-errorr-part-2
rowanseymour Jun 3, 2024
80e843c
Replace incorrect usages of ErrFailedWithReason
rowanseymour Jun 3, 2024
e894592
Update deps
rowanseymour Jun 3, 2024
2e8f3dc
Update CHANGELOG.md for v9.1.42
rowanseymour Jun 3, 2024
b50e3a3
Update slog-multi
rowanseymour Jun 4, 2024
03c0927
Update CHANGELOG.md for v9.1.43
rowanseymour Jun 4, 2024
4e64516
Update goreleaser config to v2
rowanseymour Jun 5, 2024
6c87908
Update README
rowanseymour Jun 5, 2024
08e87fc
Use split attachments for templates media attachment for consistency …
norkans7 Jun 6, 2024
36c7a42
Merge pull request #752 from nyaruka/split-template-attachments
rowanseymour Jun 6, 2024
62c8f10
Update CHANGELOG.md for v9.1.44
rowanseymour Jun 6, 2024
82ac767
Adjust attachment variables for TWA templates
norkans7 Jun 6, 2024
03ac710
Merge pull request #753 from nyaruka/split-template-attachments-TWA
rowanseymour Jun 6, 2024
735b12b
Update CHANGELOG.md for v9.1.45
rowanseymour Jun 6, 2024
3e89482
Make sure TWA channels send the set messaging service SID when sendin…
norkans7 Jun 7, 2024
c5568b6
Merge pull request #754 from nyaruka/twa-messaging-service-sid
rowanseymour Jun 7, 2024
4192fd8
Update CHANGELOG.md for v9.1.46
rowanseymour Jun 7, 2024
6ccff12
Support template component types header/* and body/*
rowanseymour Jun 10, 2024
533866c
Merge pull request #755 from nyaruka/template_fmt_tweak
rowanseymour Jun 10, 2024
d86bffb
Update CHANGELOG.md for v9.1.47
rowanseymour Jun 10, 2024
03a119f
Update template test
rowanseymour Jun 10, 2024
e4adb29
Fix legacy WA components parameters
norkans7 Jun 14, 2024
4273997
Merge pull request #756 from nyaruka/legacy-WA-components
rowanseymour Jun 14, 2024
959457a
Update CHANGELOG.md for v9.1.48
rowanseymour Jun 14, 2024
29a169d
Adjust WA template to be send if present even when we have attachments
norkans7 Jun 17, 2024
921f39f
Merge pull request #757 from nyaruka/fix-d3c-media-attach
rowanseymour Jun 17, 2024
081c101
Update CHANGELOG.md for v9.1.49
rowanseymour Jun 17, 2024
90aacbe
Update chi library
rowanseymour Jun 19, 2024
8ad8bd1
Merge pull request #758 from nyaruka/update_chi
rowanseymour Jun 19, 2024
0a31b7f
Update CHANGELOG.md for v9.1.50
rowanseymour Jun 20, 2024
4a8082d
Update deps
rowanseymour Jul 1, 2024
234b243
Update CHANGELOG.md for v9.1.51
rowanseymour Jul 1, 2024
2e6180a
Start writing msgs_msg.is_android
rowanseymour Jul 10, 2024
8757374
Merge pull request #759 from nyaruka/is_android
rowanseymour Jul 10, 2024
420405b
Update CHANGELOG.md for v9.1.52
rowanseymour Jul 10, 2024
ba39615
Update deps
rowanseymour Jul 15, 2024
75ffd4b
Update CHANGELOG.md for v9.1.53
rowanseymour Jul 15, 2024
9f4d621
Update README
rowanseymour Jul 17, 2024
2e65d7e
Update CHANGELOG.md for v9.2.0
rowanseymour Jul 17, 2024
7c24c1c
Merge tag 'v9.2.0' into update/v9.2.0
Robi9 Dec 17, 2024
fa4c2d8
Adjust weniwebchat handle
Robi9 Dec 19, 2024
a21650f
Fix tests
Robi9 Dec 19, 2024
0f0bc90
Update weni-changelog
Robi9 Dec 19, 2024
fa1eb6f
Fix weni-changelog
Robi9 Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test to make sure URN are normalized for EX channel with non phon…
…e schemes
  • Loading branch information
norkans7 committed May 10, 2024
commit 9017ca2d3779357e65cac06cdccd109c37b95733
26 changes: 26 additions & 0 deletions handlers/external/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
. "github.com/nyaruka/courier/handlers"
"github.com/nyaruka/courier/test"
"github.com/nyaruka/gocommon/httpx"
"github.com/nyaruka/gocommon/urns"
)

const (
Expand Down Expand Up @@ -267,11 +268,36 @@ var customTestCases = []IncomingTestCase{
},
}

var extReceiveTestCases = []IncomingTestCase{
{
Label: "Receive Valid Message",
URL: receiveURL + "?sender=%2B2349067554729&text=Join",
Data: "empty",
ExpectedRespStatus: 200,
ExpectedBodyContains: "Accepted",
ExpectedMsgText: Sp("Join"),
ExpectedURN: "ext:+2349067554729",
},
{
Label: "Receive Valid Message trim spaces",
URL: receiveURL + "?sender=+2349067554729&text=Join",
Data: "empty",
ExpectedRespStatus: 200,
ExpectedBodyContains: "Accepted",
ExpectedMsgText: Sp("Join"),
ExpectedURN: "ext:2349067554729",
},
}

func TestIncoming(t *testing.T) {
RunIncomingTestCases(t, testChannels, newHandler(), handleTestCases)
RunIncomingTestCases(t, testSOAPReceiveChannels, newHandler(), handleSOAPReceiveTestCases)
RunIncomingTestCases(t, gmChannels, newHandler(), gmTestCases)
RunIncomingTestCases(t, customChannels, newHandler(), customTestCases)

extChannel := test.NewMockChannel("8eb23e93-5ecb-45ba-b726-3b064e0c56ab", "EX", "2020", "GM", nil)
extChannel.SetScheme(urns.External.Prefix)
RunIncomingTestCases(t, []courier.Channel{extChannel}, newHandler(), extReceiveTestCases)
}

func BenchmarkHandler(b *testing.B) {
Expand Down