Generated by TestNG with ReportNG at 22:36 PDT on Sunday 01 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.737s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.669s
2022-05-01 22:50:37 |

2022-05-01 22:50:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-01 22:50:37 | ------------------------------------

2022-05-01 22:50:37 | [Mutex] isItemNotified: node_e0f2o20204:exists :: false

2022-05-01 22:50:37 | [Mutex] waiting for: [node_e0f2o20204:create_node]

2022-05-01 22:50:37 | [Mutex] received everything.

2022-05-01 22:50:37 | [Mutex] isItemNotified: node_e0f2o20204:create_node:success :: true

2022-05-01 22:50:37 | [Mutex] waiting for: [node_e0f2o20204:subscribe_node]

2022-05-01 22:50:37 | [Mutex] waiting for: [node_e0f2o20204:subscribe_node]

2022-05-01 22:50:37 | [Mutex] received everything.

2022-05-01 22:50:37 | [Mutex] isItemNotified: node_e0f2o20204:subscribe_node:success :: true

2022-05-01 22:50:37 |


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


2022-05-01 22:50:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-01 22:50:37 | command: <data><node>node_e0f2o20204</node><entry><content>content_a52q5t0205</content></entry></data>

2022-05-01 22:50:37 | target: http://localhost:8088

2022-05-01 22:50:37 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-01 22:50:37 | entity: <data><node>node_e0f2o20204</node><entry><content>content_a52q5t0205</content></entry></data>

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

2022-05-01 22:50:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e074c000-8997-48d8-a79f-f4ecf51776ae</value></item-id></result>

2022-05-01 22:50:37 | contains: true

2022-05-01 22:50:37 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_a52q5t0205]

2022-05-01 22:50:37 | [Mutex] received everything.

2022-05-01 22:50:37 | [Mutex] isItemNotified: user_regular4sdy130203@test-domain.com:message:received:content_a52q5t0205 :: true

2022-05-01 22:50:37 |


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


2022-05-01 22:50:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-01 22:50:37 | command: <data><node>node_e0f2o20204</node><expire-at>2022-05-02T05:50:32Z</expire-at><entry><content>content_9a2szh0206</content></entry></data>

2022-05-01 22:50:37 | target: http://localhost:8088

2022-05-01 22:50:37 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-01 22:50:37 | entity: <data><node>node_e0f2o20204</node><expire-at>2022-05-02T05:50:32Z</expire-at><entry><content>content_9a2szh0206</content></entry></data>

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

2022-05-01 22:50:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>60e4b070-45c8-456f-89a5-85d6762edf2c</value></item-id></result>

2022-05-01 22:50:37 | contains: true

2022-05-01 22:50:37 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_9a2szh0206]

2022-05-01 22:50:52 | [Mutex] timeout. Not received [user_regular4sdy130203@test-domain.com:message:received:content_9a2szh0206]

2022-05-01 22:50:52 | [Mutex] isItemNotified: user_regular4sdy130203@test-domain.com:message:received:content_9a2szh0206 :: false

2022-05-01 22:50:52 |


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


2022-05-01 22:50:52 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-01 22:50:52 | command: <data><node>node_e0f2o20204</node><entry><content>content_ll0jw10207</content></entry></data>

2022-05-01 22:50:52 | target: http://localhost:8088

2022-05-01 22:50:52 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-01 22:50:52 | entity: <data><node>node_e0f2o20204</node><entry><content>content_ll0jw10207</content></entry></data>

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

2022-05-01 22:50:52 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>89c79544-2181-40ae-b9b0-9df62bd29323</value></item-id></result>

2022-05-01 22:50:52 | contains: true

2022-05-01 22:50:57 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-01 22:50:57 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_ll0jw10207]

2022-05-01 22:50:57 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_ll0jw10207]

2022-05-01 22:50:57 | [Mutex] received everything.

2022-05-01 22:50:57 | [Mutex] isItemNotified: user_regular4sdy130203@test-domain.com:message:received:content_ll0jw10207 :: true

2022-05-01 22:50:57 |


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


2022-05-01 22:50:57 | [Mutex] received everything.

2022-05-01 22:50:57 | [Mutex] isItemNotified: node_e0f2o20204:subscribe_node:success :: true

2022-05-01 22:50:57 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-01 22:50:57 | command: <data><node>node_e0f2o20204</node><expire-at>2022-05-02T05:51:02Z</expire-at><entry><content>content_yszpq60208</content></entry></data>

2022-05-01 22:50:57 | target: http://localhost:8088

2022-05-01 22:50:57 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-01 22:50:57 | entity: <data><node>node_e0f2o20204</node><expire-at>2022-05-02T05:51:02Z</expire-at><entry><content>content_yszpq60208</content></entry></data>

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

2022-05-01 22:50:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e26868b0-6954-463d-940c-19cdf1a5a1a5</value></item-id></result>

2022-05-01 22:50:57 | contains: true

2022-05-01 22:51:05 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-01 22:51:05 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_yszpq60208]

2022-05-01 22:51:05 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_yszpq60208]

2022-05-01 22:51:05 | [Mutex] waiting for: [user_regular4sdy130203@test-domain.com:message:received:content_yszpq60208]

2022-05-01 22:51:20 | [Mutex] timeout. Not received [user_regular4sdy130203@test-domain.com:message:received:content_yszpq60208]

2022-05-01 22:51:20 | [Mutex] received everything.

2022-05-01 22:51:20 | [Mutex] isItemNotified: user_regular4sdy130203@test-domain.com:message:received:content_yszpq60208 :: false

2022-05-01 22:51:20 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_yszpq60208 :: true