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

Test duration: 44,940s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43,522s
2020-07-23 11:58:29 |

2020-07-23 11:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-07-23 11:58:29 | ------------------------------------

2020-07-23 11:58:29 | [Mutex] isItemNotified: node_mbxhin0202:exists :: false

2020-07-23 11:58:29 | [Mutex] waiting for: [node_mbxhin0202:create_node]

2020-07-23 11:58:29 | [Mutex] received everything.

2020-07-23 11:58:29 | [Mutex] isItemNotified: node_mbxhin0202:create_node:success :: true

2020-07-23 11:58:29 | [Mutex] waiting for: [node_mbxhin0202:subscribe_node]

2020-07-23 11:58:29 | [Mutex] waiting for: [node_mbxhin0202:subscribe_node]

2020-07-23 11:58:29 | [Mutex] received everything.

2020-07-23 11:58:29 | [Mutex] isItemNotified: node_mbxhin0202:subscribe_node:success :: true

2020-07-23 11:58:29 |


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


2020-07-23 11:58:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:58:29 | command: <data><node>node_mbxhin0202</node><entry><content>content_dx8wqj0203</content></entry></data>

2020-07-23 11:58:29 | target: http://localhost:8088

2020-07-23 11:58:29 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-07-23 11:58:29 | entity: <data><node>node_mbxhin0202</node><entry><content>content_dx8wqj0203</content></entry></data>

2020-07-23 11:58:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:58:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:58:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4f955144-ec68-4b78-aa72-bc427475cc7d</value></item-id></result>

2020-07-23 11:58:29 | contains: true

2020-07-23 11:58:29 | [Mutex] received everything.

2020-07-23 11:58:29 | [Mutex] isItemNotified: user_regular75p1tn0201@test-domain.com:message:received:content_dx8wqj0203 :: true

2020-07-23 11:58:29 |


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


2020-07-23 11:58:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:58:29 | command: <data><node>node_mbxhin0202</node><expire-at>2020-07-23T15:58:24Z</expire-at><entry><content>content_1fplq90204</content></entry></data>

2020-07-23 11:58:29 | target: http://localhost:8088

2020-07-23 11:58:29 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-07-23 11:58:29 | entity: <data><node>node_mbxhin0202</node><expire-at>2020-07-23T15:58:24Z</expire-at><entry><content>content_1fplq90204</content></entry></data>

2020-07-23 11:58:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:58:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:58:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>287c320c-a34d-4efd-933e-90e189306e07</value></item-id></result>

2020-07-23 11:58:29 | contains: true

2020-07-23 11:58:29 | [Mutex] waiting for: [user_regular75p1tn0201@test-domain.com:message:received:content_1fplq90204]

2020-07-23 11:58:44 | [Mutex] timeout. Not received [user_regular75p1tn0201@test-domain.com:message:received:content_1fplq90204]

2020-07-23 11:58:44 | [Mutex] isItemNotified: user_regular75p1tn0201@test-domain.com:message:received:content_1fplq90204 :: false

2020-07-23 11:58:44 |


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


2020-07-23 11:58:44 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:58:44 | command: <data><node>node_mbxhin0202</node><entry><content>content_9zetwx0205</content></entry></data>

2020-07-23 11:58:44 | target: http://localhost:8088

2020-07-23 11:58:44 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-07-23 11:58:44 | entity: <data><node>node_mbxhin0202</node><entry><content>content_9zetwx0205</content></entry></data>

2020-07-23 11:58:44 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:58:44 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:58:44 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a9d4bc17-7d6c-47f6-b0ac-02e752aad32d</value></item-id></result>

2020-07-23 11:58:44 | contains: true

2020-07-23 11:58:49 | [Mutex] received everything.

2020-07-23 11:58:49 | [Mutex] isItemNotified: user_regular75p1tn0201@test-domain.com:message:received:content_9zetwx0205 :: true

2020-07-23 11:58:49 |


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


2020-07-23 11:58:49 | [Mutex] received everything.

2020-07-23 11:58:49 | [Mutex] isItemNotified: node_mbxhin0202:subscribe_node:success :: true

2020-07-23 11:58:49 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:58:49 | command: <data><node>node_mbxhin0202</node><expire-at>2020-07-23T15:58:54Z</expire-at><entry><content>content_rvbqq30206</content></entry></data>

2020-07-23 11:58:49 | target: http://localhost:8088

2020-07-23 11:58:49 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-07-23 11:58:49 | entity: <data><node>node_mbxhin0202</node><expire-at>2020-07-23T15:58:54Z</expire-at><entry><content>content_rvbqq30206</content></entry></data>

2020-07-23 11:58:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:58:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:58:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d8798701-729f-4017-9500-91d9140559a1</value></item-id></result>

2020-07-23 11:58:49 | contains: true

2020-07-23 11:58:57 | [Mutex] waiting for: [user_regular75p1tn0201@test-domain.com:message:received:content_rvbqq30206]

2020-07-23 11:59:12 | [Mutex] timeout. Not received [user_regular75p1tn0201@test-domain.com:message:received:content_rvbqq30206]

2020-07-23 11:59:12 | [Mutex] received everything.

2020-07-23 11:59:12 | [Mutex] isItemNotified: user_regular75p1tn0201@test-domain.com:message:received:content_rvbqq30206 :: false

2020-07-23 11:59:12 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_rvbqq30206 :: true