mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: REST API test fix
parent
bacb37721e
commit
751b30c68a
|
@ -2479,6 +2479,8 @@ public class OpenViduTestAppE2eTest {
|
||||||
|
|
||||||
user.getEventManager().waitUntilEventReaches("recordingStarted", 2);
|
user.getEventManager().waitUntilEventReaches("recordingStarted", 2);
|
||||||
|
|
||||||
|
Thread.sleep(1000);
|
||||||
|
|
||||||
// 409 (already recording)
|
// 409 (already recording)
|
||||||
restClient.rest(HttpMethod.POST, "/api/recordings/start", body, HttpStatus.SC_CONFLICT);
|
restClient.rest(HttpMethod.POST, "/api/recordings/start", body, HttpStatus.SC_CONFLICT);
|
||||||
|
|
||||||
|
@ -2495,7 +2497,7 @@ public class OpenViduTestAppE2eTest {
|
||||||
"{'id':'STR','sessionId':'STR','name':'STR','outputMode':'STR','recordingLayout':'STR','hasAudio':false,'hasVideo':false,'resolution':'STR','createdAt':0,'size':0,'duration':0,'url':null,'status':'STR'}");
|
"{'id':'STR','sessionId':'STR','name':'STR','outputMode':'STR','recordingLayout':'STR','hasAudio':false,'hasVideo':false,'resolution':'STR','createdAt':0,'size':0,'duration':0,'url':null,'status':'STR'}");
|
||||||
/** GET /api/recordings (after recording created) **/
|
/** GET /api/recordings (after recording created) **/
|
||||||
restClient.rest(HttpMethod.GET, "/api/recordings/CUSTOM_SESSION_ID", null, HttpStatus.SC_OK, true,
|
restClient.rest(HttpMethod.GET, "/api/recordings/CUSTOM_SESSION_ID", null, HttpStatus.SC_OK, true,
|
||||||
"{'id':'STR','sessionId':'STR','name':'STR','outputMode':'STR','hasAudio':false,'hasVideo':false,'createdAt':0,'size':0,'duration':0,'url':null,'status':'STR'}");
|
"{'id':'STR','sessionId':'STR','name':'STR','outputMode':'STR','recordingLayout':'STR','hasAudio':false,'hasVideo':false,'resolution':'STR','createdAt':0,'size':0,'duration':0,'url':null,'status':'STR'}");
|
||||||
returnValues = new HashMap<>();
|
returnValues = new HashMap<>();
|
||||||
returnValues.put("count", new Integer(1));
|
returnValues.put("count", new Integer(1));
|
||||||
returnValues.put("items", new org.json.JSONArray());
|
returnValues.put("items", new org.json.JSONArray());
|
||||||
|
|
Loading…
Reference in New Issue