Generated by TestNG with ReportNG at 22:25 PDT on Sunday 29 May 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 : 44.943s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.625s
2022-05-29 22:40:09 |

2022-05-29 22:40:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-29 22:40:09 | ------------------------------------

2022-05-29 22:40:09 | [Mutex] isItemNotified: node_r5tkqp0204:exists :: false

2022-05-29 22:40:09 | [Mutex] waiting for: [node_r5tkqp0204:create_node]

2022-05-29 22:40:09 | [Mutex] waiting for: [node_r5tkqp0204:create_node]

2022-05-29 22:40:09 | [Mutex] received everything.

2022-05-29 22:40:09 | [Mutex] isItemNotified: node_r5tkqp0204:create_node:success :: true

2022-05-29 22:40:09 | [Mutex] waiting for: [node_r5tkqp0204:subscribe_node]

2022-05-29 22:40:09 | [Mutex] received everything.

2022-05-29 22:40:09 | [Mutex] isItemNotified: node_r5tkqp0204:subscribe_node:success :: true

2022-05-29 22:40:09 |


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


2022-05-29 22:40:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-29 22:40:09 | command: <data><node>node_r5tkqp0204</node><entry><content>content_3f3fhp0205</content></entry></data>

2022-05-29 22:40:09 | target: http://localhost:8088

2022-05-29 22:40:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-29 22:40:09 | entity: <data><node>node_r5tkqp0204</node><entry><content>content_3f3fhp0205</content></entry></data>

2022-05-29 22:40:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 30 May 2022 05:40:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-29 22:40:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>79b7354c-1242-4b8d-8298-36f2865c6ad0</value></item-id></result>

2022-05-29 22:40:09 | contains: true

2022-05-29 22:40:09 | [Mutex] waiting for: [user_regularxd57b90203@test-domain.com:message:received:content_3f3fhp0205]

2022-05-29 22:40:09 | [Mutex] received everything.

2022-05-29 22:40:09 | [Mutex] isItemNotified: user_regularxd57b90203@test-domain.com:message:received:content_3f3fhp0205 :: true

2022-05-29 22:40:09 |


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


2022-05-29 22:40:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-29 22:40:09 | command: <data><node>node_r5tkqp0204</node><expire-at>2022-05-30T05:40:04Z</expire-at><entry><content>content_ctlgi20206</content></entry></data>

2022-05-29 22:40:09 | target: http://localhost:8088

2022-05-29 22:40:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-29 22:40:09 | entity: <data><node>node_r5tkqp0204</node><expire-at>2022-05-30T05:40:04Z</expire-at><entry><content>content_ctlgi20206</content></entry></data>

2022-05-29 22:40:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 30 May 2022 05:40:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-29 22:40:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>879862a3-728d-4f84-a207-4c3145a865bb</value></item-id></result>

2022-05-29 22:40:10 | contains: true

2022-05-29 22:40:10 | [Mutex] waiting for: [user_regularxd57b90203@test-domain.com:message:received:content_ctlgi20206]

2022-05-29 22:40:25 | [Mutex] timeout. Not received [user_regularxd57b90203@test-domain.com:message:received:content_ctlgi20206]

2022-05-29 22:40:25 | [Mutex] isItemNotified: user_regularxd57b90203@test-domain.com:message:received:content_ctlgi20206 :: false

2022-05-29 22:40:25 |


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


2022-05-29 22:40:25 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-29 22:40:25 | command: <data><node>node_r5tkqp0204</node><entry><content>content_9itfha0207</content></entry></data>

2022-05-29 22:40:25 | target: http://localhost:8088

2022-05-29 22:40:25 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-29 22:40:25 | entity: <data><node>node_r5tkqp0204</node><entry><content>content_9itfha0207</content></entry></data>

2022-05-29 22:40:25 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 30 May 2022 05:40:25 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-29 22:40:25 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a95e9b37-3c4f-4766-bb13-bb56f5c3fc88</value></item-id></result>

2022-05-29 22:40:25 | contains: true

2022-05-29 22:40:30 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-05-29 22:40:30 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-05-29 22:40:30 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-05-29 22:40:30 | [Mutex] waiting for: [user_regularxd57b90203@test-domain.com:message:received:content_9itfha0207]

2022-05-29 22:40:30 | [Mutex] waiting for: [user_regularxd57b90203@test-domain.com:message:received:content_9itfha0207]

2022-05-29 22:40:30 | [Mutex] received everything.

2022-05-29 22:40:30 | [Mutex] isItemNotified: user_regularxd57b90203@test-domain.com:message:received:content_9itfha0207 :: true

2022-05-29 22:40:30 |


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


2022-05-29 22:40:30 | [Mutex] received everything.

2022-05-29 22:40:30 | [Mutex] isItemNotified: node_r5tkqp0204:subscribe_node:success :: true

2022-05-29 22:40:30 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-29 22:40:30 | command: <data><node>node_r5tkqp0204</node><expire-at>2022-05-30T05:40:35Z</expire-at><entry><content>content_rgff8p0208</content></entry></data>

2022-05-29 22:40:30 | target: http://localhost:8088

2022-05-29 22:40:30 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-29 22:40:30 | entity: <data><node>node_r5tkqp0204</node><expire-at>2022-05-30T05:40:35Z</expire-at><entry><content>content_rgff8p0208</content></entry></data>

2022-05-29 22:40:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 30 May 2022 05:40:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-29 22:40:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>91b49c2a-493f-4fa1-bbbe-56a8d7ed4418</value></item-id></result>

2022-05-29 22:40:30 | contains: true

2022-05-29 22:40:38 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-05-29 22:40:38 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] DNS entry stored in session object: localhost:5222

2022-05-29 22:40:38 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-05-29 22:40:38 | [Mutex] waiting for: [user_regularxd57b90203@test-domain.com:message:received:content_rgff8p0208]

2022-05-29 22:40:53 | [Mutex] timeout. Not received [user_regularxd57b90203@test-domain.com:message:received:content_rgff8p0208]

2022-05-29 22:40:53 | [Mutex] received everything.

2022-05-29 22:40:53 | [Mutex] isItemNotified: user_regularxd57b90203@test-domain.com:message:received:content_rgff8p0208 :: false

2022-05-29 22:40:53 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_rgff8p0208 :: true