Generated by TestNG with ReportNG at 23:05 PDT on Monday 02 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.578s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.594s
2022-05-02 23:20:34 |

2022-05-02 23:20:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-05-02 23:20:34 | ------------------------------------

2022-05-02 23:20:34 | [Mutex] isItemNotified: node_swucjn0204:exists :: false

2022-05-02 23:20:34 | [Mutex] waiting for: [node_swucjn0204:create_node]

2022-05-02 23:20:34 | [Mutex] waiting for: [node_swucjn0204:create_node]

2022-05-02 23:20:34 | [Mutex] received everything.

2022-05-02 23:20:34 | [Mutex] isItemNotified: node_swucjn0204:create_node:success :: true

2022-05-02 23:20:34 | [Mutex] waiting for: [node_swucjn0204:subscribe_node]

2022-05-02 23:20:34 | [Mutex] waiting for: [node_swucjn0204:subscribe_node]

2022-05-02 23:20:34 | [Mutex] received everything.

2022-05-02 23:20:34 | [Mutex] isItemNotified: node_swucjn0204:subscribe_node:success :: true

2022-05-02 23:20:34 |


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


2022-05-02 23:20:34 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-02 23:20:34 | command: <data><node>node_swucjn0204</node><entry><content>content_yqcfqf0205</content></entry></data>

2022-05-02 23:20:34 | target: http://localhost:8088

2022-05-02 23:20:34 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-02 23:20:34 | entity: <data><node>node_swucjn0204</node><entry><content>content_yqcfqf0205</content></entry></data>

2022-05-02 23:20:34 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 03 May 2022 06:20:34 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-02 23:20:34 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>dd7efaf8-34b6-4ab8-a146-64785329366a</value></item-id></result>

2022-05-02 23:20:34 | contains: true

2022-05-02 23:20:34 | [Mutex] received everything.

2022-05-02 23:20:34 | [Mutex] isItemNotified: user_regularp2gqnj0203@test-domain.com:message:received:content_yqcfqf0205 :: true

2022-05-02 23:20:34 |


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


2022-05-02 23:20:34 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-02 23:20:34 | command: <data><node>node_swucjn0204</node><expire-at>2022-05-03T06:20:29Z</expire-at><entry><content>content_vt91rs0206</content></entry></data>

2022-05-02 23:20:34 | target: http://localhost:8088

2022-05-02 23:20:34 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-02 23:20:34 | entity: <data><node>node_swucjn0204</node><expire-at>2022-05-03T06:20:29Z</expire-at><entry><content>content_vt91rs0206</content></entry></data>

2022-05-02 23:20:34 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 03 May 2022 06:20:34 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-02 23:20:34 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e7adc188-daa1-4d44-bcaa-9f9bdce273bf</value></item-id></result>

2022-05-02 23:20:34 | contains: true

2022-05-02 23:20:34 | [Mutex] waiting for: [user_regularp2gqnj0203@test-domain.com:message:received:content_vt91rs0206]

2022-05-02 23:20:49 | [Mutex] timeout. Not received [user_regularp2gqnj0203@test-domain.com:message:received:content_vt91rs0206]

2022-05-02 23:20:49 | [Mutex] isItemNotified: user_regularp2gqnj0203@test-domain.com:message:received:content_vt91rs0206 :: false

2022-05-02 23:20:49 |


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


2022-05-02 23:20:49 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-02 23:20:49 | command: <data><node>node_swucjn0204</node><entry><content>content_e3kbh80207</content></entry></data>

2022-05-02 23:20:49 | target: http://localhost:8088

2022-05-02 23:20:49 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-05-02 23:20:49 | entity: <data><node>node_swucjn0204</node><entry><content>content_e3kbh80207</content></entry></data>

2022-05-02 23:20:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 03 May 2022 06:20:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-02 23:20:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7e994506-f5ee-46b1-8725-cead9f4dd2b9</value></item-id></result>

2022-05-02 23:20:49 | contains: true

2022-05-02 23:20:54 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-02 23:20:54 | [Mutex] waiting for: [user_regularp2gqnj0203@test-domain.com:message:received:content_e3kbh80207]

2022-05-02 23:20:54 | [Mutex] waiting for: [user_regularp2gqnj0203@test-domain.com:message:received:content_e3kbh80207]

2022-05-02 23:20:54 | [Mutex] received everything.

2022-05-02 23:20:54 | [Mutex] isItemNotified: user_regularp2gqnj0203@test-domain.com:message:received:content_e3kbh80207 :: true

2022-05-02 23:20:54 |


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


2022-05-02 23:20:54 | [Mutex] received everything.

2022-05-02 23:20:54 | [Mutex] isItemNotified: node_swucjn0204:subscribe_node:success :: true

2022-05-02 23:20:54 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-05-02 23:20:54 | command: <data><node>node_swucjn0204</node><expire-at>2022-05-03T06:20:59Z</expire-at><entry><content>content_xjuz4a0208</content></entry></data>

2022-05-02 23:20:54 | target: http://localhost:8088

2022-05-02 23:20:54 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-05-02 23:20:54 | entity: <data><node>node_swucjn0204</node><expire-at>2022-05-03T06:20:59Z</expire-at><entry><content>content_xjuz4a0208</content></entry></data>

2022-05-02 23:20:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 03 May 2022 06:20:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-05-02 23:20:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2ea4d026-b778-46d4-af00-b6d05fb24d47</value></item-id></result>

2022-05-02 23:20:54 | contains: true

2022-05-02 23:21:02 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2022-05-02 23:21:03 | [Mutex] waiting for: [user_regularp2gqnj0203@test-domain.com:message:received:content_xjuz4a0208]

2022-05-02 23:21:03 | [Mutex] waiting for: [user_regularp2gqnj0203@test-domain.com:message:received:content_xjuz4a0208]

2022-05-02 23:21:18 | [Mutex] timeout. Not received [user_regularp2gqnj0203@test-domain.com:message:received:content_xjuz4a0208]

2022-05-02 23:21:18 | [Mutex] received everything.

2022-05-02 23:21:18 | [Mutex] isItemNotified: user_regularp2gqnj0203@test-domain.com:message:received:content_xjuz4a0208 :: false

2022-05-02 23:21:18 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_xjuz4a0208 :: true