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

Test duration: 45.332s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.656s
2020-06-18 22:40:55 |

2020-06-18 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-18 22:40:55 | ------------------------------------

2020-06-18 22:40:55 | [Mutex] isItemNotified: node_pul54j0203:exists :: false

2020-06-18 22:40:55 | [Mutex] waiting for: [node_pul54j0203:create_node]

2020-06-18 22:40:55 | [Mutex] received everything.

2020-06-18 22:40:55 | [Mutex] isItemNotified: node_pul54j0203:create_node:success :: true

2020-06-18 22:40:55 | [Mutex] waiting for: [node_pul54j0203:subscribe_node]

2020-06-18 22:40:55 | [Mutex] waiting for: [node_pul54j0203:subscribe_node]

2020-06-18 22:40:55 | [Mutex] received everything.

2020-06-18 22:40:55 | [Mutex] isItemNotified: node_pul54j0203:subscribe_node:success :: true

2020-06-18 22:40:55 |


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


2020-06-18 22:40:55 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-18 22:40:55 | command: <data><node>node_pul54j0203</node><entry><content>content_cryt3u0204</content></entry></data>

2020-06-18 22:40:55 | target: http://localhost:8088

2020-06-18 22:40:55 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-18 22:40:55 | entity: <data><node>node_pul54j0203</node><entry><content>content_cryt3u0204</content></entry></data>

2020-06-18 22:40:55 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:40:55 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-18 22:40:55 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f90fe3ea-4941-42d3-9052-943ccc123f04</value></item-id></result>

2020-06-18 22:40:55 | contains: true

2020-06-18 22:40:55 | [Mutex] received everything.

2020-06-18 22:40:55 | [Mutex] isItemNotified: user_regularaoen5c0202@localhost:message:received:content_cryt3u0204 :: true

2020-06-18 22:40:55 |


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


2020-06-18 22:40:55 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-18 22:40:55 | command: <data><node>node_pul54j0203</node><expire-at>2020-06-19T05:40:50Z</expire-at><entry><content>content_rqoupc0205</content></entry></data>

2020-06-18 22:40:55 | target: http://localhost:8088

2020-06-18 22:40:55 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-18 22:40:55 | entity: <data><node>node_pul54j0203</node><expire-at>2020-06-19T05:40:50Z</expire-at><entry><content>content_rqoupc0205</content></entry></data>

2020-06-18 22:40:55 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:40:55 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-18 22:40:55 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>cbc97cc8-aa67-4988-88b5-211d0ced3c77</value></item-id></result>

2020-06-18 22:40:55 | contains: true

2020-06-18 22:40:55 | [Mutex] waiting for: [user_regularaoen5c0202@localhost:message:received:content_rqoupc0205]

2020-06-18 22:41:10 | [Mutex] timeout. Not received [user_regularaoen5c0202@localhost:message:received:content_rqoupc0205]

2020-06-18 22:41:10 | [Mutex] isItemNotified: user_regularaoen5c0202@localhost:message:received:content_rqoupc0205 :: false

2020-06-18 22:41:10 |


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


2020-06-18 22:41:10 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-18 22:41:10 | command: <data><node>node_pul54j0203</node><entry><content>content_wc33fc0206</content></entry></data>

2020-06-18 22:41:10 | target: http://localhost:8088

2020-06-18 22:41:10 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-18 22:41:10 | entity: <data><node>node_pul54j0203</node><entry><content>content_wc33fc0206</content></entry></data>

2020-06-18 22:41:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:41:10 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-18 22:41:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>409cdfbe-3dcf-45a4-927d-aab95f359515</value></item-id></result>

2020-06-18 22:41:10 | contains: true

2020-06-18 22:41:16 | [Mutex] waiting for: [user_regularaoen5c0202@localhost:message:received:content_wc33fc0206]

2020-06-18 22:41:16 | [Mutex] waiting for: [user_regularaoen5c0202@localhost:message:received:content_wc33fc0206]

2020-06-18 22:41:16 | [Mutex] received everything.

2020-06-18 22:41:16 | [Mutex] isItemNotified: user_regularaoen5c0202@localhost:message:received:content_wc33fc0206 :: true

2020-06-18 22:41:16 |


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


2020-06-18 22:41:16 | [Mutex] received everything.

2020-06-18 22:41:16 | [Mutex] isItemNotified: node_pul54j0203:subscribe_node:success :: true

2020-06-18 22:41:16 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-18 22:41:16 | command: <data><node>node_pul54j0203</node><expire-at>2020-06-19T05:41:21Z</expire-at><entry><content>content_tvtuzd0207</content></entry></data>

2020-06-18 22:41:16 | target: http://localhost:8088

2020-06-18 22:41:16 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-18 22:41:16 | entity: <data><node>node_pul54j0203</node><expire-at>2020-06-19T05:41:21Z</expire-at><entry><content>content_tvtuzd0207</content></entry></data>

2020-06-18 22:41:16 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 19 Jun 2020 05:41:16 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-18 22:41:16 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7e0efb9e-a3e2-417e-9999-af6df632f62b</value></item-id></result>

2020-06-18 22:41:16 | contains: true

2020-06-18 22:41:24 | [Mutex] waiting for: [user_regularaoen5c0202@localhost:message:received:content_tvtuzd0207]

2020-06-18 22:41:24 | [Mutex] waiting for: [user_regularaoen5c0202@localhost:message:received:content_tvtuzd0207]

2020-06-18 22:41:24 | [Mutex] waiting for: [user_regularaoen5c0202@localhost:message:received:content_tvtuzd0207]

2020-06-18 22:41:39 | [Mutex] timeout. Not received [user_regularaoen5c0202@localhost:message:received:content_tvtuzd0207]

2020-06-18 22:41:39 | [Mutex] received everything.

2020-06-18 22:41:39 | [Mutex] isItemNotified: user_regularaoen5c0202@localhost:message:received:content_tvtuzd0207 :: false

2020-06-18 22:41:39 | [Mutex] isItemNotified: admin@localhost:message:received:content_tvtuzd0207 :: true