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

Test duration: 45.450s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.652s
2020-06-01 23:03:35 |

2020-06-01 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-06-01 23:03:35 | ------------------------------------

2020-06-01 23:03:35 | [Mutex] isItemNotified: node_rmiowu0206:exists :: false

2020-06-01 23:03:35 | [Mutex] waiting for: [node_rmiowu0206:create_node]

2020-06-01 23:03:35 | [Mutex] received everything.

2020-06-01 23:03:35 | [Mutex] isItemNotified: node_rmiowu0206:create_node:success :: true

2020-06-01 23:03:35 | [Mutex] waiting for: [node_rmiowu0206:subscribe_node]

2020-06-01 23:03:35 | [Mutex] received everything.

2020-06-01 23:03:35 | [Mutex] isItemNotified: node_rmiowu0206:subscribe_node:success :: true

2020-06-01 23:03:35 |


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


2020-06-01 23:03:35 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-01 23:03:35 | command: <data><node>node_rmiowu0206</node><entry><content>content_br2ajn0207</content></entry></data>

2020-06-01 23:03:35 | target: http://localhost:8088

2020-06-01 23:03:35 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-01 23:03:35 | entity: <data><node>node_rmiowu0206</node><entry><content>content_br2ajn0207</content></entry></data>

2020-06-01 23:03:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 06:03:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-01 23:03:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1c121239-5202-4db1-bbff-54d7e49955fe</value></item-id></result>

2020-06-01 23:03:35 | contains: true

2020-06-01 23:03:35 | [Mutex] received everything.

2020-06-01 23:03:35 | [Mutex] isItemNotified: user_regulari75k9f0205@localhost:message:received:content_br2ajn0207 :: true

2020-06-01 23:03:35 |


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


2020-06-01 23:03:35 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-01 23:03:35 | command: <data><node>node_rmiowu0206</node><expire-at>2020-06-02T06:03:30Z</expire-at><entry><content>content_jmeufq0208</content></entry></data>

2020-06-01 23:03:35 | target: http://localhost:8088

2020-06-01 23:03:35 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-01 23:03:35 | entity: <data><node>node_rmiowu0206</node><expire-at>2020-06-02T06:03:30Z</expire-at><entry><content>content_jmeufq0208</content></entry></data>

2020-06-01 23:03:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 06:03:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-01 23:03:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>02bce531-8312-489c-b782-316d19d3d429</value></item-id></result>

2020-06-01 23:03:35 | contains: true

2020-06-01 23:03:35 | [Mutex] waiting for: [user_regulari75k9f0205@localhost:message:received:content_jmeufq0208]

2020-06-01 23:03:50 | [Mutex] timeout. Not received [user_regulari75k9f0205@localhost:message:received:content_jmeufq0208]

2020-06-01 23:03:50 | [Mutex] isItemNotified: user_regulari75k9f0205@localhost:message:received:content_jmeufq0208 :: false

2020-06-01 23:03:50 |


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


2020-06-01 23:03:50 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-01 23:03:50 | command: <data><node>node_rmiowu0206</node><entry><content>content_4av1qv0209</content></entry></data>

2020-06-01 23:03:50 | target: http://localhost:8088

2020-06-01 23:03:50 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-01 23:03:50 | entity: <data><node>node_rmiowu0206</node><entry><content>content_4av1qv0209</content></entry></data>

2020-06-01 23:03:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 06:03:50 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-01 23:03:50 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f2c7f4b7-b702-4a89-85a0-6c36d64a2bbb</value></item-id></result>

2020-06-01 23:03:50 | contains: true

2020-06-01 23:03:55 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-01 23:03:55 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] DNS entry stored in session object: localhost:5222

2020-06-01 23:03:55 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-01 23:03:55 | [Mutex] waiting for: [user_regulari75k9f0205@localhost:message:received:content_4av1qv0209]

2020-06-01 23:03:55 | [Mutex] waiting for: [user_regulari75k9f0205@localhost:message:received:content_4av1qv0209]

2020-06-01 23:03:55 | [Mutex] received everything.

2020-06-01 23:03:55 | [Mutex] isItemNotified: user_regulari75k9f0205@localhost:message:received:content_4av1qv0209 :: true

2020-06-01 23:03:55 |


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


2020-06-01 23:03:55 | [Mutex] received everything.

2020-06-01 23:03:55 | [Mutex] isItemNotified: node_rmiowu0206:subscribe_node:success :: true

2020-06-01 23:03:55 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-01 23:03:55 | command: <data><node>node_rmiowu0206</node><expire-at>2020-06-02T06:04:00Z</expire-at><entry><content>content_1wiea0210</content></entry></data>

2020-06-01 23:03:55 | target: http://localhost:8088

2020-06-01 23:03:55 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2020-06-01 23:03:55 | entity: <data><node>node_rmiowu0206</node><expire-at>2020-06-02T06:04:00Z</expire-at><entry><content>content_1wiea0210</content></entry></data>

2020-06-01 23:03:55 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 02 Jun 2020 06:03:55 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-01 23:03:55 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5450841e-56a7-44b2-afbb-361f8b1b19c3</value></item-id></result>

2020-06-01 23:03:55 | contains: true

2020-06-01 23:04:03 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-06-01 23:04:03 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] DNS entry stored in session object: localhost:5222

2020-06-01 23:04:03 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-06-01 23:04:04 | [Mutex] waiting for: [user_regulari75k9f0205@localhost:message:received:content_1wiea0210]

2020-06-01 23:04:04 | [Mutex] waiting for: [user_regulari75k9f0205@localhost:message:received:content_1wiea0210]

2020-06-01 23:04:04 | [Mutex] waiting for: [user_regulari75k9f0205@localhost:message:received:content_1wiea0210]

2020-06-01 23:04:19 | [Mutex] timeout. Not received [user_regulari75k9f0205@localhost:message:received:content_1wiea0210]

2020-06-01 23:04:19 | [Mutex] received everything.

2020-06-01 23:04:19 | [Mutex] isItemNotified: user_regulari75k9f0205@localhost:message:received:content_1wiea0210 :: false

2020-06-01 23:04:19 | [Mutex] isItemNotified: admin@localhost:message:received:content_1wiea0210 :: true