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

Test duration: 45.366s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.708s
2019-11-25 21:18:06 |

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

2019-11-25 21:18:06 | ------------------------------------

2019-11-25 21:18:06 | [Mutex] isItemNotified: node_cq9l6y0184:exists :: false

2019-11-25 21:18:06 | [Mutex] waiting for: [node_cq9l6y0184:create_node]

2019-11-25 21:18:06 | [Mutex] received everything.

2019-11-25 21:18:06 | [Mutex] isItemNotified: node_cq9l6y0184:create_node:success :: true

2019-11-25 21:18:06 | [Mutex] waiting for: [node_cq9l6y0184:subscribe_node]

2019-11-25 21:18:06 | [Mutex] received everything.

2019-11-25 21:18:06 | [Mutex] isItemNotified: node_cq9l6y0184:subscribe_node:success :: true

2019-11-25 21:18:06 |


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


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

2019-11-25 21:18:06 | command: <data><node>node_cq9l6y0184</node><entry><content>content_n75yf60185</content></entry></data>

2019-11-25 21:18:06 | target: http://localhost:8088

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

2019-11-25 21:18:06 | entity: <data><node>node_cq9l6y0184</node><entry><content>content_n75yf60185</content></entry></data>

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

2019-11-25 21:18:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3677eec5-5df3-40ad-911e-60843689407d</value></item-id></result>

2019-11-25 21:18:06 | contains: true

2019-11-25 21:18:06 | [Mutex] received everything.

2019-11-25 21:18:06 | [Mutex] isItemNotified: user_regularpivk4c0183@localhost:message:received:content_n75yf60185 :: true

2019-11-25 21:18:06 |


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


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

2019-11-25 21:18:06 | command: <data><node>node_cq9l6y0184</node><expire-at>2019-11-26T05:18:01Z</expire-at><entry><content>content_c4oz0y0186</content></entry></data>

2019-11-25 21:18:06 | target: http://localhost:8088

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

2019-11-25 21:18:06 | entity: <data><node>node_cq9l6y0184</node><expire-at>2019-11-26T05:18:01Z</expire-at><entry><content>content_c4oz0y0186</content></entry></data>

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

2019-11-25 21:18:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>877d7336-a557-4dd2-a40a-6f44f11d5f0d</value></item-id></result>

2019-11-25 21:18:06 | contains: true

2019-11-25 21:18:06 | [Mutex] waiting for: [user_regularpivk4c0183@localhost:message:received:content_c4oz0y0186]

2019-11-25 21:18:21 | [Mutex] timeout. Not received [user_regularpivk4c0183@localhost:message:received:content_c4oz0y0186]

2019-11-25 21:18:21 | [Mutex] isItemNotified: user_regularpivk4c0183@localhost:message:received:content_c4oz0y0186 :: false

2019-11-25 21:18:21 |


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


2019-11-25 21:18:21 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-25 21:18:21 | command: <data><node>node_cq9l6y0184</node><entry><content>content_2gli9q0187</content></entry></data>

2019-11-25 21:18:21 | target: http://localhost:8088

2019-11-25 21:18:21 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-25 21:18:21 | entity: <data><node>node_cq9l6y0184</node><entry><content>content_2gli9q0187</content></entry></data>

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

2019-11-25 21:18:21 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6c7be9bd-5bcb-4760-ab11-c6bccc7753fd</value></item-id></result>

2019-11-25 21:18:21 | contains: true

2019-11-25 21:18:26 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-11-25 21:18:26 | [Mutex] waiting for: [user_regularpivk4c0183@localhost:message:received:content_2gli9q0187]

2019-11-25 21:18:26 | [Mutex] received everything.

2019-11-25 21:18:26 | [Mutex] isItemNotified: user_regularpivk4c0183@localhost:message:received:content_2gli9q0187 :: true

2019-11-25 21:18:26 |


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


2019-11-25 21:18:26 | [Mutex] received everything.

2019-11-25 21:18:26 | [Mutex] isItemNotified: node_cq9l6y0184:subscribe_node:success :: true

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

2019-11-25 21:18:26 | command: <data><node>node_cq9l6y0184</node><expire-at>2019-11-26T05:18:31Z</expire-at><entry><content>content_vflrbq0188</content></entry></data>

2019-11-25 21:18:26 | target: http://localhost:8088

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

2019-11-25 21:18:26 | entity: <data><node>node_cq9l6y0184</node><expire-at>2019-11-26T05:18:31Z</expire-at><entry><content>content_vflrbq0188</content></entry></data>

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

2019-11-25 21:18:26 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7e6637a9-8803-4315-a484-340ecbfcefaf</value></item-id></result>

2019-11-25 21:18:26 | contains: true

2019-11-25 21:18:34 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-11-25 21:18:35 | [Mutex] waiting for: [user_regularpivk4c0183@localhost:message:received:content_vflrbq0188]

2019-11-25 21:18:35 | [Mutex] waiting for: [user_regularpivk4c0183@localhost:message:received:content_vflrbq0188]

2019-11-25 21:18:35 | [Mutex] waiting for: [user_regularpivk4c0183@localhost:message:received:content_vflrbq0188]

2019-11-25 21:18:50 | [Mutex] timeout. Not received [user_regularpivk4c0183@localhost:message:received:content_vflrbq0188]

2019-11-25 21:18:50 | [Mutex] received everything.

2019-11-25 21:18:50 | [Mutex] isItemNotified: user_regularpivk4c0183@localhost:message:received:content_vflrbq0188 :: false

2019-11-25 21:18:50 | [Mutex] isItemNotified: admin@localhost:message:received:content_vflrbq0188 :: true