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

Test duration: 44.779s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.496s
2020-01-02 19:20:53 |

2020-01-02 19:20:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-01-02 19:20:53 | ------------------------------------

2020-01-02 19:20:53 | [Mutex] isItemNotified: node_y5ixst0184:exists :: false

2020-01-02 19:20:53 | [Mutex] waiting for: [node_y5ixst0184:create_node]

2020-01-02 19:20:53 | [Mutex] received everything.

2020-01-02 19:20:53 | [Mutex] isItemNotified: node_y5ixst0184:create_node:success :: true

2020-01-02 19:20:53 | [Mutex] waiting for: [node_y5ixst0184:subscribe_node]

2020-01-02 19:20:53 | [Mutex] received everything.

2020-01-02 19:20:53 | [Mutex] isItemNotified: node_y5ixst0184:subscribe_node:success :: true

2020-01-02 19:20:53 |


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


2020-01-02 19:20:53 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-02 19:20:53 | command: <data><node>node_y5ixst0184</node><entry><content>content_97gt5w0185</content></entry></data>

2020-01-02 19:20:53 | target: http://localhost:8088

2020-01-02 19:20:53 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-01-02 19:20:53 | entity: <data><node>node_y5ixst0184</node><entry><content>content_97gt5w0185</content></entry></data>

2020-01-02 19:20:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:20:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-02 19:20:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>9002acd0-042d-4ca5-b944-3733fe32fb15</value></item-id></result>

2020-01-02 19:20:53 | contains: true

2020-01-02 19:20:53 | [Mutex] received everything.

2020-01-02 19:20:53 | [Mutex] isItemNotified: user_regulare0qxts0183@localhost:message:received:content_97gt5w0185 :: true

2020-01-02 19:20:53 |


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


2020-01-02 19:20:53 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-02 19:20:53 | command: <data><node>node_y5ixst0184</node><expire-at>2020-01-03T03:20:48Z</expire-at><entry><content>content_h22euc0186</content></entry></data>

2020-01-02 19:20:53 | target: http://localhost:8088

2020-01-02 19:20:53 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-01-02 19:20:53 | entity: <data><node>node_y5ixst0184</node><expire-at>2020-01-03T03:20:48Z</expire-at><entry><content>content_h22euc0186</content></entry></data>

2020-01-02 19:20:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:20:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-02 19:20:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>9581eed3-de17-4313-b348-b241d9c8b7df</value></item-id></result>

2020-01-02 19:20:53 | contains: true

2020-01-02 19:20:53 | [Mutex] waiting for: [user_regulare0qxts0183@localhost:message:received:content_h22euc0186]

2020-01-02 19:21:08 | [Mutex] timeout. Not received [user_regulare0qxts0183@localhost:message:received:content_h22euc0186]

2020-01-02 19:21:08 | [Mutex] isItemNotified: user_regulare0qxts0183@localhost:message:received:content_h22euc0186 :: false

2020-01-02 19:21:08 |


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


2020-01-02 19:21:08 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-02 19:21:08 | command: <data><node>node_y5ixst0184</node><entry><content>content_60usmb0187</content></entry></data>

2020-01-02 19:21:08 | target: http://localhost:8088

2020-01-02 19:21:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-01-02 19:21:08 | entity: <data><node>node_y5ixst0184</node><entry><content>content_60usmb0187</content></entry></data>

2020-01-02 19:21:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:21:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-02 19:21:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>06937a4a-93c8-4ce3-a574-93273d2d7b60</value></item-id></result>

2020-01-02 19:21:08 | contains: true

2020-01-02 19:21:14 | [Mutex] waiting for: [user_regulare0qxts0183@localhost:message:received:content_60usmb0187]

2020-01-02 19:21:14 | [Mutex] waiting for: [user_regulare0qxts0183@localhost:message:received:content_60usmb0187]

2020-01-02 19:21:14 | [Mutex] received everything.

2020-01-02 19:21:14 | [Mutex] isItemNotified: user_regulare0qxts0183@localhost:message:received:content_60usmb0187 :: true

2020-01-02 19:21:14 |


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


2020-01-02 19:21:14 | [Mutex] received everything.

2020-01-02 19:21:14 | [Mutex] isItemNotified: node_y5ixst0184:subscribe_node:success :: true

2020-01-02 19:21:14 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-01-02 19:21:14 | command: <data><node>node_y5ixst0184</node><expire-at>2020-01-03T03:21:19Z</expire-at><entry><content>content_jcjf190188</content></entry></data>

2020-01-02 19:21:14 | target: http://localhost:8088

2020-01-02 19:21:14 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-01-02 19:21:14 | entity: <data><node>node_y5ixst0184</node><expire-at>2020-01-03T03:21:19Z</expire-at><entry><content>content_jcjf190188</content></entry></data>

2020-01-02 19:21:14 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 03 Jan 2020 03:21:14 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-01-02 19:21:14 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7f6b7c37-2cba-4525-82da-c09d36e058fe</value></item-id></result>

2020-01-02 19:21:14 | contains: true

2020-01-02 19:21:22 | [Mutex] waiting for: [user_regulare0qxts0183@localhost:message:received:content_jcjf190188]

2020-01-02 19:21:22 | [Mutex] waiting for: [user_regulare0qxts0183@localhost:message:received:content_jcjf190188]

2020-01-02 19:21:22 | [Mutex] waiting for: [user_regulare0qxts0183@localhost:message:received:content_jcjf190188]

2020-01-02 19:21:37 | [Mutex] timeout. Not received [user_regulare0qxts0183@localhost:message:received:content_jcjf190188]

2020-01-02 19:21:37 | [Mutex] received everything.

2020-01-02 19:21:37 | [Mutex] isItemNotified: user_regulare0qxts0183@localhost:message:received:content_jcjf190188 :: false

2020-01-02 19:21:37 | [Mutex] isItemNotified: admin@localhost:message:received:content_jcjf190188 :: true