Generated by TestNG with ReportNG at 21:32 PST on Sunday 20 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / 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 : 45.494s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.724s
2022-02-20 21:47:07 |

2022-02-20 21:47:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-02-20 21:47:07 | ------------------------------------

2022-02-20 21:47:07 | [Mutex] isItemNotified: node_w98mus0203:exists :: false

2022-02-20 21:47:07 | [Mutex] waiting for: [node_w98mus0203:create_node]

2022-02-20 21:47:07 | [Mutex] received everything.

2022-02-20 21:47:07 | [Mutex] isItemNotified: node_w98mus0203:create_node:success :: true

2022-02-20 21:47:07 | [Mutex] waiting for: [node_w98mus0203:subscribe_node]

2022-02-20 21:47:07 | [Mutex] waiting for: [node_w98mus0203:subscribe_node]

2022-02-20 21:47:07 | [Mutex] received everything.

2022-02-20 21:47:07 | [Mutex] isItemNotified: node_w98mus0203:subscribe_node:success :: true

2022-02-20 21:47:07 |


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


2022-02-20 21:47:07 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-20 21:47:07 | command: <data><node>node_w98mus0203</node><entry><content>content_km2kuj0204</content></entry></data>

2022-02-20 21:47:07 | target: http://localhost:8088

2022-02-20 21:47:07 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-02-20 21:47:07 | entity: <data><node>node_w98mus0203</node><entry><content>content_km2kuj0204</content></entry></data>

2022-02-20 21:47:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 21 Feb 2022 05:47:07 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-20 21:47:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>057db463-424d-4418-9a8a-be6d9d6bae5d</value></item-id></result>

2022-02-20 21:47:07 | contains: true

2022-02-20 21:47:07 | [Mutex] waiting for: [user_regularw6fedq0202@test-domain.com:message:received:content_km2kuj0204]

2022-02-20 21:47:07 | [Mutex] received everything.

2022-02-20 21:47:07 | [Mutex] isItemNotified: user_regularw6fedq0202@test-domain.com:message:received:content_km2kuj0204 :: true

2022-02-20 21:47:07 |


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


2022-02-20 21:47:07 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-20 21:47:07 | command: <data><node>node_w98mus0203</node><expire-at>2022-02-21T05:47:02Z</expire-at><entry><content>content_rr156s0205</content></entry></data>

2022-02-20 21:47:07 | target: http://localhost:8088

2022-02-20 21:47:07 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-02-20 21:47:07 | entity: <data><node>node_w98mus0203</node><expire-at>2022-02-21T05:47:02Z</expire-at><entry><content>content_rr156s0205</content></entry></data>

2022-02-20 21:47:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 21 Feb 2022 05:47:07 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-20 21:47:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>396e1bb6-3192-4993-bd8d-9bba106fde35</value></item-id></result>

2022-02-20 21:47:07 | contains: true

2022-02-20 21:47:07 | [Mutex] waiting for: [user_regularw6fedq0202@test-domain.com:message:received:content_rr156s0205]

2022-02-20 21:47:22 | [Mutex] timeout. Not received [user_regularw6fedq0202@test-domain.com:message:received:content_rr156s0205]

2022-02-20 21:47:22 | [Mutex] isItemNotified: user_regularw6fedq0202@test-domain.com:message:received:content_rr156s0205 :: false

2022-02-20 21:47:22 |


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


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

2022-02-20 21:47:23 | command: <data><node>node_w98mus0203</node><entry><content>content_hofy400206</content></entry></data>

2022-02-20 21:47:23 | target: http://localhost:8088

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

2022-02-20 21:47:23 | entity: <data><node>node_w98mus0203</node><entry><content>content_hofy400206</content></entry></data>

2022-02-20 21:47:23 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 21 Feb 2022 05:47:23 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-20 21:47:23 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>9fb38e10-b559-49b8-bdfe-aaf54f90ad33</value></item-id></result>

2022-02-20 21:47:23 | contains: true

2022-02-20 21:47:28 | [Mutex] waiting for: [user_regularw6fedq0202@test-domain.com:message:received:content_hofy400206]

2022-02-20 21:47:28 | [Mutex] received everything.

2022-02-20 21:47:28 | [Mutex] isItemNotified: user_regularw6fedq0202@test-domain.com:message:received:content_hofy400206 :: true

2022-02-20 21:47:28 |


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


2022-02-20 21:47:28 | [Mutex] received everything.

2022-02-20 21:47:28 | [Mutex] isItemNotified: node_w98mus0203:subscribe_node:success :: true

2022-02-20 21:47:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-20 21:47:28 | command: <data><node>node_w98mus0203</node><expire-at>2022-02-21T05:47:33Z</expire-at><entry><content>content_5hrfh60207</content></entry></data>

2022-02-20 21:47:28 | target: http://localhost:8088

2022-02-20 21:47:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-02-20 21:47:28 | entity: <data><node>node_w98mus0203</node><expire-at>2022-02-21T05:47:33Z</expire-at><entry><content>content_5hrfh60207</content></entry></data>

2022-02-20 21:47:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 21 Feb 2022 05:47:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-20 21:47:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d075f801-5dae-4ec6-bbf5-a610b3370759</value></item-id></result>

2022-02-20 21:47:28 | contains: true

2022-02-20 21:47:36 | [Mutex] waiting for: [user_regularw6fedq0202@test-domain.com:message:received:content_5hrfh60207]

2022-02-20 21:47:36 | [Mutex] waiting for: [user_regularw6fedq0202@test-domain.com:message:received:content_5hrfh60207]

2022-02-20 21:47:51 | [Mutex] timeout. Not received [user_regularw6fedq0202@test-domain.com:message:received:content_5hrfh60207]

2022-02-20 21:47:51 | [Mutex] received everything.

2022-02-20 21:47:51 | [Mutex] isItemNotified: user_regularw6fedq0202@test-domain.com:message:received:content_5hrfh60207 :: false

2022-02-20 21:47:51 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_5hrfh60207 :: true