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

Test duration: 45.297s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.592s
2019-11-20 19:03:22 |

2019-11-20 19:03:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-20 19:03:22 | ------------------------------------

2019-11-20 19:03:22 | [Mutex] isItemNotified: node_55rups0172:exists :: false

2019-11-20 19:03:22 | [Mutex] waiting for: [node_55rups0172:create_node]

2019-11-20 19:03:22 | [Mutex] received everything.

2019-11-20 19:03:22 | [Mutex] isItemNotified: node_55rups0172:create_node:success :: true

2019-11-20 19:03:22 | [Mutex] waiting for: [node_55rups0172:subscribe_node]

2019-11-20 19:03:22 | [Mutex] received everything.

2019-11-20 19:03:22 | [Mutex] isItemNotified: node_55rups0172:subscribe_node:success :: true

2019-11-20 19:03:22 |


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


2019-11-20 19:03:22 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-20 19:03:22 | command: <data><node>node_55rups0172</node><entry><content>content_6cvlxu0173</content></entry></data>

2019-11-20 19:03:22 | target: http://localhost:8088

2019-11-20 19:03:22 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-20 19:03:22 | entity: <data><node>node_55rups0172</node><entry><content>content_6cvlxu0173</content></entry></data>

2019-11-20 19:03:22 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 03:03:22 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-20 19:03:22 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5b489d77-ec95-4e81-add9-df6f388c0711</value></item-id></result>

2019-11-20 19:03:22 | contains: true

2019-11-20 19:03:22 | [Mutex] received everything.

2019-11-20 19:03:22 | [Mutex] isItemNotified: user_regular7ystb90171@localhost:message:received:content_6cvlxu0173 :: true

2019-11-20 19:03:22 |


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


2019-11-20 19:03:22 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-20 19:03:22 | command: <data><node>node_55rups0172</node><expire-at>2019-11-21T03:03:17Z</expire-at><entry><content>content_40jo3k0174</content></entry></data>

2019-11-20 19:03:22 | target: http://localhost:8088

2019-11-20 19:03:22 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-20 19:03:22 | entity: <data><node>node_55rups0172</node><expire-at>2019-11-21T03:03:17Z</expire-at><entry><content>content_40jo3k0174</content></entry></data>

2019-11-20 19:03:22 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 03:03:22 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-20 19:03:22 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>d30fdb4c-0ce5-4a50-b47e-d8897a1d2170</value></item-id></result>

2019-11-20 19:03:22 | contains: true

2019-11-20 19:03:22 | [Mutex] waiting for: [user_regular7ystb90171@localhost:message:received:content_40jo3k0174]

2019-11-20 19:03:37 | [Mutex] timeout. Not received [user_regular7ystb90171@localhost:message:received:content_40jo3k0174]

2019-11-20 19:03:37 | [Mutex] isItemNotified: user_regular7ystb90171@localhost:message:received:content_40jo3k0174 :: false

2019-11-20 19:03:37 |


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


2019-11-20 19:03:37 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-20 19:03:37 | command: <data><node>node_55rups0172</node><entry><content>content_cw38yj0175</content></entry></data>

2019-11-20 19:03:37 | target: http://localhost:8088

2019-11-20 19:03:37 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-11-20 19:03:37 | entity: <data><node>node_55rups0172</node><entry><content>content_cw38yj0175</content></entry></data>

2019-11-20 19:03:37 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 03:03:37 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-20 19:03:37 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ed2c6845-d186-4a3f-bedc-1bac82738fe1</value></item-id></result>

2019-11-20 19:03:37 | contains: true

2019-11-20 19:03:42 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2019-11-20 19:03:42 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=433 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-20 19:03:42 | [Mutex] waiting for: [user_regular7ystb90171@localhost:message:received:content_cw38yj0175]

2019-11-20 19:03:42 | [Mutex] waiting for: [user_regular7ystb90171@localhost:message:received:content_cw38yj0175]

2019-11-20 19:03:42 | [Mutex] received everything.

2019-11-20 19:03:42 | [Mutex] isItemNotified: user_regular7ystb90171@localhost:message:received:content_cw38yj0175 :: true

2019-11-20 19:03:42 |


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


2019-11-20 19:03:42 | [Mutex] received everything.

2019-11-20 19:03:42 | [Mutex] isItemNotified: node_55rups0172:subscribe_node:success :: true

2019-11-20 19:03:42 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-11-20 19:03:42 | command: <data><node>node_55rups0172</node><expire-at>2019-11-21T03:03:47Z</expire-at><entry><content>content_aqm13p0176</content></entry></data>

2019-11-20 19:03:42 | target: http://localhost:8088

2019-11-20 19:03:42 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-20 19:03:42 | entity: <data><node>node_55rups0172</node><expire-at>2019-11-21T03:03:47Z</expire-at><entry><content>content_aqm13p0176</content></entry></data>

2019-11-20 19:03:42 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 21 Nov 2019 03:03:42 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-11-20 19:03:42 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>eb4ff9e0-437a-422b-a4c4-a1df43a067a4</value></item-id></result>

2019-11-20 19:03:42 | contains: true

2019-11-20 19:03:50 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2019-11-20 19:03:50 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=434 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-20 19:03:51 | [Mutex] waiting for: [user_regular7ystb90171@localhost:message:received:content_aqm13p0176]

2019-11-20 19:03:51 | [Mutex] waiting for: [user_regular7ystb90171@localhost:message:received:content_aqm13p0176]

2019-11-20 19:03:51 | [Mutex] waiting for: [user_regular7ystb90171@localhost:message:received:content_aqm13p0176]

2019-11-20 19:04:06 | [Mutex] timeout. Not received [user_regular7ystb90171@localhost:message:received:content_aqm13p0176]

2019-11-20 19:04:06 | [Mutex] received everything.

2019-11-20 19:04:06 | [Mutex] isItemNotified: user_regular7ystb90171@localhost:message:received:content_aqm13p0176 :: false

2019-11-20 19:04:06 | [Mutex] isItemNotified: admin@localhost:message:received:content_aqm13p0176 :: true