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

Test duration: 45.040s

Passed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 43.681s
2020-07-15 23:12:33 |

2020-07-15 23:12:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-07-15 23:12:33 | ------------------------------------

2020-07-15 23:12:33 | [Mutex] isItemNotified: node_oiceio0199:exists :: false

2020-07-15 23:12:33 | [Mutex] waiting for: [node_oiceio0199:create_node]

2020-07-15 23:12:33 | [Mutex] waiting for: [node_oiceio0199:create_node]

2020-07-15 23:12:33 | [Mutex] received everything.

2020-07-15 23:12:33 | [Mutex] isItemNotified: node_oiceio0199:create_node:success :: true

2020-07-15 23:12:33 | [Mutex] waiting for: [node_oiceio0199:subscribe_node]

2020-07-15 23:12:33 | [Mutex] waiting for: [node_oiceio0199:subscribe_node]

2020-07-15 23:12:33 | [Mutex] received everything.

2020-07-15 23:12:33 | [Mutex] isItemNotified: node_oiceio0199:subscribe_node:success :: true

2020-07-15 23:12:33 |


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


2020-07-15 23:12:33 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-15 23:12:33 | command: <data><node>node_oiceio0199</node><entry><content>content_i7tzxp0200</content></entry></data>

2020-07-15 23:12:33 | target: http://localhost:8088

2020-07-15 23:12:33 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-07-15 23:12:33 | entity: <data><node>node_oiceio0199</node><entry><content>content_i7tzxp0200</content></entry></data>

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

2020-07-15 23:12:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5b12276a-cece-4b53-8298-caff766ebaae</value></item-id></result>

2020-07-15 23:12:33 | contains: true

2020-07-15 23:12:33 | [Mutex] received everything.

2020-07-15 23:12:33 | [Mutex] isItemNotified: user_regularvymjwo0198@test-domain.com:message:received:content_i7tzxp0200 :: true

2020-07-15 23:12:33 |


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


2020-07-15 23:12:33 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-15 23:12:33 | command: <data><node>node_oiceio0199</node><expire-at>2020-07-16T06:12:28Z</expire-at><entry><content>content_h5daec0201</content></entry></data>

2020-07-15 23:12:33 | target: http://localhost:8088

2020-07-15 23:12:33 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-07-15 23:12:33 | entity: <data><node>node_oiceio0199</node><expire-at>2020-07-16T06:12:28Z</expire-at><entry><content>content_h5daec0201</content></entry></data>

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

2020-07-15 23:12:33 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f71ec890-a0c5-4ff0-80d2-60ab56dbdcd2</value></item-id></result>

2020-07-15 23:12:33 | contains: true

2020-07-15 23:12:33 | [Mutex] waiting for: [user_regularvymjwo0198@test-domain.com:message:received:content_h5daec0201]

2020-07-15 23:12:48 | [Mutex] timeout. Not received [user_regularvymjwo0198@test-domain.com:message:received:content_h5daec0201]

2020-07-15 23:12:48 | [Mutex] isItemNotified: user_regularvymjwo0198@test-domain.com:message:received:content_h5daec0201 :: false

2020-07-15 23:12:48 |


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


2020-07-15 23:12:48 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-07-15 23:12:48 | command: <data><node>node_oiceio0199</node><entry><content>content_nutru50202</content></entry></data>

2020-07-15 23:12:48 | target: http://localhost:8088

2020-07-15 23:12:48 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-07-15 23:12:48 | entity: <data><node>node_oiceio0199</node><entry><content>content_nutru50202</content></entry></data>

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

2020-07-15 23:12:48 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>5e7981d4-edfd-4186-9142-fe7e70651721</value></item-id></result>

2020-07-15 23:12:48 | contains: true

2020-07-15 23:12:53 | [Mutex] waiting for: [user_regularvymjwo0198@test-domain.com:message:received:content_nutru50202]

2020-07-15 23:12:53 | [Mutex] received everything.

2020-07-15 23:12:53 | [Mutex] isItemNotified: user_regularvymjwo0198@test-domain.com:message:received:content_nutru50202 :: true

2020-07-15 23:12:53 |


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


2020-07-15 23:12:53 | [Mutex] received everything.

2020-07-15 23:12:53 | [Mutex] isItemNotified: node_oiceio0199:subscribe_node:success :: true

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

2020-07-15 23:12:53 | command: <data><node>node_oiceio0199</node><expire-at>2020-07-16T06:12:58Z</expire-at><entry><content>content_7mtt7b0203</content></entry></data>

2020-07-15 23:12:53 | target: http://localhost:8088

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

2020-07-15 23:12:53 | entity: <data><node>node_oiceio0199</node><expire-at>2020-07-16T06:12:58Z</expire-at><entry><content>content_7mtt7b0203</content></entry></data>

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

2020-07-15 23:12:53 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>1def8eb2-3afb-421c-a330-b4585528eaa5</value></item-id></result>

2020-07-15 23:12:53 | contains: true

2020-07-15 23:13:01 | [Mutex] waiting for: [user_regularvymjwo0198@test-domain.com:message:received:content_7mtt7b0203]

2020-07-15 23:13:01 | [Mutex] waiting for: [user_regularvymjwo0198@test-domain.com:message:received:content_7mtt7b0203]

2020-07-15 23:13:01 | [Mutex] waiting for: [user_regularvymjwo0198@test-domain.com:message:received:content_7mtt7b0203]

2020-07-15 23:13:16 | [Mutex] timeout. Not received [user_regularvymjwo0198@test-domain.com:message:received:content_7mtt7b0203]

2020-07-15 23:13:16 | [Mutex] received everything.

2020-07-15 23:13:16 | [Mutex] isItemNotified: user_regularvymjwo0198@test-domain.com:message:received:content_7mtt7b0203 :: false

2020-07-15 23:13:16 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_7mtt7b0203 :: true