Generated by TestNG with ReportNG at 22:33 PDT on Wednesday 31 August 2022
root@7c41cec37518 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 32.173s

Failed Configuration
tigase.tests.pubsub.TestRestApiUsingJSON
tearDownClass 30.012s Method arguments: org.testng.TestRunner@769b0752
2022-08-31 22:47:15 | [Mutex] waiting for: [deleted:node:Node 71383b4c-ee84-4ba6-9cc9-297e8cc5b853]

2022-08-31 22:47:45 | [Mutex] timeout. Not received [deleted:node:Node 71383b4c-ee84-4ba6-9cc9-297e8cc5b853]

2022-08-31 22:47:45 | [Mutex] isItemNotified: deleted:node:Node 71383b4c-ee84-4ba6-9cc9-297e8cc5b853 :: false

java.lang.AssertionError: Removal of node Node 71383b4c-ee84-4ba6-9cc9-297e8cc5b853 on localhost failed
org.testng.AssertJUnit.fail(AssertJUnit.java:65)
org.testng.AssertJUnit.assertTrue(AssertJUnit.java:23)
tigase.tests.utils.PubSubManager.deleteNode(PubSubManager.java:88)
tigase.tests.utils.PubSubManager.deleteNode(PubSubManager.java:64)
tigase.tests.utils.PubSubManager.lambda$scopeFinished$2(PubSubManager.java:125)
java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
java.base/java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:425)
tigase.tests.utils.PubSubManager.scopeFinished(PubSubManager.java:123)
tigase.tests.utils.AbstractManager.scopeFinished(AbstractManager.java:32)
tigase.tests.AbstractTest.tearDownClass(AbstractTest.java:804)
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:568)
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)
org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:65)
org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:381)
org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:319)
org.testng.internal.invokers.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:220)
org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:130)
java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
org.testng.TestRunner.privateRun(TestRunner.java:808)
org.testng.TestRunner.run(TestRunner.java:603)
org.testng.SuiteRunner.runTest(SuiteRunner.java:429)
org.testng.SuiteRunner.runSequentially(SuiteRunner.java:423)
org.testng.SuiteRunner.privateRun(SuiteRunner.java:383)
org.testng.SuiteRunner.run(SuiteRunner.java:326)
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
org.testng.TestNG.runSuitesSequentially(TestNG.java:1249)
org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
org.testng.TestNG.runSuites(TestNG.java:1092)
org.testng.TestNG.run(TestNG.java:1060)
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
createSubnodes 0.030s
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

2022-08-31 22:47:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-318599e8-225d-4759-9520-344ddc5e5f25",
    "pubsub#title": "Node 318599e8-225d-4759-9520-344ddc5e5f25"
}

2022-08-31 22:47:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Script execution error.",
    "Error message": "javax.script.ScriptException: tigase.component.exceptions.RepositoryException: Retrieving node id error",
    "Debug info": [
        "\njavax.script.ScriptException: javax.script.ScriptException: tigase.component.exceptions.RepositoryException: Retrieving node id error\n\tat org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:158)\n\tat tigase.server.script.Script.runCommand(Script.java:124)\n\tat tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:903)\n\tat tigase.pubsub.PubSubComponent.processScriptCommand(PubSubComponent.java:199)\n\tat tigase.component.ComponenScriptCommandProcessor.processScriptCommand(ComponenScriptCommandProcessor.java:45)\n\tat tigase.component.modules.impl.AdHocCommandModule.processScriptAdHoc(AdHocCommandModule.java:143)\n\tat tigase.component.modules.impl.AdHocCommandModule.process(AdHocCommandModule.java:132)\n\tat tigase.component.modules.StanzaProcessor.execute(StanzaProcessor.java:219)\n\tat tigase.component.modules.StanzaProcessor.process(StanzaProcessor.java:206)\n\tat tigase.component.modules.StanzaProcessor.processPacket(StanzaProcessor.java:103)\n\tat tigase.component.AbstractKernelBasedComponent.processPacket(AbstractKernelBasedComponent.java:81)\n\tat tigase.pubsub.PubSubComponent.processPacket(PubSubComponent.java:191)\n\tat tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1398)\nCaused by: javax.script.ScriptException: tigase.component.exceptions.RepositoryException: Retrieving node id error\n\tat org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320)\n\tat org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155)\n\t... 12 more\nCaused by: tigase.component.exceptions.RepositoryException: Retrieving node id error\n\tat tigase.pubsub.repository.PubSubDAOJDBC.getNodeId(PubSubDAOJDBC.java:671)\n\tat tigase.pubsub.repository.PubSubDAOJDBC.createNode(PubSubDAOJDBC.java:135)\n\tat tigase.pubsub.repository.PubSubDAOJDBC.createNode(PubSubDAOJDBC.java:48)\n\tat jdk.internal.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat tigase.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:75)\n\tat jdk.proxy2/jdk.proxy2.$Proxy39.createNode(Unknown Source)\n\tat tigase.pubsub.repository.PubSubDAOPool.createNode(PubSubDAOPool.java:80)\n\tat tigase.pubsub.repository.cached.CachedPubSubRepository.createNode(CachedPubSubRepository.java:140)\n\tat tigase.admin.Script14.process(Script14.groovy:131)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)\n\tat groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)\n\tat groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)\n\tat groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:226)\n\tat org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:61)\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)\n\tat org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:83)\n\tat tigase.admin.Script14.run(Script14.groovy:195)\n\tat org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:317)\n\t... 13 more\nCaused by: com.microsoft.sqlserver.jdbc.SQLServerException: The server failed to resume the transaction. Desc:3c00000005.\n\tat com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:265)\n\tat com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1676)\n\tat com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:615)\n\tat com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:537)\n\tat com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7730)\n\tat com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:3786)\n\tat com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:268)\n\tat com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:242)\n\tat com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:456)\n\tat jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat tigase.db.jdbc.PreparedStatementInvocationHandler.invoke(PreparedStatementInvocationHandler.java:38)\n\tat jdk.proxy2/jdk.proxy2.$Proxy35.executeQuery(Unknown Source)\n\tat tigase.pubsub.repository.PubSubDAOJDBC.getNodeId(PubSubDAOJDBC.java:655)\n\t... 36 more\n"
    ]
}

java.lang.AssertionError: expected:<Operation successful> but was:<Script execution error.>
org.testng.AssertJUnit.fail(AssertJUnit.java:65)
org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:467)
org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88)
org.testng.AssertJUnit.assertEquals(AssertJUnit.java:98)
tigase.tests.pubsub.TestRestApiUsingJSON.assertValueEquals(TestRestApiUsingJSON.java:66)
tigase.tests.pubsub.TestRestApiUsingJSON.createNode(TestRestApiUsingJSON.java:90)
tigase.tests.pubsub.TestPubSubAbstract.createSubnodes(TestPubSubAbstract.java:83)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:568)
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)
org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:673)
org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:220)
org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50)
org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:945)
org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:193)
org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128)
java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
org.testng.TestRunner.privateRun(TestRunner.java:808)
org.testng.TestRunner.run(TestRunner.java:603)
org.testng.SuiteRunner.runTest(SuiteRunner.java:429)
org.testng.SuiteRunner.runSequentially(SuiteRunner.java:423)
org.testng.SuiteRunner.privateRun(SuiteRunner.java:383)
org.testng.SuiteRunner.run(SuiteRunner.java:326)
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
org.testng.TestNG.runSuitesSequentially(TestNG.java:1249)
org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
org.testng.TestNG.runSuites(TestNG.java:1092)
org.testng.TestNG.run(TestNG.java:1060)
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
configureNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.createSubnodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

deleteNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.deleteSubnodes
deleteSubnodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.unsubscribeNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

publishItemsToNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.subscribeNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

retractItemsFromNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.retrieveItemsFromNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

retrieveItemsFromNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.publishItemsToNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

retrieveUserSubscriptions 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.publishItemsToNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

retrieveUserSubscriptionsWithRegex 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.publishItemsToNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

subscribeNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.configureNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

unsubscribeNodes 0.000s Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.retractItemsFromNodes
2022-08-31 22:47:15 |

2022-08-31 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:15 | ------------------------------------

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
createNodes 1.527s
2022-08-31 22:47:14 |

2022-08-31 22:47:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-31 22:47:14 | ------------------------------------

2022-08-31 22:47:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-71383b4c-ee84-4ba6-9cc9-297e8cc5b853",
    "pubsub#title": "Node 71383b4c-ee84-4ba6-9cc9-297e8cc5b853"
}

2022-08-31 22:47:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-31 22:47:15 | [Mutex] waiting for: [received:nodes:4249fa6f-3030-48d1-bccf-9b9bc122950f:localhost]

2022-08-31 22:47:15 | [Mutex] received everything.

2022-08-31 22:47:15 | [Mutex] isItemNotified: received:node:4249fa6f-3030-48d1-bccf-9b9bc122950f:localhost:node-71383b4c-ee84-4ba6-9cc9-297e8cc5b853:Node 71383b4c-ee84-4ba6-9cc9-297e8cc5b853 :: true