Test duration: 36.000s
Failed Configuration | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
tearDownClass | 30.005s |
Method arguments: org.testng.TestRunner@11180750
2020-07-30 00:59:33 | [Mutex] waiting for: [deleted:node:Node 72643c01-710a-4065-8838-94ccdaf91733]
java.lang.AssertionError: Removal of node Node 72643c01-710a-4065-8838-94ccdaf91733 on localhost failed2020-07-30 01:00:03 | [Mutex] timeout. Not received [deleted:node:Node 72643c01-710a-4065-8838-94ccdaf91733] 2020-07-30 01:00:03 | [Mutex] isItemNotified: deleted:node:Node 72643c01-710a-4065-8838-94ccdaf91733 :: false
org.testng.AssertJUnit.fail(AssertJUnit.java:59)
org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24) tigase.tests.utils.PubSubManager.deleteNode(PubSubManager.java:91) tigase.tests.utils.PubSubManager.deleteNode(PubSubManager.java:67) tigase.tests.utils.PubSubManager.lambda$scopeFinished$2(PubSubManager.java:128) java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:804) java.base/java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:425) tigase.tests.utils.PubSubManager.scopeFinished(PubSubManager.java:126) tigase.tests.utils.AbstractManager.scopeFinished(AbstractManager.java:36) tigase.tests.AbstractTest.tearDownClass(AbstractTest.java:806) jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:566) org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458) org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142) org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:214) org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) org.testng.TestRunner.privateRun(TestRunner.java:648) org.testng.TestRunner.run(TestRunner.java:505) org.testng.SuiteRunner.runTest(SuiteRunner.java:455) org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) org.testng.SuiteRunner.run(SuiteRunner.java:364) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) org.testng.TestNG.runSuitesLocally(TestNG.java:1137) org.testng.TestNG.runSuites(TestNG.java:1049) org.testng.TestNG.run(TestNG.java:1017) org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283) org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) |
Failed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
retrieveItemsFromNodes | 0.069s |
2020-07-30 00:59:33 |
java.lang.AssertionError: 2020-07-30 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:33 | ------------------------------------ 2020-07-30 00:59:33 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-72643c01-710a-4065-8838-94ccdaf91733", "item-id": "item-64bc5437-5348-4698-a61d-cb6fec48351f" } 2020-07-30 00:59:33 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-72643c01-710a-4065-8838-94ccdaf91733", "item-id": "item-64bc5437-5348-4698-a61d-cb6fec48351f", "item": [ "tigase.pubsub.repository.IItems$Item@157e3c0b" ] }
org.testng.AssertJUnit.fail(AssertJUnit.java:59)
org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24) org.testng.AssertJUnit.assertNotNull(AssertJUnit.java:267) org.testng.AssertJUnit.assertNotNull(AssertJUnit.java:259) tigase.tests.pubsub.TestRestApiUsingJSON.retrieveItemFromNode(TestRestApiUsingJSON.java:198) tigase.tests.pubsub.TestPubSubAbstract.lambda$retrieveItemsFromNodes$5(TestPubSubAbstract.java:202) java.base/java.util.HashMap$Values.forEach(HashMap.java:976) tigase.tests.pubsub.TestPubSubAbstract.retrieveItemsFromNodes(TestPubSubAbstract.java:198) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:566) org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) org.testng.internal.Invoker.invokeMethod(Invoker.java:583) org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) org.testng.TestRunner.privateRun(TestRunner.java:648) org.testng.TestRunner.run(TestRunner.java:505) org.testng.SuiteRunner.runTest(SuiteRunner.java:455) org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) org.testng.SuiteRunner.run(SuiteRunner.java:364) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) org.testng.TestNG.runSuitesLocally(TestNG.java:1137) org.testng.TestNG.runSuites(TestNG.java:1049) org.testng.TestNG.run(TestNG.java:1017) org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283) org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) |
Skipped Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
deleteNodes | 0.000s | Depends on method(s): tigase.tests.pubsub.TestPubSubAbstract.deleteSubnodes |
deleteSubnodes | 0.000s | Depends on method(s): tigase.tests.pubsub.TestPubSubAbstract.unsubscribeNodes |
retractItemsFromNodes | 0.000s | Depends on method(s): tigase.tests.pubsub.TestPubSubAbstract.retrieveItemsFromNodes |
unsubscribeNodes | 0.000s | Depends on method(s): tigase.tests.pubsub.TestPubSubAbstract.retractItemsFromNodes |
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2020-07-30 00:59:31 |
2020-07-30 00:59:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:31 | ------------------------------------ 2020-07-30 00:59:31 | [Mutex] waiting for: [configured:node:node-72643c01-710a-4065-8838-94ccdaf91733:node-769bb00c-fcbb-4a90-9664-049db9802701] 2020-07-30 00:59:31 | [Mutex] received everything. 2020-07-30 00:59:31 | [Mutex] isItemNotified: configured:node:node-72643c01-710a-4065-8838-94ccdaf91733:node-769bb00c-fcbb-4a90-9664-049db9802701 :: true 2020-07-30 00:59:32 | [Mutex] waiting for: [received:nodes:db7205a2-161e-478c-a14b-78bf219ea7a1:localhost] 2020-07-30 00:59:32 | [Mutex] received everything. 2020-07-30 00:59:32 | [Mutex] isItemNotified: received:node:db7205a2-161e-478c-a14b-78bf219ea7a1:localhost:node-72643c01-710a-4065-8838-94ccdaf91733:Node 72643c01-710a-4065-8838-94ccdaf91733 :: true 2020-07-30 00:59:32 | [Mutex] waiting for: [received:nodes:700be482-8f98-4a14-b17e-196596b90b70:localhost] 2020-07-30 00:59:32 | [Mutex] received everything. 2020-07-30 00:59:32 | [Mutex] isItemNotified: received:node:700be482-8f98-4a14-b17e-196596b90b70:localhost:node-72643c01-710a-4065-8838-94ccdaf91733:Node 72643c01-710a-4065-8838-94ccdaf91733 :: false |
createNodes | 1.730s |
2020-07-30 00:59:28 |
2020-07-30 00:59:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:28 | ------------------------------------ 2020-07-30 00:59:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-72643c01-710a-4065-8838-94ccdaf91733", "pubsub#title": "Node 72643c01-710a-4065-8838-94ccdaf91733" } 2020-07-30 00:59:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-07-30 00:59:30 | [Mutex] waiting for: [received:nodes:f6fe0f26-b080-4ecf-af20-fe38f8033504:localhost] 2020-07-30 00:59:30 | [Mutex] received everything. 2020-07-30 00:59:30 | [Mutex] isItemNotified: received:node:f6fe0f26-b080-4ecf-af20-fe38f8033504:localhost:node-72643c01-710a-4065-8838-94ccdaf91733:Node 72643c01-710a-4065-8838-94ccdaf91733 :: true |
createSubnodes | 1.043s |
2020-07-30 00:59:30 |
2020-07-30 00:59:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:30 | ------------------------------------ 2020-07-30 00:59:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-769bb00c-fcbb-4a90-9664-049db9802701", "pubsub#title": "Node 769bb00c-fcbb-4a90-9664-049db9802701" } 2020-07-30 00:59:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-07-30 00:59:31 | [Mutex] waiting for: [received:nodes:ef85a020-b3e4-46b6-9ccd-8c97f2996af3:localhost] 2020-07-30 00:59:31 | [Mutex] received everything. 2020-07-30 00:59:31 | [Mutex] isItemNotified: received:node:ef85a020-b3e4-46b6-9ccd-8c97f2996af3:localhost:node-769bb00c-fcbb-4a90-9664-049db9802701:Node 769bb00c-fcbb-4a90-9664-049db9802701 :: true |
publishItemsToNodes | 0.070s |
2020-07-30 00:59:33 |
2020-07-30 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:33 | ------------------------------------ 2020-07-30 00:59:33 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-72643c01-710a-4065-8838-94ccdaf91733", "entry": "<test>item-64bc5437-5348-4698-a61d-cb6fec48351f</test>", "item-id": "item-64bc5437-5348-4698-a61d-cb6fec48351f" } 2020-07-30 00:59:33 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-64bc5437-5348-4698-a61d-cb6fec48351f" } 2020-07-30 00:59:33 | [Mutex] waiting for: [published:item:notifieditem-64bc5437-5348-4698-a61d-cb6fec48351f:admin@test-domain.com] 2020-07-30 00:59:33 | [Mutex] received everything. 2020-07-30 00:59:33 | [Mutex] isItemNotified: published:item:notifieditem-64bc5437-5348-4698-a61d-cb6fec48351f:admin@test-domain.com :: true |
retrieveUserSubscriptions | 0.051s |
2020-07-30 00:59:33 |
2020-07-30 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:33 | ------------------------------------ 2020-07-30 00:59:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-07-30 00:59:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3906c8ba-f537-46b8-97de-7f7e0171c347", "node-72643c01-710a-4065-8838-94ccdaf91733", "node-769bb00c-fcbb-4a90-9664-049db9802701", "node-00151ff9-5cd0-4ce9-8c13-ec1da00b00f0" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-07-30 00:59:33 |
2020-07-30 00:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:33 | ------------------------------------ 2020-07-30 00:59:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-72643c01-710a-4065-8838-94ccdaf91733)" } 2020-07-30 00:59:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-07-30 00:59:32 |
2020-07-30 00:59:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-07-30 00:59:32 | ------------------------------------ 2020-07-30 00:59:32 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-72643c01-710a-4065-8838-94ccdaf91733", "jids": [ "admin@test-domain.com" ] } 2020-07-30 00:59:32 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |