File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/opentok/util
test/java/com/opentok/test Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ public String stopArchive(String archiveId) throws RequestException {
217
217
String responseString = null ;
218
218
Future <Response > request = null ;
219
219
// TODO: maybe use a StringBuilder?
220
- String url = this .apiUrl + "/v2/partner/" + this .apiKey + "/archive/stop" ;
220
+ String url = this .apiUrl + "/v2/partner/" + this .apiKey + "/archive/" + archiveId + "/ stop" ;
221
221
222
222
try {
223
223
request = this .preparePost (url ).execute ();
Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ public void testStartArchive() throws OpenTokException {
508
508
public void testStopArchive () throws OpenTokException {
509
509
String archiveId = "ARCHIVEID" ;
510
510
511
- stubFor (post (urlEqualTo ("/v2/partner/" +this .apiKey +"/archive/stop" ))
511
+ stubFor (post (urlEqualTo ("/v2/partner/" +this .apiKey +"/archive/" + archiveId + "/ stop" ))
512
512
.willReturn (aResponse ()
513
513
.withStatus (200 )
514
514
.withHeader ("Content-Type" , "application/json" )
@@ -530,7 +530,7 @@ public void testStopArchive() throws OpenTokException {
530
530
assertEquals ("SESSIONID" , archive .getSessionId ());
531
531
assertEquals (archiveId , archive .getId ());
532
532
533
- verify (postRequestedFor (urlMatching ("/v2/partner/" +this .apiKey +"/archive/stop" ))
533
+ verify (postRequestedFor (urlMatching ("/v2/partner/" +this .apiKey +"/archive/" + archiveId + "/ stop" ))
534
534
.withHeader ("X-TB-PARTNER-AUTH" , matching (this .apiKey +":" +this .apiSecret ))
535
535
.withHeader ("User-Agent" , matching (".*Opentok-Java-SDK/" + Version .VERSION +".*" )));
536
536
}
You can’t perform that action at this time.
0 commit comments