tests: Add coverage for ARI in-dialog channel MESSAGE. - #152
Conversation
Add testsuite coverage for the new ARI channels/{channelId}/sendMessage
endpoint and the ChannelMessageReceived/ChannelMessageDeliveryStatus events
introduced in asterisk/asterisk#1810.
- rest_api/channels/send_message: exercises sendMessage success paths (plain
text, JSON body, sequential and concurrent requests), error responses
(404 dead channel, 409 not in Stasis, 412 invalid state, 501 unsupported
channel type), authentication/proxy-authentication challenges, and
delivery-status correlation via request_id.
- rest_api/channels/recv_in_dialog_message: verifies an incoming in-dialog
SIP MESSAGE is published to the owning channel's Stasis application as
ChannelMessageReceived.
- channels/pjsip/message/message_sendtext_no_messaging_module: verifies
chan_pjsip's sendtext() behavior when res_pjsip_messaging is not loaded.
|
Disclosure: the new tests in this PR (send_message/, recv_in_dialog_message, |
|
cherry-pick-to: 20 |
|
asterisk-test-pr: 2118 |
|
Workflow Check failed |
|
The Gate test run above failed because it built against upstream master instead of asterisk#2118. The link is now in place. |
Add testsuite coverage for the new ARI channels/{channelId}/sendMessage
endpoint and the ChannelMessageReceived/ChannelMessageDeliveryStatus events
introduced in asterisk/asterisk#1810.
text, JSON body, sequential and concurrent requests), error responses
(404 dead channel, 409 not in Stasis, 412 invalid state, 501 unsupported
channel type), authentication/proxy-authentication challenges, and
delivery-status correlation via request_id.
SIP MESSAGE is published to the owning channel's Stasis application as
ChannelMessageReceived.
chan_pjsip's sendtext() behavior when res_pjsip_messaging is not loaded.