Generated by TestNG with ReportNG at 21:43 PST on Monday 23 November 2020
root@43fec6d4badf / 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.337s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.798s
2020-11-23 21:59:09 |

2020-11-23 21:59:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-11-23 21:59:09 | ------------------------------------

2020-11-23 21:59:09 | [Mutex] isItemNotified: node_54bhke0203:exists :: false

2020-11-23 21:59:09 | [Mutex] waiting for: [node_54bhke0203:create_node]

2020-11-23 21:59:09 | [Mutex] received everything.

2020-11-23 21:59:09 | [Mutex] isItemNotified: node_54bhke0203:create_node:success :: true

2020-11-23 21:59:09 | [Mutex] waiting for: [node_54bhke0203:subscribe_node]

2020-11-23 21:59:09 | [Mutex] waiting for: [node_54bhke0203:subscribe_node]

2020-11-23 21:59:09 | [Mutex] received everything.

2020-11-23 21:59:09 | [Mutex] isItemNotified: node_54bhke0203:subscribe_node:success :: true

2020-11-23 21:59:09 |


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


2020-11-23 21:59:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-11-23 21:59:09 | command: <data><node>node_54bhke0203</node><entry><content>content_2tcgda0204</content></entry></data>

2020-11-23 21:59:09 | target: http://localhost:8088

2020-11-23 21:59:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-11-23 21:59:09 | entity: <data><node>node_54bhke0203</node><entry><content>content_2tcgda0204</content></entry></data>

2020-11-23 21:59:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 24 Nov 2020 05:59:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-11-23 21:59:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6cb99b1e-16e9-400e-a549-8efb7087ace7</value></item-id></result>

2020-11-23 21:59:09 | contains: true

2020-11-23 21:59:09 | [Mutex] waiting for: [user_regularw38k1g0202@test-domain.com:message:received:content_2tcgda0204]

2020-11-23 21:59:09 | [Mutex] received everything.

2020-11-23 21:59:09 | [Mutex] isItemNotified: user_regularw38k1g0202@test-domain.com:message:received:content_2tcgda0204 :: true

2020-11-23 21:59:09 |


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


2020-11-23 21:59:09 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-11-23 21:59:09 | command: <data><node>node_54bhke0203</node><expire-at>2020-11-24T05:59:04Z</expire-at><entry><content>content_w8bgzq0205</content></entry></data>

2020-11-23 21:59:09 | target: http://localhost:8088

2020-11-23 21:59:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-11-23 21:59:09 | entity: <data><node>node_54bhke0203</node><expire-at>2020-11-24T05:59:04Z</expire-at><entry><content>content_w8bgzq0205</content></entry></data>

2020-11-23 21:59:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 24 Nov 2020 05:59:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-11-23 21:59:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5985ca15-173a-43fa-a20b-049de6df941a</value></item-id></result>

2020-11-23 21:59:09 | contains: true

2020-11-23 21:59:09 | [Mutex] waiting for: [user_regularw38k1g0202@test-domain.com:message:received:content_w8bgzq0205]

2020-11-23 21:59:24 | [Mutex] timeout. Not received [user_regularw38k1g0202@test-domain.com:message:received:content_w8bgzq0205]

2020-11-23 21:59:24 | [Mutex] isItemNotified: user_regularw38k1g0202@test-domain.com:message:received:content_w8bgzq0205 :: false

2020-11-23 21:59:24 |


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


2020-11-23 21:59:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-11-23 21:59:24 | command: <data><node>node_54bhke0203</node><entry><content>content_nunyox0206</content></entry></data>

2020-11-23 21:59:24 | target: http://localhost:8088

2020-11-23 21:59:24 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-11-23 21:59:24 | entity: <data><node>node_54bhke0203</node><entry><content>content_nunyox0206</content></entry></data>

2020-11-23 21:59:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 24 Nov 2020 05:59:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-11-23 21:59:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b9b1eb54-6ca2-44a4-8f35-2cb4e9c9d5fe</value></item-id></result>

2020-11-23 21:59:24 | contains: true

2020-11-23 21:59:29 | [Mutex] waiting for: [user_regularw38k1g0202@test-domain.com:message:received:content_nunyox0206]

2020-11-23 21:59:29 | [Mutex] received everything.

2020-11-23 21:59:29 | [Mutex] isItemNotified: user_regularw38k1g0202@test-domain.com:message:received:content_nunyox0206 :: true

2020-11-23 21:59:29 |


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


2020-11-23 21:59:29 | [Mutex] received everything.

2020-11-23 21:59:29 | [Mutex] isItemNotified: node_54bhke0203:subscribe_node:success :: true

2020-11-23 21:59:30 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-11-23 21:59:30 | command: <data><node>node_54bhke0203</node><expire-at>2020-11-24T05:59:35Z</expire-at><entry><content>content_tpdb7m0207</content></entry></data>

2020-11-23 21:59:30 | target: http://localhost:8088

2020-11-23 21:59:30 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-11-23 21:59:30 | entity: <data><node>node_54bhke0203</node><expire-at>2020-11-24T05:59:35Z</expire-at><entry><content>content_tpdb7m0207</content></entry></data>

2020-11-23 21:59:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 24 Nov 2020 05:59:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-11-23 21:59:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>90b4a540-e986-480f-a9c3-1cc8a269dff1</value></item-id></result>

2020-11-23 21:59:30 | contains: true

2020-11-23 21:59:38 | [Mutex] waiting for: [user_regularw38k1g0202@test-domain.com:message:received:content_tpdb7m0207]

2020-11-23 21:59:53 | [Mutex] timeout. Not received [user_regularw38k1g0202@test-domain.com:message:received:content_tpdb7m0207]

2020-11-23 21:59:53 | [Mutex] received everything.

2020-11-23 21:59:53 | [Mutex] isItemNotified: user_regularw38k1g0202@test-domain.com:message:received:content_tpdb7m0207 :: false

2020-11-23 21:59:53 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_tpdb7m0207 :: true