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

Test duration: 44.926s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.664s
2020-06-30 00:32:04 |

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

2020-06-30 00:32:04 | ------------------------------------

2020-06-30 00:32:04 | [Mutex] isItemNotified: node_cwvqsv0202:exists :: false

2020-06-30 00:32:04 | [Mutex] waiting for: [node_cwvqsv0202:create_node]

2020-06-30 00:32:04 | [Mutex] waiting for: [node_cwvqsv0202:create_node]

2020-06-30 00:32:04 | [Mutex] received everything.

2020-06-30 00:32:04 | [Mutex] isItemNotified: node_cwvqsv0202:create_node:success :: true

2020-06-30 00:32:04 | [Mutex] waiting for: [node_cwvqsv0202:subscribe_node]

2020-06-30 00:32:04 | [Mutex] waiting for: [node_cwvqsv0202:subscribe_node]

2020-06-30 00:32:04 | [Mutex] received everything.

2020-06-30 00:32:04 | [Mutex] isItemNotified: node_cwvqsv0202:subscribe_node:success :: true

2020-06-30 00:32:04 |


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


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

2020-06-30 00:32:04 | command: <data><node>node_cwvqsv0202</node><entry><content>content_edwuf0203</content></entry></data>

2020-06-30 00:32:04 | target: http://localhost:8088

2020-06-30 00:32:04 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2020-06-30 00:32:04 | entity: <data><node>node_cwvqsv0202</node><entry><content>content_edwuf0203</content></entry></data>

2020-06-30 00:32:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Jun 2020 07:32:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-30 00:32:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3e38f1c1-0a13-42c2-a732-141c8388cc08</value></item-id></result>

2020-06-30 00:32:04 | contains: true

2020-06-30 00:32:04 | [Mutex] received everything.

2020-06-30 00:32:04 | [Mutex] isItemNotified: user_regularu439v20201@localhost:message:received:content_edwuf0203 :: true

2020-06-30 00:32:04 |


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


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

2020-06-30 00:32:04 | command: <data><node>node_cwvqsv0202</node><expire-at>2020-06-30T07:31:59Z</expire-at><entry><content>content_v5d6vh0204</content></entry></data>

2020-06-30 00:32:04 | target: http://localhost:8088

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

2020-06-30 00:32:04 | entity: <data><node>node_cwvqsv0202</node><expire-at>2020-06-30T07:31:59Z</expire-at><entry><content>content_v5d6vh0204</content></entry></data>

2020-06-30 00:32:04 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Jun 2020 07:32:04 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-30 00:32:04 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f0aee7b2-fc02-43e5-8943-1fdd96391723</value></item-id></result>

2020-06-30 00:32:04 | contains: true

2020-06-30 00:32:04 | [Mutex] waiting for: [user_regularu439v20201@localhost:message:received:content_v5d6vh0204]

2020-06-30 00:32:19 | [Mutex] timeout. Not received [user_regularu439v20201@localhost:message:received:content_v5d6vh0204]

2020-06-30 00:32:19 | [Mutex] isItemNotified: user_regularu439v20201@localhost:message:received:content_v5d6vh0204 :: false

2020-06-30 00:32:19 |


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


2020-06-30 00:32:19 | postRequest: POST /rest/pubsub/pubsub.localhost/publish-item HTTP/1.1

2020-06-30 00:32:19 | command: <data><node>node_cwvqsv0202</node><entry><content>content_7lfdch0205</content></entry></data>

2020-06-30 00:32:19 | target: http://localhost:8088

2020-06-30 00:32:19 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-06-30 00:32:19 | entity: <data><node>node_cwvqsv0202</node><entry><content>content_7lfdch0205</content></entry></data>

2020-06-30 00:32:19 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Jun 2020 07:32:19 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-30 00:32:19 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>7badbbd9-6d66-48a1-963e-dcb6e624a22a</value></item-id></result>

2020-06-30 00:32:19 | contains: true

2020-06-30 00:32:24 | [Mutex] waiting for: [user_regularu439v20201@localhost:message:received:content_7lfdch0205]

2020-06-30 00:32:24 | [Mutex] waiting for: [user_regularu439v20201@localhost:message:received:content_7lfdch0205]

2020-06-30 00:32:24 | [Mutex] received everything.

2020-06-30 00:32:24 | [Mutex] isItemNotified: user_regularu439v20201@localhost:message:received:content_7lfdch0205 :: true

2020-06-30 00:32:24 |


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


2020-06-30 00:32:24 | [Mutex] received everything.

2020-06-30 00:32:24 | [Mutex] isItemNotified: node_cwvqsv0202:subscribe_node:success :: true

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

2020-06-30 00:32:24 | command: <data><node>node_cwvqsv0202</node><expire-at>2020-06-30T07:32:29Z</expire-at><entry><content>content_afutxd0206</content></entry></data>

2020-06-30 00:32:24 | target: http://localhost:8088

2020-06-30 00:32:24 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-06-30 00:32:24 | entity: <data><node>node_cwvqsv0202</node><expire-at>2020-06-30T07:32:29Z</expire-at><entry><content>content_afutxd0206</content></entry></data>

2020-06-30 00:32:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 30 Jun 2020 07:32:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-06-30 00:32:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>4d6e6d0a-7041-4751-86ed-35483c1dec04</value></item-id></result>

2020-06-30 00:32:24 | contains: true

2020-06-30 00:32:33 | [Mutex] waiting for: [user_regularu439v20201@localhost:message:received:content_afutxd0206]

2020-06-30 00:32:33 | [Mutex] waiting for: [user_regularu439v20201@localhost:message:received:content_afutxd0206]

2020-06-30 00:32:48 | [Mutex] timeout. Not received [user_regularu439v20201@localhost:message:received:content_afutxd0206]

2020-06-30 00:32:48 | [Mutex] received everything.

2020-06-30 00:32:48 | [Mutex] isItemNotified: user_regularu439v20201@localhost:message:received:content_afutxd0206 :: false

2020-06-30 00:32:48 | [Mutex] isItemNotified: admin@localhost:message:received:content_afutxd0206 :: true