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

Test duration: 45.165s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.652s
2019-11-24 20:44:49 |

2019-11-24 20:44:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-24 20:44:49 | ------------------------------------

2019-11-24 20:44:49 | [Mutex] isItemNotified: node_o8rnfz0184:exists :: false

2019-11-24 20:44:49 | [Mutex] waiting for: [node_o8rnfz0184:create_node]

2019-11-24 20:44:49 | [Mutex] waiting for: [node_o8rnfz0184:create_node]

2019-11-24 20:44:49 | [Mutex] received everything.

2019-11-24 20:44:49 | [Mutex] isItemNotified: node_o8rnfz0184:create_node:success :: true

2019-11-24 20:44:49 | [Mutex] waiting for: [node_o8rnfz0184:subscribe_node]

2019-11-24 20:44:49 | [Mutex] received everything.

2019-11-24 20:44:49 | [Mutex] isItemNotified: node_o8rnfz0184:subscribe_node:success :: true

2019-11-24 20:44:49 |


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


2019-11-24 20:44:49 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 20:44:49 | command: <data><node>node_o8rnfz0184</node><entry><content>content_qir5i60185</content></entry></data>

2019-11-24 20:44:49 | target: http://localhost:8088

2019-11-24 20:44:49 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-24 20:44:49 | entity: <data><node>node_o8rnfz0184</node><entry><content>content_qir5i60185</content></entry></data>

2019-11-24 20:44:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 04:44:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 20:44:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d20a1cca-1447-4822-a9e1-8425ca984554</value></item-id></result>

2019-11-24 20:44:49 | contains: true

2019-11-24 20:44:49 | [Mutex] received everything.

2019-11-24 20:44:49 | [Mutex] isItemNotified: user_regular3wfzd10183@localhost:message:received:content_qir5i60185 :: true

2019-11-24 20:44:49 |


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


2019-11-24 20:44:49 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 20:44:49 | command: <data><node>node_o8rnfz0184</node><expire-at>2019-11-25T04:44:44Z</expire-at><entry><content>content_1llf6b0186</content></entry></data>

2019-11-24 20:44:49 | target: http://localhost:8088

2019-11-24 20:44:49 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-24 20:44:49 | entity: <data><node>node_o8rnfz0184</node><expire-at>2019-11-25T04:44:44Z</expire-at><entry><content>content_1llf6b0186</content></entry></data>

2019-11-24 20:44:49 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 04:44:49 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 20:44:49 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>9d9fa756-f1ce-4ef1-947d-b0fbccd60872</value></item-id></result>

2019-11-24 20:44:49 | contains: true

2019-11-24 20:44:49 | [Mutex] waiting for: [user_regular3wfzd10183@localhost:message:received:content_1llf6b0186]

2019-11-24 20:45:04 | [Mutex] timeout. Not received [user_regular3wfzd10183@localhost:message:received:content_1llf6b0186]

2019-11-24 20:45:04 | [Mutex] isItemNotified: user_regular3wfzd10183@localhost:message:received:content_1llf6b0186 :: false

2019-11-24 20:45:04 |


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


2019-11-24 20:45:04 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 20:45:04 | command: <data><node>node_o8rnfz0184</node><entry><content>content_1zkmn70187</content></entry></data>

2019-11-24 20:45:04 | target: http://localhost:8088

2019-11-24 20:45:04 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-24 20:45:04 | entity: <data><node>node_o8rnfz0184</node><entry><content>content_1zkmn70187</content></entry></data>

2019-11-24 20:45:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 04:45:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 20:45:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c636ed9c-40c3-4315-b15f-6ec317e4dace</value></item-id></result>

2019-11-24 20:45:04 | contains: true

2019-11-24 20:45:09 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-24 20:45:09 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] DNS entry stored in session object: localhost:5222

2019-11-24 20:45:09 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-24 20:45:09 | [Mutex] waiting for: [user_regular3wfzd10183@localhost:message:received:content_1zkmn70187]

2019-11-24 20:45:09 | [Mutex] waiting for: [user_regular3wfzd10183@localhost:message:received:content_1zkmn70187]

2019-11-24 20:45:09 | [Mutex] received everything.

2019-11-24 20:45:09 | [Mutex] isItemNotified: user_regular3wfzd10183@localhost:message:received:content_1zkmn70187 :: true

2019-11-24 20:45:09 |


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


2019-11-24 20:45:09 | [Mutex] received everything.

2019-11-24 20:45:09 | [Mutex] isItemNotified: node_o8rnfz0184:subscribe_node:success :: true

2019-11-24 20:45:09 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-24 20:45:09 | command: <data><node>node_o8rnfz0184</node><expire-at>2019-11-25T04:45:14Z</expire-at><entry><content>content_j95wbx0188</content></entry></data>

2019-11-24 20:45:09 | target: http://localhost:8088

2019-11-24 20:45:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-24 20:45:09 | entity: <data><node>node_o8rnfz0184</node><expire-at>2019-11-25T04:45:14Z</expire-at><entry><content>content_j95wbx0188</content></entry></data>

2019-11-24 20:45:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 25 Nov 2019 04:45:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-24 20:45:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>fc2e329d-f8b8-4f88-8614-13fa164b1d26</value></item-id></result>

2019-11-24 20:45:09 | contains: true

2019-11-24 20:45:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-24 20:45:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] DNS entry stored in session object: localhost:5222

2019-11-24 20:45:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-24 20:45:17 | [Mutex] waiting for: [user_regular3wfzd10183@localhost:message:received:content_j95wbx0188]

2019-11-24 20:45:17 | [Mutex] waiting for: [user_regular3wfzd10183@localhost:message:received:content_j95wbx0188]

2019-11-24 20:45:17 | [Mutex] waiting for: [user_regular3wfzd10183@localhost:message:received:content_j95wbx0188]

2019-11-24 20:45:32 | [Mutex] timeout. Not received [user_regular3wfzd10183@localhost:message:received:content_j95wbx0188]

2019-11-24 20:45:32 | [Mutex] received everything.

2019-11-24 20:45:32 | [Mutex] isItemNotified: user_regular3wfzd10183@localhost:message:received:content_j95wbx0188 :: false

2019-11-24 20:45:32 | [Mutex] isItemNotified: admin@localhost:message:received:content_j95wbx0188 :: true