Generated by TestNG with ReportNG at 08:11 PST on Friday 30 December 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Item publication on PubSub node with message expiration using REST API - #2959

Suites · Log Output

Test duration : 59.615s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.582s
2022-12-30 08:25:54 |

2022-12-30 08:25:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-30 08:25:54 | ------------------------------------

2022-12-30 08:25:54 | [Mutex] isItemNotified: node_oz57820204:exists :: false

2022-12-30 08:25:54 | [Mutex] waiting for: [node_oz57820204:create_node]

2022-12-30 08:25:54 | [Mutex] received everything.

2022-12-30 08:25:54 | [Mutex] isItemNotified: node_oz57820204:create_node:success :: true

2022-12-30 08:25:54 | [Mutex] waiting for: [node_oz57820204:subscribe_node]

2022-12-30 08:25:54 | [Mutex] waiting for: [node_oz57820204:subscribe_node]

2022-12-30 08:25:54 | [Mutex] received everything.

2022-12-30 08:25:54 | [Mutex] isItemNotified: node_oz57820204:subscribe_node:success :: true

2022-12-30 08:25:54 |


===== publishing normal message (to online)


2022-12-30 08:25:54 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-30 08:25:54 | command: <data><node>node_oz57820204</node><entry><content>content_hmz1le0205</content></entry></data>

2022-12-30 08:25:54 | target: http://localhost:8088

2022-12-30 08:25:54 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-30 08:25:54 | entity: <data><node>node_oz57820204</node><entry><content>content_hmz1le0205</content></entry></data>

2022-12-30 08:25:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 30 Dec 2022 16:25:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-30 08:25:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>16b045d2-1cbf-4b87-86c2-128f3583ead8</value></item-id></result>

2022-12-30 08:25:54 | contains: true

2022-12-30 08:25:54 | [Mutex] waiting for: [user_regularh6uhcw0203@test-domain.com:message:received:content_hmz1le0205]

2022-12-30 08:25:54 | [Mutex] received everything.

2022-12-30 08:25:54 | [Mutex] isItemNotified: user_regularh6uhcw0203@test-domain.com:message:received:content_hmz1le0205 :: true

2022-12-30 08:25:54 |


===== publishing already old message - expecting message being filtered out (to online)


2022-12-30 08:25:54 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-30 08:25:54 | command: <data><node>node_oz57820204</node><expire-at>2022-12-30T16:25:49Z</expire-at><entry><content>content_427ltz0206</content></entry></data>

2022-12-30 08:25:54 | target: http://localhost:8088

2022-12-30 08:25:54 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-30 08:25:54 | entity: <data><node>node_oz57820204</node><expire-at>2022-12-30T16:25:49Z</expire-at><entry><content>content_427ltz0206</content></entry></data>

2022-12-30 08:25:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 30 Dec 2022 16:25:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-30 08:25:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e76bdf04-e374-48b1-b52f-91680eefdde7</value></item-id></result>

2022-12-30 08:25:54 | contains: true

2022-12-30 08:25:54 | [Mutex] waiting for: [user_regularh6uhcw0203@test-domain.com:message:received:content_427ltz0206]

2022-12-30 08:26:09 | [Mutex] timeout. Not received [user_regularh6uhcw0203@test-domain.com:message:received:content_427ltz0206]

2022-12-30 08:26:09 | [Mutex] isItemNotified: user_regularh6uhcw0203@test-domain.com:message:received:content_427ltz0206 :: false

2022-12-30 08:26:09 |


===== publishing normal message (to offline)


2022-12-30 08:26:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-30 08:26:09 | command: <data><node>node_oz57820204</node><entry><content>content_ubz9af0207</content></entry></data>

2022-12-30 08:26:09 | target: http://localhost:8088

2022-12-30 08:26:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-30 08:26:09 | entity: <data><node>node_oz57820204</node><entry><content>content_ubz9af0207</content></entry></data>

2022-12-30 08:26:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 30 Dec 2022 16:26:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-30 08:26:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7427d083-4db8-4c22-9556-f0b4ec8f0306</value></item-id></result>

2022-12-30 08:26:09 | contains: true

2022-12-30 08:26:14 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-30 08:26:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-12-30 08:26:14 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-30 08:26:14 | [Mutex] waiting for: [user_regularh6uhcw0203@test-domain.com:message:received:content_ubz9af0207]

2022-12-30 08:26:14 | [Mutex] received everything.

2022-12-30 08:26:14 | [Mutex] isItemNotified: user_regularh6uhcw0203@test-domain.com:message:received:content_ubz9af0207 :: true

2022-12-30 08:26:14 |


===== publishing already old message - expecting message being filtered out (to offline)


2022-12-30 08:26:14 | [Mutex] received everything.

2022-12-30 08:26:14 | [Mutex] isItemNotified: node_oz57820204:subscribe_node:success :: true

2022-12-30 08:26:14 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-30 08:26:14 | command: <data><node>node_oz57820204</node><expire-at>2022-12-30T16:26:19Z</expire-at><entry><content>content_1bvh5n0208</content></entry></data>

2022-12-30 08:26:14 | target: http://localhost:8088

2022-12-30 08:26:14 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-30 08:26:14 | entity: <data><node>node_oz57820204</node><expire-at>2022-12-30T16:26:19Z</expire-at><entry><content>content_1bvh5n0208</content></entry></data>

2022-12-30 08:26:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 30 Dec 2022 16:26:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-30 08:26:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7dc2f4c4-c540-46af-a077-e8a48de8c26d</value></item-id></result>

2022-12-30 08:26:14 | contains: true

2022-12-30 08:26:22 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-30 08:26:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-12-30 08:26:22 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-30 08:26:22 | [Mutex] waiting for: [user_regularh6uhcw0203@test-domain.com:message:received:content_1bvh5n0208]

2022-12-30 08:26:22 | [Mutex] waiting for: [user_regularh6uhcw0203@test-domain.com:message:received:content_1bvh5n0208]

2022-12-30 08:26:37 | [Mutex] timeout. Not received [user_regularh6uhcw0203@test-domain.com:message:received:content_1bvh5n0208]

2022-12-30 08:26:37 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_1bvh5n0208]

2022-12-30 08:26:52 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_1bvh5n0208]

2022-12-30 08:26:52 | [Mutex] isItemNotified: user_regularh6uhcw0203@test-domain.com:message:received:content_1bvh5n0208 :: false

2022-12-30 08:26:52 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_1bvh5n0208 :: false

java.lang.AssertionError: User: admin@test-domain.com should have received message: 1bvh5n0208 expected [true] but found [false]
org.testng.Assert.fail(Assert.java:110)
org.testng.Assert.failNotEquals(Assert.java:1413)
org.testng.Assert.assertTrue(Assert.java:56)
tigase.tests.pubsub.TestRestApiWithMessageExpiration.testMessageExpiration(TestRestApiWithMessageExpiration.java:180)
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)