Generated by TestNG with ReportNG at 21:15 PST on Sunday 18 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.709s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.523s
2022-12-18 21:30:44 |

2022-12-18 21:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-18 21:30:44 | ------------------------------------

2022-12-18 21:30:44 | [Mutex] isItemNotified: node_unfsbd0204:exists :: false

2022-12-18 21:30:44 | [Mutex] waiting for: [node_unfsbd0204:create_node]

2022-12-18 21:30:44 | [Mutex] waiting for: [node_unfsbd0204:create_node]

2022-12-18 21:30:44 | [Mutex] received everything.

2022-12-18 21:30:44 | [Mutex] isItemNotified: node_unfsbd0204:create_node:success :: true

2022-12-18 21:30:44 | [Mutex] waiting for: [node_unfsbd0204:subscribe_node]

2022-12-18 21:30:44 | [Mutex] waiting for: [node_unfsbd0204:subscribe_node]

2022-12-18 21:30:44 | [Mutex] received everything.

2022-12-18 21:30:44 | [Mutex] isItemNotified: node_unfsbd0204:subscribe_node:success :: true

2022-12-18 21:30:44 |


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


2022-12-18 21:30:44 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-18 21:30:44 | command: <data><node>node_unfsbd0204</node><entry><content>content_s1o5ih0205</content></entry></data>

2022-12-18 21:30:44 | target: http://localhost:8088

2022-12-18 21:30:44 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-18 21:30:44 | entity: <data><node>node_unfsbd0204</node><entry><content>content_s1o5ih0205</content></entry></data>

2022-12-18 21:30:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 19 Dec 2022 05:30:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-18 21:30:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>cf8a6ea2-058a-4433-b28d-4a2dbf0fa363</value></item-id></result>

2022-12-18 21:30:44 | contains: true

2022-12-18 21:30:44 | [Mutex] waiting for: [user_regularnklqj00203@test-domain.com:message:received:content_s1o5ih0205]

2022-12-18 21:30:44 | [Mutex] received everything.

2022-12-18 21:30:44 | [Mutex] isItemNotified: user_regularnklqj00203@test-domain.com:message:received:content_s1o5ih0205 :: true

2022-12-18 21:30:44 |


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


2022-12-18 21:30:44 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-18 21:30:44 | command: <data><node>node_unfsbd0204</node><expire-at>2022-12-19T05:30:39Z</expire-at><entry><content>content_ex16ri0206</content></entry></data>

2022-12-18 21:30:44 | target: http://localhost:8088

2022-12-18 21:30:44 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-18 21:30:44 | entity: <data><node>node_unfsbd0204</node><expire-at>2022-12-19T05:30:39Z</expire-at><entry><content>content_ex16ri0206</content></entry></data>

2022-12-18 21:30:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 19 Dec 2022 05:30:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-18 21:30:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f18645ce-ec69-4587-87d4-3bf2ab30ff6d</value></item-id></result>

2022-12-18 21:30:44 | contains: true

2022-12-18 21:30:44 | [Mutex] waiting for: [user_regularnklqj00203@test-domain.com:message:received:content_ex16ri0206]

2022-12-18 21:30:59 | [Mutex] timeout. Not received [user_regularnklqj00203@test-domain.com:message:received:content_ex16ri0206]

2022-12-18 21:30:59 | [Mutex] isItemNotified: user_regularnklqj00203@test-domain.com:message:received:content_ex16ri0206 :: false

2022-12-18 21:30:59 |


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


2022-12-18 21:30:59 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-18 21:30:59 | command: <data><node>node_unfsbd0204</node><entry><content>content_4sakwb0207</content></entry></data>

2022-12-18 21:30:59 | target: http://localhost:8088

2022-12-18 21:30:59 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-18 21:30:59 | entity: <data><node>node_unfsbd0204</node><entry><content>content_4sakwb0207</content></entry></data>

2022-12-18 21:30:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 19 Dec 2022 05:30:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-18 21:30:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>42ea2d12-ce24-4744-955a-df3d229212c9</value></item-id></result>

2022-12-18 21:30:59 | contains: true

2022-12-18 21:31:04 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-12-18 21:31:04 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-12-18 21:31:04 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-18 21:31:04 | [Mutex] waiting for: [user_regularnklqj00203@test-domain.com:message:received:content_4sakwb0207]

2022-12-18 21:31:04 | [Mutex] received everything.

2022-12-18 21:31:04 | [Mutex] isItemNotified: user_regularnklqj00203@test-domain.com:message:received:content_4sakwb0207 :: true

2022-12-18 21:31:04 |


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


2022-12-18 21:31:04 | [Mutex] received everything.

2022-12-18 21:31:04 | [Mutex] isItemNotified: node_unfsbd0204:subscribe_node:success :: true

2022-12-18 21:31:04 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-18 21:31:04 | command: <data><node>node_unfsbd0204</node><expire-at>2022-12-19T05:31:09Z</expire-at><entry><content>content_7nwxup0208</content></entry></data>

2022-12-18 21:31:04 | target: http://localhost:8088

2022-12-18 21:31:04 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-18 21:31:04 | entity: <data><node>node_unfsbd0204</node><expire-at>2022-12-19T05:31:09Z</expire-at><entry><content>content_7nwxup0208</content></entry></data>

2022-12-18 21:31:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 19 Dec 2022 05:31:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-18 21:31:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>eeff876d-9888-4b0f-8ef7-103f3daaa5a8</value></item-id></result>

2022-12-18 21:31:04 | contains: true

2022-12-18 21:31:12 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-12-18 21:31:12 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-12-18 21:31:12 | [Mutex] waiting for: [user_regularnklqj00203@test-domain.com:message:received:content_7nwxup0208]

2022-12-18 21:31:27 | [Mutex] timeout. Not received [user_regularnklqj00203@test-domain.com:message:received:content_7nwxup0208]

2022-12-18 21:31:27 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_7nwxup0208]

2022-12-18 21:31:42 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_7nwxup0208]

2022-12-18 21:31:42 | [Mutex] isItemNotified: user_regularnklqj00203@test-domain.com:message:received:content_7nwxup0208 :: false

2022-12-18 21:31:42 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_7nwxup0208 :: false

java.lang.AssertionError: User: admin@test-domain.com should have received message: 7nwxup0208 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)