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

Test duration: 45.451s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.649s
2020-06-21 23:17:45 |

2020-06-21 23:17:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-21 23:17:45 | ------------------------------------

2020-06-21 23:17:45 | [Mutex] isItemNotified: node_ps11i50202:exists :: false

2020-06-21 23:17:45 | [Mutex] waiting for: [node_ps11i50202:create_node]

2020-06-21 23:17:45 | [Mutex] waiting for: [node_ps11i50202:create_node]

2020-06-21 23:17:45 | [Mutex] received everything.

2020-06-21 23:17:45 | [Mutex] isItemNotified: node_ps11i50202:create_node:success :: true

2020-06-21 23:17:45 | [Mutex] waiting for: [node_ps11i50202:subscribe_node]

2020-06-21 23:17:45 | [Mutex] waiting for: [node_ps11i50202:subscribe_node]

2020-06-21 23:17:45 | [Mutex] received everything.

2020-06-21 23:17:45 | [Mutex] isItemNotified: node_ps11i50202:subscribe_node:success :: true

2020-06-21 23:17:45 |


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


2020-06-21 23:17:45 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-21 23:17:45 | command: <data><node>node_ps11i50202</node><entry><content>content_7rpqdf0203</content></entry></data>

2020-06-21 23:17:45 | target: http://localhost:8088

2020-06-21 23:17:45 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-21 23:17:45 | entity: <data><node>node_ps11i50202</node><entry><content>content_7rpqdf0203</content></entry></data>

2020-06-21 23:17:45 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 22 Jun 2020 06:17:45 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-21 23:17:45 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6516da65-4efe-47af-ad86-3281b3a49dfd</value></item-id></result>

2020-06-21 23:17:45 | contains: true

2020-06-21 23:17:45 | [Mutex] received everything.

2020-06-21 23:17:45 | [Mutex] isItemNotified: user_regular21n7yc0201@localhost:message:received:content_7rpqdf0203 :: true

2020-06-21 23:17:45 |


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


2020-06-21 23:17:45 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-21 23:17:45 | command: <data><node>node_ps11i50202</node><expire-at>2020-06-22T06:17:40Z</expire-at><entry><content>content_by301m0204</content></entry></data>

2020-06-21 23:17:45 | target: http://localhost:8088

2020-06-21 23:17:45 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-21 23:17:45 | entity: <data><node>node_ps11i50202</node><expire-at>2020-06-22T06:17:40Z</expire-at><entry><content>content_by301m0204</content></entry></data>

2020-06-21 23:17:45 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 22 Jun 2020 06:17:45 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-21 23:17:45 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>42fc2ade-e2f1-4f5d-b9e3-7c670ae35a9e</value></item-id></result>

2020-06-21 23:17:45 | contains: true

2020-06-21 23:17:45 | [Mutex] waiting for: [user_regular21n7yc0201@localhost:message:received:content_by301m0204]

2020-06-21 23:18:00 | [Mutex] timeout. Not received [user_regular21n7yc0201@localhost:message:received:content_by301m0204]

2020-06-21 23:18:00 | [Mutex] isItemNotified: user_regular21n7yc0201@localhost:message:received:content_by301m0204 :: false

2020-06-21 23:18:00 |


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


2020-06-21 23:18:00 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-21 23:18:00 | command: <data><node>node_ps11i50202</node><entry><content>content_qpodpc0205</content></entry></data>

2020-06-21 23:18:00 | target: http://localhost:8088

2020-06-21 23:18:00 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-21 23:18:00 | entity: <data><node>node_ps11i50202</node><entry><content>content_qpodpc0205</content></entry></data>

2020-06-21 23:18:00 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 22 Jun 2020 06:18:00 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-21 23:18:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1e4a2278-556f-48bb-ae33-2cd959b1a9a9</value></item-id></result>

2020-06-21 23:18:00 | contains: true

2020-06-21 23:18:06 | [Mutex] waiting for: [user_regular21n7yc0201@localhost:message:received:content_qpodpc0205]

2020-06-21 23:18:06 | [Mutex] waiting for: [user_regular21n7yc0201@localhost:message:received:content_qpodpc0205]

2020-06-21 23:18:06 | [Mutex] received everything.

2020-06-21 23:18:06 | [Mutex] isItemNotified: user_regular21n7yc0201@localhost:message:received:content_qpodpc0205 :: true

2020-06-21 23:18:06 |


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


2020-06-21 23:18:06 | [Mutex] received everything.

2020-06-21 23:18:06 | [Mutex] isItemNotified: node_ps11i50202:subscribe_node:success :: true

2020-06-21 23:18:06 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-21 23:18:06 | command: <data><node>node_ps11i50202</node><expire-at>2020-06-22T06:18:11Z</expire-at><entry><content>content_l5vnb70206</content></entry></data>

2020-06-21 23:18:06 | target: http://localhost:8088

2020-06-21 23:18:06 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-21 23:18:06 | entity: <data><node>node_ps11i50202</node><expire-at>2020-06-22T06:18:11Z</expire-at><entry><content>content_l5vnb70206</content></entry></data>

2020-06-21 23:18:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 22 Jun 2020 06:18:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-21 23:18:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5348f711-d5d8-45f6-a68f-a125a1372fa5</value></item-id></result>

2020-06-21 23:18:06 | contains: true

2020-06-21 23:18:14 | [Mutex] waiting for: [user_regular21n7yc0201@localhost:message:received:content_l5vnb70206]

2020-06-21 23:18:14 | [Mutex] waiting for: [user_regular21n7yc0201@localhost:message:received:content_l5vnb70206]

2020-06-21 23:18:29 | [Mutex] timeout. Not received [user_regular21n7yc0201@localhost:message:received:content_l5vnb70206]

2020-06-21 23:18:29 | [Mutex] received everything.

2020-06-21 23:18:29 | [Mutex] isItemNotified: user_regular21n7yc0201@localhost:message:received:content_l5vnb70206 :: false

2020-06-21 23:18:29 | [Mutex] isItemNotified: admin@localhost:message:received:content_l5vnb70206 :: true