Generated by TestNG with ReportNG at 22:34 PDT on Wednesday 13 April 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 45.102s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.665s
2022-04-13 22:48:38 |

2022-04-13 22:48:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-04-13 22:48:38 | ------------------------------------

2022-04-13 22:48:38 | [Mutex] isItemNotified: node_978ug80203:exists :: false

2022-04-13 22:48:38 | [Mutex] waiting for: [node_978ug80203:create_node]

2022-04-13 22:48:38 | [Mutex] received everything.

2022-04-13 22:48:38 | [Mutex] isItemNotified: node_978ug80203:create_node:success :: true

2022-04-13 22:48:38 | [Mutex] waiting for: [node_978ug80203:subscribe_node]

2022-04-13 22:48:38 | [Mutex] waiting for: [node_978ug80203:subscribe_node]

2022-04-13 22:48:38 | [Mutex] received everything.

2022-04-13 22:48:38 | [Mutex] isItemNotified: node_978ug80203:subscribe_node:success :: true

2022-04-13 22:48:38 |


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


2022-04-13 22:48:38 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-04-13 22:48:38 | command: <data><node>node_978ug80203</node><entry><content>content_2slgvc0204</content></entry></data>

2022-04-13 22:48:38 | target: http://localhost:8088

2022-04-13 22:48:38 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-04-13 22:48:38 | entity: <data><node>node_978ug80203</node><entry><content>content_2slgvc0204</content></entry></data>

2022-04-13 22:48:38 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Apr 2022 05:48:38 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-04-13 22:48:38 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>78b18651-4e17-4180-8d44-4c3fca81da6c</value></item-id></result>

2022-04-13 22:48:38 | contains: true

2022-04-13 22:48:38 | [Mutex] received everything.

2022-04-13 22:48:38 | [Mutex] isItemNotified: user_regular18vipi0202@test-domain.com:message:received:content_2slgvc0204 :: true

2022-04-13 22:48:38 |


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


2022-04-13 22:48:38 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-04-13 22:48:38 | command: <data><node>node_978ug80203</node><expire-at>2022-04-14T05:48:33Z</expire-at><entry><content>content_jksxng0205</content></entry></data>

2022-04-13 22:48:38 | target: http://localhost:8088

2022-04-13 22:48:38 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-04-13 22:48:38 | entity: <data><node>node_978ug80203</node><expire-at>2022-04-14T05:48:33Z</expire-at><entry><content>content_jksxng0205</content></entry></data>

2022-04-13 22:48:38 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Apr 2022 05:48:38 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-04-13 22:48:38 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c3d505ba-1e36-4cd0-ba82-49265b2ed0f0</value></item-id></result>

2022-04-13 22:48:38 | contains: true

2022-04-13 22:48:38 | [Mutex] waiting for: [user_regular18vipi0202@test-domain.com:message:received:content_jksxng0205]

2022-04-13 22:48:53 | [Mutex] timeout. Not received [user_regular18vipi0202@test-domain.com:message:received:content_jksxng0205]

2022-04-13 22:48:53 | [Mutex] isItemNotified: user_regular18vipi0202@test-domain.com:message:received:content_jksxng0205 :: false

2022-04-13 22:48:53 |


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


2022-04-13 22:48:53 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-04-13 22:48:53 | command: <data><node>node_978ug80203</node><entry><content>content_d0sr6d0206</content></entry></data>

2022-04-13 22:48:53 | target: http://localhost:8088

2022-04-13 22:48:53 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-04-13 22:48:53 | entity: <data><node>node_978ug80203</node><entry><content>content_d0sr6d0206</content></entry></data>

2022-04-13 22:48:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Apr 2022 05:48:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-04-13 22:48:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>298567dd-116c-426b-83f5-9c173590f282</value></item-id></result>

2022-04-13 22:48:53 | contains: true

2022-04-13 22:48:58 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-04-13 22:48:58 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=476 thread=1] DNS entry stored in session object: localhost:5222

2022-04-13 22:48:58 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=476 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-04-13 22:48:58 | [Mutex] waiting for: [user_regular18vipi0202@test-domain.com:message:received:content_d0sr6d0206]

2022-04-13 22:48:58 | [Mutex] waiting for: [user_regular18vipi0202@test-domain.com:message:received:content_d0sr6d0206]

2022-04-13 22:48:58 | [Mutex] received everything.

2022-04-13 22:48:58 | [Mutex] isItemNotified: user_regular18vipi0202@test-domain.com:message:received:content_d0sr6d0206 :: true

2022-04-13 22:48:58 |


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


2022-04-13 22:48:58 | [Mutex] received everything.

2022-04-13 22:48:58 | [Mutex] isItemNotified: node_978ug80203:subscribe_node:success :: true

2022-04-13 22:48:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-04-13 22:48:58 | command: <data><node>node_978ug80203</node><expire-at>2022-04-14T05:49:03Z</expire-at><entry><content>content_nxhxha0207</content></entry></data>

2022-04-13 22:48:58 | target: http://localhost:8088

2022-04-13 22:48:58 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-04-13 22:48:58 | entity: <data><node>node_978ug80203</node><expire-at>2022-04-14T05:49:03Z</expire-at><entry><content>content_nxhxha0207</content></entry></data>

2022-04-13 22:48:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 14 Apr 2022 05:48:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-04-13 22:48:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a83fdb7a-3184-4999-94cb-a56fb29d4535</value></item-id></result>

2022-04-13 22:48:58 | contains: true

2022-04-13 22:49:06 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-04-13 22:49:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=477 thread=1] DNS entry stored in session object: localhost:5222

2022-04-13 22:49:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=477 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-04-13 22:49:06 | [Mutex] waiting for: [user_regular18vipi0202@test-domain.com:message:received:content_nxhxha0207]

2022-04-13 22:49:06 | [Mutex] waiting for: [user_regular18vipi0202@test-domain.com:message:received:content_nxhxha0207]

2022-04-13 22:49:21 | [Mutex] timeout. Not received [user_regular18vipi0202@test-domain.com:message:received:content_nxhxha0207]

2022-04-13 22:49:21 | [Mutex] received everything.

2022-04-13 22:49:21 | [Mutex] isItemNotified: user_regular18vipi0202@test-domain.com:message:received:content_nxhxha0207 :: false

2022-04-13 22:49:21 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_nxhxha0207 :: true