@@ -878,6 +878,55 @@ void testEnableCallRecordingAndBackstageMode() throws Exception {
878878 assertTrue (backstageResp .getData ().getCall ().getSettings ().getBackstage ().getEnabled ());
879879 }
880880
881+ @ Test
882+ @ Order (17 )
883+ void testDeleteRecordingsAndTranscriptions () throws Exception {
884+ // Create a call (no actual recording/transcription needed - we test error cases)
885+ String callId = "test-call-" + RandomStringUtils .randomAlphabetic (8 ).toLowerCase ();
886+ createdCallIds .add (callId );
887+
888+ video
889+ .getOrCreateCall (
890+ "default" ,
891+ callId ,
892+ GetOrCreateCallRequest .builder ()
893+ .data (CallRequest .builder ().createdByID (testUsers .get (0 ).getId ()).build ())
894+ .build ())
895+ .execute ();
896+
897+ // Attempt to delete a non-existent recording - should return an error
898+ try {
899+ video
900+ .deleteRecording (
901+ "default" ,
902+ callId ,
903+ "non-existent-session" ,
904+ "non-existent-filename" ,
905+ new DeleteRecordingRequest ())
906+ .execute ();
907+ fail ("Expected exception when deleting non-existent recording" );
908+ } catch (Exception e ) {
909+ // Expected: API returns an error for non-existent recording
910+ assertNotNull (e .getMessage ());
911+ }
912+
913+ // Attempt to delete a non-existent transcription - should return an error
914+ try {
915+ video
916+ .deleteTranscription (
917+ "default" ,
918+ callId ,
919+ "non-existent-session" ,
920+ "non-existent-filename" ,
921+ new DeleteTranscriptionRequest ())
922+ .execute ();
923+ fail ("Expected exception when deleting non-existent transcription" );
924+ } catch (Exception e ) {
925+ // Expected: API returns an error for non-existent transcription
926+ assertNotNull (e .getMessage ());
927+ }
928+ }
929+
881930 @ Test
882931 @ Order (14 )
883932 void testTeams () throws Exception {
0 commit comments