Generated by TestNG with ReportNG at 22:48 PDT on Sunday 17 July 2022
root@7c41cec37518 / 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.533s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.620s
2022-07-17 23:03:07 |

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

2022-07-17 23:03:07 | ------------------------------------

2022-07-17 23:03:07 | [Mutex] isItemNotified: node_540qla0204:exists :: false

2022-07-17 23:03:07 | [Mutex] waiting for: [node_540qla0204:create_node]

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

2022-07-17 23:03:07 | [Mutex] isItemNotified: node_540qla0204:create_node:success :: true

2022-07-17 23:03:07 | [Mutex] waiting for: [node_540qla0204:subscribe_node]

2022-07-17 23:03:07 | [Mutex] waiting for: [node_540qla0204:subscribe_node]

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

2022-07-17 23:03:07 | [Mutex] isItemNotified: node_540qla0204:subscribe_node:success :: true

2022-07-17 23:03:07 |


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


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

2022-07-17 23:03:07 | command: <data><node>node_540qla0204</node><entry><content>content_5jjfny0205</content></entry></data>

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

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

2022-07-17 23:03:07 | entity: <data><node>node_540qla0204</node><entry><content>content_5jjfny0205</content></entry></data>

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

2022-07-17 23:03:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d6ef86d2-5a19-41d0-8aef-d43205eade9c</value></item-id></result>

2022-07-17 23:03:07 | contains: true

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

2022-07-17 23:03:07 | [Mutex] isItemNotified: user_regularnsjsrz0203@test-domain.com:message:received:content_5jjfny0205 :: true

2022-07-17 23:03:07 |


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


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

2022-07-17 23:03:07 | command: <data><node>node_540qla0204</node><expire-at>2022-07-18T06:03:02Z</expire-at><entry><content>content_eve5q60206</content></entry></data>

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

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

2022-07-17 23:03:07 | entity: <data><node>node_540qla0204</node><expire-at>2022-07-18T06:03:02Z</expire-at><entry><content>content_eve5q60206</content></entry></data>

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

2022-07-17 23:03:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>81138363-d780-4cd9-a220-0aacd8b8aaf0</value></item-id></result>

2022-07-17 23:03:07 | contains: true

2022-07-17 23:03:07 | [Mutex] waiting for: [user_regularnsjsrz0203@test-domain.com:message:received:content_eve5q60206]

2022-07-17 23:03:22 | [Mutex] timeout. Not received [user_regularnsjsrz0203@test-domain.com:message:received:content_eve5q60206]

2022-07-17 23:03:22 | [Mutex] isItemNotified: user_regularnsjsrz0203@test-domain.com:message:received:content_eve5q60206 :: false

2022-07-17 23:03:22 |


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


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

2022-07-17 23:03:22 | command: <data><node>node_540qla0204</node><entry><content>content_6chs0c0207</content></entry></data>

2022-07-17 23:03:22 | target: http://localhost:8088

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

2022-07-17 23:03:22 | entity: <data><node>node_540qla0204</node><entry><content>content_6chs0c0207</content></entry></data>

2022-07-17 23:03:22 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 18 Jul 2022 06:03:22 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-17 23:03:22 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5f4697ea-6f14-4cd7-817a-733489ad82e1</value></item-id></result>

2022-07-17 23:03:22 | contains: true

2022-07-17 23:03:27 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-17 23:03:28 | [Mutex] waiting for: [user_regularnsjsrz0203@test-domain.com:message:received:content_6chs0c0207]

2022-07-17 23:03:28 | [Mutex] waiting for: [user_regularnsjsrz0203@test-domain.com:message:received:content_6chs0c0207]

2022-07-17 23:03:28 | [Mutex] received everything.

2022-07-17 23:03:28 | [Mutex] isItemNotified: user_regularnsjsrz0203@test-domain.com:message:received:content_6chs0c0207 :: true

2022-07-17 23:03:28 |


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


2022-07-17 23:03:28 | [Mutex] received everything.

2022-07-17 23:03:28 | [Mutex] isItemNotified: node_540qla0204:subscribe_node:success :: true

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

2022-07-17 23:03:28 | command: <data><node>node_540qla0204</node><expire-at>2022-07-18T06:03:33Z</expire-at><entry><content>content_ynqog30208</content></entry></data>

2022-07-17 23:03:28 | target: http://localhost:8088

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

2022-07-17 23:03:28 | entity: <data><node>node_540qla0204</node><expire-at>2022-07-18T06:03:33Z</expire-at><entry><content>content_ynqog30208</content></entry></data>

2022-07-17 23:03:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 18 Jul 2022 06:03:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-07-17 23:03:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d7660c63-903f-4acd-8669-1932f404a16c</value></item-id></result>

2022-07-17 23:03:28 | contains: true

2022-07-17 23:03:36 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-07-17 23:03:36 | [Mutex] waiting for: [user_regularnsjsrz0203@test-domain.com:message:received:content_ynqog30208]

2022-07-17 23:03:36 | [Mutex] waiting for: [user_regularnsjsrz0203@test-domain.com:message:received:content_ynqog30208]

2022-07-17 23:03:51 | [Mutex] timeout. Not received [user_regularnsjsrz0203@test-domain.com:message:received:content_ynqog30208]

2022-07-17 23:03:51 | [Mutex] received everything.

2022-07-17 23:03:51 | [Mutex] isItemNotified: user_regularnsjsrz0203@test-domain.com:message:received:content_ynqog30208 :: false

2022-07-17 23:03:51 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_ynqog30208 :: true