Skip to content

Commit 3a78503

Browse files
mogitaclaude
andcommitted
feat: HardDeleteCall video integration test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dc55c4e commit 3a78503

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

src/test/java/io/getstream/VideoIntegrationTest.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)