Skip to content

Commit 44c03a6

Browse files
author
Maria Farooq
committed
added new unstable test as per inconsistency of their results
1 parent cd68821 commit 44c03a6

11 files changed

Lines changed: 21 additions & 6 deletions

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/AccountsEndpointTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ public void testCreateAccountTwiceFails() {
367367
* @throws Exception
368368
*/
369369
@Test
370+
@Category(UnstableTests.class)
370371
public void testCreateAccountCheckClientExisted() throws Exception {
371372
try {
372373
String thinhContact = "sip:lyhungthinh@127.0.0.1:5090";
@@ -412,6 +413,7 @@ public void testCreateAccountFourthLevelFails() {
412413
}
413414

414415
@Test
416+
@Category(UnstableTests.class)
415417
public void testUpdateAccountCheckClient() throws Exception {
416418
try {
417419
String thinhContact = "sip:lyhungthinh2@127.0.0.1:5090";
@@ -453,6 +455,7 @@ public void testUpdateAccountCheckClient() throws Exception {
453455
}
454456

455457
@Test
458+
@Category(UnstableTests.class)
456459
public void testCloseAccountCheckClient() throws Exception {
457460
try {
458461
String thinhContact = "sip:lyhungthinh3@127.0.0.1:5090";

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/CreateCallsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void createCallSipUriTest() throws InterruptedException {
208208
}
209209

210210
@Test
211-
@Category({FeatureAltTests.class})
211+
@Category({FeatureAltTests.class, UnstableTests.class})
212212
// Create a call to a SIP URI. Non-regression test for issue https://github.com/Mobicents/RestComm/issues/150
213213
// Use Calls Rest API to dial Bob (SIP URI sip:bob@127.0.0.1:5090) and connect him to the RCML app dial-number-entry.xml.
214214
// This RCML will dial +131313 which George's phone is listening (use the dial-number-entry.xml as a side effect to verify

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/CreateCallsWithStatusCallbackTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.junit.runner.RunWith;
2525
import org.restcomm.connect.commons.Version;
2626
import org.restcomm.connect.commons.annotations.FeatureAltTests;
27+
import org.restcomm.connect.commons.annotations.UnstableTests;
2728
import org.restcomm.connect.testsuite.tools.MonitoringServiceTool;
2829

2930
import javax.sip.message.Response;
@@ -229,6 +230,7 @@ public void createCallNumberWithStatusCallback() throws InterruptedException {
229230

230231
private String dialNumberWithStatusCallback = "<Response><Dial><Number statusCallback=\"http://127.0.0.1:8090/statusOfDialNumber\" statusCallbackMethod=\"GET\">+131313</Number></Dial></Response>";
231232
@Test
233+
@Category(UnstableTests.class)
232234
public void createCallNumberWithStatusCallbackInBothTheRequestAndRCML() throws InterruptedException {
233235

234236
stubFor(post(urlPathEqualTo("/1111"))

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/LiveCallModificationAnswerDelayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @author <a href="mailto:gvagenas@gmail.com">gvagenas</a>
4848
*/
4949
@RunWith(Arquillian.class)
50-
@Category(FeatureAltTests.class)
50+
@Category({FeatureAltTests.class, UnstableTests.class})
5151
public class LiveCallModificationAnswerDelayTest {
5252

5353
private final static Logger logger = Logger.getLogger(CreateCallsTest.class.getName());

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/http/OrganizationsEndpointTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.junit.runner.RunWith;
1919
import org.restcomm.connect.commons.Version;
2020
import org.restcomm.connect.commons.annotations.FeatureExpTests;
21+
import org.restcomm.connect.commons.annotations.UnstableTests;
2122

2223
import com.google.gson.JsonArray;
2324
import com.google.gson.JsonObject;
@@ -62,6 +63,7 @@ public static void beforeClass() {
6263
* this test will try to Read single organization and read list
6364
*/
6465
@Test
66+
@Category(UnstableTests.class)
6567
public void getOrganizationFromSuperAdminAccount(){
6668
JsonObject organizationJsonObject = RestcommOrganizationsTool.getInstance().getOrganization(deploymentUrl.toString(), superAdminAccountSid, superAdminAuthToken, org1);
6769
assertTrue(organizationJsonObject!=null);

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/CallLifecycleAnswerDelayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public void testDialNumberPstn() throws ParseException, InterruptedException, Ma
458458
}
459459

460460
@Test
461-
@Category(FeatureExpTests.class)
461+
@Category({FeatureExpTests.class, UnstableTests.class})
462462
public void testDialNumberPstnRegisteredClientTimesOutCallDisconnects() throws ParseException, InterruptedException, MalformedURLException {
463463

464464
stubFor(get(urlPathEqualTo("/1111"))

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/CallLifecycleTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static void afterClass() {
245245
}
246246

247247
@Test
248-
@Category(FeatureExpTests.class)
248+
@Category({FeatureExpTests.class, UnstableTests.class})
249249
public void testDialCancelBeforeDialingClientAliceAfterTrying() throws ParseException, InterruptedException, MalformedURLException {
250250

251251
stubFor(get(urlPathEqualTo("/1111"))
@@ -305,7 +305,7 @@ public void testDialCancelBeforeDialingClientAliceAfterTrying() throws ParseExce
305305
}
306306

307307
@Test
308-
@Category(FeatureExpTests.class)
308+
@Category({FeatureExpTests.class, UnstableTests.class})
309309
public void testDialCancelBeforeDialingClientAliceAfterRinging() throws ParseException, InterruptedException, MalformedURLException {
310310

311311
stubFor(get(urlPathEqualTo("/1111"))

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/ClientsDialTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import org.restcomm.connect.commons.annotations.FeatureAltTests;
5050
import org.restcomm.connect.commons.annotations.FeatureExpTests;
5151
import org.restcomm.connect.commons.annotations.ParallelClassTests;
52+
import org.restcomm.connect.commons.annotations.UnstableTests;
5253
import org.restcomm.connect.testsuite.NetworkPortAssigner;
5354
import org.restcomm.connect.testsuite.WebArchiveUtil;
5455
import org.restcomm.connect.testsuite.http.CreateClientsTool;
@@ -408,6 +409,7 @@ public void testRegisterClients() throws ParseException, InterruptedException {
408409
}
409410

410411
@Test
412+
@Category(UnstableTests.class)
411413
public void testClientsCallEachOther() throws ParseException, InterruptedException {
412414

413415
assertNotNull(mariaRestcommClientSid);
@@ -965,6 +967,7 @@ public synchronized void testDialClientAlice() throws InterruptedException, Pars
965967
}
966968

967969
@Test
970+
@Category(UnstableTests.class)
968971
public synchronized void testDialClientAliceWithExtraParamsAtContactHeader() throws InterruptedException, ParseException {
969972
stubFor(get(urlPathEqualTo("/1111"))
970973
.willReturn(aResponse()

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/DialActionAnswerDelayTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ public void testDialActionInvalidCall() throws ParseException, InterruptedExcept
270270
}
271271

272272
@Test //No regression test for https://github.com/Mobicents/RestComm/issues/505
273+
@Category(UnstableTests.class)
273274
public void testDialActionInvalidCallCheckCallStatusCompleted() throws ParseException, InterruptedException {
274275

275276
stubFor(post(urlPathMatching("/DialAction.*"))

restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/DialActionTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import org.junit.runner.RunWith;
6565
import org.restcomm.connect.commons.Version;
6666
import org.restcomm.connect.commons.annotations.ParallelClassTests;
67+
import org.restcomm.connect.commons.annotations.UnstableTests;
6768
import org.restcomm.connect.commons.annotations.WithInMinsTests;
6869
import org.restcomm.connect.testsuite.NetworkPortAssigner;
6970
import org.restcomm.connect.testsuite.WebArchiveUtil;
@@ -215,6 +216,7 @@ public void after() throws Exception {
215216
}
216217

217218
@Test
219+
@Category(UnstableTests.class)
218220
public void testDialActionInvalidCall() throws ParseException, InterruptedException {
219221

220222
stubFor(post(urlPathMatching("/DialAction.*"))
@@ -281,6 +283,7 @@ public void testDialActionInvalidCall() throws ParseException, InterruptedExcept
281283
}
282284

283285
@Test //No regression test for https://github.com/Mobicents/RestComm/issues/505
286+
@Category(UnstableTests.class)
284287
public void testDialActionInvalidCallCheckCallStatusCompleted() throws ParseException, InterruptedException {
285288

286289
stubFor(post(urlPathMatching("/DialAction.*"))

0 commit comments

Comments
 (0)