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

Test duration: 45.087s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.620s
2019-11-22 19:44:10 |

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

2019-11-22 19:44:10 | ------------------------------------

2019-11-22 19:44:10 | [Mutex] isItemNotified: node_m6cx5g0184:exists :: false

2019-11-22 19:44:10 | [Mutex] waiting for: [node_m6cx5g0184:create_node]

2019-11-22 19:44:10 | [Mutex] received everything.

2019-11-22 19:44:10 | [Mutex] isItemNotified: node_m6cx5g0184:create_node:success :: true

2019-11-22 19:44:10 | [Mutex] waiting for: [node_m6cx5g0184:subscribe_node]

2019-11-22 19:44:10 | [Mutex] received everything.

2019-11-22 19:44:10 | [Mutex] isItemNotified: node_m6cx5g0184:subscribe_node:success :: true

2019-11-22 19:44:10 |


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


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

2019-11-22 19:44:10 | command: <data><node>node_m6cx5g0184</node><entry><content>content_8gdikq0185</content></entry></data>

2019-11-22 19:44:10 | target: http://localhost:8088

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

2019-11-22 19:44:10 | entity: <data><node>node_m6cx5g0184</node><entry><content>content_8gdikq0185</content></entry></data>

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

2019-11-22 19:44:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>92533d45-bd63-4eb1-b1aa-6a884bfbf88c</value></item-id></result>

2019-11-22 19:44:10 | contains: true

2019-11-22 19:44:10 | [Mutex] received everything.

2019-11-22 19:44:10 | [Mutex] isItemNotified: user_regularsc1cgx0183@localhost:message:received:content_8gdikq0185 :: true

2019-11-22 19:44:10 |


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


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

2019-11-22 19:44:10 | command: <data><node>node_m6cx5g0184</node><expire-at>2019-11-23T03:44:05Z</expire-at><entry><content>content_2ts81e0186</content></entry></data>

2019-11-22 19:44:10 | target: http://localhost:8088

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

2019-11-22 19:44:10 | entity: <data><node>node_m6cx5g0184</node><expire-at>2019-11-23T03:44:05Z</expire-at><entry><content>content_2ts81e0186</content></entry></data>

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

2019-11-22 19:44:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f154e09a-eccf-4f0f-a5c1-273724744ba0</value></item-id></result>

2019-11-22 19:44:10 | contains: true

2019-11-22 19:44:10 | [Mutex] waiting for: [user_regularsc1cgx0183@localhost:message:received:content_2ts81e0186]

2019-11-22 19:44:25 | [Mutex] timeout. Not received [user_regularsc1cgx0183@localhost:message:received:content_2ts81e0186]

2019-11-22 19:44:25 | [Mutex] isItemNotified: user_regularsc1cgx0183@localhost:message:received:content_2ts81e0186 :: false

2019-11-22 19:44:25 |


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


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

2019-11-22 19:44:25 | command: <data><node>node_m6cx5g0184</node><entry><content>content_2ongdz0187</content></entry></data>

2019-11-22 19:44:25 | target: http://localhost:8088

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

2019-11-22 19:44:25 | entity: <data><node>node_m6cx5g0184</node><entry><content>content_2ongdz0187</content></entry></data>

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

2019-11-22 19:44:25 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1db67255-efac-4d77-8b42-18f2a28d9c89</value></item-id></result>

2019-11-22 19:44:25 | contains: true

2019-11-22 19:44:30 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

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

2019-11-22 19:44:30 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=457 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-22 19:44:30 | [Mutex] waiting for: [user_regularsc1cgx0183@localhost:message:received:content_2ongdz0187]

2019-11-22 19:44:30 | [Mutex] received everything.

2019-11-22 19:44:30 | [Mutex] isItemNotified: user_regularsc1cgx0183@localhost:message:received:content_2ongdz0187 :: true

2019-11-22 19:44:30 |


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


2019-11-22 19:44:30 | [Mutex] received everything.

2019-11-22 19:44:30 | [Mutex] isItemNotified: node_m6cx5g0184:subscribe_node:success :: true

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

2019-11-22 19:44:30 | command: <data><node>node_m6cx5g0184</node><expire-at>2019-11-23T03:44:35Z</expire-at><entry><content>content_50mu0c0188</content></entry></data>

2019-11-22 19:44:30 | target: http://localhost:8088

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

2019-11-22 19:44:30 | entity: <data><node>node_m6cx5g0184</node><expire-at>2019-11-23T03:44:35Z</expire-at><entry><content>content_50mu0c0188</content></entry></data>

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

2019-11-22 19:44:30 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3d213452-4330-485d-bd03-0acae655bd92</value></item-id></result>

2019-11-22 19:44:30 | contains: true

2019-11-22 19:44:38 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector

2019-11-22 19:44:38 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] DNS entry stored in session object: localhost:5222

2019-11-22 19:44:38 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=458 thread=1] Opening connection to localhost/127.0.0.1:5222

2019-11-22 19:44:38 | [Mutex] waiting for: [user_regularsc1cgx0183@localhost:message:received:content_50mu0c0188]

2019-11-22 19:44:38 | [Mutex] waiting for: [user_regularsc1cgx0183@localhost:message:received:content_50mu0c0188]

2019-11-22 19:44:38 | [Mutex] waiting for: [user_regularsc1cgx0183@localhost:message:received:content_50mu0c0188]

2019-11-22 19:44:53 | [Mutex] timeout. Not received [user_regularsc1cgx0183@localhost:message:received:content_50mu0c0188]

2019-11-22 19:44:53 | [Mutex] received everything.

2019-11-22 19:44:53 | [Mutex] isItemNotified: user_regularsc1cgx0183@localhost:message:received:content_50mu0c0188 :: false

2019-11-22 19:44:53 | [Mutex] isItemNotified: admin@localhost:message:received:content_50mu0c0188 :: true