Generated by TestNG with ReportNG at 22:23 PDT on Monday 20 September 2021
root@b2c2a8eba6e6 / 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.541s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.658s
2021-09-20 22:38:13 |

2021-09-20 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2021-09-20 22:38:13 | ------------------------------------

2021-09-20 22:38:13 | [Mutex] isItemNotified: node_snas4n0203:exists :: false

2021-09-20 22:38:13 | [Mutex] waiting for: [node_snas4n0203:create_node]

2021-09-20 22:38:13 | [Mutex] received everything.

2021-09-20 22:38:13 | [Mutex] isItemNotified: node_snas4n0203:create_node:success :: true

2021-09-20 22:38:13 | [Mutex] waiting for: [node_snas4n0203:subscribe_node]

2021-09-20 22:38:13 | [Mutex] waiting for: [node_snas4n0203:subscribe_node]

2021-09-20 22:38:13 | [Mutex] received everything.

2021-09-20 22:38:13 | [Mutex] isItemNotified: node_snas4n0203:subscribe_node:success :: true

2021-09-20 22:38:13 |


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


2021-09-20 22:38:13 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-09-20 22:38:13 | command: <data><node>node_snas4n0203</node><entry><content>content_nqiz3h0204</content></entry></data>

2021-09-20 22:38:13 | target: http://localhost:8088

2021-09-20 22:38:13 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-09-20 22:38:13 | entity: <data><node>node_snas4n0203</node><entry><content>content_nqiz3h0204</content></entry></data>

2021-09-20 22:38:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 21 Sep 2021 05:38:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-09-20 22:38:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>40f3d499-ddbb-4220-84b1-2701c35fc429</value></item-id></result>

2021-09-20 22:38:13 | contains: true

2021-09-20 22:38:13 | [Mutex] waiting for: [user_regularn0dp7j0202@test-domain.com:message:received:content_nqiz3h0204]

2021-09-20 22:38:13 | [Mutex] received everything.

2021-09-20 22:38:13 | [Mutex] isItemNotified: user_regularn0dp7j0202@test-domain.com:message:received:content_nqiz3h0204 :: true

2021-09-20 22:38:13 |


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


2021-09-20 22:38:13 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-09-20 22:38:13 | command: <data><node>node_snas4n0203</node><expire-at>2021-09-21T05:38:08Z</expire-at><entry><content>content_ypczi40205</content></entry></data>

2021-09-20 22:38:13 | target: http://localhost:8088

2021-09-20 22:38:13 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-09-20 22:38:13 | entity: <data><node>node_snas4n0203</node><expire-at>2021-09-21T05:38:08Z</expire-at><entry><content>content_ypczi40205</content></entry></data>

2021-09-20 22:38:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 21 Sep 2021 05:38:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-09-20 22:38:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>9dbf19bc-2c0d-47c0-8fb9-1693649c1485</value></item-id></result>

2021-09-20 22:38:13 | contains: true

2021-09-20 22:38:13 | [Mutex] waiting for: [user_regularn0dp7j0202@test-domain.com:message:received:content_ypczi40205]

2021-09-20 22:38:28 | [Mutex] timeout. Not received [user_regularn0dp7j0202@test-domain.com:message:received:content_ypczi40205]

2021-09-20 22:38:28 | [Mutex] isItemNotified: user_regularn0dp7j0202@test-domain.com:message:received:content_ypczi40205 :: false

2021-09-20 22:38:28 |


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


2021-09-20 22:38:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-09-20 22:38:28 | command: <data><node>node_snas4n0203</node><entry><content>content_2g040a0206</content></entry></data>

2021-09-20 22:38:28 | target: http://localhost:8088

2021-09-20 22:38:28 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-09-20 22:38:28 | entity: <data><node>node_snas4n0203</node><entry><content>content_2g040a0206</content></entry></data>

2021-09-20 22:38:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 21 Sep 2021 05:38:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-09-20 22:38:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>eed47908-3790-4e89-a1f9-d8d1b8b9830b</value></item-id></result>

2021-09-20 22:38:28 | contains: true

2021-09-20 22:38:33 | [Mutex] waiting for: [user_regularn0dp7j0202@test-domain.com:message:received:content_2g040a0206]

2021-09-20 22:38:33 | [Mutex] received everything.

2021-09-20 22:38:33 | [Mutex] isItemNotified: user_regularn0dp7j0202@test-domain.com:message:received:content_2g040a0206 :: true

2021-09-20 22:38:33 |


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


2021-09-20 22:38:33 | [Mutex] received everything.

2021-09-20 22:38:33 | [Mutex] isItemNotified: node_snas4n0203:subscribe_node:success :: true

2021-09-20 22:38:33 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-09-20 22:38:33 | command: <data><node>node_snas4n0203</node><expire-at>2021-09-21T05:38:38Z</expire-at><entry><content>content_72xnb80207</content></entry></data>

2021-09-20 22:38:33 | target: http://localhost:8088

2021-09-20 22:38:33 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-09-20 22:38:33 | entity: <data><node>node_snas4n0203</node><expire-at>2021-09-21T05:38:38Z</expire-at><entry><content>content_72xnb80207</content></entry></data>

2021-09-20 22:38:33 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 21 Sep 2021 05:38:33 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-09-20 22:38:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5b70f268-1aa2-466c-8af5-4a98a2a9115a</value></item-id></result>

2021-09-20 22:38:33 | contains: true

2021-09-20 22:38:41 | [Mutex] waiting for: [user_regularn0dp7j0202@test-domain.com:message:received:content_72xnb80207]

2021-09-20 22:38:41 | [Mutex] waiting for: [user_regularn0dp7j0202@test-domain.com:message:received:content_72xnb80207]

2021-09-20 22:38:56 | [Mutex] timeout. Not received [user_regularn0dp7j0202@test-domain.com:message:received:content_72xnb80207]

2021-09-20 22:38:56 | [Mutex] received everything.

2021-09-20 22:38:56 | [Mutex] isItemNotified: user_regularn0dp7j0202@test-domain.com:message:received:content_72xnb80207 :: false

2021-09-20 22:38:56 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_72xnb80207 :: true