File tree Expand file tree Collapse file tree
src/test/java/io/getstream Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -684,6 +684,34 @@ void testDeleteCall() throws Exception {
684684 }
685685 }
686686
687+ @ Test
688+ @ Order (13 )
689+ void testHardDeleteCall () throws Exception {
690+ // Create a call to hard delete
691+ String callId = "test-call-" + RandomStringUtils .randomAlphabetic (8 ).toLowerCase ();
692+
693+ video
694+ .getOrCreateCall (
695+ "default" ,
696+ callId ,
697+ GetOrCreateCallRequest .builder ()
698+ .data (CallRequest .builder ().createdByID (testUsers .get (0 ).getId ()).build ())
699+ .build ())
700+ .execute ();
701+
702+ // Hard delete the call - should return a task_id
703+ var deleteResp =
704+ video
705+ .deleteCall ("default" , callId , DeleteCallRequest .builder ().hard (true ).build ())
706+ .execute ();
707+
708+ assertNotNull (deleteResp .getData ());
709+ assertNotNull (deleteResp .getData ().getTaskID ());
710+
711+ // Poll the task until completed
712+ waitForAsyncTask (deleteResp .getData ().getTaskID ());
713+ }
714+
687715 @ Test
688716 @ Order (8 )
689717 void testDeactivateUser () throws Exception {
You can’t perform that action at this time.
0 commit comments