Skip to content

SWI-3665 Update SDK Based on Recent Spec Changes #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 1, 2023
Merged

Conversation

DX-Bandwidth
Copy link
Contributor

Auto-generated by Update SDK Workflow

@DX-Bandwidth DX-Bandwidth requested a review from a team October 3, 2023 14:41
brianluisgomez
brianluisgomez previously approved these changes Oct 3, 2023
ajrice6713
ajrice6713 previously approved these changes Oct 3, 2023
@ckoegel ckoegel dismissed stale reviews from ajrice6713 and brianluisgomez October 3, 2023 15:56

need to add tests first

@ajrice6713 ajrice6713 marked this pull request as draft October 3, 2023 17:24
@ajrice6713
Copy link
Contributor

Putting this in draft - we cant add tests till GET /calls goes GA on 8/9

@brianluisgomez brianluisgomez marked this pull request as ready for review November 1, 2023 13:15
ckoegel
ckoegel previously approved these changes Nov 1, 2023
@brianluisgomez brianluisgomez marked this pull request as draft November 1, 2023 13:20
@brianluisgomez brianluisgomez marked this pull request as ready for review November 1, 2023 13:47
@@ -61,7 +62,7 @@ public class CallsApiTest {
private static CallbackMethodEnum callbackMethod = CallbackMethodEnum.POST;
private static String testCallId = "Call-Id";
private static String testXmlBody = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Bxml><SpeakSentence locale=\"en_US\" gender=\"female\" voice=\"susan\">This is a test bxml response</SpeakSentence><Pause duration=\"3\"/></Bxml>";
private static int TEST_SLEEP = 3;
private static int TEST_SLEEP = 6;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to set this to 40 to mimic voice api teams alarm, right @ckoegel ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one should also be fine cause we use it in multiple spots, we should just update the sleep for get call state to be 40s

@@ -62,8 +62,8 @@ public class ConferencesApiTest {
private static URI answerUrl;
private static URI conferenceRedirectUrl;
private static String updateRecordingBxml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Bxml><StartRecording/><SpeakSentence locale=\"en_US\" gender=\"female\" voice=\"susan\">This should be a conference recording.</SpeakSentence><StopRecording/></Bxml>";
private static int TEST_SLEEP = 3;
private static int MAX_RETRIES = 40;
private static int TEST_SLEEP = 6;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, set the sleep to 40 and dont retry.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I believe this is used for waiting for the recording to finish, so we want to sleep less and retry to poll manteca

Co-authored-by: Cameron Koegel <53310569+ckoegel@users.noreply.github.com>
@brianluisgomez brianluisgomez merged commit 3f2d138 into main Nov 1, 2023
@brianluisgomez brianluisgomez deleted the SWI-3665 branch November 1, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants