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

Test duration: 45.075s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.590s
2019-11-25 19:38:57 |

2019-11-25 19:38:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-25 19:38:57 | ------------------------------------

2019-11-25 19:38:57 | [Mutex] isItemNotified: node_f2sqmi0181:exists :: false

2019-11-25 19:38:57 | [Mutex] waiting for: [node_f2sqmi0181:create_node]

2019-11-25 19:38:57 | [Mutex] received everything.

2019-11-25 19:38:57 | [Mutex] isItemNotified: node_f2sqmi0181:create_node:success :: true

2019-11-25 19:38:57 | [Mutex] waiting for: [node_f2sqmi0181:subscribe_node]

2019-11-25 19:38:57 | [Mutex] received everything.

2019-11-25 19:38:57 | [Mutex] isItemNotified: node_f2sqmi0181:subscribe_node:success :: true

2019-11-25 19:38:57 |


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


2019-11-25 19:38:57 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 19:38:57 | command: <data><node>node_f2sqmi0181</node><entry><content>content_4f0g2h0182</content></entry></data>

2019-11-25 19:38:57 | target: http://localhost:8088

2019-11-25 19:38:57 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-25 19:38:57 | entity: <data><node>node_f2sqmi0181</node><entry><content>content_4f0g2h0182</content></entry></data>

2019-11-25 19:38:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 03:38:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 19:38:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6aa9764e-1671-4033-a5ef-c44e7a7a59fe</value></item-id></result>

2019-11-25 19:38:57 | contains: true

2019-11-25 19:38:57 | [Mutex] received everything.

2019-11-25 19:38:57 | [Mutex] isItemNotified: user_regular9m8qsd0180@localhost:message:received:content_4f0g2h0182 :: true

2019-11-25 19:38:57 |


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


2019-11-25 19:38:57 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 19:38:57 | command: <data><node>node_f2sqmi0181</node><expire-at>2019-11-26T03:38:52Z</expire-at><entry><content>content_f7b6c80183</content></entry></data>

2019-11-25 19:38:57 | target: http://localhost:8088

2019-11-25 19:38:57 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-25 19:38:57 | entity: <data><node>node_f2sqmi0181</node><expire-at>2019-11-26T03:38:52Z</expire-at><entry><content>content_f7b6c80183</content></entry></data>

2019-11-25 19:38:57 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 03:38:57 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 19:38:57 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>cbdf40a6-3b5d-4c39-8b72-1ada73967b13</value></item-id></result>

2019-11-25 19:38:57 | contains: true

2019-11-25 19:38:57 | [Mutex] waiting for: [user_regular9m8qsd0180@localhost:message:received:content_f7b6c80183]

2019-11-25 19:39:12 | [Mutex] timeout. Not received [user_regular9m8qsd0180@localhost:message:received:content_f7b6c80183]

2019-11-25 19:39:12 | [Mutex] isItemNotified: user_regular9m8qsd0180@localhost:message:received:content_f7b6c80183 :: false

2019-11-25 19:39:12 |


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


2019-11-25 19:39:12 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 19:39:12 | command: <data><node>node_f2sqmi0181</node><entry><content>content_kw5d6j0184</content></entry></data>

2019-11-25 19:39:12 | target: http://localhost:8088

2019-11-25 19:39:12 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-25 19:39:12 | entity: <data><node>node_f2sqmi0181</node><entry><content>content_kw5d6j0184</content></entry></data>

2019-11-25 19:39:12 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 03:39:12 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 19:39:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>fc64f929-655e-49b1-8178-d49fc2c0d555</value></item-id></result>

2019-11-25 19:39:12 | contains: true

2019-11-25 19:39:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-11-25 19:39:17 | [Mutex] waiting for: [user_regular9m8qsd0180@localhost:message:received:content_kw5d6j0184]

2019-11-25 19:39:17 | [Mutex] received everything.

2019-11-25 19:39:17 | [Mutex] isItemNotified: user_regular9m8qsd0180@localhost:message:received:content_kw5d6j0184 :: true

2019-11-25 19:39:17 |


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


2019-11-25 19:39:17 | [Mutex] received everything.

2019-11-25 19:39:17 | [Mutex] isItemNotified: node_f2sqmi0181:subscribe_node:success :: true

2019-11-25 19:39:17 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 19:39:17 | command: <data><node>node_f2sqmi0181</node><expire-at>2019-11-26T03:39:22Z</expire-at><entry><content>content_8cqdv50185</content></entry></data>

2019-11-25 19:39:17 | target: http://localhost:8088

2019-11-25 19:39:17 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-25 19:39:17 | entity: <data><node>node_f2sqmi0181</node><expire-at>2019-11-26T03:39:22Z</expire-at><entry><content>content_8cqdv50185</content></entry></data>

2019-11-25 19:39:17 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 26 Nov 2019 03:39:17 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-25 19:39:17 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>4ad8d329-d03d-4d74-a300-aa3c1c504dd5</value></item-id></result>

2019-11-25 19:39:17 | contains: true

2019-11-25 19:39:25 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-11-25 19:39:25 | [Mutex] waiting for: [user_regular9m8qsd0180@localhost:message:received:content_8cqdv50185]

2019-11-25 19:39:25 | [Mutex] waiting for: [user_regular9m8qsd0180@localhost:message:received:content_8cqdv50185]

2019-11-25 19:39:25 | [Mutex] waiting for: [user_regular9m8qsd0180@localhost:message:received:content_8cqdv50185]

2019-11-25 19:39:40 | [Mutex] timeout. Not received [user_regular9m8qsd0180@localhost:message:received:content_8cqdv50185]

2019-11-25 19:39:40 | [Mutex] received everything.

2019-11-25 19:39:40 | [Mutex] isItemNotified: user_regular9m8qsd0180@localhost:message:received:content_8cqdv50185 :: false

2019-11-25 19:39:40 | [Mutex] isItemNotified: admin@localhost:message:received:content_8cqdv50185 :: true