Generated by TestNG with ReportNG at 22:47 PDT on Sunday 24 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.530s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.685s
2022-07-24 23:02:29 |

2022-07-24 23:02:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-07-24 23:02:29 | ------------------------------------

2022-07-24 23:02:29 | [Mutex] isItemNotified: node_jkimk0204:exists :: false

2022-07-24 23:02:29 | [Mutex] waiting for: [node_jkimk0204:create_node]

2022-07-24 23:02:29 | [Mutex] received everything.

2022-07-24 23:02:29 | [Mutex] isItemNotified: node_jkimk0204:create_node:success :: true

2022-07-24 23:02:29 | [Mutex] waiting for: [node_jkimk0204:subscribe_node]

2022-07-24 23:02:29 | [Mutex] received everything.

2022-07-24 23:02:29 | [Mutex] isItemNotified: node_jkimk0204:subscribe_node:success :: true

2022-07-24 23:02:29 |


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


2022-07-24 23:02:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-24 23:02:29 | command: <data><node>node_jkimk0204</node><entry><content>content_hpba400205</content></entry></data>

2022-07-24 23:02:29 | target: http://localhost:8088

2022-07-24 23:02:29 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2022-07-24 23:02:29 | entity: <data><node>node_jkimk0204</node><entry><content>content_hpba400205</content></entry></data>

2022-07-24 23:02:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Jul 2022 06:02:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-24 23:02:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d46f2db6-45ad-4d26-84e3-f0851b3c2b21</value></item-id></result>

2022-07-24 23:02:29 | contains: true

2022-07-24 23:02:29 | [Mutex] waiting for: [user_regulartu1q7z0203@test-domain.com:message:received:content_hpba400205]

2022-07-24 23:02:29 | [Mutex] received everything.

2022-07-24 23:02:29 | [Mutex] isItemNotified: user_regulartu1q7z0203@test-domain.com:message:received:content_hpba400205 :: true

2022-07-24 23:02:29 |


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


2022-07-24 23:02:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-24 23:02:29 | command: <data><node>node_jkimk0204</node><expire-at>2022-07-25T06:02:24Z</expire-at><entry><content>content_cakmzj0206</content></entry></data>

2022-07-24 23:02:29 | target: http://localhost:8088

2022-07-24 23:02:29 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2022-07-24 23:02:29 | entity: <data><node>node_jkimk0204</node><expire-at>2022-07-25T06:02:24Z</expire-at><entry><content>content_cakmzj0206</content></entry></data>

2022-07-24 23:02:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Jul 2022 06:02:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-24 23:02:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7bca9f48-c3b7-4593-b7a3-a017609f5781</value></item-id></result>

2022-07-24 23:02:29 | contains: true

2022-07-24 23:02:29 | [Mutex] waiting for: [user_regulartu1q7z0203@test-domain.com:message:received:content_cakmzj0206]

2022-07-24 23:02:44 | [Mutex] timeout. Not received [user_regulartu1q7z0203@test-domain.com:message:received:content_cakmzj0206]

2022-07-24 23:02:44 | [Mutex] isItemNotified: user_regulartu1q7z0203@test-domain.com:message:received:content_cakmzj0206 :: false

2022-07-24 23:02:44 |


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


2022-07-24 23:02:44 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-24 23:02:44 | command: <data><node>node_jkimk0204</node><entry><content>content_7tvh5t0207</content></entry></data>

2022-07-24 23:02:44 | target: http://localhost:8088

2022-07-24 23:02:44 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2022-07-24 23:02:44 | entity: <data><node>node_jkimk0204</node><entry><content>content_7tvh5t0207</content></entry></data>

2022-07-24 23:02:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Jul 2022 06:02:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-24 23:02:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5d550700-21ca-4117-8bc4-da861e8f2bef</value></item-id></result>

2022-07-24 23:02:44 | contains: true

2022-07-24 23:02:49 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-24 23:02:50 | [Mutex] waiting for: [user_regulartu1q7z0203@test-domain.com:message:received:content_7tvh5t0207]

2022-07-24 23:02:50 | [Mutex] waiting for: [user_regulartu1q7z0203@test-domain.com:message:received:content_7tvh5t0207]

2022-07-24 23:02:50 | [Mutex] received everything.

2022-07-24 23:02:50 | [Mutex] isItemNotified: user_regulartu1q7z0203@test-domain.com:message:received:content_7tvh5t0207 :: true

2022-07-24 23:02:50 |


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


2022-07-24 23:02:50 | [Mutex] received everything.

2022-07-24 23:02:50 | [Mutex] isItemNotified: node_jkimk0204:subscribe_node:success :: true

2022-07-24 23:02:50 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-07-24 23:02:50 | command: <data><node>node_jkimk0204</node><expire-at>2022-07-25T06:02:55Z</expire-at><entry><content>content_w31znz0208</content></entry></data>

2022-07-24 23:02:50 | target: http://localhost:8088

2022-07-24 23:02:50 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2022-07-24 23:02:50 | entity: <data><node>node_jkimk0204</node><expire-at>2022-07-25T06:02:55Z</expire-at><entry><content>content_w31znz0208</content></entry></data>

2022-07-24 23:02:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Jul 2022 06:02:50 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-24 23:02:50 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>111d65f5-9fc0-480b-9370-3dbe329fc210</value></item-id></result>

2022-07-24 23:02:50 | contains: true

2022-07-24 23:02:58 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-24 23:02:58 | [Mutex] waiting for: [user_regulartu1q7z0203@test-domain.com:message:received:content_w31znz0208]

2022-07-24 23:03:13 | [Mutex] timeout. Not received [user_regulartu1q7z0203@test-domain.com:message:received:content_w31znz0208]

2022-07-24 23:03:13 | [Mutex] received everything.

2022-07-24 23:03:13 | [Mutex] isItemNotified: user_regulartu1q7z0203@test-domain.com:message:received:content_w31znz0208 :: false

2022-07-24 23:03:13 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_w31znz0208 :: true