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

Test duration: 45.226s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.641s
2019-11-21 05:26:27 |

2019-11-21 05:26:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-21 05:26:27 | ------------------------------------

2019-11-21 05:26:27 | [Mutex] isItemNotified: node_j7leor0181:exists :: false

2019-11-21 05:26:27 | [Mutex] waiting for: [node_j7leor0181:create_node]

2019-11-21 05:26:27 | [Mutex] received everything.

2019-11-21 05:26:27 | [Mutex] isItemNotified: node_j7leor0181:create_node:success :: true

2019-11-21 05:26:27 | [Mutex] waiting for: [node_j7leor0181:subscribe_node]

2019-11-21 05:26:27 | [Mutex] received everything.

2019-11-21 05:26:27 | [Mutex] isItemNotified: node_j7leor0181:subscribe_node:success :: true

2019-11-21 05:26:27 |


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


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

2019-11-21 05:26:27 | command: <data><node>node_j7leor0181</node><entry><content>content_7db78f0182</content></entry></data>

2019-11-21 05:26:27 | target: http://localhost:8088

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

2019-11-21 05:26:27 | entity: <data><node>node_j7leor0181</node><entry><content>content_7db78f0182</content></entry></data>

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

2019-11-21 05:26:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>fccdd465-e312-4d59-9d45-2503af876243</value></item-id></result>

2019-11-21 05:26:27 | contains: true

2019-11-21 05:26:27 | [Mutex] received everything.

2019-11-21 05:26:27 | [Mutex] isItemNotified: user_regularov0au70180@localhost:message:received:content_7db78f0182 :: true

2019-11-21 05:26:27 |


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


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

2019-11-21 05:26:27 | command: <data><node>node_j7leor0181</node><expire-at>2019-11-21T13:26:22Z</expire-at><entry><content>content_69tn2k0183</content></entry></data>

2019-11-21 05:26:27 | target: http://localhost:8088

2019-11-21 05:26:27 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 05:26:27 | entity: <data><node>node_j7leor0181</node><expire-at>2019-11-21T13:26:22Z</expire-at><entry><content>content_69tn2k0183</content></entry></data>

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

2019-11-21 05:26:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c4a69409-46ca-4dcb-bf22-14d8bc6d25a1</value></item-id></result>

2019-11-21 05:26:27 | contains: true

2019-11-21 05:26:27 | [Mutex] waiting for: [user_regularov0au70180@localhost:message:received:content_69tn2k0183]

2019-11-21 05:26:42 | [Mutex] timeout. Not received [user_regularov0au70180@localhost:message:received:content_69tn2k0183]

2019-11-21 05:26:42 | [Mutex] isItemNotified: user_regularov0au70180@localhost:message:received:content_69tn2k0183 :: false

2019-11-21 05:26:42 |


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


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

2019-11-21 05:26:42 | command: <data><node>node_j7leor0181</node><entry><content>content_53yfwo0184</content></entry></data>

2019-11-21 05:26:42 | target: http://localhost:8088

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

2019-11-21 05:26:42 | entity: <data><node>node_j7leor0181</node><entry><content>content_53yfwo0184</content></entry></data>

2019-11-21 05:26:42 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 13:26:42 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 05:26:42 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>8795e146-197c-4192-ab17-7d341b303133</value></item-id></result>

2019-11-21 05:26:42 | contains: true

2019-11-21 05:26:47 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-21 05:26:47 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=454 thread=1] DNS entry stored in session object: localhost:5222

2019-11-21 05:26:47 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=454 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-21 05:26:47 | [Mutex] waiting for: [user_regularov0au70180@localhost:message:received:content_53yfwo0184]

2019-11-21 05:26:47 | [Mutex] waiting for: [user_regularov0au70180@localhost:message:received:content_53yfwo0184]

2019-11-21 05:26:47 | [Mutex] received everything.

2019-11-21 05:26:47 | [Mutex] isItemNotified: user_regularov0au70180@localhost:message:received:content_53yfwo0184 :: true

2019-11-21 05:26:47 |


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


2019-11-21 05:26:47 | [Mutex] received everything.

2019-11-21 05:26:47 | [Mutex] isItemNotified: node_j7leor0181:subscribe_node:success :: true

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

2019-11-21 05:26:47 | command: <data><node>node_j7leor0181</node><expire-at>2019-11-21T13:26:52Z</expire-at><entry><content>content_kihagq0185</content></entry></data>

2019-11-21 05:26:47 | target: http://localhost:8088

2019-11-21 05:26:47 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-21 05:26:47 | entity: <data><node>node_j7leor0181</node><expire-at>2019-11-21T13:26:52Z</expire-at><entry><content>content_kihagq0185</content></entry></data>

2019-11-21 05:26:47 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 13:26:47 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-21 05:26:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a0df26c6-3594-4be5-bfe6-d15853f5fbfe</value></item-id></result>

2019-11-21 05:26:47 | contains: true

2019-11-21 05:26:55 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-21 05:26:55 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=455 thread=1] DNS entry stored in session object: localhost:5222

2019-11-21 05:26:55 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=455 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-21 05:26:55 | [Mutex] waiting for: [user_regularov0au70180@localhost:message:received:content_kihagq0185]

2019-11-21 05:26:55 | [Mutex] waiting for: [user_regularov0au70180@localhost:message:received:content_kihagq0185]

2019-11-21 05:27:10 | [Mutex] timeout. Not received [user_regularov0au70180@localhost:message:received:content_kihagq0185]

2019-11-21 05:27:10 | [Mutex] received everything.

2019-11-21 05:27:10 | [Mutex] isItemNotified: user_regularov0au70180@localhost:message:received:content_kihagq0185 :: false

2019-11-21 05:27:10 | [Mutex] isItemNotified: admin@localhost:message:received:content_kihagq0185 :: true