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

Test duration: 45.504s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.683s
2020-06-24 23:50:39 |

2020-06-24 23:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-24 23:50:39 | ------------------------------------

2020-06-24 23:50:39 | [Mutex] isItemNotified: node_29onn00206:exists :: false

2020-06-24 23:50:39 | [Mutex] waiting for: [node_29onn00206:create_node]

2020-06-24 23:50:39 | [Mutex] received everything.

2020-06-24 23:50:39 | [Mutex] isItemNotified: node_29onn00206:create_node:success :: true

2020-06-24 23:50:39 | [Mutex] waiting for: [node_29onn00206:subscribe_node]

2020-06-24 23:50:39 | [Mutex] received everything.

2020-06-24 23:50:39 | [Mutex] isItemNotified: node_29onn00206:subscribe_node:success :: true

2020-06-24 23:50:39 |


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


2020-06-24 23:50:39 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:50:39 | command: <data><node>node_29onn00206</node><entry><content>content_8gh71o0207</content></entry></data>

2020-06-24 23:50:39 | target: http://localhost:8088

2020-06-24 23:50:39 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-24 23:50:39 | entity: <data><node>node_29onn00206</node><entry><content>content_8gh71o0207</content></entry></data>

2020-06-24 23:50:39 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:50:39 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:50:39 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a9b79f8c-5d19-4f02-8df5-d3ad2f713630</value></item-id></result>

2020-06-24 23:50:39 | contains: true

2020-06-24 23:50:39 | [Mutex] received everything.

2020-06-24 23:50:39 | [Mutex] isItemNotified: user_regularw7xs0l0205@localhost:message:received:content_8gh71o0207 :: true

2020-06-24 23:50:39 |


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


2020-06-24 23:50:39 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:50:39 | command: <data><node>node_29onn00206</node><expire-at>2020-06-25T06:50:34Z</expire-at><entry><content>content_e1cuu40208</content></entry></data>

2020-06-24 23:50:39 | target: http://localhost:8088

2020-06-24 23:50:39 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-24 23:50:39 | entity: <data><node>node_29onn00206</node><expire-at>2020-06-25T06:50:34Z</expire-at><entry><content>content_e1cuu40208</content></entry></data>

2020-06-24 23:50:39 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:50:39 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:50:39 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7e1f9919-b10a-455e-bc1d-905603d39275</value></item-id></result>

2020-06-24 23:50:39 | contains: true

2020-06-24 23:50:39 | [Mutex] waiting for: [user_regularw7xs0l0205@localhost:message:received:content_e1cuu40208]

2020-06-24 23:50:54 | [Mutex] timeout. Not received [user_regularw7xs0l0205@localhost:message:received:content_e1cuu40208]

2020-06-24 23:50:54 | [Mutex] isItemNotified: user_regularw7xs0l0205@localhost:message:received:content_e1cuu40208 :: false

2020-06-24 23:50:54 |


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


2020-06-24 23:50:54 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:50:54 | command: <data><node>node_29onn00206</node><entry><content>content_n9i7110209</content></entry></data>

2020-06-24 23:50:54 | target: http://localhost:8088

2020-06-24 23:50:54 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-24 23:50:54 | entity: <data><node>node_29onn00206</node><entry><content>content_n9i7110209</content></entry></data>

2020-06-24 23:50:54 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:50:54 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:50:54 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4ee6422e-c9de-4852-859c-026fef3db0e6</value></item-id></result>

2020-06-24 23:50:54 | contains: true

2020-06-24 23:50:59 | [Mutex] waiting for: [user_regularw7xs0l0205@localhost:message:received:content_n9i7110209]

2020-06-24 23:50:59 | [Mutex] received everything.

2020-06-24 23:50:59 | [Mutex] isItemNotified: user_regularw7xs0l0205@localhost:message:received:content_n9i7110209 :: true

2020-06-24 23:50:59 |


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


2020-06-24 23:50:59 | [Mutex] received everything.

2020-06-24 23:50:59 | [Mutex] isItemNotified: node_29onn00206:subscribe_node:success :: true

2020-06-24 23:50:59 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-24 23:50:59 | command: <data><node>node_29onn00206</node><expire-at>2020-06-25T06:51:04Z</expire-at><entry><content>content_rszdji0210</content></entry></data>

2020-06-24 23:50:59 | target: http://localhost:8088

2020-06-24 23:50:59 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-24 23:50:59 | entity: <data><node>node_29onn00206</node><expire-at>2020-06-25T06:51:04Z</expire-at><entry><content>content_rszdji0210</content></entry></data>

2020-06-24 23:50:59 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 25 Jun 2020 06:50:59 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-24 23:50:59 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>65bd2ad6-bc6b-4444-9c42-750574c3c08f</value></item-id></result>

2020-06-24 23:50:59 | contains: true

2020-06-24 23:51:07 | [Mutex] waiting for: [user_regularw7xs0l0205@localhost:message:received:content_rszdji0210]

2020-06-24 23:51:08 | [Mutex] waiting for: [user_regularw7xs0l0205@localhost:message:received:content_rszdji0210]

2020-06-24 23:51:08 | [Mutex] waiting for: [user_regularw7xs0l0205@localhost:message:received:content_rszdji0210]

2020-06-24 23:51:22 | [Mutex] timeout. Not received [user_regularw7xs0l0205@localhost:message:received:content_rszdji0210]

2020-06-24 23:51:22 | [Mutex] received everything.

2020-06-24 23:51:22 | [Mutex] isItemNotified: user_regularw7xs0l0205@localhost:message:received:content_rszdji0210 :: false

2020-06-24 23:51:22 | [Mutex] isItemNotified: admin@localhost:message:received:content_rszdji0210 :: true