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

Test duration: 45.051s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.643s
2020-04-30 00:22:09 |

2020-04-30 00:22:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-04-30 00:22:09 | ------------------------------------

2020-04-30 00:22:09 | [Mutex] isItemNotified: node_33a1970205:exists :: false

2020-04-30 00:22:09 | [Mutex] waiting for: [node_33a1970205:create_node]

2020-04-30 00:22:09 | [Mutex] received everything.

2020-04-30 00:22:09 | [Mutex] isItemNotified: node_33a1970205:create_node:success :: true

2020-04-30 00:22:09 | [Mutex] waiting for: [node_33a1970205:subscribe_node]

2020-04-30 00:22:09 | [Mutex] received everything.

2020-04-30 00:22:09 | [Mutex] isItemNotified: node_33a1970205:subscribe_node:success :: true

2020-04-30 00:22:09 |


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


2020-04-30 00:22:09 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-04-30 00:22:09 | command: <data><node>node_33a1970205</node><entry><content>content_bpwdzp0206</content></entry></data>

2020-04-30 00:22:09 | target: http://localhost:8088

2020-04-30 00:22:09 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-04-30 00:22:09 | entity: <data><node>node_33a1970205</node><entry><content>content_bpwdzp0206</content></entry></data>

2020-04-30 00:22:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 30 Apr 2020 07:22:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-04-30 00:22:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>ff130ec0-f8ad-489f-a9d3-cf95bee613c7</value></item-id></result>

2020-04-30 00:22:09 | contains: true

2020-04-30 00:22:09 | [Mutex] waiting for: [user_regular6b24n40204@localhost:message:received:content_bpwdzp0206]

2020-04-30 00:22:09 | [Mutex] received everything.

2020-04-30 00:22:09 | [Mutex] isItemNotified: user_regular6b24n40204@localhost:message:received:content_bpwdzp0206 :: true

2020-04-30 00:22:09 |


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


2020-04-30 00:22:09 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-04-30 00:22:09 | command: <data><node>node_33a1970205</node><expire-at>2020-04-30T07:22:04Z</expire-at><entry><content>content_iqkjaf0207</content></entry></data>

2020-04-30 00:22:09 | target: http://localhost:8088

2020-04-30 00:22:09 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-04-30 00:22:09 | entity: <data><node>node_33a1970205</node><expire-at>2020-04-30T07:22:04Z</expire-at><entry><content>content_iqkjaf0207</content></entry></data>

2020-04-30 00:22:09 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 30 Apr 2020 07:22:09 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-04-30 00:22:09 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>c6c388d8-095e-4d97-b51c-46c366c3d7bf</value></item-id></result>

2020-04-30 00:22:09 | contains: true

2020-04-30 00:22:09 | [Mutex] waiting for: [user_regular6b24n40204@localhost:message:received:content_iqkjaf0207]

2020-04-30 00:22:24 | [Mutex] timeout. Not received [user_regular6b24n40204@localhost:message:received:content_iqkjaf0207]

2020-04-30 00:22:24 | [Mutex] isItemNotified: user_regular6b24n40204@localhost:message:received:content_iqkjaf0207 :: false

2020-04-30 00:22:24 |


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


2020-04-30 00:22:24 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-04-30 00:22:24 | command: <data><node>node_33a1970205</node><entry><content>content_opn1rp0208</content></entry></data>

2020-04-30 00:22:24 | target: http://localhost:8088

2020-04-30 00:22:24 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-04-30 00:22:24 | entity: <data><node>node_33a1970205</node><entry><content>content_opn1rp0208</content></entry></data>

2020-04-30 00:22:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 30 Apr 2020 07:22:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-04-30 00:22:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>8eacde73-bd36-4c2f-9747-c5611223bc16</value></item-id></result>

2020-04-30 00:22:24 | contains: true

2020-04-30 00:22:29 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-04-30 00:22:29 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=489 thread=1] DNS entry stored in session object: localhost:5222

2020-04-30 00:22:29 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=489 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-04-30 00:22:29 | [Mutex] waiting for: [user_regular6b24n40204@localhost:message:received:content_opn1rp0208]

2020-04-30 00:22:29 | [Mutex] received everything.

2020-04-30 00:22:29 | [Mutex] isItemNotified: user_regular6b24n40204@localhost:message:received:content_opn1rp0208 :: true

2020-04-30 00:22:29 |


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


2020-04-30 00:22:29 | [Mutex] received everything.

2020-04-30 00:22:29 | [Mutex] isItemNotified: node_33a1970205:subscribe_node:success :: true

2020-04-30 00:22:29 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-04-30 00:22:29 | command: <data><node>node_33a1970205</node><expire-at>2020-04-30T07:22:34Z</expire-at><entry><content>content_6axf120209</content></entry></data>

2020-04-30 00:22:29 | target: http://localhost:8088

2020-04-30 00:22:29 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-04-30 00:22:29 | entity: <data><node>node_33a1970205</node><expire-at>2020-04-30T07:22:34Z</expire-at><entry><content>content_6axf120209</content></entry></data>

2020-04-30 00:22:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 30 Apr 2020 07:22:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-04-30 00:22:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>6632829e-0df0-492c-a7e1-6b6d277873d9</value></item-id></result>

2020-04-30 00:22:29 | contains: true

2020-04-30 00:22:37 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2020-04-30 00:22:37 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=490 thread=1] DNS entry stored in session object: localhost:5222

2020-04-30 00:22:37 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=490 thread=1] Opening connection to localhost/127.0.0.1:5222

2020-04-30 00:22:37 | [Mutex] waiting for: [user_regular6b24n40204@localhost:message:received:content_6axf120209]

2020-04-30 00:22:52 | [Mutex] timeout. Not received [user_regular6b24n40204@localhost:message:received:content_6axf120209]

2020-04-30 00:22:52 | [Mutex] received everything.

2020-04-30 00:22:52 | [Mutex] isItemNotified: user_regular6b24n40204@localhost:message:received:content_6axf120209 :: false

2020-04-30 00:22:52 | [Mutex] isItemNotified: admin@localhost:message:received:content_6axf120209 :: true