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

Test duration: 45.126s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.710s
2020-05-19 17:43:35 |

2020-05-19 17:43:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-05-19 17:43:35 | ------------------------------------

2020-05-19 17:43:35 | [Mutex] isItemNotified: node_qmb92s0206:exists :: false

2020-05-19 17:43:35 | [Mutex] waiting for: [node_qmb92s0206:create_node]

2020-05-19 17:43:35 | [Mutex] received everything.

2020-05-19 17:43:35 | [Mutex] isItemNotified: node_qmb92s0206:create_node:success :: true

2020-05-19 17:43:35 | [Mutex] waiting for: [node_qmb92s0206:subscribe_node]

2020-05-19 17:43:35 | [Mutex] received everything.

2020-05-19 17:43:35 | [Mutex] isItemNotified: node_qmb92s0206:subscribe_node:success :: true

2020-05-19 17:43:35 |


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


2020-05-19 17:43:35 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-19 17:43:35 | command: <data><node>node_qmb92s0206</node><entry><content>content_tsyj4g0207</content></entry></data>

2020-05-19 17:43:35 | target: http://localhost:8088

2020-05-19 17:43:35 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-19 17:43:35 | entity: <data><node>node_qmb92s0206</node><entry><content>content_tsyj4g0207</content></entry></data>

2020-05-19 17:43:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 20 May 2020 00:43:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-19 17:43:35 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>716865f5-683c-4393-878f-9c9b07c19732</value></item-id></result>

2020-05-19 17:43:35 | contains: true

2020-05-19 17:43:35 | [Mutex] received everything.

2020-05-19 17:43:35 | [Mutex] isItemNotified: user_regularvgihpw0205@localhost:message:received:content_tsyj4g0207 :: true

2020-05-19 17:43:35 |


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


2020-05-19 17:43:35 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-19 17:43:35 | command: <data><node>node_qmb92s0206</node><expire-at>2020-05-20T00:43:30Z</expire-at><entry><content>content_261gj70208</content></entry></data>

2020-05-19 17:43:35 | target: http://localhost:8088

2020-05-19 17:43:35 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-19 17:43:35 | entity: <data><node>node_qmb92s0206</node><expire-at>2020-05-20T00:43:30Z</expire-at><entry><content>content_261gj70208</content></entry></data>

2020-05-19 17:43:35 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 20 May 2020 00:43:35 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-19 17:43:36 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a93af4ce-cb3f-48c1-a3e3-f8814d91114d</value></item-id></result>

2020-05-19 17:43:36 | contains: true

2020-05-19 17:43:36 | [Mutex] waiting for: [user_regularvgihpw0205@localhost:message:received:content_261gj70208]

2020-05-19 17:43:51 | [Mutex] timeout. Not received [user_regularvgihpw0205@localhost:message:received:content_261gj70208]

2020-05-19 17:43:51 | [Mutex] isItemNotified: user_regularvgihpw0205@localhost:message:received:content_261gj70208 :: false

2020-05-19 17:43:51 |


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


2020-05-19 17:43:51 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-19 17:43:51 | command: <data><node>node_qmb92s0206</node><entry><content>content_a7t4ha0209</content></entry></data>

2020-05-19 17:43:51 | target: http://localhost:8088

2020-05-19 17:43:51 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-05-19 17:43:51 | entity: <data><node>node_qmb92s0206</node><entry><content>content_a7t4ha0209</content></entry></data>

2020-05-19 17:43:51 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 20 May 2020 00:43:51 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-19 17:43:51 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>138872bc-6d4d-440e-a45b-748d77c4c8ed</value></item-id></result>

2020-05-19 17:43:51 | contains: true

2020-05-19 17:43:56 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-05-19 17:43:56 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] DNS entry stored in session object: localhost:5222

2020-05-19 17:43:56 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=491 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-05-19 17:43:56 | [Mutex] waiting for: [user_regularvgihpw0205@localhost:message:received:content_a7t4ha0209]

2020-05-19 17:43:56 | [Mutex] waiting for: [user_regularvgihpw0205@localhost:message:received:content_a7t4ha0209]

2020-05-19 17:43:56 | [Mutex] received everything.

2020-05-19 17:43:56 | [Mutex] isItemNotified: user_regularvgihpw0205@localhost:message:received:content_a7t4ha0209 :: true

2020-05-19 17:43:56 |


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


2020-05-19 17:43:56 | [Mutex] received everything.

2020-05-19 17:43:56 | [Mutex] isItemNotified: node_qmb92s0206:subscribe_node:success :: true

2020-05-19 17:43:56 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-05-19 17:43:56 | command: <data><node>node_qmb92s0206</node><expire-at>2020-05-20T00:44:01Z</expire-at><entry><content>content_tod5eg0210</content></entry></data>

2020-05-19 17:43:56 | target: http://localhost:8088

2020-05-19 17:43:56 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-05-19 17:43:56 | entity: <data><node>node_qmb92s0206</node><expire-at>2020-05-20T00:44:01Z</expire-at><entry><content>content_tod5eg0210</content></entry></data>

2020-05-19 17:43:56 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 20 May 2020 00:43:56 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-05-19 17:43:56 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>730173fe-efca-4e37-bffb-49087ef4d9e2</value></item-id></result>

2020-05-19 17:43:56 | contains: true

2020-05-19 17:44:04 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-05-19 17:44:04 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] DNS entry stored in session object: localhost:5222

2020-05-19 17:44:04 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=492 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-05-19 17:44:04 | [Mutex] waiting for: [user_regularvgihpw0205@localhost:message:received:content_tod5eg0210]

2020-05-19 17:44:04 | [Mutex] waiting for: [user_regularvgihpw0205@localhost:message:received:content_tod5eg0210]

2020-05-19 17:44:04 | [Mutex] waiting for: [user_regularvgihpw0205@localhost:message:received:content_tod5eg0210]

2020-05-19 17:44:19 | [Mutex] timeout. Not received [user_regularvgihpw0205@localhost:message:received:content_tod5eg0210]

2020-05-19 17:44:19 | [Mutex] received everything.

2020-05-19 17:44:19 | [Mutex] isItemNotified: user_regularvgihpw0205@localhost:message:received:content_tod5eg0210 :: false

2020-05-19 17:44:19 | [Mutex] isItemNotified: admin@localhost:message:received:content_tod5eg0210 :: true