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

Test duration: 45.002s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.630s
2019-11-27 21:36:26 |

2019-11-27 21:36:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-27 21:36:26 | ------------------------------------

2019-11-27 21:36:26 | [Mutex] isItemNotified: node_3edr760184:exists :: false

2019-11-27 21:36:26 | [Mutex] waiting for: [node_3edr760184:create_node]

2019-11-27 21:36:26 | [Mutex] received everything.

2019-11-27 21:36:26 | [Mutex] isItemNotified: node_3edr760184:create_node:success :: true

2019-11-27 21:36:26 | [Mutex] waiting for: [node_3edr760184:subscribe_node]

2019-11-27 21:36:26 | [Mutex] received everything.

2019-11-27 21:36:26 | [Mutex] isItemNotified: node_3edr760184:subscribe_node:success :: true

2019-11-27 21:36:26 |


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


2019-11-27 21:36:26 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 21:36:26 | command: <data><node>node_3edr760184</node><entry><content>content_xsdsl70185</content></entry></data>

2019-11-27 21:36:26 | target: http://localhost:8088

2019-11-27 21:36:26 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-27 21:36:26 | entity: <data><node>node_3edr760184</node><entry><content>content_xsdsl70185</content></entry></data>

2019-11-27 21:36:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:36:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 21:36:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7f8fc467-df08-404c-98ce-b56a7ffb5f17</value></item-id></result>

2019-11-27 21:36:26 | contains: true

2019-11-27 21:36:26 | [Mutex] received everything.

2019-11-27 21:36:26 | [Mutex] isItemNotified: user_regularf4abs20183@localhost:message:received:content_xsdsl70185 :: true

2019-11-27 21:36:26 |


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


2019-11-27 21:36:26 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 21:36:26 | command: <data><node>node_3edr760184</node><expire-at>2019-11-28T05:36:21Z</expire-at><entry><content>content_yykbfe0186</content></entry></data>

2019-11-27 21:36:26 | target: http://localhost:8088

2019-11-27 21:36:26 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-27 21:36:26 | entity: <data><node>node_3edr760184</node><expire-at>2019-11-28T05:36:21Z</expire-at><entry><content>content_yykbfe0186</content></entry></data>

2019-11-27 21:36:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:36:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 21:36:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>11f24503-37f6-4420-91e6-3e3e8a46246a</value></item-id></result>

2019-11-27 21:36:26 | contains: true

2019-11-27 21:36:26 | [Mutex] waiting for: [user_regularf4abs20183@localhost:message:received:content_yykbfe0186]

2019-11-27 21:36:41 | [Mutex] timeout. Not received [user_regularf4abs20183@localhost:message:received:content_yykbfe0186]

2019-11-27 21:36:41 | [Mutex] isItemNotified: user_regularf4abs20183@localhost:message:received:content_yykbfe0186 :: false

2019-11-27 21:36:41 |


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


2019-11-27 21:36:41 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 21:36:41 | command: <data><node>node_3edr760184</node><entry><content>content_jupiol0187</content></entry></data>

2019-11-27 21:36:41 | target: http://localhost:8088

2019-11-27 21:36:41 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-27 21:36:41 | entity: <data><node>node_3edr760184</node><entry><content>content_jupiol0187</content></entry></data>

2019-11-27 21:36:41 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:36:41 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 21:36:41 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1a547da7-0168-4a34-8df1-c1c4e0f1bd6e</value></item-id></result>

2019-11-27 21:36:41 | contains: true

2019-11-27 21:36:46 | [Mutex] waiting for: [user_regularf4abs20183@localhost:message:received:content_jupiol0187]

2019-11-27 21:36:46 | [Mutex] waiting for: [user_regularf4abs20183@localhost:message:received:content_jupiol0187]

2019-11-27 21:36:46 | [Mutex] received everything.

2019-11-27 21:36:46 | [Mutex] isItemNotified: user_regularf4abs20183@localhost:message:received:content_jupiol0187 :: true

2019-11-27 21:36:46 |


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


2019-11-27 21:36:46 | [Mutex] received everything.

2019-11-27 21:36:46 | [Mutex] isItemNotified: node_3edr760184:subscribe_node:success :: true

2019-11-27 21:36:46 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 21:36:46 | command: <data><node>node_3edr760184</node><expire-at>2019-11-28T05:36:51Z</expire-at><entry><content>content_utnvqp0188</content></entry></data>

2019-11-27 21:36:46 | target: http://localhost:8088

2019-11-27 21:36:46 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-27 21:36:46 | entity: <data><node>node_3edr760184</node><expire-at>2019-11-28T05:36:51Z</expire-at><entry><content>content_utnvqp0188</content></entry></data>

2019-11-27 21:36:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 05:36:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 21:36:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4c5b03ea-19e3-4c5d-82a0-73fccd89273a</value></item-id></result>

2019-11-27 21:36:46 | contains: true

2019-11-27 21:36:54 | [Mutex] waiting for: [user_regularf4abs20183@localhost:message:received:content_utnvqp0188]

2019-11-27 21:36:54 | [Mutex] waiting for: [user_regularf4abs20183@localhost:message:received:content_utnvqp0188]

2019-11-27 21:37:09 | [Mutex] timeout. Not received [user_regularf4abs20183@localhost:message:received:content_utnvqp0188]

2019-11-27 21:37:09 | [Mutex] received everything.

2019-11-27 21:37:09 | [Mutex] isItemNotified: user_regularf4abs20183@localhost:message:received:content_utnvqp0188 :: false

2019-11-27 21:37:09 | [Mutex] isItemNotified: admin@localhost:message:received:content_utnvqp0188 :: true