Generated by TestNG with ReportNG at 23:01 PDT on Thursday 26 May 2022
root@61c39d2ed70d / 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.715s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.615s
2022-05-26 23:15:37 |

2022-05-26 23:15:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-26 23:15:37 | ------------------------------------

2022-05-26 23:15:37 | [Mutex] isItemNotified: node_e5sie90204:exists :: false

2022-05-26 23:15:37 | [Mutex] waiting for: [node_e5sie90204:create_node]

2022-05-26 23:15:37 | [Mutex] received everything.

2022-05-26 23:15:37 | [Mutex] isItemNotified: node_e5sie90204:create_node:success :: true

2022-05-26 23:15:37 | [Mutex] waiting for: [node_e5sie90204:subscribe_node]

2022-05-26 23:15:37 | [Mutex] waiting for: [node_e5sie90204:subscribe_node]

2022-05-26 23:15:37 | [Mutex] received everything.

2022-05-26 23:15:37 | [Mutex] isItemNotified: node_e5sie90204:subscribe_node:success :: true

2022-05-26 23:15:37 |


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


2022-05-26 23:15:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-26 23:15:37 | command: <data><node>node_e5sie90204</node><entry><content>content_aqwsr20205</content></entry></data>

2022-05-26 23:15:37 | target: http://localhost:8088

2022-05-26 23:15:37 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-26 23:15:37 | entity: <data><node>node_e5sie90204</node><entry><content>content_aqwsr20205</content></entry></data>

2022-05-26 23:15:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 27 May 2022 06:15:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-26 23:15:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>472053cd-6310-4ca5-90e4-1ed6bef89a2a</value></item-id></result>

2022-05-26 23:15:37 | contains: true

2022-05-26 23:15:37 | [Mutex] received everything.

2022-05-26 23:15:37 | [Mutex] isItemNotified: user_regularl6kg4n0203@test-domain.com:message:received:content_aqwsr20205 :: true

2022-05-26 23:15:37 |


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


2022-05-26 23:15:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-26 23:15:37 | command: <data><node>node_e5sie90204</node><expire-at>2022-05-27T06:15:32Z</expire-at><entry><content>content_afr6ra0206</content></entry></data>

2022-05-26 23:15:37 | target: http://localhost:8088

2022-05-26 23:15:37 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-26 23:15:37 | entity: <data><node>node_e5sie90204</node><expire-at>2022-05-27T06:15:32Z</expire-at><entry><content>content_afr6ra0206</content></entry></data>

2022-05-26 23:15:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 27 May 2022 06:15:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-26 23:15:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>29e52d58-b8e4-408e-a40a-e4be22e15ceb</value></item-id></result>

2022-05-26 23:15:37 | contains: true

2022-05-26 23:15:37 | [Mutex] waiting for: [user_regularl6kg4n0203@test-domain.com:message:received:content_afr6ra0206]

2022-05-26 23:15:52 | [Mutex] timeout. Not received [user_regularl6kg4n0203@test-domain.com:message:received:content_afr6ra0206]

2022-05-26 23:15:52 | [Mutex] isItemNotified: user_regularl6kg4n0203@test-domain.com:message:received:content_afr6ra0206 :: false

2022-05-26 23:15:52 |


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


2022-05-26 23:15:52 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-26 23:15:52 | command: <data><node>node_e5sie90204</node><entry><content>content_n6c7wg0207</content></entry></data>

2022-05-26 23:15:52 | target: http://localhost:8088

2022-05-26 23:15:52 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-26 23:15:52 | entity: <data><node>node_e5sie90204</node><entry><content>content_n6c7wg0207</content></entry></data>

2022-05-26 23:15:52 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 27 May 2022 06:15:52 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-26 23:15:52 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3d74d878-5c54-483b-b989-efba844b135b</value></item-id></result>

2022-05-26 23:15:52 | contains: true

2022-05-26 23:15:57 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-26 23:15:58 | [Mutex] waiting for: [user_regularl6kg4n0203@test-domain.com:message:received:content_n6c7wg0207]

2022-05-26 23:15:58 | [Mutex] waiting for: [user_regularl6kg4n0203@test-domain.com:message:received:content_n6c7wg0207]

2022-05-26 23:15:58 | [Mutex] received everything.

2022-05-26 23:15:58 | [Mutex] isItemNotified: user_regularl6kg4n0203@test-domain.com:message:received:content_n6c7wg0207 :: true

2022-05-26 23:15:58 |


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


2022-05-26 23:15:58 | [Mutex] received everything.

2022-05-26 23:15:58 | [Mutex] isItemNotified: node_e5sie90204:subscribe_node:success :: true

2022-05-26 23:15:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-26 23:15:58 | command: <data><node>node_e5sie90204</node><expire-at>2022-05-27T06:16:03Z</expire-at><entry><content>content_p6hbkg0208</content></entry></data>

2022-05-26 23:15:58 | target: http://localhost:8088

2022-05-26 23:15:58 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-26 23:15:58 | entity: <data><node>node_e5sie90204</node><expire-at>2022-05-27T06:16:03Z</expire-at><entry><content>content_p6hbkg0208</content></entry></data>

2022-05-26 23:15:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 27 May 2022 06:15:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-26 23:15:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c85e0a74-a8ca-437c-8eb5-9473ed88c547</value></item-id></result>

2022-05-26 23:15:58 | contains: true

2022-05-26 23:16:06 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2022-05-26 23:16:06 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=481 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-05-26 23:16:06 | [Mutex] waiting for: [user_regularl6kg4n0203@test-domain.com:message:received:content_p6hbkg0208]

2022-05-26 23:16:21 | [Mutex] timeout. Not received [user_regularl6kg4n0203@test-domain.com:message:received:content_p6hbkg0208]

2022-05-26 23:16:21 | [Mutex] received everything.

2022-05-26 23:16:21 | [Mutex] isItemNotified: user_regularl6kg4n0203@test-domain.com:message:received:content_p6hbkg0208 :: false

2022-05-26 23:16:21 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_p6hbkg0208 :: true