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

Test duration: 45.525s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.706s
2020-07-10 15:22:06 |
2020-07-10 15:22:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]
2020-07-10 15:22:06 | ------------------------------------
2020-07-10 15:22:06 | [Mutex] isItemNotified: node_jfz6i60202:exists :: false
2020-07-10 15:22:06 | [Mutex] waiting for: [node_jfz6i60202:create_node]
2020-07-10 15:22:06 | [Mutex] received everything.
2020-07-10 15:22:06 | [Mutex] isItemNotified: node_jfz6i60202:create_node:success :: true
2020-07-10 15:22:06 | created pubsub node = PubSubNode[jid=pubsub.localhost,node=node_jfz6i60202]
2020-07-10 15:22:06 | [Mutex] waiting for: [node_jfz6i60202:subscribe_node]
2020-07-10 15:22:06 | [Mutex] received everything.
2020-07-10 15:22:06 | [Mutex] isItemNotified: node_jfz6i60202:subscribe_node:success :: true
2020-07-10 15:22:06 |


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

2020-07-10 15:22:06 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1
2020-07-10 15:22:06 | command: <data><node>node_jfz6i60202</node><entry><content>content_har7u30203</content></entry></data>
2020-07-10 15:22:06 | target: http://localhost:8088
2020-07-10 15:22:06 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]
2020-07-10 15:22:06 | entity: <data><node>node_jfz6i60202</node><entry><content>content_har7u30203</content></entry></data>
2020-07-10 15:22:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 10 Jul 2020 22:22:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}
2020-07-10 15:22:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6b0cd911-ac77-4253-a812-e26d7f88ab65</value></item-id></result>
2020-07-10 15:22:06 | contains: true
2020-07-10 15:22:06 | [Mutex] received everything.
2020-07-10 15:22:06 | [Mutex] isItemNotified: user_regulara0537u0201@localhost:message:received:content_har7u30203 :: true
2020-07-10 15:22:06 |


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

2020-07-10 15:22:06 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1
2020-07-10 15:22:06 | command: <data><node>node_jfz6i60202</node><expire-at>2020-07-10T22:22:01Z</expire-at><entry><content>content_8imlfh0204</content></entry></data>
2020-07-10 15:22:06 | target: http://localhost:8088
2020-07-10 15:22:06 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]
2020-07-10 15:22:06 | entity: <data><node>node_jfz6i60202</node><expire-at>2020-07-10T22:22:01Z</expire-at><entry><content>content_8imlfh0204</content></entry></data>
2020-07-10 15:22:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 10 Jul 2020 22:22:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}
2020-07-10 15:22:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a4f2ff17-32ee-4ba4-bc19-366db32ec5a2</value></item-id></result>
2020-07-10 15:22:06 | contains: true
2020-07-10 15:22:06 | [Mutex] waiting for: [user_regulara0537u0201@localhost:message:received:content_8imlfh0204]
2020-07-10 15:22:21 | [Mutex] timeout. Not received [user_regulara0537u0201@localhost:message:received:content_8imlfh0204]
2020-07-10 15:22:21 | [Mutex] isItemNotified: user_regulara0537u0201@localhost:message:received:content_8imlfh0204 :: false
2020-07-10 15:22:21 |


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

2020-07-10 15:22:21 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1
2020-07-10 15:22:21 | command: <data><node>node_jfz6i60202</node><entry><content>content_j6tq4y0205</content></entry></data>
2020-07-10 15:22:21 | target: http://localhost:8088
2020-07-10 15:22:21 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]
2020-07-10 15:22:21 | entity: <data><node>node_jfz6i60202</node><entry><content>content_j6tq4y0205</content></entry></data>
2020-07-10 15:22:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 10 Jul 2020 22:22:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}
2020-07-10 15:22:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d044def7-c9fe-4b2f-b6ee-c551520835d7</value></item-id></result>
2020-07-10 15:22:21 | contains: true
2020-07-10 15:22:26 | [Mutex] waiting for: [user_regulara0537u0201@localhost:message:received:content_j6tq4y0205]
2020-07-10 15:22:26 | [Mutex] received everything.
2020-07-10 15:22:26 | [Mutex] isItemNotified: user_regulara0537u0201@localhost:message:received:content_j6tq4y0205 :: true
2020-07-10 15:22:26 |


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

2020-07-10 15:22:26 | [Mutex] received everything.
2020-07-10 15:22:26 | [Mutex] isItemNotified: node_jfz6i60202:subscribe_node:success :: true
2020-07-10 15:22:26 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1
2020-07-10 15:22:26 | command: <data><node>node_jfz6i60202</node><expire-at>2020-07-10T22:22:31Z</expire-at><entry><content>content_y0frh20206</content></entry></data>
2020-07-10 15:22:26 | target: http://localhost:8088
2020-07-10 15:22:26 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]
2020-07-10 15:22:26 | entity: <data><node>node_jfz6i60202</node><expire-at>2020-07-10T22:22:31Z</expire-at><entry><content>content_y0frh20206</content></entry></data>
2020-07-10 15:22:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 10 Jul 2020 22:22:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}
2020-07-10 15:22:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>04cdb9c4-e70b-4716-adc9-d6126b7cd07f</value></item-id></result>
2020-07-10 15:22:26 | contains: true
2020-07-10 15:22:34 | [Mutex] waiting for: [user_regulara0537u0201@localhost:message:received:content_y0frh20206]
2020-07-10 15:22:34 | [Mutex] waiting for: [user_regulara0537u0201@localhost:message:received:content_y0frh20206]
2020-07-10 15:22:49 | [Mutex] timeout. Not received [user_regulara0537u0201@localhost:message:received:content_y0frh20206]
2020-07-10 15:22:49 | [Mutex] received everything.
2020-07-10 15:22:49 | [Mutex] isItemNotified: user_regulara0537u0201@localhost:message:received:content_y0frh20206 :: false
2020-07-10 15:22:49 | [Mutex] isItemNotified: admin@localhost:message:received:content_y0frh20206 :: true