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

Test duration: 45.151s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.599s
2019-11-21 04:55:17 |

2019-11-21 04:55:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-21 04:55:17 | ------------------------------------

2019-11-21 04:55:17 | [Mutex] isItemNotified: node_cjbi020184:exists :: false

2019-11-21 04:55:17 | [Mutex] waiting for: [node_cjbi020184:create_node]

2019-11-21 04:55:17 | [Mutex] received everything.

2019-11-21 04:55:17 | [Mutex] isItemNotified: node_cjbi020184:create_node:success :: true

2019-11-21 04:55:17 | [Mutex] waiting for: [node_cjbi020184:subscribe_node]

2019-11-21 04:55:17 | [Mutex] received everything.

2019-11-21 04:55:17 | [Mutex] isItemNotified: node_cjbi020184:subscribe_node:success :: true

2019-11-21 04:55:17 |


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


2019-11-21 04:55:17 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 04:55:17 | command: <data><node>node_cjbi020184</node><entry><content>content_2xohyq0185</content></entry></data>

2019-11-21 04:55:17 | target: http://localhost:8088

2019-11-21 04:55:17 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-21 04:55:17 | entity: <data><node>node_cjbi020184</node><entry><content>content_2xohyq0185</content></entry></data>

2019-11-21 04:55:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 12:55:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 04:55:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d87d21a6-b6ac-4f49-8d7f-56826a3adc29</value></item-id></result>

2019-11-21 04:55:17 | contains: true

2019-11-21 04:55:17 | [Mutex] received everything.

2019-11-21 04:55:17 | [Mutex] isItemNotified: user_regularmpmllw0183@localhost:message:received:content_2xohyq0185 :: true

2019-11-21 04:55:17 |


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


2019-11-21 04:55:17 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 04:55:17 | command: <data><node>node_cjbi020184</node><expire-at>2019-11-21T12:55:12Z</expire-at><entry><content>content_qjwea00186</content></entry></data>

2019-11-21 04:55:17 | target: http://localhost:8088

2019-11-21 04:55:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 04:55:17 | entity: <data><node>node_cjbi020184</node><expire-at>2019-11-21T12:55:12Z</expire-at><entry><content>content_qjwea00186</content></entry></data>

2019-11-21 04:55:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 12:55:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 04:55:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>74030fc3-3c3b-44b8-9cd7-e39307fec0aa</value></item-id></result>

2019-11-21 04:55:17 | contains: true

2019-11-21 04:55:17 | [Mutex] waiting for: [user_regularmpmllw0183@localhost:message:received:content_qjwea00186]

2019-11-21 04:55:32 | [Mutex] timeout. Not received [user_regularmpmllw0183@localhost:message:received:content_qjwea00186]

2019-11-21 04:55:32 | [Mutex] isItemNotified: user_regularmpmllw0183@localhost:message:received:content_qjwea00186 :: false

2019-11-21 04:55:32 |


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


2019-11-21 04:55:32 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 04:55:32 | command: <data><node>node_cjbi020184</node><entry><content>content_rxqynz0187</content></entry></data>

2019-11-21 04:55:32 | target: http://localhost:8088

2019-11-21 04:55:32 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-21 04:55:32 | entity: <data><node>node_cjbi020184</node><entry><content>content_rxqynz0187</content></entry></data>

2019-11-21 04:55:32 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 12:55:32 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 04:55:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>35b5ee15-2417-4232-bd19-42066852d3fc</value></item-id></result>

2019-11-21 04:55:32 | contains: true

2019-11-21 04:55:37 | [Mutex] waiting for: [user_regularmpmllw0183@localhost:message:received:content_rxqynz0187]

2019-11-21 04:55:37 | [Mutex] received everything.

2019-11-21 04:55:37 | [Mutex] isItemNotified: user_regularmpmllw0183@localhost:message:received:content_rxqynz0187 :: true

2019-11-21 04:55:37 |


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


2019-11-21 04:55:37 | [Mutex] received everything.

2019-11-21 04:55:37 | [Mutex] isItemNotified: node_cjbi020184:subscribe_node:success :: true

2019-11-21 04:55:37 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-21 04:55:37 | command: <data><node>node_cjbi020184</node><expire-at>2019-11-21T12:55:42Z</expire-at><entry><content>content_d0w8770188</content></entry></data>

2019-11-21 04:55:37 | target: http://localhost:8088

2019-11-21 04:55:37 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 04:55:37 | entity: <data><node>node_cjbi020184</node><expire-at>2019-11-21T12:55:42Z</expire-at><entry><content>content_d0w8770188</content></entry></data>

2019-11-21 04:55:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 12:55:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 04:55:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>29d5ed42-8aa4-499f-802a-ae0af88d347d</value></item-id></result>

2019-11-21 04:55:37 | contains: true

2019-11-21 04:55:46 | [Mutex] waiting for: [user_regularmpmllw0183@localhost:message:received:content_d0w8770188]

2019-11-21 04:55:46 | [Mutex] waiting for: [user_regularmpmllw0183@localhost:message:received:content_d0w8770188]

2019-11-21 04:55:46 | [Mutex] waiting for: [user_regularmpmllw0183@localhost:message:received:content_d0w8770188]

2019-11-21 04:56:01 | [Mutex] timeout. Not received [user_regularmpmllw0183@localhost:message:received:content_d0w8770188]

2019-11-21 04:56:01 | [Mutex] received everything.

2019-11-21 04:56:01 | [Mutex] isItemNotified: user_regularmpmllw0183@localhost:message:received:content_d0w8770188 :: false

2019-11-21 04:56:01 | [Mutex] isItemNotified: admin@localhost:message:received:content_d0w8770188 :: true