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

Test duration: 45.441s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.721s
2020-06-24 23:22:27 |

2020-06-24 23:22:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-24 23:22:27 | ------------------------------------

2020-06-24 23:22:27 | [Mutex] isItemNotified: node_78tjus0206:exists :: false

2020-06-24 23:22:27 | [Mutex] waiting for: [node_78tjus0206:create_node]

2020-06-24 23:22:27 | [Mutex] received everything.

2020-06-24 23:22:27 | [Mutex] isItemNotified: node_78tjus0206:create_node:success :: true

2020-06-24 23:22:27 | [Mutex] waiting for: [node_78tjus0206:subscribe_node]

2020-06-24 23:22:27 | [Mutex] received everything.

2020-06-24 23:22:27 | [Mutex] isItemNotified: node_78tjus0206:subscribe_node:success :: true

2020-06-24 23:22:27 |


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


2020-06-24 23:22:27 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:22:27 | command: <data><node>node_78tjus0206</node><entry><content>content_zu9mf0207</content></entry></data>

2020-06-24 23:22:27 | target: http://localhost:8088

2020-06-24 23:22:27 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2020-06-24 23:22:27 | entity: <data><node>node_78tjus0206</node><entry><content>content_zu9mf0207</content></entry></data>

2020-06-24 23:22:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:22:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:22:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>80ee4c3e-cd3a-4fb2-8619-09ae72e663c2</value></item-id></result>

2020-06-24 23:22:27 | contains: true

2020-06-24 23:22:27 | [Mutex] received everything.

2020-06-24 23:22:27 | [Mutex] isItemNotified: user_regularmzs38d0205@localhost:message:received:content_zu9mf0207 :: true

2020-06-24 23:22:27 |


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


2020-06-24 23:22:27 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:22:27 | command: <data><node>node_78tjus0206</node><expire-at>2020-06-25T06:22:22Z</expire-at><entry><content>content_wrtoso0208</content></entry></data>

2020-06-24 23:22:27 | target: http://localhost:8088

2020-06-24 23:22:27 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-24 23:22:27 | entity: <data><node>node_78tjus0206</node><expire-at>2020-06-25T06:22:22Z</expire-at><entry><content>content_wrtoso0208</content></entry></data>

2020-06-24 23:22:27 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:22:27 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:22:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>1ef2c394-0838-4fc6-88fa-12d1daa86db3</value></item-id></result>

2020-06-24 23:22:27 | contains: true

2020-06-24 23:22:27 | [Mutex] waiting for: [user_regularmzs38d0205@localhost:message:received:content_wrtoso0208]

2020-06-24 23:22:42 | [Mutex] timeout. Not received [user_regularmzs38d0205@localhost:message:received:content_wrtoso0208]

2020-06-24 23:22:42 | [Mutex] isItemNotified: user_regularmzs38d0205@localhost:message:received:content_wrtoso0208 :: false

2020-06-24 23:22:42 |


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


2020-06-24 23:22:42 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:22:42 | command: <data><node>node_78tjus0206</node><entry><content>content_ml6zju0209</content></entry></data>

2020-06-24 23:22:42 | target: http://localhost:8088

2020-06-24 23:22:42 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-24 23:22:42 | entity: <data><node>node_78tjus0206</node><entry><content>content_ml6zju0209</content></entry></data>

2020-06-24 23:22:42 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:22:42 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:22:42 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>671f2d10-584e-46ec-a794-5859670e97fb</value></item-id></result>

2020-06-24 23:22:42 | contains: true

2020-06-24 23:22:47 | [Mutex] waiting for: [user_regularmzs38d0205@localhost:message:received:content_ml6zju0209]

2020-06-24 23:22:47 | [Mutex] waiting for: [user_regularmzs38d0205@localhost:message:received:content_ml6zju0209]

2020-06-24 23:22:47 | [Mutex] received everything.

2020-06-24 23:22:47 | [Mutex] isItemNotified: user_regularmzs38d0205@localhost:message:received:content_ml6zju0209 :: true

2020-06-24 23:22:47 |


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


2020-06-24 23:22:47 | [Mutex] received everything.

2020-06-24 23:22:47 | [Mutex] isItemNotified: node_78tjus0206:subscribe_node:success :: true

2020-06-24 23:22:47 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:22:47 | command: <data><node>node_78tjus0206</node><expire-at>2020-06-25T06:22:52Z</expire-at><entry><content>content_phwiob0210</content></entry></data>

2020-06-24 23:22:47 | target: http://localhost:8088

2020-06-24 23:22:47 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-24 23:22:47 | entity: <data><node>node_78tjus0206</node><expire-at>2020-06-25T06:22:52Z</expire-at><entry><content>content_phwiob0210</content></entry></data>

2020-06-24 23:22:47 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:22:47 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:22:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>42c7596f-8417-463d-81a6-97409963b2d4</value></item-id></result>

2020-06-24 23:22:47 | contains: true

2020-06-24 23:22:55 | [Mutex] waiting for: [user_regularmzs38d0205@localhost:message:received:content_phwiob0210]

2020-06-24 23:22:55 | [Mutex] waiting for: [user_regularmzs38d0205@localhost:message:received:content_phwiob0210]

2020-06-24 23:23:10 | [Mutex] timeout. Not received [user_regularmzs38d0205@localhost:message:received:content_phwiob0210]

2020-06-24 23:23:10 | [Mutex] received everything.

2020-06-24 23:23:10 | [Mutex] isItemNotified: user_regularmzs38d0205@localhost:message:received:content_phwiob0210 :: false

2020-06-24 23:23:10 | [Mutex] isItemNotified: admin@localhost:message:received:content_phwiob0210 :: true