REST: Item publication on PubSub node with message expiration using REST API - #2959

Test duration: 44.949s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.643s
2020-05-27 22:49:28 |

2020-05-27 22:49:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-05-27 22:49:28 | ------------------------------------

2020-05-27 22:49:28 | [Mutex] isItemNotified: node_6wdzyp0206:exists :: false

2020-05-27 22:49:28 | [Mutex] waiting for: [node_6wdzyp0206:create_node]

2020-05-27 22:49:28 | [Mutex] received everything.

2020-05-27 22:49:28 | [Mutex] isItemNotified: node_6wdzyp0206:create_node:success :: true

2020-05-27 22:49:28 | [Mutex] waiting for: [node_6wdzyp0206:subscribe_node]

2020-05-27 22:49:28 | [Mutex] received everything.

2020-05-27 22:49:28 | [Mutex] isItemNotified: node_6wdzyp0206:subscribe_node:success :: true

2020-05-27 22:49:28 |


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


2020-05-27 22:49:28 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-27 22:49:28 | command: <data><node>node_6wdzyp0206</node><entry><content>content_w3l32n0207</content></entry></data>

2020-05-27 22:49:28 | target: http://localhost:8088

2020-05-27 22:49:28 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-27 22:49:28 | entity: <data><node>node_6wdzyp0206</node><entry><content>content_w3l32n0207</content></entry></data>

2020-05-27 22:49:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:49:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-27 22:49:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4118e380-f43e-4c34-8c47-95eee05e360f</value></item-id></result>

2020-05-27 22:49:28 | contains: true

2020-05-27 22:49:28 | [Mutex] received everything.

2020-05-27 22:49:28 | [Mutex] isItemNotified: user_regular56625r0205@localhost:message:received:content_w3l32n0207 :: true

2020-05-27 22:49:28 |


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


2020-05-27 22:49:28 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-27 22:49:28 | command: <data><node>node_6wdzyp0206</node><expire-at>2020-05-28T05:49:23Z</expire-at><entry><content>content_cnnv4a0208</content></entry></data>

2020-05-27 22:49:28 | target: http://localhost:8088

2020-05-27 22:49:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-27 22:49:28 | entity: <data><node>node_6wdzyp0206</node><expire-at>2020-05-28T05:49:23Z</expire-at><entry><content>content_cnnv4a0208</content></entry></data>

2020-05-27 22:49:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:49:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-27 22:49:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1ba2ec8d-eb64-4d9c-9572-b7f8a9f7e240</value></item-id></result>

2020-05-27 22:49:28 | contains: true

2020-05-27 22:49:28 | [Mutex] waiting for: [user_regular56625r0205@localhost:message:received:content_cnnv4a0208]

2020-05-27 22:49:43 | [Mutex] timeout. Not received [user_regular56625r0205@localhost:message:received:content_cnnv4a0208]

2020-05-27 22:49:43 | [Mutex] isItemNotified: user_regular56625r0205@localhost:message:received:content_cnnv4a0208 :: false

2020-05-27 22:49:43 |


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


2020-05-27 22:49:43 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-27 22:49:43 | command: <data><node>node_6wdzyp0206</node><entry><content>content_il2bj50209</content></entry></data>

2020-05-27 22:49:43 | target: http://localhost:8088

2020-05-27 22:49:43 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-27 22:49:43 | entity: <data><node>node_6wdzyp0206</node><entry><content>content_il2bj50209</content></entry></data>

2020-05-27 22:49:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:49:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-27 22:49:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>90a24b41-10ee-424d-800c-34199bf7b930</value></item-id></result>

2020-05-27 22:49:43 | contains: true

2020-05-27 22:49:48 | [Mutex] waiting for: [user_regular56625r0205@localhost:message:received:content_il2bj50209]

2020-05-27 22:49:48 | [Mutex] waiting for: [user_regular56625r0205@localhost:message:received:content_il2bj50209]

2020-05-27 22:49:48 | [Mutex] received everything.

2020-05-27 22:49:48 | [Mutex] isItemNotified: user_regular56625r0205@localhost:message:received:content_il2bj50209 :: true

2020-05-27 22:49:48 |


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


2020-05-27 22:49:48 | [Mutex] received everything.

2020-05-27 22:49:48 | [Mutex] isItemNotified: node_6wdzyp0206:subscribe_node:success :: true

2020-05-27 22:49:48 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-27 22:49:48 | command: <data><node>node_6wdzyp0206</node><expire-at>2020-05-28T05:49:53Z</expire-at><entry><content>content_f4czwk0210</content></entry></data>

2020-05-27 22:49:48 | target: http://localhost:8088

2020-05-27 22:49:48 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-27 22:49:48 | entity: <data><node>node_6wdzyp0206</node><expire-at>2020-05-28T05:49:53Z</expire-at><entry><content>content_f4czwk0210</content></entry></data>

2020-05-27 22:49:48 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 May 2020 05:49:48 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-27 22:49:48 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>133940d6-b5c2-462d-9b07-faf6c85fdd38</value></item-id></result>

2020-05-27 22:49:48 | contains: true

2020-05-27 22:49:56 | [Mutex] waiting for: [user_regular56625r0205@localhost:message:received:content_f4czwk0210]

2020-05-27 22:49:56 | [Mutex] waiting for: [user_regular56625r0205@localhost:message:received:content_f4czwk0210]

2020-05-27 22:50:11 | [Mutex] timeout. Not received [user_regular56625r0205@localhost:message:received:content_f4czwk0210]

2020-05-27 22:50:11 | [Mutex] received everything.

2020-05-27 22:50:11 | [Mutex] isItemNotified: user_regular56625r0205@localhost:message:received:content_f4czwk0210 :: false

2020-05-27 22:50:11 | [Mutex] isItemNotified: admin@localhost:message:received:content_f4czwk0210 :: true