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

Test duration: 45.205s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.631s
2019-11-20 20:34:16 |

2019-11-20 20:34:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-20 20:34:16 | ------------------------------------

2019-11-20 20:34:16 | [Mutex] isItemNotified: node_8loqd10172:exists :: false

2019-11-20 20:34:16 | [Mutex] waiting for: [node_8loqd10172:create_node]

2019-11-20 20:34:16 | [Mutex] received everything.

2019-11-20 20:34:16 | [Mutex] isItemNotified: node_8loqd10172:create_node:success :: true

2019-11-20 20:34:16 | [Mutex] waiting for: [node_8loqd10172:subscribe_node]

2019-11-20 20:34:16 | [Mutex] received everything.

2019-11-20 20:34:16 | [Mutex] isItemNotified: node_8loqd10172:subscribe_node:success :: true

2019-11-20 20:34:16 |


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


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

2019-11-20 20:34:16 | command: <data><node>node_8loqd10172</node><entry><content>content_gxnkf40173</content></entry></data>

2019-11-20 20:34:16 | target: http://localhost:8088

2019-11-20 20:34:16 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-20 20:34:16 | entity: <data><node>node_8loqd10172</node><entry><content>content_gxnkf40173</content></entry></data>

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

2019-11-20 20:34:16 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>43f63b08-c4a5-4489-a140-26e1879f504a</value></item-id></result>

2019-11-20 20:34:16 | contains: true

2019-11-20 20:34:16 | [Mutex] received everything.

2019-11-20 20:34:16 | [Mutex] isItemNotified: user_regular3ki40t0171@localhost:message:received:content_gxnkf40173 :: true

2019-11-20 20:34:16 |


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


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

2019-11-20 20:34:16 | command: <data><node>node_8loqd10172</node><expire-at>2019-11-21T04:34:11Z</expire-at><entry><content>content_fp7r5s0174</content></entry></data>

2019-11-20 20:34:16 | target: http://localhost:8088

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

2019-11-20 20:34:16 | entity: <data><node>node_8loqd10172</node><expire-at>2019-11-21T04:34:11Z</expire-at><entry><content>content_fp7r5s0174</content></entry></data>

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

2019-11-20 20:34:16 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>273185fd-c779-4aab-93b5-3e851d00f636</value></item-id></result>

2019-11-20 20:34:16 | contains: true

2019-11-20 20:34:16 | [Mutex] waiting for: [user_regular3ki40t0171@localhost:message:received:content_fp7r5s0174]

2019-11-20 20:34:31 | [Mutex] timeout. Not received [user_regular3ki40t0171@localhost:message:received:content_fp7r5s0174]

2019-11-20 20:34:31 | [Mutex] isItemNotified: user_regular3ki40t0171@localhost:message:received:content_fp7r5s0174 :: false

2019-11-20 20:34:31 |


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


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

2019-11-20 20:34:31 | command: <data><node>node_8loqd10172</node><entry><content>content_hmbc1c0175</content></entry></data>

2019-11-20 20:34:31 | target: http://localhost:8088

2019-11-20 20:34:31 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-20 20:34:31 | entity: <data><node>node_8loqd10172</node><entry><content>content_hmbc1c0175</content></entry></data>

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

2019-11-20 20:34:31 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>44e4a023-6412-4d20-be75-e16aac81203a</value></item-id></result>

2019-11-20 20:34:31 | contains: true

2019-11-20 20:34:36 | [Mutex] waiting for: [user_regular3ki40t0171@localhost:message:received:content_hmbc1c0175]

2019-11-20 20:34:36 | [Mutex] waiting for: [user_regular3ki40t0171@localhost:message:received:content_hmbc1c0175]

2019-11-20 20:34:36 | [Mutex] received everything.

2019-11-20 20:34:36 | [Mutex] isItemNotified: user_regular3ki40t0171@localhost:message:received:content_hmbc1c0175 :: true

2019-11-20 20:34:36 |


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


2019-11-20 20:34:36 | [Mutex] received everything.

2019-11-20 20:34:36 | [Mutex] isItemNotified: node_8loqd10172:subscribe_node:success :: true

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

2019-11-20 20:34:36 | command: <data><node>node_8loqd10172</node><expire-at>2019-11-21T04:34:41Z</expire-at><entry><content>content_pwflwb0176</content></entry></data>

2019-11-20 20:34:36 | target: http://localhost:8088

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

2019-11-20 20:34:36 | entity: <data><node>node_8loqd10172</node><expire-at>2019-11-21T04:34:41Z</expire-at><entry><content>content_pwflwb0176</content></entry></data>

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

2019-11-20 20:34:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>a1ef7e8e-0971-49fc-8e2b-1e40f5413b71</value></item-id></result>

2019-11-20 20:34:36 | contains: true

2019-11-20 20:34:45 | [Mutex] waiting for: [user_regular3ki40t0171@localhost:message:received:content_pwflwb0176]

2019-11-20 20:34:45 | [Mutex] waiting for: [user_regular3ki40t0171@localhost:message:received:content_pwflwb0176]

2019-11-20 20:34:45 | [Mutex] waiting for: [user_regular3ki40t0171@localhost:message:received:content_pwflwb0176]

2019-11-20 20:35:00 | [Mutex] timeout. Not received [user_regular3ki40t0171@localhost:message:received:content_pwflwb0176]

2019-11-20 20:35:00 | [Mutex] received everything.

2019-11-20 20:35:00 | [Mutex] isItemNotified: user_regular3ki40t0171@localhost:message:received:content_pwflwb0176 :: false

2019-11-20 20:35:00 | [Mutex] isItemNotified: admin@localhost:message:received:content_pwflwb0176 :: true