chan_pjsip: Extend existing test all_codecs_on_empty_reinvite
[asterisk/testsuite.git] / tests / rest_api / channels / playback / lists / forward / test-config.yaml
1 testinfo:
2     summary: Tests that the forward ARI playback command works on channels as intended
3     description: |
4         This test puts a local channel half into Stasis, and the other into the Echo
5         application.  Starts an ARI playback of tt-monkeys on a channel, and as soon
6         as the playback starts, fastforwards the playback. Test passes if a playback
7         FastForward TestEvent gets received.
8
9 test-modules:
10     test-object:
11         config-section: test-object-config
12         typename: ari.AriOriginateTestObject
13     modules:
14         -
15             config-section: ari-config
16             typename: ari.WebSocketEventModule
17         -
18             config-section: ari-test-stopper
19             typename: pluggable_modules.EventActionModule
20         -
21             config-section: asterisk-config
22             typename: pluggable_modules.AsteriskConfigModule
23         -
24             config-section: ami-config
25             typename: ami.AMIEventModule
26
27 asterisk-config:
28     -
29         src: 'tests/rest_api/channels/playback/lists/configs/extensions.conf'
30         dst: 'extensions.conf'
31
32 test-object-config:
33     stop-on-end: False
34
35 ari-test-stopper:
36     -
37         ari-events:
38             match:
39                 type: ChannelDestroyed
40                 application: testsuite
41                 channel:
42                     id: 'testsuite-default-id$'
43         stop_test:
44
45 ari-config:
46     apps: testsuite
47     events:
48         -
49             conditions:
50                 match:
51                     type: StasisStart
52                     application: testsuite
53                     channel:
54                         id: 'testsuite-default-id$'
55             count: 1
56             requests:
57                 -
58                     method: 'post'
59                     uri: 'channels/testsuite-default-id/play/list'
60                     params:
61                        media: 'sound:tt-monkeys,sound:tt-weasels'
62         -
63             conditions:
64                 match:
65                     type: PlaybackStarted
66                     application: testsuite
67                     playback:
68                         id: 'list'
69                         target_uri: 'channel:testsuite-default-id$'
70                         media_uri: 'sound:tt-monkeys'
71             count: 1
72             requests:
73                 -
74                     method: 'post'
75                     uri: 'playbacks/list/control?operation=forward'
76                 -
77                     delay: 1
78                     method: 'post'
79                     uri: 'playbacks/list/control?operation=forward'
80         -
81             conditions:
82                 match:
83                     type: PlaybackContinuing
84                     application: testsuite
85                     playback:
86                         id: 'list'
87                         target_uri: 'channel:testsuite-default-id$'
88                         media_uri: 'sound:tt-monkeys'
89         -
90             conditions:
91                 match:
92                     type: PlaybackStarted
93                     application: testsuite
94                     playback:
95                         id: 'list'
96                         target_uri: 'channel:testsuite-default-id$'
97                         media_uri: 'sound:tt-weasels'
98             count: 1
99             requests:
100                 -
101                     method: 'post'
102                     uri: 'playbacks/list/control?operation=forward'
103                 -
104                     delay: 2
105                     method: 'delete'
106                     uri: 'playbacks/list'
107         -
108             conditions:
109                 match:
110                     type: PlaybackFinished
111                     application: testsuite
112                     playback:
113                         id: 'list'
114                         target_uri: 'channel:testsuite-default-id$'
115                         media_uri: 'sound:tt-weasels'
116             count: 1
117             requests:
118                 -
119                     method: 'delete'
120                     uri: 'channels/testsuite-default-id'
121
122 ami-config:
123     -
124         type: 'headermatch'
125         id: '0'
126         conditions:
127             match:
128                 Event: 'TestEvent'
129                 State: 'PLAYBACK'
130                 Control: 'FastForward'
131                 SkipMs: '3000'
132         count: 3
133
134 properties:
135     buildoption: 'TEST_FRAMEWORK'
136     minversion: '14.0.0'
137     dependencies:
138         - python : autobahn.websocket
139         - python : requests
140         - python : twisted
141         - python : starpy
142         - asterisk : res_ari_channels
143         - asterisk : res_ari_playbacks
144     tags:
145         - ARI