Skip to content

Commit b7b3986

Browse files
committed
Pass the testId to the transcribeRequest body
1 parent c030a60 commit b7b3986

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/java/org/openapitools/client/api/RecordingsApiTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ public class RecordingsApiTest {
7272
public static void setUpBeforeClass() throws URISyntaxException {
7373
// answerUrl = new URI(MANTECA_BASE_URL + "/bxml/startRecording");
7474
answerUrl = new URI(MANTECA_BASE_URL + "/bxml/startLongRecording");
75-
76-
transcribeRecording.callbackUrl(new URI(MANTECA_BASE_URL + "/transcriptions"));
77-
transcribeRecording.setTag(testId);
7875
}
7976

8077
@AfterAll
@@ -193,6 +190,10 @@ public void testCallRecordingAndTranscription() throws Exception {
193190
BW_ACCOUNT_ID, callId, recordingId);
194191
assertThat(recordingMetadataResponse.getStatusCode(), is(200));
195192

193+
// Pass the tag to transcribeRecording to receive the callback
194+
transcribeRecording.callbackUrl(new URI(MANTECA_BASE_URL + "/transcriptions"));
195+
transcribeRecording.setTag(testId);
196+
196197
ApiResponse<Void> requestTranscriptionResponse = recordingsApi.transcribeCallRecordingWithHttpInfo(
197198
BW_ACCOUNT_ID, callId, recordingId, transcribeRecording);
198199
assertThat(requestTranscriptionResponse.getStatusCode(), is(204));
@@ -266,14 +267,13 @@ public void testGetAccountRecordingsForbidden() {
266267

267268
@Test
268269
public void testRecordingNotFound() {
269-
Basic.setUsername(BW_USERNAME);
270-
Basic.setPassword(BW_PASSWORD);
270+
Basic.setUsername(BW_USERNAME);
271+
Basic.setPassword(BW_PASSWORD);
271272

272-
ApiException exception = Assertions.assertThrows(ApiException.class,
273-
() -> recordingsApi.getCallRecording(BW_ACCOUNT_ID, "not a call", "not a
274-
recording"));
273+
ApiException exception = Assertions.assertThrows(ApiException.class,
274+
() -> recordingsApi.getCallRecording(BW_ACCOUNT_ID, "not a call", "not a recording"));
275275

276-
assertThat(exception.getCode(), is(404));
276+
assertThat(exception.getCode(), is(404));
277277
}
278278

279279
@Test

0 commit comments

Comments
 (0)