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

Test duration: 45,447s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43,531s
2020-07-23 11:29:53 |

2020-07-23 11:29:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-07-23 11:29:53 | ------------------------------------

2020-07-23 11:29:53 | [Mutex] isItemNotified: node_ail1z40202:exists :: false

2020-07-23 11:29:53 | [Mutex] waiting for: [node_ail1z40202:create_node]

2020-07-23 11:29:53 | [Mutex] received everything.

2020-07-23 11:29:53 | [Mutex] isItemNotified: node_ail1z40202:create_node:success :: true

2020-07-23 11:29:53 | [Mutex] waiting for: [node_ail1z40202:subscribe_node]

2020-07-23 11:29:53 | [Mutex] waiting for: [node_ail1z40202:subscribe_node]

2020-07-23 11:29:53 | [Mutex] received everything.

2020-07-23 11:29:53 | [Mutex] isItemNotified: node_ail1z40202:subscribe_node:success :: true

2020-07-23 11:29:53 |


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


2020-07-23 11:29:53 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:29:53 | command: <data><node>node_ail1z40202</node><entry><content>content_95txbc0203</content></entry></data>

2020-07-23 11:29:53 | target: http://localhost:8088

2020-07-23 11:29:53 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-07-23 11:29:53 | entity: <data><node>node_ail1z40202</node><entry><content>content_95txbc0203</content></entry></data>

2020-07-23 11:29:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:29:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:29:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6deb137f-2857-44bc-b4f8-550ec2f0d44e</value></item-id></result>

2020-07-23 11:29:53 | contains: true

2020-07-23 11:29:53 | [Mutex] received everything.

2020-07-23 11:29:53 | [Mutex] isItemNotified: user_regulars9aycv0201@test-domain.com:message:received:content_95txbc0203 :: true

2020-07-23 11:29:53 |


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


2020-07-23 11:29:53 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:29:53 | command: <data><node>node_ail1z40202</node><expire-at>2020-07-23T15:29:48Z</expire-at><entry><content>content_xtt5cm0204</content></entry></data>

2020-07-23 11:29:53 | target: http://localhost:8088

2020-07-23 11:29:53 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-07-23 11:29:53 | entity: <data><node>node_ail1z40202</node><expire-at>2020-07-23T15:29:48Z</expire-at><entry><content>content_xtt5cm0204</content></entry></data>

2020-07-23 11:29:53 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:29:53 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:29:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>bbc4bbfe-fd0f-4260-84fd-636acbed053f</value></item-id></result>

2020-07-23 11:29:53 | contains: true

2020-07-23 11:29:53 | [Mutex] waiting for: [user_regulars9aycv0201@test-domain.com:message:received:content_xtt5cm0204]

2020-07-23 11:30:08 | [Mutex] timeout. Not received [user_regulars9aycv0201@test-domain.com:message:received:content_xtt5cm0204]

2020-07-23 11:30:08 | [Mutex] isItemNotified: user_regulars9aycv0201@test-domain.com:message:received:content_xtt5cm0204 :: false

2020-07-23 11:30:08 |


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


2020-07-23 11:30:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:30:08 | command: <data><node>node_ail1z40202</node><entry><content>content_c9y5bj0205</content></entry></data>

2020-07-23 11:30:08 | target: http://localhost:8088

2020-07-23 11:30:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-07-23 11:30:08 | entity: <data><node>node_ail1z40202</node><entry><content>content_c9y5bj0205</content></entry></data>

2020-07-23 11:30:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:30:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:30:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>2c011af1-ed89-4a69-b960-f1045cafbf49</value></item-id></result>

2020-07-23 11:30:08 | contains: true

2020-07-23 11:30:13 | [Mutex] waiting for: [user_regulars9aycv0201@test-domain.com:message:received:content_c9y5bj0205]

2020-07-23 11:30:13 | [Mutex] received everything.

2020-07-23 11:30:13 | [Mutex] isItemNotified: user_regulars9aycv0201@test-domain.com:message:received:content_c9y5bj0205 :: true

2020-07-23 11:30:13 |


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


2020-07-23 11:30:13 | [Mutex] received everything.

2020-07-23 11:30:13 | [Mutex] isItemNotified: node_ail1z40202:subscribe_node:success :: true

2020-07-23 11:30:13 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-23 11:30:13 | command: <data><node>node_ail1z40202</node><expire-at>2020-07-23T15:30:18Z</expire-at><entry><content>content_x0vj7k0206</content></entry></data>

2020-07-23 11:30:13 | target: http://localhost:8088

2020-07-23 11:30:13 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-07-23 11:30:13 | entity: <data><node>node_ail1z40202</node><expire-at>2020-07-23T15:30:18Z</expire-at><entry><content>content_x0vj7k0206</content></entry></data>

2020-07-23 11:30:13 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Thu, 23 Jul 2020 15:30:13 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-07-23 11:30:13 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>a6f3ca87-e264-41b2-96c2-62e719878668</value></item-id></result>

2020-07-23 11:30:13 | contains: true

2020-07-23 11:30:21 | [Mutex] waiting for: [user_regulars9aycv0201@test-domain.com:message:received:content_x0vj7k0206]

2020-07-23 11:30:21 | [Mutex] waiting for: [user_regulars9aycv0201@test-domain.com:message:received:content_x0vj7k0206]

2020-07-23 11:30:21 | [Mutex] waiting for: [user_regulars9aycv0201@test-domain.com:message:received:content_x0vj7k0206]

2020-07-23 11:30:36 | [Mutex] timeout. Not received [user_regulars9aycv0201@test-domain.com:message:received:content_x0vj7k0206]

2020-07-23 11:30:36 | [Mutex] received everything.

2020-07-23 11:30:36 | [Mutex] isItemNotified: user_regulars9aycv0201@test-domain.com:message:received:content_x0vj7k0206 :: false

2020-07-23 11:30:36 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_x0vj7k0206 :: true