Generated by TestNG with ReportNG at 22:49 PDT on Wednesday 20 July 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.523s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.633s
2022-07-20 23:03:57 |

2022-07-20 23:03:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-20 23:03:57 | ------------------------------------

2022-07-20 23:03:57 | [Mutex] isItemNotified: node_iewfpr0204:exists :: false

2022-07-20 23:03:57 | [Mutex] waiting for: [node_iewfpr0204:create_node]

2022-07-20 23:03:57 | [Mutex] waiting for: [node_iewfpr0204:create_node]

2022-07-20 23:03:57 | [Mutex] received everything.

2022-07-20 23:03:57 | [Mutex] isItemNotified: node_iewfpr0204:create_node:success :: true

2022-07-20 23:03:57 | [Mutex] waiting for: [node_iewfpr0204:subscribe_node]

2022-07-20 23:03:57 | [Mutex] waiting for: [node_iewfpr0204:subscribe_node]

2022-07-20 23:03:57 | [Mutex] received everything.

2022-07-20 23:03:57 | [Mutex] isItemNotified: node_iewfpr0204:subscribe_node:success :: true

2022-07-20 23:03:57 |


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


2022-07-20 23:03:57 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 23:03:57 | command: <data><node>node_iewfpr0204</node><entry><content>content_c9zdk40205</content></entry></data>

2022-07-20 23:03:57 | target: http://localhost:8088

2022-07-20 23:03:57 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-20 23:03:57 | entity: <data><node>node_iewfpr0204</node><entry><content>content_c9zdk40205</content></entry></data>

2022-07-20 23:03:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 06:03:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 23:03:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>42a2978d-4075-4dd9-a7b5-35b091cf58e7</value></item-id></result>

2022-07-20 23:03:57 | contains: true

2022-07-20 23:03:57 | [Mutex] received everything.

2022-07-20 23:03:57 | [Mutex] isItemNotified: user_regularw2jqca0203@test-domain.com:message:received:content_c9zdk40205 :: true

2022-07-20 23:03:57 |


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


2022-07-20 23:03:57 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 23:03:57 | command: <data><node>node_iewfpr0204</node><expire-at>2022-07-21T06:03:52Z</expire-at><entry><content>content_ls0jto0206</content></entry></data>

2022-07-20 23:03:57 | target: http://localhost:8088

2022-07-20 23:03:57 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-20 23:03:57 | entity: <data><node>node_iewfpr0204</node><expire-at>2022-07-21T06:03:52Z</expire-at><entry><content>content_ls0jto0206</content></entry></data>

2022-07-20 23:03:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 06:03:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 23:03:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6bc710e1-1540-4130-a2c4-c781a0524f7e</value></item-id></result>

2022-07-20 23:03:57 | contains: true

2022-07-20 23:03:57 | [Mutex] waiting for: [user_regularw2jqca0203@test-domain.com:message:received:content_ls0jto0206]

2022-07-20 23:04:12 | [Mutex] timeout. Not received [user_regularw2jqca0203@test-domain.com:message:received:content_ls0jto0206]

2022-07-20 23:04:12 | [Mutex] isItemNotified: user_regularw2jqca0203@test-domain.com:message:received:content_ls0jto0206 :: false

2022-07-20 23:04:12 |


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


2022-07-20 23:04:12 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 23:04:12 | command: <data><node>node_iewfpr0204</node><entry><content>content_2g6f8m0207</content></entry></data>

2022-07-20 23:04:12 | target: http://localhost:8088

2022-07-20 23:04:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-07-20 23:04:12 | entity: <data><node>node_iewfpr0204</node><entry><content>content_2g6f8m0207</content></entry></data>

2022-07-20 23:04:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 06:04:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 23:04:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>13cf3e32-8406-4f23-b417-77c4709f5293</value></item-id></result>

2022-07-20 23:04:12 | contains: true

2022-07-20 23:04:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2022-07-20 23:04:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222

2022-07-20 23:04:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222

2022-07-20 23:04:17 | [Mutex] waiting for: [user_regularw2jqca0203@test-domain.com:message:received:content_2g6f8m0207]

2022-07-20 23:04:17 | [Mutex] received everything.

2022-07-20 23:04:17 | [Mutex] isItemNotified: user_regularw2jqca0203@test-domain.com:message:received:content_2g6f8m0207 :: true

2022-07-20 23:04:17 |


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


2022-07-20 23:04:17 | [Mutex] received everything.

2022-07-20 23:04:17 | [Mutex] isItemNotified: node_iewfpr0204:subscribe_node:success :: true

2022-07-20 23:04:17 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-20 23:04:17 | command: <data><node>node_iewfpr0204</node><expire-at>2022-07-21T06:04:22Z</expire-at><entry><content>content_5l6m110208</content></entry></data>

2022-07-20 23:04:17 | target: http://localhost:8088

2022-07-20 23:04:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-07-20 23:04:17 | entity: <data><node>node_iewfpr0204</node><expire-at>2022-07-21T06:04:22Z</expire-at><entry><content>content_5l6m110208</content></entry></data>

2022-07-20 23:04:18 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Jul 2022 06:04:18 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-20 23:04:18 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4cbea8f2-9715-45a4-8049-0e17a0eb6d72</value></item-id></result>

2022-07-20 23:04:18 | contains: true

2022-07-20 23:04:26 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-20 23:04:26 | [Mutex] waiting for: [user_regularw2jqca0203@test-domain.com:message:received:content_5l6m110208]

2022-07-20 23:04:26 | [Mutex] waiting for: [user_regularw2jqca0203@test-domain.com:message:received:content_5l6m110208]

2022-07-20 23:04:41 | [Mutex] timeout. Not received [user_regularw2jqca0203@test-domain.com:message:received:content_5l6m110208]

2022-07-20 23:04:41 | [Mutex] received everything.

2022-07-20 23:04:41 | [Mutex] isItemNotified: user_regularw2jqca0203@test-domain.com:message:received:content_5l6m110208 :: false

2022-07-20 23:04:41 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_5l6m110208 :: true