openvidu-test-e2e: REST API test fix

pull/255/head
pabloFuente 2019-02-21 09:53:53 +01:00
parent bacb37721e
commit 751b30c68a
1 changed files with 5 additions and 3 deletions

View File

@ -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());