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

Test duration: 44.863s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.628s
2019-11-22 18:44:04 |

2019-11-22 18:44:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-22 18:44:04 | ------------------------------------

2019-11-22 18:44:04 | [Mutex] isItemNotified: node_9s781j0184:exists :: false

2019-11-22 18:44:04 | [Mutex] waiting for: [node_9s781j0184:create_node]

2019-11-22 18:44:04 | [Mutex] received everything.

2019-11-22 18:44:04 | [Mutex] isItemNotified: node_9s781j0184:create_node:success :: true

2019-11-22 18:44:04 | [Mutex] waiting for: [node_9s781j0184:subscribe_node]

2019-11-22 18:44:04 | [Mutex] received everything.

2019-11-22 18:44:04 | [Mutex] isItemNotified: node_9s781j0184:subscribe_node:success :: true

2019-11-22 18:44:04 |


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


2019-11-22 18:44:04 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 18:44:04 | command: <data><node>node_9s781j0184</node><entry><content>content_lpievx0185</content></entry></data>

2019-11-22 18:44:04 | target: http://localhost:8088

2019-11-22 18:44:04 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-22 18:44:04 | entity: <data><node>node_9s781j0184</node><entry><content>content_lpievx0185</content></entry></data>

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

2019-11-22 18:44:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d76b56d1-bfa1-4053-8446-d95b9491254c</value></item-id></result>

2019-11-22 18:44:04 | contains: true

2019-11-22 18:44:04 | [Mutex] received everything.

2019-11-22 18:44:04 | [Mutex] isItemNotified: user_regular11s3t10183@localhost:message:received:content_lpievx0185 :: true

2019-11-22 18:44:04 |


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


2019-11-22 18:44:04 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 18:44:04 | command: <data><node>node_9s781j0184</node><expire-at>2019-11-23T02:43:59Z</expire-at><entry><content>content_im933p0186</content></entry></data>

2019-11-22 18:44:04 | target: http://localhost:8088

2019-11-22 18:44:04 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-22 18:44:04 | entity: <data><node>node_9s781j0184</node><expire-at>2019-11-23T02:43:59Z</expire-at><entry><content>content_im933p0186</content></entry></data>

2019-11-22 18:44:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 02:44:05 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 18:44:05 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>52e6c752-2803-4adf-8bfb-d9f6cb0ec9e6</value></item-id></result>

2019-11-22 18:44:05 | contains: true

2019-11-22 18:44:05 | [Mutex] waiting for: [user_regular11s3t10183@localhost:message:received:content_im933p0186]

2019-11-22 18:44:20 | [Mutex] timeout. Not received [user_regular11s3t10183@localhost:message:received:content_im933p0186]

2019-11-22 18:44:20 | [Mutex] isItemNotified: user_regular11s3t10183@localhost:message:received:content_im933p0186 :: false

2019-11-22 18:44:20 |


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


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

2019-11-22 18:44:20 | command: <data><node>node_9s781j0184</node><entry><content>content_qvem0q0187</content></entry></data>

2019-11-22 18:44:20 | target: http://localhost:8088

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

2019-11-22 18:44:20 | entity: <data><node>node_9s781j0184</node><entry><content>content_qvem0q0187</content></entry></data>

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

2019-11-22 18:44:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ec2b9383-5c0c-4e7c-8e0b-7202c03bf208</value></item-id></result>

2019-11-22 18:44:20 | contains: true

2019-11-22 18:44:25 | [Mutex] waiting for: [user_regular11s3t10183@localhost:message:received:content_qvem0q0187]

2019-11-22 18:44:25 | [Mutex] received everything.

2019-11-22 18:44:25 | [Mutex] isItemNotified: user_regular11s3t10183@localhost:message:received:content_qvem0q0187 :: true

2019-11-22 18:44:25 |


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


2019-11-22 18:44:25 | [Mutex] received everything.

2019-11-22 18:44:25 | [Mutex] isItemNotified: node_9s781j0184:subscribe_node:success :: true

2019-11-22 18:44:25 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 18:44:25 | command: <data><node>node_9s781j0184</node><expire-at>2019-11-23T02:44:30Z</expire-at><entry><content>content_j1fnqa0188</content></entry></data>

2019-11-22 18:44:25 | target: http://localhost:8088

2019-11-22 18:44:25 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-22 18:44:25 | entity: <data><node>node_9s781j0184</node><expire-at>2019-11-23T02:44:30Z</expire-at><entry><content>content_j1fnqa0188</content></entry></data>

2019-11-22 18:44:25 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 02:44:25 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 18:44:25 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>10312805-c2d7-4559-a69c-28fef3e3364c</value></item-id></result>

2019-11-22 18:44:25 | contains: true

2019-11-22 18:44:33 | [Mutex] waiting for: [user_regular11s3t10183@localhost:message:received:content_j1fnqa0188]

2019-11-22 18:44:33 | [Mutex] waiting for: [user_regular11s3t10183@localhost:message:received:content_j1fnqa0188]

2019-11-22 18:44:48 | [Mutex] timeout. Not received [user_regular11s3t10183@localhost:message:received:content_j1fnqa0188]

2019-11-22 18:44:48 | [Mutex] received everything.

2019-11-22 18:44:48 | [Mutex] isItemNotified: user_regular11s3t10183@localhost:message:received:content_j1fnqa0188 :: false

2019-11-22 18:44:48 | [Mutex] isItemNotified: admin@localhost:message:received:content_j1fnqa0188 :: true