Skip to content
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

[Integration test] Update integration test server and add attendee presence timeout to audio, video test only #1196

Merged
merged 3 commits into from
Apr 14, 2021

Conversation

devalevenkatesh
Copy link
Contributor

@devalevenkatesh devalevenkatesh commented Apr 13, 2021

Issue #:

  • Currently, some canary runs are failing with the error:
Unable to create meeting, server error: Error: Request failed with status code 403
  • This is due to the incorrect handling of baseURL in the integration server.

The current demo URL is (incorrect URL hence error from server):

<server>/?attendee-presence-timeout-ms=5000join?title=<title>&name=<name>&region=<region>

After this fix it will be:

<server>/join?attendee-presence-timeout-ms=5000&title=<title>&name=<name>&region=<region>

Description of changes:

  • This fix handles the query params if any and accordingly generates the create meeting URL.
  • Adds attendee presence timeout to the demo url when running Audio and Video test only. The canary demo link is now changed back to just the URL with no query params.
  • The integration/js/server.js change can be reverted because we reverted the query parameter on the gamma demo URL, but it will catch such cases where we add any other query parameter to demo URLs and run test against it.

Testing

  1. Have you successfully run npm run build:release locally? Yes.
  2. How did you test these changes?
  • By running the integration tests on the local selenium grid.
  1. Can these changes be tested using the demo application? If yes, which demo application can be used to test it? NA. This is integration test change only.
  2. Do you add, modify, or delete public API definitions? If yes, has that been reviewed and approved? NA.
  3. Do you change the wire protocol, e.g. the request method? If yes, has that been reviewed and approved? NA.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Currently, some canary runs are failing with the error:
Unable to create meeting, server error: Error: Request failed with status code 403

This is due to the incorrect handling of baseURL in the integration server.
This fix handles the query params if any and accordingly generates the create meeting URL.

This also changes wait time in the AppWaitTestStep to be 1000ms from 100ms.
@devalevenkatesh devalevenkatesh changed the title [Integration test] Fix integration server to handle query params while creating meeting [Integration test] Update integration test server and add attendee presence timeout to audio, video test only Apr 13, 2021
@@ -20,6 +20,10 @@ class SdkBaseTest extends KiteBaseTest {
this.userArn = this.payload.userArn;
}

if (['Video', 'Audio'].includes(testName)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just double checking - this is not backwards? Will 'testname' be Video or Audio?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just checked - our Audio and Video E2E test use the name "Audio" and "Video". Thanks

@devalevenkatesh devalevenkatesh merged commit c887dca into master Apr 14, 2021
@devalevenkatesh devalevenkatesh deleted the fix-integ-server branch April 14, 2021 18:13
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.

None yet

2 participants