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

Test duration: 45.726s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.672s
2019-11-20 21:04:11 |

2019-11-20 21:04:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-11-20 21:04:11 | ------------------------------------

2019-11-20 21:04:11 | [Mutex] isItemNotified: node_omag2m0169:exists :: false

2019-11-20 21:04:11 | [Mutex] waiting for: [node_omag2m0169:create_node]

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

2019-11-20 21:04:11 | [Mutex] isItemNotified: node_omag2m0169:create_node:success :: true

2019-11-20 21:04:11 | [Mutex] waiting for: [node_omag2m0169:subscribe_node]

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

2019-11-20 21:04:11 | [Mutex] isItemNotified: node_omag2m0169:subscribe_node:success :: true

2019-11-20 21:04:11 |


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


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

2019-11-20 21:04:11 | command: <data><node>node_omag2m0169</node><entry><content>content_k9ppnv0170</content></entry></data>

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

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

2019-11-20 21:04:11 | entity: <data><node>node_omag2m0169</node><entry><content>content_k9ppnv0170</content></entry></data>

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

2019-11-20 21:04:11 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ac08650a-cdb6-4c37-b567-fbf2ba98be45</value></item-id></result>

2019-11-20 21:04:11 | contains: true

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

2019-11-20 21:04:11 | [Mutex] isItemNotified: user_regular5vvd7u0168@localhost:message:received:content_k9ppnv0170 :: true

2019-11-20 21:04:11 |


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


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

2019-11-20 21:04:11 | command: <data><node>node_omag2m0169</node><expire-at>2019-11-21T05:04:06Z</expire-at><entry><content>content_r1p4xu0171</content></entry></data>

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

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

2019-11-20 21:04:11 | entity: <data><node>node_omag2m0169</node><expire-at>2019-11-21T05:04:06Z</expire-at><entry><content>content_r1p4xu0171</content></entry></data>

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

2019-11-20 21:04:12 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>d24b1135-a746-48be-b3b6-c645a5d77303</value></item-id></result>

2019-11-20 21:04:12 | contains: true

2019-11-20 21:04:12 | [Mutex] waiting for: [user_regular5vvd7u0168@localhost:message:received:content_r1p4xu0171]

2019-11-20 21:04:27 | [Mutex] timeout. Not received [user_regular5vvd7u0168@localhost:message:received:content_r1p4xu0171]

2019-11-20 21:04:27 | [Mutex] isItemNotified: user_regular5vvd7u0168@localhost:message:received:content_r1p4xu0171 :: false

2019-11-20 21:04:27 |


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


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

2019-11-20 21:04:27 | command: <data><node>node_omag2m0169</node><entry><content>content_u560100172</content></entry></data>

2019-11-20 21:04:27 | target: http://localhost:8088

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

2019-11-20 21:04:27 | entity: <data><node>node_omag2m0169</node><entry><content>content_u560100172</content></entry></data>

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

2019-11-20 21:04:27 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>dcfd2028-8bd4-4f1d-b8eb-15bb9040d75f</value></item-id></result>

2019-11-20 21:04:27 | contains: true

2019-11-20 21:04:32 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2019-11-20 21:04:32 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=430 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-20 21:04:32 | [Mutex] waiting for: [user_regular5vvd7u0168@localhost:message:received:content_u560100172]

2019-11-20 21:04:32 | [Mutex] waiting for: [user_regular5vvd7u0168@localhost:message:received:content_u560100172]

2019-11-20 21:04:32 | [Mutex] received everything.

2019-11-20 21:04:32 | [Mutex] isItemNotified: user_regular5vvd7u0168@localhost:message:received:content_u560100172 :: true

2019-11-20 21:04:32 |


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


2019-11-20 21:04:32 | [Mutex] received everything.

2019-11-20 21:04:32 | [Mutex] isItemNotified: node_omag2m0169:subscribe_node:success :: true

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

2019-11-20 21:04:32 | command: <data><node>node_omag2m0169</node><expire-at>2019-11-21T05:04:37Z</expire-at><entry><content>content_lrd9qu0173</content></entry></data>

2019-11-20 21:04:32 | target: http://localhost:8088

2019-11-20 21:04:32 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-11-20 21:04:32 | entity: <data><node>node_omag2m0169</node><expire-at>2019-11-21T05:04:37Z</expire-at><entry><content>content_lrd9qu0173</content></entry></data>

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

2019-11-20 21:04:32 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>8c55520b-e9e7-4aaa-be7c-86198e2fc121</value></item-id></result>

2019-11-20 21:04:32 | contains: true

2019-11-20 21:04:40 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2019-11-20 21:04:40 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=431 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-20 21:04:40 | [Mutex] waiting for: [user_regular5vvd7u0168@localhost:message:received:content_lrd9qu0173]

2019-11-20 21:04:40 | [Mutex] waiting for: [user_regular5vvd7u0168@localhost:message:received:content_lrd9qu0173]

2019-11-20 21:04:55 | [Mutex] timeout. Not received [user_regular5vvd7u0168@localhost:message:received:content_lrd9qu0173]

2019-11-20 21:04:55 | [Mutex] received everything.

2019-11-20 21:04:55 | [Mutex] isItemNotified: user_regular5vvd7u0168@localhost:message:received:content_lrd9qu0173 :: false

2019-11-20 21:04:55 | [Mutex] isItemNotified: admin@localhost:message:received:content_lrd9qu0173 :: true