Generated by TestNG with ReportNG at 21:27 PST on Monday 06 December 2021
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.360s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.645s
2021-12-06 21:42:17 |

2021-12-06 21:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2021-12-06 21:42:17 | ------------------------------------

2021-12-06 21:42:17 | [Mutex] isItemNotified: node_uwi1ex0203:exists :: false

2021-12-06 21:42:17 | [Mutex] waiting for: [node_uwi1ex0203:create_node]

2021-12-06 21:42:17 | [Mutex] received everything.

2021-12-06 21:42:17 | [Mutex] isItemNotified: node_uwi1ex0203:create_node:success :: true

2021-12-06 21:42:17 | [Mutex] waiting for: [node_uwi1ex0203:subscribe_node]

2021-12-06 21:42:17 | [Mutex] waiting for: [node_uwi1ex0203:subscribe_node]

2021-12-06 21:42:17 | [Mutex] received everything.

2021-12-06 21:42:17 | [Mutex] isItemNotified: node_uwi1ex0203:subscribe_node:success :: true

2021-12-06 21:42:17 |


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


2021-12-06 21:42:17 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-12-06 21:42:17 | command: <data><node>node_uwi1ex0203</node><entry><content>content_gw74820204</content></entry></data>

2021-12-06 21:42:17 | target: http://localhost:8088

2021-12-06 21:42:17 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-12-06 21:42:17 | entity: <data><node>node_uwi1ex0203</node><entry><content>content_gw74820204</content></entry></data>

2021-12-06 21:42:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 07 Dec 2021 05:42:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-12-06 21:42:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3cc612d8-c956-4121-865f-f9def07fcd29</value></item-id></result>

2021-12-06 21:42:17 | contains: true

2021-12-06 21:42:17 | [Mutex] received everything.

2021-12-06 21:42:17 | [Mutex] isItemNotified: user_regular9fiwag0202@test-domain.com:message:received:content_gw74820204 :: true

2021-12-06 21:42:17 |


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


2021-12-06 21:42:17 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-12-06 21:42:17 | command: <data><node>node_uwi1ex0203</node><expire-at>2021-12-07T05:42:12Z</expire-at><entry><content>content_j89l450205</content></entry></data>

2021-12-06 21:42:17 | target: http://localhost:8088

2021-12-06 21:42:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-12-06 21:42:17 | entity: <data><node>node_uwi1ex0203</node><expire-at>2021-12-07T05:42:12Z</expire-at><entry><content>content_j89l450205</content></entry></data>

2021-12-06 21:42:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 07 Dec 2021 05:42:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-12-06 21:42:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>120652e7-e073-45bf-a42b-1399d042bee5</value></item-id></result>

2021-12-06 21:42:17 | contains: true

2021-12-06 21:42:17 | [Mutex] waiting for: [user_regular9fiwag0202@test-domain.com:message:received:content_j89l450205]

2021-12-06 21:42:32 | [Mutex] timeout. Not received [user_regular9fiwag0202@test-domain.com:message:received:content_j89l450205]

2021-12-06 21:42:32 | [Mutex] isItemNotified: user_regular9fiwag0202@test-domain.com:message:received:content_j89l450205 :: false

2021-12-06 21:42:32 |


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


2021-12-06 21:42:32 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-12-06 21:42:32 | command: <data><node>node_uwi1ex0203</node><entry><content>content_eaaitw0206</content></entry></data>

2021-12-06 21:42:32 | target: http://localhost:8088

2021-12-06 21:42:32 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-12-06 21:42:32 | entity: <data><node>node_uwi1ex0203</node><entry><content>content_eaaitw0206</content></entry></data>

2021-12-06 21:42:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 07 Dec 2021 05:42:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-12-06 21:42:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>152ded16-441d-47c5-a1e9-14b250113af8</value></item-id></result>

2021-12-06 21:42:32 | contains: true

2021-12-06 21:42:37 | [Mutex] waiting for: [user_regular9fiwag0202@test-domain.com:message:received:content_eaaitw0206]

2021-12-06 21:42:37 | [Mutex] received everything.

2021-12-06 21:42:37 | [Mutex] isItemNotified: user_regular9fiwag0202@test-domain.com:message:received:content_eaaitw0206 :: true

2021-12-06 21:42:37 |


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


2021-12-06 21:42:37 | [Mutex] received everything.

2021-12-06 21:42:37 | [Mutex] isItemNotified: node_uwi1ex0203:subscribe_node:success :: true

2021-12-06 21:42:37 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-12-06 21:42:37 | command: <data><node>node_uwi1ex0203</node><expire-at>2021-12-07T05:42:42Z</expire-at><entry><content>content_q0shrx0207</content></entry></data>

2021-12-06 21:42:37 | target: http://localhost:8088

2021-12-06 21:42:37 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-12-06 21:42:37 | entity: <data><node>node_uwi1ex0203</node><expire-at>2021-12-07T05:42:42Z</expire-at><entry><content>content_q0shrx0207</content></entry></data>

2021-12-06 21:42:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 07 Dec 2021 05:42:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-12-06 21:42:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>856ba56c-66b9-4b83-a063-c7a4237a372d</value></item-id></result>

2021-12-06 21:42:37 | contains: true

2021-12-06 21:42:45 | [Mutex] waiting for: [user_regular9fiwag0202@test-domain.com:message:received:content_q0shrx0207]

2021-12-06 21:42:45 | [Mutex] waiting for: [user_regular9fiwag0202@test-domain.com:message:received:content_q0shrx0207]

2021-12-06 21:43:00 | [Mutex] timeout. Not received [user_regular9fiwag0202@test-domain.com:message:received:content_q0shrx0207]

2021-12-06 21:43:00 | [Mutex] received everything.

2021-12-06 21:43:00 | [Mutex] isItemNotified: user_regular9fiwag0202@test-domain.com:message:received:content_q0shrx0207 :: false

2021-12-06 21:43:00 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_q0shrx0207 :: true