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

Test duration: 44.936s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.611s
2019-12-12 20:42:50 |

2019-12-12 20:42:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2019-12-12 20:42:50 | ------------------------------------

2019-12-12 20:42:50 | [Mutex] isItemNotified: node_cnxf1z0184:exists :: false

2019-12-12 20:42:50 | [Mutex] waiting for: [node_cnxf1z0184:create_node]

2019-12-12 20:42:50 | [Mutex] received everything.

2019-12-12 20:42:50 | [Mutex] isItemNotified: node_cnxf1z0184:create_node:success :: true

2019-12-12 20:42:50 | [Mutex] waiting for: [node_cnxf1z0184:subscribe_node]

2019-12-12 20:42:50 | [Mutex] received everything.

2019-12-12 20:42:50 | [Mutex] isItemNotified: node_cnxf1z0184:subscribe_node:success :: true

2019-12-12 20:42:50 |


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


2019-12-12 20:42:50 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-12 20:42:50 | command: <data><node>node_cnxf1z0184</node><entry><content>content_r5nwka0185</content></entry></data>

2019-12-12 20:42:50 | target: http://localhost:8088

2019-12-12 20:42:50 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-12-12 20:42:50 | entity: <data><node>node_cnxf1z0184</node><entry><content>content_r5nwka0185</content></entry></data>

2019-12-12 20:42:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:42:50 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-12 20:42:50 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3b4a915d-b0b8-4430-a187-ab75e7316dfd</value></item-id></result>

2019-12-12 20:42:50 | contains: true

2019-12-12 20:42:50 | [Mutex] received everything.

2019-12-12 20:42:50 | [Mutex] isItemNotified: user_regularpsqnjo0183@localhost:message:received:content_r5nwka0185 :: true

2019-12-12 20:42:50 |


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


2019-12-12 20:42:50 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-12 20:42:50 | command: <data><node>node_cnxf1z0184</node><expire-at>2019-12-13T04:42:45Z</expire-at><entry><content>content_v1fwaa0186</content></entry></data>

2019-12-12 20:42:50 | target: http://localhost:8088

2019-12-12 20:42:50 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-12-12 20:42:50 | entity: <data><node>node_cnxf1z0184</node><expire-at>2019-12-13T04:42:45Z</expire-at><entry><content>content_v1fwaa0186</content></entry></data>

2019-12-12 20:42:50 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:42:50 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-12 20:42:50 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3c1746e1-1a00-4a36-88c9-0a7b09ce5c8a</value></item-id></result>

2019-12-12 20:42:50 | contains: true

2019-12-12 20:42:50 | [Mutex] waiting for: [user_regularpsqnjo0183@localhost:message:received:content_v1fwaa0186]

2019-12-12 20:43:05 | [Mutex] timeout. Not received [user_regularpsqnjo0183@localhost:message:received:content_v1fwaa0186]

2019-12-12 20:43:05 | [Mutex] isItemNotified: user_regularpsqnjo0183@localhost:message:received:content_v1fwaa0186 :: false

2019-12-12 20:43:05 |


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


2019-12-12 20:43:05 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-12 20:43:05 | command: <data><node>node_cnxf1z0184</node><entry><content>content_6vjhvt0187</content></entry></data>

2019-12-12 20:43:05 | target: http://localhost:8088

2019-12-12 20:43:05 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2019-12-12 20:43:05 | entity: <data><node>node_cnxf1z0184</node><entry><content>content_6vjhvt0187</content></entry></data>

2019-12-12 20:43:05 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:43:05 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-12 20:43:05 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>29c32d7e-f828-492a-b387-05d23a5441dd</value></item-id></result>

2019-12-12 20:43:05 | contains: true

2019-12-12 20:43:10 | [Mutex] waiting for: [user_regularpsqnjo0183@localhost:message:received:content_6vjhvt0187]

2019-12-12 20:43:10 | [Mutex] received everything.

2019-12-12 20:43:10 | [Mutex] isItemNotified: user_regularpsqnjo0183@localhost:message:received:content_6vjhvt0187 :: true

2019-12-12 20:43:10 |


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


2019-12-12 20:43:10 | [Mutex] received everything.

2019-12-12 20:43:10 | [Mutex] isItemNotified: node_cnxf1z0184:subscribe_node:success :: true

2019-12-12 20:43:10 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2019-12-12 20:43:10 | command: <data><node>node_cnxf1z0184</node><expire-at>2019-12-13T04:43:15Z</expire-at><entry><content>content_e0yfs40188</content></entry></data>

2019-12-12 20:43:10 | target: http://localhost:8088

2019-12-12 20:43:10 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2019-12-12 20:43:10 | entity: <data><node>node_cnxf1z0184</node><expire-at>2019-12-13T04:43:15Z</expire-at><entry><content>content_e0yfs40188</content></entry></data>

2019-12-12 20:43:10 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 13 Dec 2019 04:43:10 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2019-12-12 20:43:10 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>8c5cfc99-d6d0-462b-bff0-1bdfa9abbc89</value></item-id></result>

2019-12-12 20:43:10 | contains: true

2019-12-12 20:43:18 | [Mutex] waiting for: [user_regularpsqnjo0183@localhost:message:received:content_e0yfs40188]

2019-12-12 20:43:18 | [Mutex] waiting for: [user_regularpsqnjo0183@localhost:message:received:content_e0yfs40188]

2019-12-12 20:43:33 | [Mutex] timeout. Not received [user_regularpsqnjo0183@localhost:message:received:content_e0yfs40188]

2019-12-12 20:43:33 | [Mutex] received everything.

2019-12-12 20:43:33 | [Mutex] isItemNotified: user_regularpsqnjo0183@localhost:message:received:content_e0yfs40188 :: false

2019-12-12 20:43:33 | [Mutex] isItemNotified: admin@localhost:message:received:content_e0yfs40188 :: true