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

Test duration: 45.337s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.648s
2020-05-26 23:20:14 |

2020-05-26 23:20:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-05-26 23:20:14 | ------------------------------------

2020-05-26 23:20:14 | [Mutex] isItemNotified: node_uekbbl0202:exists :: false

2020-05-26 23:20:14 | [Mutex] waiting for: [node_uekbbl0202:create_node]

2020-05-26 23:20:14 | [Mutex] received everything.

2020-05-26 23:20:14 | [Mutex] isItemNotified: node_uekbbl0202:create_node:success :: true

2020-05-26 23:20:14 | [Mutex] waiting for: [node_uekbbl0202:subscribe_node]

2020-05-26 23:20:14 | [Mutex] received everything.

2020-05-26 23:20:14 | [Mutex] isItemNotified: node_uekbbl0202:subscribe_node:success :: true

2020-05-26 23:20:14 |


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


2020-05-26 23:20:14 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-26 23:20:14 | command: <data><node>node_uekbbl0202</node><entry><content>content_q5m41p0203</content></entry></data>

2020-05-26 23:20:14 | target: http://localhost:8088

2020-05-26 23:20:14 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-26 23:20:14 | entity: <data><node>node_uekbbl0202</node><entry><content>content_q5m41p0203</content></entry></data>

2020-05-26 23:20:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 06:20:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-26 23:20:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>37983186-67ba-424e-a6a7-32a9271001f6</value></item-id></result>

2020-05-26 23:20:14 | contains: true

2020-05-26 23:20:14 | [Mutex] received everything.

2020-05-26 23:20:14 | [Mutex] isItemNotified: user_regularlgclgi0201@localhost:message:received:content_q5m41p0203 :: true

2020-05-26 23:20:14 |


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


2020-05-26 23:20:14 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-26 23:20:14 | command: <data><node>node_uekbbl0202</node><expire-at>2020-05-27T06:20:09Z</expire-at><entry><content>content_gga8gr0204</content></entry></data>

2020-05-26 23:20:14 | target: http://localhost:8088

2020-05-26 23:20:14 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-26 23:20:14 | entity: <data><node>node_uekbbl0202</node><expire-at>2020-05-27T06:20:09Z</expire-at><entry><content>content_gga8gr0204</content></entry></data>

2020-05-26 23:20:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 06:20:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-26 23:20:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5c4cdef2-b9f6-47bc-833f-2cd711a7dff4</value></item-id></result>

2020-05-26 23:20:14 | contains: true

2020-05-26 23:20:14 | [Mutex] waiting for: [user_regularlgclgi0201@localhost:message:received:content_gga8gr0204]

2020-05-26 23:20:29 | [Mutex] timeout. Not received [user_regularlgclgi0201@localhost:message:received:content_gga8gr0204]

2020-05-26 23:20:29 | [Mutex] isItemNotified: user_regularlgclgi0201@localhost:message:received:content_gga8gr0204 :: false

2020-05-26 23:20:29 |


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


2020-05-26 23:20:29 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-26 23:20:29 | command: <data><node>node_uekbbl0202</node><entry><content>content_s50mj70205</content></entry></data>

2020-05-26 23:20:29 | target: http://localhost:8088

2020-05-26 23:20:29 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-26 23:20:29 | entity: <data><node>node_uekbbl0202</node><entry><content>content_s50mj70205</content></entry></data>

2020-05-26 23:20:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 06:20:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-26 23:20:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4cc18231-526d-4409-8eb6-ceb6f10ed79b</value></item-id></result>

2020-05-26 23:20:29 | contains: true

2020-05-26 23:20:34 | [Mutex] received everything.

2020-05-26 23:20:34 | [Mutex] isItemNotified: user_regularlgclgi0201@localhost:message:received:content_s50mj70205 :: true

2020-05-26 23:20:34 |


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


2020-05-26 23:20:34 | [Mutex] received everything.

2020-05-26 23:20:34 | [Mutex] isItemNotified: node_uekbbl0202:subscribe_node:success :: true

2020-05-26 23:20:34 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-26 23:20:34 | command: <data><node>node_uekbbl0202</node><expire-at>2020-05-27T06:20:39Z</expire-at><entry><content>content_eg4h4e0206</content></entry></data>

2020-05-26 23:20:34 | target: http://localhost:8088

2020-05-26 23:20:34 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-26 23:20:34 | entity: <data><node>node_uekbbl0202</node><expire-at>2020-05-27T06:20:39Z</expire-at><entry><content>content_eg4h4e0206</content></entry></data>

2020-05-26 23:20:34 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 May 2020 06:20:34 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-26 23:20:34 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d1b3ae61-6f73-422c-a0e1-244f71fddf5f</value></item-id></result>

2020-05-26 23:20:34 | contains: true

2020-05-26 23:20:42 | [Mutex] waiting for: [user_regularlgclgi0201@localhost:message:received:content_eg4h4e0206]

2020-05-26 23:20:42 | [Mutex] waiting for: [user_regularlgclgi0201@localhost:message:received:content_eg4h4e0206]

2020-05-26 23:20:42 | [Mutex] waiting for: [user_regularlgclgi0201@localhost:message:received:content_eg4h4e0206]

2020-05-26 23:20:57 | [Mutex] timeout. Not received [user_regularlgclgi0201@localhost:message:received:content_eg4h4e0206]

2020-05-26 23:20:57 | [Mutex] received everything.

2020-05-26 23:20:57 | [Mutex] isItemNotified: user_regularlgclgi0201@localhost:message:received:content_eg4h4e0206 :: false

2020-05-26 23:20:57 | [Mutex] isItemNotified: admin@localhost:message:received:content_eg4h4e0206 :: true