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

Test duration: 44,984s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43,545s
2020-07-23 11:06:27 |

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

2020-07-23 11:06:27 | ------------------------------------

2020-07-23 11:06:27 | [Mutex] isItemNotified: node_vh5idi0202:exists :: false

2020-07-23 11:06:27 | [Mutex] waiting for: [node_vh5idi0202:create_node]

2020-07-23 11:06:27 | [Mutex] received everything.

2020-07-23 11:06:27 | [Mutex] isItemNotified: node_vh5idi0202:create_node:success :: true

2020-07-23 11:06:27 | [Mutex] waiting for: [node_vh5idi0202:subscribe_node]

2020-07-23 11:06:27 | [Mutex] received everything.

2020-07-23 11:06:27 | [Mutex] isItemNotified: node_vh5idi0202:subscribe_node:success :: true

2020-07-23 11:06:27 |


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


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

2020-07-23 11:06:27 | command: <data><node>node_vh5idi0202</node><entry><content>content_hvcrmm0203</content></entry></data>

2020-07-23 11:06:27 | target: http://localhost:8088

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

2020-07-23 11:06:27 | entity: <data><node>node_vh5idi0202</node><entry><content>content_hvcrmm0203</content></entry></data>

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

2020-07-23 11:06:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d03a9383-977f-4fe7-97b7-210e38d9b23a</value></item-id></result>

2020-07-23 11:06:27 | contains: true

2020-07-23 11:06:27 | [Mutex] received everything.

2020-07-23 11:06:27 | [Mutex] isItemNotified: user_regular5hkudd0201@test-domain.com:message:received:content_hvcrmm0203 :: true

2020-07-23 11:06:27 |


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


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

2020-07-23 11:06:27 | command: <data><node>node_vh5idi0202</node><expire-at>2020-07-23T15:06:22Z</expire-at><entry><content>content_9ksfd60204</content></entry></data>

2020-07-23 11:06:27 | target: http://localhost:8088

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

2020-07-23 11:06:27 | entity: <data><node>node_vh5idi0202</node><expire-at>2020-07-23T15:06:22Z</expire-at><entry><content>content_9ksfd60204</content></entry></data>

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

2020-07-23 11:06:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4c3b8cd1-a71a-4426-a19c-c392ed1b7e7a</value></item-id></result>

2020-07-23 11:06:27 | contains: true

2020-07-23 11:06:27 | [Mutex] waiting for: [user_regular5hkudd0201@test-domain.com:message:received:content_9ksfd60204]

2020-07-23 11:06:42 | [Mutex] timeout. Not received [user_regular5hkudd0201@test-domain.com:message:received:content_9ksfd60204]

2020-07-23 11:06:42 | [Mutex] isItemNotified: user_regular5hkudd0201@test-domain.com:message:received:content_9ksfd60204 :: false

2020-07-23 11:06:42 |


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


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

2020-07-23 11:06:42 | command: <data><node>node_vh5idi0202</node><entry><content>content_j61vf20205</content></entry></data>

2020-07-23 11:06:42 | target: http://localhost:8088

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

2020-07-23 11:06:42 | entity: <data><node>node_vh5idi0202</node><entry><content>content_j61vf20205</content></entry></data>

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

2020-07-23 11:06:42 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>2768e20f-621f-46b2-b7c5-d8510c2e4d6b</value></item-id></result>

2020-07-23 11:06:42 | contains: true

2020-07-23 11:06:47 | [Mutex] waiting for: [user_regular5hkudd0201@test-domain.com:message:received:content_j61vf20205]

2020-07-23 11:06:47 | [Mutex] received everything.

2020-07-23 11:06:47 | [Mutex] isItemNotified: user_regular5hkudd0201@test-domain.com:message:received:content_j61vf20205 :: true

2020-07-23 11:06:47 |


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


2020-07-23 11:06:47 | [Mutex] received everything.

2020-07-23 11:06:47 | [Mutex] isItemNotified: node_vh5idi0202:subscribe_node:success :: true

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

2020-07-23 11:06:47 | command: <data><node>node_vh5idi0202</node><expire-at>2020-07-23T15:06:52Z</expire-at><entry><content>content_gsdh8h0206</content></entry></data>

2020-07-23 11:06:47 | target: http://localhost:8088

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

2020-07-23 11:06:47 | entity: <data><node>node_vh5idi0202</node><expire-at>2020-07-23T15:06:52Z</expire-at><entry><content>content_gsdh8h0206</content></entry></data>

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

2020-07-23 11:06:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>7c8311e4-ebdf-497f-b9d8-103c565f4577</value></item-id></result>

2020-07-23 11:06:47 | contains: true

2020-07-23 11:06:55 | [Mutex] waiting for: [user_regular5hkudd0201@test-domain.com:message:received:content_gsdh8h0206]

2020-07-23 11:06:55 | [Mutex] waiting for: [user_regular5hkudd0201@test-domain.com:message:received:content_gsdh8h0206]

2020-07-23 11:07:10 | [Mutex] timeout. Not received [user_regular5hkudd0201@test-domain.com:message:received:content_gsdh8h0206]

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

2020-07-23 11:07:10 | [Mutex] isItemNotified: user_regular5hkudd0201@test-domain.com:message:received:content_gsdh8h0206 :: false

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