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

Test duration: 44.946s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.678s
2020-06-17 00:28:07 |

2020-06-17 00:28:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-17 00:28:07 | ------------------------------------

2020-06-17 00:28:07 | [Mutex] isItemNotified: node_q8mlfi0206:exists :: false

2020-06-17 00:28:07 | [Mutex] waiting for: [node_q8mlfi0206:create_node]

2020-06-17 00:28:07 | [Mutex] received everything.

2020-06-17 00:28:07 | [Mutex] isItemNotified: node_q8mlfi0206:create_node:success :: true

2020-06-17 00:28:07 | [Mutex] waiting for: [node_q8mlfi0206:subscribe_node]

2020-06-17 00:28:07 | [Mutex] received everything.

2020-06-17 00:28:07 | [Mutex] isItemNotified: node_q8mlfi0206:subscribe_node:success :: true

2020-06-17 00:28:07 |


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


2020-06-17 00:28:07 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-17 00:28:07 | command: <data><node>node_q8mlfi0206</node><entry><content>content_ntch00207</content></entry></data>

2020-06-17 00:28:07 | target: http://localhost:8088

2020-06-17 00:28:07 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2020-06-17 00:28:07 | entity: <data><node>node_q8mlfi0206</node><entry><content>content_ntch00207</content></entry></data>

2020-06-17 00:28:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:28:07 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-17 00:28:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>01082625-4d33-430d-961c-b49a17d7e12a</value></item-id></result>

2020-06-17 00:28:07 | contains: true

2020-06-17 00:28:07 | [Mutex] received everything.

2020-06-17 00:28:07 | [Mutex] isItemNotified: user_regularo7zbvw0205@localhost:message:received:content_ntch00207 :: true

2020-06-17 00:28:07 |


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


2020-06-17 00:28:07 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-17 00:28:07 | command: <data><node>node_q8mlfi0206</node><expire-at>2020-06-17T07:28:02Z</expire-at><entry><content>content_rlbwe60208</content></entry></data>

2020-06-17 00:28:07 | target: http://localhost:8088

2020-06-17 00:28:07 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-17 00:28:07 | entity: <data><node>node_q8mlfi0206</node><expire-at>2020-06-17T07:28:02Z</expire-at><entry><content>content_rlbwe60208</content></entry></data>

2020-06-17 00:28:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:28:07 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-17 00:28:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>884dc65f-3369-4869-a6e5-b1ea791a22e7</value></item-id></result>

2020-06-17 00:28:07 | contains: true

2020-06-17 00:28:07 | [Mutex] waiting for: [user_regularo7zbvw0205@localhost:message:received:content_rlbwe60208]

2020-06-17 00:28:22 | [Mutex] timeout. Not received [user_regularo7zbvw0205@localhost:message:received:content_rlbwe60208]

2020-06-17 00:28:22 | [Mutex] isItemNotified: user_regularo7zbvw0205@localhost:message:received:content_rlbwe60208 :: false

2020-06-17 00:28:22 |


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


2020-06-17 00:28:22 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-17 00:28:22 | command: <data><node>node_q8mlfi0206</node><entry><content>content_hq9jr60209</content></entry></data>

2020-06-17 00:28:22 | target: http://localhost:8088

2020-06-17 00:28:22 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-17 00:28:22 | entity: <data><node>node_q8mlfi0206</node><entry><content>content_hq9jr60209</content></entry></data>

2020-06-17 00:28:22 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:28:22 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-17 00:28:22 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a02c65e1-a811-497c-ae46-665a64cd9ccb</value></item-id></result>

2020-06-17 00:28:22 | contains: true

2020-06-17 00:28:28 | [Mutex] waiting for: [user_regularo7zbvw0205@localhost:message:received:content_hq9jr60209]

2020-06-17 00:28:28 | [Mutex] waiting for: [user_regularo7zbvw0205@localhost:message:received:content_hq9jr60209]

2020-06-17 00:28:28 | [Mutex] received everything.

2020-06-17 00:28:28 | [Mutex] isItemNotified: user_regularo7zbvw0205@localhost:message:received:content_hq9jr60209 :: true

2020-06-17 00:28:28 |


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


2020-06-17 00:28:28 | [Mutex] received everything.

2020-06-17 00:28:28 | [Mutex] isItemNotified: node_q8mlfi0206:subscribe_node:success :: true

2020-06-17 00:28:28 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-17 00:28:28 | command: <data><node>node_q8mlfi0206</node><expire-at>2020-06-17T07:28:33Z</expire-at><entry><content>content_i6rdmx0210</content></entry></data>

2020-06-17 00:28:28 | target: http://localhost:8088

2020-06-17 00:28:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-17 00:28:28 | entity: <data><node>node_q8mlfi0206</node><expire-at>2020-06-17T07:28:33Z</expire-at><entry><content>content_i6rdmx0210</content></entry></data>

2020-06-17 00:28:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 17 Jun 2020 07:28:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-17 00:28:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ce2325a0-47d1-4879-a6c2-429c0406af96</value></item-id></result>

2020-06-17 00:28:28 | contains: true

2020-06-17 00:28:36 | [Mutex] waiting for: [user_regularo7zbvw0205@localhost:message:received:content_i6rdmx0210]

2020-06-17 00:28:36 | [Mutex] waiting for: [user_regularo7zbvw0205@localhost:message:received:content_i6rdmx0210]

2020-06-17 00:28:51 | [Mutex] timeout. Not received [user_regularo7zbvw0205@localhost:message:received:content_i6rdmx0210]

2020-06-17 00:28:51 | [Mutex] received everything.

2020-06-17 00:28:51 | [Mutex] isItemNotified: user_regularo7zbvw0205@localhost:message:received:content_i6rdmx0210 :: false

2020-06-17 00:28:51 | [Mutex] isItemNotified: admin@localhost:message:received:content_i6rdmx0210 :: true