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

Test duration: 45.252s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.680s
2019-11-26 20:55:06 |

2019-11-26 20:55:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-26 20:55:06 | ------------------------------------

2019-11-26 20:55:06 | [Mutex] isItemNotified: node_mra0gq0184:exists :: false

2019-11-26 20:55:06 | [Mutex] waiting for: [node_mra0gq0184:create_node]

2019-11-26 20:55:06 | [Mutex] received everything.

2019-11-26 20:55:06 | [Mutex] isItemNotified: node_mra0gq0184:create_node:success :: true

2019-11-26 20:55:06 | [Mutex] waiting for: [node_mra0gq0184:subscribe_node]

2019-11-26 20:55:06 | [Mutex] received everything.

2019-11-26 20:55:06 | [Mutex] isItemNotified: node_mra0gq0184:subscribe_node:success :: true

2019-11-26 20:55:06 |


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


2019-11-26 20:55:06 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:55:06 | command: <data><node>node_mra0gq0184</node><entry><content>content_g3sodk0185</content></entry></data>

2019-11-26 20:55:06 | target: http://localhost:8088

2019-11-26 20:55:06 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-26 20:55:06 | entity: <data><node>node_mra0gq0184</node><entry><content>content_g3sodk0185</content></entry></data>

2019-11-26 20:55:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:55:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:55:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4da7b84b-730a-4cd1-bd5e-14ca6586c0d7</value></item-id></result>

2019-11-26 20:55:06 | contains: true

2019-11-26 20:55:06 | [Mutex] received everything.

2019-11-26 20:55:06 | [Mutex] isItemNotified: user_regulary05e670183@localhost:message:received:content_g3sodk0185 :: true

2019-11-26 20:55:06 |


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


2019-11-26 20:55:06 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:55:06 | command: <data><node>node_mra0gq0184</node><expire-at>2019-11-27T04:55:01Z</expire-at><entry><content>content_ifrdid0186</content></entry></data>

2019-11-26 20:55:06 | target: http://localhost:8088

2019-11-26 20:55:06 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-26 20:55:06 | entity: <data><node>node_mra0gq0184</node><expire-at>2019-11-27T04:55:01Z</expire-at><entry><content>content_ifrdid0186</content></entry></data>

2019-11-26 20:55:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:55:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:55:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>881f927b-d07b-4e09-b252-9f825e54c4e1</value></item-id></result>

2019-11-26 20:55:06 | contains: true

2019-11-26 20:55:06 | [Mutex] waiting for: [user_regulary05e670183@localhost:message:received:content_ifrdid0186]

2019-11-26 20:55:21 | [Mutex] timeout. Not received [user_regulary05e670183@localhost:message:received:content_ifrdid0186]

2019-11-26 20:55:21 | [Mutex] isItemNotified: user_regulary05e670183@localhost:message:received:content_ifrdid0186 :: false

2019-11-26 20:55:21 |


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


2019-11-26 20:55:21 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:55:21 | command: <data><node>node_mra0gq0184</node><entry><content>content_xiu9390187</content></entry></data>

2019-11-26 20:55:21 | target: http://localhost:8088

2019-11-26 20:55:21 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-26 20:55:21 | entity: <data><node>node_mra0gq0184</node><entry><content>content_xiu9390187</content></entry></data>

2019-11-26 20:55:21 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:55:21 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:55:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>39f75550-f6f0-4c37-9370-695f2584a9b4</value></item-id></result>

2019-11-26 20:55:21 | contains: true

2019-11-26 20:55:26 | [Mutex] waiting for: [user_regulary05e670183@localhost:message:received:content_xiu9390187]

2019-11-26 20:55:26 | [Mutex] waiting for: [user_regulary05e670183@localhost:message:received:content_xiu9390187]

2019-11-26 20:55:26 | [Mutex] received everything.

2019-11-26 20:55:26 | [Mutex] isItemNotified: user_regulary05e670183@localhost:message:received:content_xiu9390187 :: true

2019-11-26 20:55:26 |


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


2019-11-26 20:55:26 | [Mutex] received everything.

2019-11-26 20:55:26 | [Mutex] isItemNotified: node_mra0gq0184:subscribe_node:success :: true

2019-11-26 20:55:26 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-26 20:55:26 | command: <data><node>node_mra0gq0184</node><expire-at>2019-11-27T04:55:31Z</expire-at><entry><content>content_iqn0kp0188</content></entry></data>

2019-11-26 20:55:26 | target: http://localhost:8088

2019-11-26 20:55:26 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-26 20:55:26 | entity: <data><node>node_mra0gq0184</node><expire-at>2019-11-27T04:55:31Z</expire-at><entry><content>content_iqn0kp0188</content></entry></data>

2019-11-26 20:55:26 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 27 Nov 2019 04:55:26 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-26 20:55:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>e4f3e28b-2752-4645-8ae7-3be5d63d8dbe</value></item-id></result>

2019-11-26 20:55:26 | contains: true

2019-11-26 20:55:35 | [Mutex] waiting for: [user_regulary05e670183@localhost:message:received:content_iqn0kp0188]

2019-11-26 20:55:35 | [Mutex] waiting for: [user_regulary05e670183@localhost:message:received:content_iqn0kp0188]

2019-11-26 20:55:35 | [Mutex] waiting for: [user_regulary05e670183@localhost:message:received:content_iqn0kp0188]

2019-11-26 20:55:50 | [Mutex] timeout. Not received [user_regulary05e670183@localhost:message:received:content_iqn0kp0188]

2019-11-26 20:55:50 | [Mutex] received everything.

2019-11-26 20:55:50 | [Mutex] isItemNotified: user_regulary05e670183@localhost:message:received:content_iqn0kp0188 :: false

2019-11-26 20:55:50 | [Mutex] isItemNotified: admin@localhost:message:received:content_iqn0kp0188 :: true