Generated by TestNG with ReportNG at 21:15 PST on Wednesday 28 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 : 44.534s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.654s
2022-12-28 21:31:48 |

2022-12-28 21:31:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-12-28 21:31:48 | ------------------------------------

2022-12-28 21:31:48 | [Mutex] isItemNotified: node_7u2bcr0204:exists :: false

2022-12-28 21:31:48 | [Mutex] waiting for: [node_7u2bcr0204:create_node]

2022-12-28 21:31:48 | [Mutex] received everything.

2022-12-28 21:31:48 | [Mutex] isItemNotified: node_7u2bcr0204:create_node:success :: true

2022-12-28 21:31:48 | [Mutex] waiting for: [node_7u2bcr0204:subscribe_node]

2022-12-28 21:31:48 | [Mutex] waiting for: [node_7u2bcr0204:subscribe_node]

2022-12-28 21:31:48 | [Mutex] received everything.

2022-12-28 21:31:48 | [Mutex] isItemNotified: node_7u2bcr0204:subscribe_node:success :: true

2022-12-28 21:31:48 |


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


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

2022-12-28 21:31:48 | command: <data><node>node_7u2bcr0204</node><entry><content>content_id4x2f0205</content></entry></data>

2022-12-28 21:31:48 | target: http://localhost:8088

2022-12-28 21:31:48 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-28 21:31:48 | entity: <data><node>node_7u2bcr0204</node><entry><content>content_id4x2f0205</content></entry></data>

2022-12-28 21:31:48 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 05:31:48 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 21:31:48 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>bbd66c91-7d31-4ea1-ab8d-66a8d00c5c0b</value></item-id></result>

2022-12-28 21:31:48 | contains: true

2022-12-28 21:31:48 | [Mutex] received everything.

2022-12-28 21:31:48 | [Mutex] isItemNotified: user_regular6pbhhg0203@test-domain.com:message:received:content_id4x2f0205 :: true

2022-12-28 21:31:48 |


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


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

2022-12-28 21:31:48 | command: <data><node>node_7u2bcr0204</node><expire-at>2022-12-29T05:31:43Z</expire-at><entry><content>content_p035jq0206</content></entry></data>

2022-12-28 21:31:48 | target: http://localhost:8088

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

2022-12-28 21:31:48 | entity: <data><node>node_7u2bcr0204</node><expire-at>2022-12-29T05:31:43Z</expire-at><entry><content>content_p035jq0206</content></entry></data>

2022-12-28 21:31:48 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 05:31:48 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 21:31:48 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>64ccf6ee-59c2-4fdd-8503-67aed495bcf1</value></item-id></result>

2022-12-28 21:31:48 | contains: true

2022-12-28 21:31:48 | [Mutex] waiting for: [user_regular6pbhhg0203@test-domain.com:message:received:content_p035jq0206]

2022-12-28 21:32:03 | [Mutex] timeout. Not received [user_regular6pbhhg0203@test-domain.com:message:received:content_p035jq0206]

2022-12-28 21:32:03 | [Mutex] isItemNotified: user_regular6pbhhg0203@test-domain.com:message:received:content_p035jq0206 :: false

2022-12-28 21:32:03 |


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


2022-12-28 21:32:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-28 21:32:03 | command: <data><node>node_7u2bcr0204</node><entry><content>content_qak0i50207</content></entry></data>

2022-12-28 21:32:03 | target: http://localhost:8088

2022-12-28 21:32:03 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-12-28 21:32:03 | entity: <data><node>node_7u2bcr0204</node><entry><content>content_qak0i50207</content></entry></data>

2022-12-28 21:32:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 05:32:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 21:32:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7cd3fe56-4912-461e-ad48-b0a3d8e89f89</value></item-id></result>

2022-12-28 21:32:03 | contains: true

2022-12-28 21:32:08 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-12-28 21:32:08 | [Mutex] waiting for: [user_regular6pbhhg0203@test-domain.com:message:received:content_qak0i50207]

2022-12-28 21:32:08 | [Mutex] waiting for: [user_regular6pbhhg0203@test-domain.com:message:received:content_qak0i50207]

2022-12-28 21:32:08 | [Mutex] received everything.

2022-12-28 21:32:08 | [Mutex] isItemNotified: user_regular6pbhhg0203@test-domain.com:message:received:content_qak0i50207 :: true

2022-12-28 21:32:08 |


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


2022-12-28 21:32:08 | [Mutex] received everything.

2022-12-28 21:32:08 | [Mutex] isItemNotified: node_7u2bcr0204:subscribe_node:success :: true

2022-12-28 21:32:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-12-28 21:32:08 | command: <data><node>node_7u2bcr0204</node><expire-at>2022-12-29T05:32:13Z</expire-at><entry><content>content_1j7knc0208</content></entry></data>

2022-12-28 21:32:08 | target: http://localhost:8088

2022-12-28 21:32:08 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-12-28 21:32:08 | entity: <data><node>node_7u2bcr0204</node><expire-at>2022-12-29T05:32:13Z</expire-at><entry><content>content_1j7knc0208</content></entry></data>

2022-12-28 21:32:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 29 Dec 2022 05:32:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-12-28 21:32:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4d16012a-d26f-4bbe-a2c2-fe5f6cef7522</value></item-id></result>

2022-12-28 21:32:08 | contains: true

2022-12-28 21:32:16 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-12-28 21:32:17 | [Mutex] waiting for: [user_regular6pbhhg0203@test-domain.com:message:received:content_1j7knc0208]

2022-12-28 21:32:32 | [Mutex] timeout. Not received [user_regular6pbhhg0203@test-domain.com:message:received:content_1j7knc0208]

2022-12-28 21:32:32 | [Mutex] received everything.

2022-12-28 21:32:32 | [Mutex] isItemNotified: user_regular6pbhhg0203@test-domain.com:message:received:content_1j7knc0208 :: false

2022-12-28 21:32:32 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_1j7knc0208 :: true