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

Test duration: 45.372s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.635s
2019-11-27 20:34:29 |

2019-11-27 20:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-27 20:34:29 | ------------------------------------

2019-11-27 20:34:29 | [Mutex] isItemNotified: node_fcg4k70181:exists :: false

2019-11-27 20:34:29 | [Mutex] waiting for: [node_fcg4k70181:create_node]

2019-11-27 20:34:29 | [Mutex] received everything.

2019-11-27 20:34:29 | [Mutex] isItemNotified: node_fcg4k70181:create_node:success :: true

2019-11-27 20:34:29 | [Mutex] waiting for: [node_fcg4k70181:subscribe_node]

2019-11-27 20:34:29 | [Mutex] received everything.

2019-11-27 20:34:29 | [Mutex] isItemNotified: node_fcg4k70181:subscribe_node:success :: true

2019-11-27 20:34:29 |


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


2019-11-27 20:34:29 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 20:34:29 | command: <data><node>node_fcg4k70181</node><entry><content>content_rv38m50182</content></entry></data>

2019-11-27 20:34:29 | target: http://localhost:8088

2019-11-27 20:34:29 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-27 20:34:29 | entity: <data><node>node_fcg4k70181</node><entry><content>content_rv38m50182</content></entry></data>

2019-11-27 20:34:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 04:34:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 20:34:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>778d68e3-8a69-4c4b-8e57-adbb53a536de</value></item-id></result>

2019-11-27 20:34:29 | contains: true

2019-11-27 20:34:29 | [Mutex] received everything.

2019-11-27 20:34:29 | [Mutex] isItemNotified: user_regularlllono0180@localhost:message:received:content_rv38m50182 :: true

2019-11-27 20:34:29 |


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


2019-11-27 20:34:29 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 20:34:29 | command: <data><node>node_fcg4k70181</node><expire-at>2019-11-28T04:34:24Z</expire-at><entry><content>content_ajxqzy0183</content></entry></data>

2019-11-27 20:34:29 | target: http://localhost:8088

2019-11-27 20:34:29 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-27 20:34:29 | entity: <data><node>node_fcg4k70181</node><expire-at>2019-11-28T04:34:24Z</expire-at><entry><content>content_ajxqzy0183</content></entry></data>

2019-11-27 20:34:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 04:34:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 20:34:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>dbfe9e35-36d5-4ad7-9ac3-9ffb857133fa</value></item-id></result>

2019-11-27 20:34:29 | contains: true

2019-11-27 20:34:29 | [Mutex] waiting for: [user_regularlllono0180@localhost:message:received:content_ajxqzy0183]

2019-11-27 20:34:44 | [Mutex] timeout. Not received [user_regularlllono0180@localhost:message:received:content_ajxqzy0183]

2019-11-27 20:34:44 | [Mutex] isItemNotified: user_regularlllono0180@localhost:message:received:content_ajxqzy0183 :: false

2019-11-27 20:34:44 |


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


2019-11-27 20:34:44 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 20:34:44 | command: <data><node>node_fcg4k70181</node><entry><content>content_10g5li0184</content></entry></data>

2019-11-27 20:34:44 | target: http://localhost:8088

2019-11-27 20:34:44 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-27 20:34:44 | entity: <data><node>node_fcg4k70181</node><entry><content>content_10g5li0184</content></entry></data>

2019-11-27 20:34:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 04:34:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 20:34:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7d3fba1d-eb5b-4292-b624-4bc081c0f94c</value></item-id></result>

2019-11-27 20:34:44 | contains: true

2019-11-27 20:34:49 | [Mutex] waiting for: [user_regularlllono0180@localhost:message:received:content_10g5li0184]

2019-11-27 20:34:49 | [Mutex] waiting for: [user_regularlllono0180@localhost:message:received:content_10g5li0184]

2019-11-27 20:34:49 | [Mutex] received everything.

2019-11-27 20:34:49 | [Mutex] isItemNotified: user_regularlllono0180@localhost:message:received:content_10g5li0184 :: true

2019-11-27 20:34:49 |


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


2019-11-27 20:34:49 | [Mutex] received everything.

2019-11-27 20:34:49 | [Mutex] isItemNotified: node_fcg4k70181:subscribe_node:success :: true

2019-11-27 20:34:49 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-27 20:34:49 | command: <data><node>node_fcg4k70181</node><expire-at>2019-11-28T04:34:54Z</expire-at><entry><content>content_ubiw4j0185</content></entry></data>

2019-11-27 20:34:49 | target: http://localhost:8088

2019-11-27 20:34:49 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-27 20:34:49 | entity: <data><node>node_fcg4k70181</node><expire-at>2019-11-28T04:34:54Z</expire-at><entry><content>content_ubiw4j0185</content></entry></data>

2019-11-27 20:34:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 28 Nov 2019 04:34:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-27 20:34:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>708ec653-a65c-40d3-826a-4b1669e834c0</value></item-id></result>

2019-11-27 20:34:49 | contains: true

2019-11-27 20:34:58 | [Mutex] waiting for: [user_regularlllono0180@localhost:message:received:content_ubiw4j0185]

2019-11-27 20:34:58 | [Mutex] waiting for: [user_regularlllono0180@localhost:message:received:content_ubiw4j0185]

2019-11-27 20:34:58 | [Mutex] waiting for: [user_regularlllono0180@localhost:message:received:content_ubiw4j0185]

2019-11-27 20:35:13 | [Mutex] timeout. Not received [user_regularlllono0180@localhost:message:received:content_ubiw4j0185]

2019-11-27 20:35:13 | [Mutex] received everything.

2019-11-27 20:35:13 | [Mutex] isItemNotified: user_regularlllono0180@localhost:message:received:content_ubiw4j0185 :: false

2019-11-27 20:35:13 | [Mutex] isItemNotified: admin@localhost:message:received:content_ubiw4j0185 :: true