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

Test duration: 45.051s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.528s
2019-11-22 19:14:15 |

2019-11-22 19:14:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-22 19:14:15 | ------------------------------------

2019-11-22 19:14:15 | [Mutex] isItemNotified: node_pk7eyw0181:exists :: false

2019-11-22 19:14:15 | [Mutex] waiting for: [node_pk7eyw0181:create_node]

2019-11-22 19:14:15 | [Mutex] received everything.

2019-11-22 19:14:15 | [Mutex] isItemNotified: node_pk7eyw0181:create_node:success :: true

2019-11-22 19:14:15 | [Mutex] waiting for: [node_pk7eyw0181:subscribe_node]

2019-11-22 19:14:15 | [Mutex] received everything.

2019-11-22 19:14:15 | [Mutex] isItemNotified: node_pk7eyw0181:subscribe_node:success :: true

2019-11-22 19:14:15 |


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


2019-11-22 19:14:15 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 19:14:15 | command: <data><node>node_pk7eyw0181</node><entry><content>content_k1civ00182</content></entry></data>

2019-11-22 19:14:15 | target: http://localhost:8088

2019-11-22 19:14:15 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-22 19:14:15 | entity: <data><node>node_pk7eyw0181</node><entry><content>content_k1civ00182</content></entry></data>

2019-11-22 19:14:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 03:14:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 19:14:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6007c17f-7cbb-44e9-8c37-4230ebc14060</value></item-id></result>

2019-11-22 19:14:15 | contains: true

2019-11-22 19:14:15 | [Mutex] received everything.

2019-11-22 19:14:15 | [Mutex] isItemNotified: user_regulard2xlsi0180@localhost:message:received:content_k1civ00182 :: true

2019-11-22 19:14:15 |


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


2019-11-22 19:14:15 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 19:14:15 | command: <data><node>node_pk7eyw0181</node><expire-at>2019-11-23T03:14:10Z</expire-at><entry><content>content_jk9ljb0183</content></entry></data>

2019-11-22 19:14:15 | target: http://localhost:8088

2019-11-22 19:14:15 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-22 19:14:15 | entity: <data><node>node_pk7eyw0181</node><expire-at>2019-11-23T03:14:10Z</expire-at><entry><content>content_jk9ljb0183</content></entry></data>

2019-11-22 19:14:15 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 03:14:15 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 19:14:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>2df3e3b0-f983-4c9f-8861-1cef2cf4efb1</value></item-id></result>

2019-11-22 19:14:15 | contains: true

2019-11-22 19:14:15 | [Mutex] waiting for: [user_regulard2xlsi0180@localhost:message:received:content_jk9ljb0183]

2019-11-22 19:14:30 | [Mutex] timeout. Not received [user_regulard2xlsi0180@localhost:message:received:content_jk9ljb0183]

2019-11-22 19:14:30 | [Mutex] isItemNotified: user_regulard2xlsi0180@localhost:message:received:content_jk9ljb0183 :: false

2019-11-22 19:14:30 |


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


2019-11-22 19:14:30 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 19:14:30 | command: <data><node>node_pk7eyw0181</node><entry><content>content_bv2z4x0184</content></entry></data>

2019-11-22 19:14:30 | target: http://localhost:8088

2019-11-22 19:14:30 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-22 19:14:30 | entity: <data><node>node_pk7eyw0181</node><entry><content>content_bv2z4x0184</content></entry></data>

2019-11-22 19:14:30 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 03:14:30 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 19:14:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>cc068442-4a35-46e3-945e-ff4c68e2ef9a</value></item-id></result>

2019-11-22 19:14:30 | contains: true

2019-11-22 19:14:35 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-22 19:14:35 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=454 thread=1] DNS entry stored in session object: localhost:5222

2019-11-22 19:14:35 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=454 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-22 19:14:36 | [Mutex] waiting for: [user_regulard2xlsi0180@localhost:message:received:content_bv2z4x0184]

2019-11-22 19:14:36 | [Mutex] waiting for: [user_regulard2xlsi0180@localhost:message:received:content_bv2z4x0184]

2019-11-22 19:14:36 | [Mutex] received everything.

2019-11-22 19:14:36 | [Mutex] isItemNotified: user_regulard2xlsi0180@localhost:message:received:content_bv2z4x0184 :: true

2019-11-22 19:14:36 |


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


2019-11-22 19:14:36 | [Mutex] received everything.

2019-11-22 19:14:36 | [Mutex] isItemNotified: node_pk7eyw0181:subscribe_node:success :: true

2019-11-22 19:14:36 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-22 19:14:36 | command: <data><node>node_pk7eyw0181</node><expire-at>2019-11-23T03:14:41Z</expire-at><entry><content>content_chrbm70185</content></entry></data>

2019-11-22 19:14:36 | target: http://localhost:8088

2019-11-22 19:14:36 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-22 19:14:36 | entity: <data><node>node_pk7eyw0181</node><expire-at>2019-11-23T03:14:41Z</expire-at><entry><content>content_chrbm70185</content></entry></data>

2019-11-22 19:14:36 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Sat, 23 Nov 2019 03:14:36 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-22 19:14:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>21099e6d-d0d2-45f3-ac3e-a7c6f2b0803b</value></item-id></result>

2019-11-22 19:14:36 | contains: true

2019-11-22 19:14:44 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-22 19:14:44 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=455 thread=1] DNS entry stored in session object: localhost:5222

2019-11-22 19:14:44 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=455 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-22 19:14:44 | [Mutex] waiting for: [user_regulard2xlsi0180@localhost:message:received:content_chrbm70185]

2019-11-22 19:14:44 | [Mutex] waiting for: [user_regulard2xlsi0180@localhost:message:received:content_chrbm70185]

2019-11-22 19:14:44 | [Mutex] waiting for: [user_regulard2xlsi0180@localhost:message:received:content_chrbm70185]

2019-11-22 19:14:59 | [Mutex] timeout. Not received [user_regulard2xlsi0180@localhost:message:received:content_chrbm70185]

2019-11-22 19:14:59 | [Mutex] received everything.

2019-11-22 19:14:59 | [Mutex] isItemNotified: user_regulard2xlsi0180@localhost:message:received:content_chrbm70185 :: false

2019-11-22 19:14:59 | [Mutex] isItemNotified: admin@localhost:message:received:content_chrbm70185 :: true