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

Test duration: 45.151s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.651s
2019-11-27 21:06:31 |

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

2019-11-27 21:06:31 | ------------------------------------

2019-11-27 21:06:31 | [Mutex] isItemNotified: node_ee7apr0184:exists :: false

2019-11-27 21:06:31 | [Mutex] waiting for: [node_ee7apr0184:create_node]

2019-11-27 21:06:31 | [Mutex] waiting for: [node_ee7apr0184:create_node]

2019-11-27 21:06:31 | [Mutex] received everything.

2019-11-27 21:06:31 | [Mutex] isItemNotified: node_ee7apr0184:create_node:success :: true

2019-11-27 21:06:31 | [Mutex] waiting for: [node_ee7apr0184:subscribe_node]

2019-11-27 21:06:31 | [Mutex] waiting for: [node_ee7apr0184:subscribe_node]

2019-11-27 21:06:31 | [Mutex] received everything.

2019-11-27 21:06:31 | [Mutex] isItemNotified: node_ee7apr0184:subscribe_node:success :: true

2019-11-27 21:06:31 |


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


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

2019-11-27 21:06:31 | command: <data><node>node_ee7apr0184</node><entry><content>content_h2zbjz0185</content></entry></data>

2019-11-27 21:06:31 | target: http://localhost:8088

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

2019-11-27 21:06:31 | entity: <data><node>node_ee7apr0184</node><entry><content>content_h2zbjz0185</content></entry></data>

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

2019-11-27 21:06:31 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d7a46fc9-b763-486e-9d20-c15d29af2325</value></item-id></result>

2019-11-27 21:06:31 | contains: true

2019-11-27 21:06:31 | [Mutex] received everything.

2019-11-27 21:06:31 | [Mutex] isItemNotified: user_regularh5ebsc0183@localhost:message:received:content_h2zbjz0185 :: true

2019-11-27 21:06:31 |


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


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

2019-11-27 21:06:31 | command: <data><node>node_ee7apr0184</node><expire-at>2019-11-28T05:06:26Z</expire-at><entry><content>content_gakzzc0186</content></entry></data>

2019-11-27 21:06:31 | target: http://localhost:8088

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

2019-11-27 21:06:31 | entity: <data><node>node_ee7apr0184</node><expire-at>2019-11-28T05:06:26Z</expire-at><entry><content>content_gakzzc0186</content></entry></data>

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

2019-11-27 21:06:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5948c973-e267-47f0-82ca-4270afffc04c</value></item-id></result>

2019-11-27 21:06:32 | contains: true

2019-11-27 21:06:32 | [Mutex] waiting for: [user_regularh5ebsc0183@localhost:message:received:content_gakzzc0186]

2019-11-27 21:06:47 | [Mutex] timeout. Not received [user_regularh5ebsc0183@localhost:message:received:content_gakzzc0186]

2019-11-27 21:06:47 | [Mutex] isItemNotified: user_regularh5ebsc0183@localhost:message:received:content_gakzzc0186 :: false

2019-11-27 21:06:47 |


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


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

2019-11-27 21:06:47 | command: <data><node>node_ee7apr0184</node><entry><content>content_lu6tkc0187</content></entry></data>

2019-11-27 21:06:47 | target: http://localhost:8088

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

2019-11-27 21:06:47 | entity: <data><node>node_ee7apr0184</node><entry><content>content_lu6tkc0187</content></entry></data>

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

2019-11-27 21:06:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>e00af075-8f18-49b8-8441-567e4923bccb</value></item-id></result>

2019-11-27 21:06:47 | contains: true

2019-11-27 21:06:52 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-27 21:06:52 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] DNS entry stored in session object: localhost:5222

2019-11-27 21:06:52 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-27 21:06:52 | [Mutex] waiting for: [user_regularh5ebsc0183@localhost:message:received:content_lu6tkc0187]

2019-11-27 21:06:52 | [Mutex] waiting for: [user_regularh5ebsc0183@localhost:message:received:content_lu6tkc0187]

2019-11-27 21:06:52 | [Mutex] received everything.

2019-11-27 21:06:52 | [Mutex] isItemNotified: user_regularh5ebsc0183@localhost:message:received:content_lu6tkc0187 :: true

2019-11-27 21:06:52 |


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


2019-11-27 21:06:52 | [Mutex] received everything.

2019-11-27 21:06:52 | [Mutex] isItemNotified: node_ee7apr0184:subscribe_node:success :: true

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

2019-11-27 21:06:52 | command: <data><node>node_ee7apr0184</node><expire-at>2019-11-28T05:06:57Z</expire-at><entry><content>content_ov93xl0188</content></entry></data>

2019-11-27 21:06:52 | target: http://localhost:8088

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

2019-11-27 21:06:52 | entity: <data><node>node_ee7apr0184</node><expire-at>2019-11-28T05:06:57Z</expire-at><entry><content>content_ov93xl0188</content></entry></data>

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

2019-11-27 21:06:52 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>857b5773-de6a-4d93-9e71-4a3d3ba3f4d9</value></item-id></result>

2019-11-27 21:06:52 | contains: true

2019-11-27 21:07:00 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-27 21:07:00 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] DNS entry stored in session object: localhost:5222

2019-11-27 21:07:00 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-27 21:07:00 | [Mutex] waiting for: [user_regularh5ebsc0183@localhost:message:received:content_ov93xl0188]

2019-11-27 21:07:00 | [Mutex] waiting for: [user_regularh5ebsc0183@localhost:message:received:content_ov93xl0188]

2019-11-27 21:07:00 | [Mutex] waiting for: [user_regularh5ebsc0183@localhost:message:received:content_ov93xl0188]

2019-11-27 21:07:15 | [Mutex] timeout. Not received [user_regularh5ebsc0183@localhost:message:received:content_ov93xl0188]

2019-11-27 21:07:15 | [Mutex] received everything.

2019-11-27 21:07:15 | [Mutex] isItemNotified: user_regularh5ebsc0183@localhost:message:received:content_ov93xl0188 :: false

2019-11-27 21:07:15 | [Mutex] isItemNotified: admin@localhost:message:received:content_ov93xl0188 :: true