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

Test duration: 45.346s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.658s
2020-01-15 19:22:12 |

2020-01-15 19:22:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-01-15 19:22:12 | ------------------------------------

2020-01-15 19:22:12 | [Mutex] isItemNotified: node_xfneh00205:exists :: false

2020-01-15 19:22:12 | [Mutex] waiting for: [node_xfneh00205:create_node]

2020-01-15 19:22:12 | [Mutex] received everything.

2020-01-15 19:22:12 | [Mutex] isItemNotified: node_xfneh00205:create_node:success :: true

2020-01-15 19:22:12 | [Mutex] waiting for: [node_xfneh00205:subscribe_node]

2020-01-15 19:22:12 | [Mutex] received everything.

2020-01-15 19:22:12 | [Mutex] isItemNotified: node_xfneh00205:subscribe_node:success :: true

2020-01-15 19:22:12 |


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


2020-01-15 19:22:12 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-15 19:22:12 | command: <data><node>node_xfneh00205</node><entry><content>content_vfjkj60206</content></entry></data>

2020-01-15 19:22:12 | target: http://localhost:8088

2020-01-15 19:22:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-01-15 19:22:12 | entity: <data><node>node_xfneh00205</node><entry><content>content_vfjkj60206</content></entry></data>

2020-01-15 19:22:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jan 2020 03:22:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-15 19:22:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>98eaac5b-2255-46b7-bdfe-f9e59f416c5e</value></item-id></result>

2020-01-15 19:22:12 | contains: true

2020-01-15 19:22:12 | [Mutex] received everything.

2020-01-15 19:22:12 | [Mutex] isItemNotified: user_regular78rt980204@localhost:message:received:content_vfjkj60206 :: true

2020-01-15 19:22:12 |


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


2020-01-15 19:22:12 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-15 19:22:12 | command: <data><node>node_xfneh00205</node><expire-at>2020-01-16T03:22:07Z</expire-at><entry><content>content_oz0ttl0207</content></entry></data>

2020-01-15 19:22:12 | target: http://localhost:8088

2020-01-15 19:22:12 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-01-15 19:22:12 | entity: <data><node>node_xfneh00205</node><expire-at>2020-01-16T03:22:07Z</expire-at><entry><content>content_oz0ttl0207</content></entry></data>

2020-01-15 19:22:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jan 2020 03:22:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-15 19:22:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c913bf63-7b11-42a4-a3fa-7250bcec4e82</value></item-id></result>

2020-01-15 19:22:12 | contains: true

2020-01-15 19:22:12 | [Mutex] waiting for: [user_regular78rt980204@localhost:message:received:content_oz0ttl0207]

2020-01-15 19:22:27 | [Mutex] timeout. Not received [user_regular78rt980204@localhost:message:received:content_oz0ttl0207]

2020-01-15 19:22:27 | [Mutex] isItemNotified: user_regular78rt980204@localhost:message:received:content_oz0ttl0207 :: false

2020-01-15 19:22:27 |


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


2020-01-15 19:22:27 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-15 19:22:27 | command: <data><node>node_xfneh00205</node><entry><content>content_709yt70208</content></entry></data>

2020-01-15 19:22:27 | target: http://localhost:8088

2020-01-15 19:22:27 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-01-15 19:22:27 | entity: <data><node>node_xfneh00205</node><entry><content>content_709yt70208</content></entry></data>

2020-01-15 19:22:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jan 2020 03:22:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-15 19:22:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c968ec39-0a77-43d0-adfd-d3f2903b1d23</value></item-id></result>

2020-01-15 19:22:27 | contains: true

2020-01-15 19:22:33 | [Mutex] waiting for: [user_regular78rt980204@localhost:message:received:content_709yt70208]

2020-01-15 19:22:33 | [Mutex] waiting for: [user_regular78rt980204@localhost:message:received:content_709yt70208]

2020-01-15 19:22:33 | [Mutex] received everything.

2020-01-15 19:22:33 | [Mutex] isItemNotified: user_regular78rt980204@localhost:message:received:content_709yt70208 :: true

2020-01-15 19:22:33 |


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


2020-01-15 19:22:33 | [Mutex] received everything.

2020-01-15 19:22:33 | [Mutex] isItemNotified: node_xfneh00205:subscribe_node:success :: true

2020-01-15 19:22:33 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-15 19:22:33 | command: <data><node>node_xfneh00205</node><expire-at>2020-01-16T03:22:38Z</expire-at><entry><content>content_yn0sfh0209</content></entry></data>

2020-01-15 19:22:33 | target: http://localhost:8088

2020-01-15 19:22:33 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-01-15 19:22:33 | entity: <data><node>node_xfneh00205</node><expire-at>2020-01-16T03:22:38Z</expire-at><entry><content>content_yn0sfh0209</content></entry></data>

2020-01-15 19:22:33 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 16 Jan 2020 03:22:33 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-15 19:22:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>10998441-8cdc-4ba4-9a7c-c851492ef590</value></item-id></result>

2020-01-15 19:22:33 | contains: true

2020-01-15 19:22:41 | [Mutex] waiting for: [user_regular78rt980204@localhost:message:received:content_yn0sfh0209]

2020-01-15 19:22:41 | [Mutex] waiting for: [user_regular78rt980204@localhost:message:received:content_yn0sfh0209]

2020-01-15 19:22:56 | [Mutex] timeout. Not received [user_regular78rt980204@localhost:message:received:content_yn0sfh0209]

2020-01-15 19:22:56 | [Mutex] received everything.

2020-01-15 19:22:56 | [Mutex] isItemNotified: user_regular78rt980204@localhost:message:received:content_yn0sfh0209 :: false

2020-01-15 19:22:56 | [Mutex] isItemNotified: admin@localhost:message:received:content_yn0sfh0209 :: true