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

Test duration: 45.108s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.628s
2019-11-24 20:15:00 |

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

2019-11-24 20:15:00 | ------------------------------------

2019-11-24 20:15:00 | [Mutex] isItemNotified: node_7htrky0184:exists :: false

2019-11-24 20:15:00 | [Mutex] waiting for: [node_7htrky0184:create_node]

2019-11-24 20:15:00 | [Mutex] received everything.

2019-11-24 20:15:00 | [Mutex] isItemNotified: node_7htrky0184:create_node:success :: true

2019-11-24 20:15:00 | [Mutex] waiting for: [node_7htrky0184:subscribe_node]

2019-11-24 20:15:00 | [Mutex] received everything.

2019-11-24 20:15:00 | [Mutex] isItemNotified: node_7htrky0184:subscribe_node:success :: true

2019-11-24 20:15:00 |


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


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

2019-11-24 20:15:00 | command: <data><node>node_7htrky0184</node><entry><content>content_srf3yb0185</content></entry></data>

2019-11-24 20:15:00 | target: http://localhost:8088

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

2019-11-24 20:15:00 | entity: <data><node>node_7htrky0184</node><entry><content>content_srf3yb0185</content></entry></data>

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

2019-11-24 20:15:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1e7b4c86-65e3-47f6-ad29-85637c3f8de4</value></item-id></result>

2019-11-24 20:15:00 | contains: true

2019-11-24 20:15:00 | [Mutex] received everything.

2019-11-24 20:15:00 | [Mutex] isItemNotified: user_regular6sz3os0183@localhost:message:received:content_srf3yb0185 :: true

2019-11-24 20:15:00 |


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


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

2019-11-24 20:15:00 | command: <data><node>node_7htrky0184</node><expire-at>2019-11-25T04:14:55Z</expire-at><entry><content>content_uqs6jk0186</content></entry></data>

2019-11-24 20:15:00 | target: http://localhost:8088

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

2019-11-24 20:15:00 | entity: <data><node>node_7htrky0184</node><expire-at>2019-11-25T04:14:55Z</expire-at><entry><content>content_uqs6jk0186</content></entry></data>

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

2019-11-24 20:15:00 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>2f249645-dc36-490c-9f14-18be996c0f05</value></item-id></result>

2019-11-24 20:15:00 | contains: true

2019-11-24 20:15:00 | [Mutex] waiting for: [user_regular6sz3os0183@localhost:message:received:content_uqs6jk0186]

2019-11-24 20:15:15 | [Mutex] timeout. Not received [user_regular6sz3os0183@localhost:message:received:content_uqs6jk0186]

2019-11-24 20:15:15 | [Mutex] isItemNotified: user_regular6sz3os0183@localhost:message:received:content_uqs6jk0186 :: false

2019-11-24 20:15:15 |


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


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

2019-11-24 20:15:15 | command: <data><node>node_7htrky0184</node><entry><content>content_3e1lcx0187</content></entry></data>

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

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

2019-11-24 20:15:15 | entity: <data><node>node_7htrky0184</node><entry><content>content_3e1lcx0187</content></entry></data>

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

2019-11-24 20:15:15 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6c42083e-54f8-4eea-954a-1bca6c775814</value></item-id></result>

2019-11-24 20:15:15 | contains: true

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

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

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

2019-11-24 20:15:20 | [Mutex] waiting for: [user_regular6sz3os0183@localhost:message:received:content_3e1lcx0187]

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

2019-11-24 20:15:20 | [Mutex] isItemNotified: user_regular6sz3os0183@localhost:message:received:content_3e1lcx0187 :: true

2019-11-24 20:15:20 |


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


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

2019-11-24 20:15:20 | [Mutex] isItemNotified: node_7htrky0184:subscribe_node:success :: true

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

2019-11-24 20:15:20 | command: <data><node>node_7htrky0184</node><expire-at>2019-11-25T04:15:25Z</expire-at><entry><content>content_3dp2q80188</content></entry></data>

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

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

2019-11-24 20:15:20 | entity: <data><node>node_7htrky0184</node><expire-at>2019-11-25T04:15:25Z</expire-at><entry><content>content_3dp2q80188</content></entry></data>

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

2019-11-24 20:15:20 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d7550d18-7676-4bbb-a673-ec7d4fb9f927</value></item-id></result>

2019-11-24 20:15:20 | contains: true

2019-11-24 20:15:28 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

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

2019-11-24 20:15:28 | [Mutex] waiting for: [user_regular6sz3os0183@localhost:message:received:content_3dp2q80188]

2019-11-24 20:15:28 | [Mutex] waiting for: [user_regular6sz3os0183@localhost:message:received:content_3dp2q80188]

2019-11-24 20:15:28 | [Mutex] waiting for: [user_regular6sz3os0183@localhost:message:received:content_3dp2q80188]

2019-11-24 20:15:43 | [Mutex] timeout. Not received [user_regular6sz3os0183@localhost:message:received:content_3dp2q80188]

2019-11-24 20:15:43 | [Mutex] received everything.

2019-11-24 20:15:43 | [Mutex] isItemNotified: user_regular6sz3os0183@localhost:message:received:content_3dp2q80188 :: false

2019-11-24 20:15:43 | [Mutex] isItemNotified: admin@localhost:message:received:content_3dp2q80188 :: true