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

Test duration: 45.408s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.705s
2019-12-03 19:42:09 |

2019-12-03 19:42:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-12-03 19:42:09 | ------------------------------------

2019-12-03 19:42:09 | [Mutex] isItemNotified: node_mygdao0184:exists :: false

2019-12-03 19:42:09 | [Mutex] waiting for: [node_mygdao0184:create_node]

2019-12-03 19:42:09 | [Mutex] received everything.

2019-12-03 19:42:09 | [Mutex] isItemNotified: node_mygdao0184:create_node:success :: true

2019-12-03 19:42:09 | [Mutex] waiting for: [node_mygdao0184:subscribe_node]

2019-12-03 19:42:09 | [Mutex] received everything.

2019-12-03 19:42:09 | [Mutex] isItemNotified: node_mygdao0184:subscribe_node:success :: true

2019-12-03 19:42:09 |


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


2019-12-03 19:42:09 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:42:09 | command: <data><node>node_mygdao0184</node><entry><content>content_pmyo5v0185</content></entry></data>

2019-12-03 19:42:09 | target: http://localhost:8088

2019-12-03 19:42:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-12-03 19:42:09 | entity: <data><node>node_mygdao0184</node><entry><content>content_pmyo5v0185</content></entry></data>

2019-12-03 19:42:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:42:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:42:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a5afa328-6dae-4699-9f31-08a24d8c4947</value></item-id></result>

2019-12-03 19:42:09 | contains: true

2019-12-03 19:42:09 | [Mutex] received everything.

2019-12-03 19:42:09 | [Mutex] isItemNotified: user_regularyntane0183@localhost:message:received:content_pmyo5v0185 :: true

2019-12-03 19:42:09 |


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


2019-12-03 19:42:09 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:42:09 | command: <data><node>node_mygdao0184</node><expire-at>2019-12-04T03:42:04Z</expire-at><entry><content>content_matiih0186</content></entry></data>

2019-12-03 19:42:09 | target: http://localhost:8088

2019-12-03 19:42:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-12-03 19:42:09 | entity: <data><node>node_mygdao0184</node><expire-at>2019-12-04T03:42:04Z</expire-at><entry><content>content_matiih0186</content></entry></data>

2019-12-03 19:42:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:42:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:42:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8c182585-1274-4690-a166-e8181c8aa44f</value></item-id></result>

2019-12-03 19:42:09 | contains: true

2019-12-03 19:42:09 | [Mutex] waiting for: [user_regularyntane0183@localhost:message:received:content_matiih0186]

2019-12-03 19:42:24 | [Mutex] timeout. Not received [user_regularyntane0183@localhost:message:received:content_matiih0186]

2019-12-03 19:42:24 | [Mutex] isItemNotified: user_regularyntane0183@localhost:message:received:content_matiih0186 :: false

2019-12-03 19:42:24 |


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


2019-12-03 19:42:24 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:42:24 | command: <data><node>node_mygdao0184</node><entry><content>content_bkexxo0187</content></entry></data>

2019-12-03 19:42:24 | target: http://localhost:8088

2019-12-03 19:42:24 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-12-03 19:42:24 | entity: <data><node>node_mygdao0184</node><entry><content>content_bkexxo0187</content></entry></data>

2019-12-03 19:42:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:42:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:42:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>95917858-0d5d-4ad3-8b5a-31fba3f8d4e2</value></item-id></result>

2019-12-03 19:42:24 | contains: true

2019-12-03 19:42:29 | [Mutex] waiting for: [user_regularyntane0183@localhost:message:received:content_bkexxo0187]

2019-12-03 19:42:29 | [Mutex] waiting for: [user_regularyntane0183@localhost:message:received:content_bkexxo0187]

2019-12-03 19:42:29 | [Mutex] received everything.

2019-12-03 19:42:29 | [Mutex] isItemNotified: user_regularyntane0183@localhost:message:received:content_bkexxo0187 :: true

2019-12-03 19:42:29 |


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


2019-12-03 19:42:29 | [Mutex] received everything.

2019-12-03 19:42:29 | [Mutex] isItemNotified: node_mygdao0184:subscribe_node:success :: true

2019-12-03 19:42:29 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-03 19:42:29 | command: <data><node>node_mygdao0184</node><expire-at>2019-12-04T03:42:34Z</expire-at><entry><content>content_zcymu20188</content></entry></data>

2019-12-03 19:42:29 | target: http://localhost:8088

2019-12-03 19:42:29 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-12-03 19:42:29 | entity: <data><node>node_mygdao0184</node><expire-at>2019-12-04T03:42:34Z</expire-at><entry><content>content_zcymu20188</content></entry></data>

2019-12-03 19:42:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 04 Dec 2019 03:42:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-03 19:42:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>62ded9a8-1e3d-4bc9-a49b-947f514c6a19</value></item-id></result>

2019-12-03 19:42:29 | contains: true

2019-12-03 19:42:38 | [Mutex] waiting for: [user_regularyntane0183@localhost:message:received:content_zcymu20188]

2019-12-03 19:42:38 | [Mutex] waiting for: [user_regularyntane0183@localhost:message:received:content_zcymu20188]

2019-12-03 19:42:53 | [Mutex] timeout. Not received [user_regularyntane0183@localhost:message:received:content_zcymu20188]

2019-12-03 19:42:53 | [Mutex] received everything.

2019-12-03 19:42:53 | [Mutex] isItemNotified: user_regularyntane0183@localhost:message:received:content_zcymu20188 :: false

2019-12-03 19:42:53 | [Mutex] isItemNotified: admin@localhost:message:received:content_zcymu20188 :: true