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

Test duration: 44.936s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.574s
2019-11-22 20:13:19 |

2019-11-22 20:13:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-22 20:13:19 | ------------------------------------

2019-11-22 20:13:19 | [Mutex] isItemNotified: node_g9o0w00182:exists :: false

2019-11-22 20:13:19 | [Mutex] waiting for: [node_g9o0w00182:create_node]

2019-11-22 20:13:19 | [Mutex] received everything.

2019-11-22 20:13:19 | [Mutex] isItemNotified: node_g9o0w00182:create_node:success :: true

2019-11-22 20:13:19 | [Mutex] waiting for: [node_g9o0w00182:subscribe_node]

2019-11-22 20:13:19 | [Mutex] received everything.

2019-11-22 20:13:19 | [Mutex] isItemNotified: node_g9o0w00182:subscribe_node:success :: true

2019-11-22 20:13:19 |


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


2019-11-22 20:13:19 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 20:13:19 | command: <data><node>node_g9o0w00182</node><entry><content>content_ywpqfj0183</content></entry></data>

2019-11-22 20:13:19 | target: http://localhost:8088

2019-11-22 20:13:19 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-22 20:13:19 | entity: <data><node>node_g9o0w00182</node><entry><content>content_ywpqfj0183</content></entry></data>

2019-11-22 20:13:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 04:13:19 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 20:13:19 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>734efa7c-7735-40c9-9ace-0c5e86720178</value></item-id></result>

2019-11-22 20:13:19 | contains: true

2019-11-22 20:13:19 | [Mutex] received everything.

2019-11-22 20:13:19 | [Mutex] isItemNotified: user_regularkcvfc30181@localhost:message:received:content_ywpqfj0183 :: true

2019-11-22 20:13:19 |


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


2019-11-22 20:13:19 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 20:13:19 | command: <data><node>node_g9o0w00182</node><expire-at>2019-11-23T04:13:14Z</expire-at><entry><content>content_gqkmup0184</content></entry></data>

2019-11-22 20:13:19 | target: http://localhost:8088

2019-11-22 20:13:19 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-22 20:13:19 | entity: <data><node>node_g9o0w00182</node><expire-at>2019-11-23T04:13:14Z</expire-at><entry><content>content_gqkmup0184</content></entry></data>

2019-11-22 20:13:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 04:13:19 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 20:13:19 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>28e9f721-3249-4d0a-9fe4-2c2cb06b1f93</value></item-id></result>

2019-11-22 20:13:19 | contains: true

2019-11-22 20:13:19 | [Mutex] waiting for: [user_regularkcvfc30181@localhost:message:received:content_gqkmup0184]

2019-11-22 20:13:34 | [Mutex] timeout. Not received [user_regularkcvfc30181@localhost:message:received:content_gqkmup0184]

2019-11-22 20:13:34 | [Mutex] isItemNotified: user_regularkcvfc30181@localhost:message:received:content_gqkmup0184 :: false

2019-11-22 20:13:34 |


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


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

2019-11-22 20:13:34 | command: <data><node>node_g9o0w00182</node><entry><content>content_8khr5j0185</content></entry></data>

2019-11-22 20:13:34 | target: http://localhost:8088

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

2019-11-22 20:13:34 | entity: <data><node>node_g9o0w00182</node><entry><content>content_8khr5j0185</content></entry></data>

2019-11-22 20:13:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 04:13:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 20:13:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2284fcd6-4feb-4d12-a1ac-e98999b82196</value></item-id></result>

2019-11-22 20:13:35 | contains: true

2019-11-22 20:13:40 | [Mutex] waiting for: [user_regularkcvfc30181@localhost:message:received:content_8khr5j0185]

2019-11-22 20:13:40 | [Mutex] waiting for: [user_regularkcvfc30181@localhost:message:received:content_8khr5j0185]

2019-11-22 20:13:40 | [Mutex] received everything.

2019-11-22 20:13:40 | [Mutex] isItemNotified: user_regularkcvfc30181@localhost:message:received:content_8khr5j0185 :: true

2019-11-22 20:13:40 |


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


2019-11-22 20:13:40 | [Mutex] received everything.

2019-11-22 20:13:40 | [Mutex] isItemNotified: node_g9o0w00182:subscribe_node:success :: true

2019-11-22 20:13:40 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 20:13:40 | command: <data><node>node_g9o0w00182</node><expire-at>2019-11-23T04:13:45Z</expire-at><entry><content>content_ndzwsh0186</content></entry></data>

2019-11-22 20:13:40 | target: http://localhost:8088

2019-11-22 20:13:40 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-22 20:13:40 | entity: <data><node>node_g9o0w00182</node><expire-at>2019-11-23T04:13:45Z</expire-at><entry><content>content_ndzwsh0186</content></entry></data>

2019-11-22 20:13:40 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 04:13:40 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 20:13:40 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>95b08124-5762-492b-92eb-bf77fae87f94</value></item-id></result>

2019-11-22 20:13:40 | contains: true

2019-11-22 20:13:48 | [Mutex] waiting for: [user_regularkcvfc30181@localhost:message:received:content_ndzwsh0186]

2019-11-22 20:13:48 | [Mutex] waiting for: [user_regularkcvfc30181@localhost:message:received:content_ndzwsh0186]

2019-11-22 20:13:48 | [Mutex] waiting for: [user_regularkcvfc30181@localhost:message:received:content_ndzwsh0186]

2019-11-22 20:14:03 | [Mutex] timeout. Not received [user_regularkcvfc30181@localhost:message:received:content_ndzwsh0186]

2019-11-22 20:14:03 | [Mutex] received everything.

2019-11-22 20:14:03 | [Mutex] isItemNotified: user_regularkcvfc30181@localhost:message:received:content_ndzwsh0186 :: false

2019-11-22 20:14:03 | [Mutex] isItemNotified: admin@localhost:message:received:content_ndzwsh0186 :: true