summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-02-21 02:22:31 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-02-22 13:09:27 +0100
commit03735df98854d0b27f0462d72fd797647f8cbc6e (patch)
treecaa399e04a42d881620cf2ee71dfaccb16f19bc0 /tests
parenteca3161d246eac7e874a17ee3b747bb0129bee7b (diff)
Return error when trying to stop an unknown recording
The Nextcloud server expects a notification to be sent by the recording server once a recording is stopped. However, if the recording server does not know about certain recording the Nextcloud server did not change the recording status, and the recording was kept active (even if it was not). To solve that now the recording server returns a 404 when trying to stop an unknown recording (although not if the recording is being stopped), and in that case the Nextcloud server updates the recording status to "failed". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/stubs/GuzzleHttp_Exception_ClientException.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stubs/GuzzleHttp_Exception_ClientException.php b/tests/stubs/GuzzleHttp_Exception_ClientException.php
new file mode 100644
index 000000000..d3f142254
--- /dev/null
+++ b/tests/stubs/GuzzleHttp_Exception_ClientException.php
@@ -0,0 +1,8 @@
+<?php
+
+namespace GuzzleHttp\Exception;
+
+class ClientException extends \RuntimeException {
+ public function getResponse() {
+ }
+}