app_signal: Add tests for Signal and WaitForSignal
[asterisk/testsuite.git] / tests / rest_api / channels / playback / lists / reverse / 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         Reverse 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                     delay: 1
75                     method: 'post'
76                     uri: 'playbacks/list/control?operation=reverse'
77         -
78             conditions:
79                 match:
80                     type: PlaybackContinuing
81                     application: testsuite
82                     playback:
83                         id: 'list'
84                         target_uri: 'channel:testsuite-default-id$'
85                         media_uri: 'sound:tt-monkeys'
86         -
87             conditions:
88                 match:
89                     type: PlaybackStarted
90                     application: testsuite
91                     playback:
92                         id: 'list'
93                         target_uri: 'channel:testsuite-default-id$'
94                         media_uri: 'sound:tt-weasels'
95             count: 1
96             requests:
97                 -
98                     delay: 1
99                     method: 'post'
100                     uri: 'playbacks/list/control?operation=reverse'
101                 -
102                     delay: 3
103                     method: 'delete'
104                     uri: 'playbacks/list'
105         -
106             conditions:
107                 match:
108                     type: PlaybackFinished
109                     application: testsuite
110                     playback:
111                         id: 'list'
112                         target_uri: 'channel:testsuite-default-id$'
113                         media_uri: 'sound:tt-weasels'
114             count: 1
115             requests:
116                 -
117                     method: 'delete'
118                     uri: 'channels/testsuite-default-id'
119
120 ami-config:
121     -
122         type: 'headermatch'
123         id: '0'
124         conditions:
125             match:
126                 Event: 'TestEvent'
127                 State: 'PLAYBACK'
128                 Control: 'Rewind'
129                 SkipMs: '3000'
130         count: 2
131
132 properties:
133     buildoption: 'TEST_FRAMEWORK'
134     minversion: '14.0.0'
135     dependencies:
136         - python : autobahn.websocket
137         - python : requests
138         - python : twisted
139         - python : starpy
140         - asterisk : res_ari_channels
141         - asterisk : res_ari_playbacks
142     tags:
143         - ARI