Generated by TestNG with ReportNG at 22:19 PDT on Thursday 06 May 2021
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 60.579s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.662s
2021-05-06 22:35:43 |

2021-05-06 22:35:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2021-05-06 22:35:43 | ------------------------------------

2021-05-06 22:35:43 | [Mutex] isItemNotified: node_l3zemr0203:exists :: false

2021-05-06 22:35:43 | [Mutex] waiting for: [node_l3zemr0203:create_node]

2021-05-06 22:35:43 | [Mutex] received everything.

2021-05-06 22:35:43 | [Mutex] isItemNotified: node_l3zemr0203:create_node:success :: true

2021-05-06 22:35:43 | [Mutex] waiting for: [node_l3zemr0203:subscribe_node]

2021-05-06 22:35:43 | [Mutex] received everything.

2021-05-06 22:35:43 | [Mutex] isItemNotified: node_l3zemr0203:subscribe_node:success :: true

2021-05-06 22:35:43 |


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


2021-05-06 22:35:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-05-06 22:35:43 | command: <data><node>node_l3zemr0203</node><entry><content>content_e5hljd0204</content></entry></data>

2021-05-06 22:35:43 | target: http://localhost:8088

2021-05-06 22:35:43 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-05-06 22:35:43 | entity: <data><node>node_l3zemr0203</node><entry><content>content_e5hljd0204</content></entry></data>

2021-05-06 22:35:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 07 May 2021 05:35:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-05-06 22:35:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>88392a0a-c774-4093-8c10-1f63a89ffd8d</value></item-id></result>

2021-05-06 22:35:43 | contains: true

2021-05-06 22:35:43 | [Mutex] received everything.

2021-05-06 22:35:43 | [Mutex] isItemNotified: user_regularuid17y0202@test-domain.com:message:received:content_e5hljd0204 :: true

2021-05-06 22:35:43 |


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


2021-05-06 22:35:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-05-06 22:35:43 | command: <data><node>node_l3zemr0203</node><expire-at>2021-05-07T05:35:38Z</expire-at><entry><content>content_qp9z560205</content></entry></data>

2021-05-06 22:35:43 | target: http://localhost:8088

2021-05-06 22:35:43 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-05-06 22:35:43 | entity: <data><node>node_l3zemr0203</node><expire-at>2021-05-07T05:35:38Z</expire-at><entry><content>content_qp9z560205</content></entry></data>

2021-05-06 22:35:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 07 May 2021 05:35:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-05-06 22:35:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>77144968-5a6a-4fa0-a206-ef861971676a</value></item-id></result>

2021-05-06 22:35:43 | contains: true

2021-05-06 22:35:43 | [Mutex] waiting for: [user_regularuid17y0202@test-domain.com:message:received:content_qp9z560205]

2021-05-06 22:35:58 | [Mutex] timeout. Not received [user_regularuid17y0202@test-domain.com:message:received:content_qp9z560205]

2021-05-06 22:35:58 | [Mutex] isItemNotified: user_regularuid17y0202@test-domain.com:message:received:content_qp9z560205 :: false

2021-05-06 22:35:58 |


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


2021-05-06 22:35:58 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-05-06 22:35:58 | command: <data><node>node_l3zemr0203</node><entry><content>content_lxg2jg0206</content></entry></data>

2021-05-06 22:35:58 | target: http://localhost:8088

2021-05-06 22:35:58 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-05-06 22:35:58 | entity: <data><node>node_l3zemr0203</node><entry><content>content_lxg2jg0206</content></entry></data>

2021-05-06 22:35:58 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 07 May 2021 05:35:58 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-05-06 22:35:58 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>3e141385-5bdc-4917-8ca8-28c086035f49</value></item-id></result>

2021-05-06 22:35:58 | contains: true

2021-05-06 22:36:03 | [Mutex] waiting for: [user_regularuid17y0202@test-domain.com:message:received:content_lxg2jg0206]

2021-05-06 22:36:03 | [Mutex] received everything.

2021-05-06 22:36:03 | [Mutex] isItemNotified: user_regularuid17y0202@test-domain.com:message:received:content_lxg2jg0206 :: true

2021-05-06 22:36:03 |


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


2021-05-06 22:36:03 | [Mutex] received everything.

2021-05-06 22:36:03 | [Mutex] isItemNotified: node_l3zemr0203:subscribe_node:success :: true

2021-05-06 22:36:03 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-05-06 22:36:03 | command: <data><node>node_l3zemr0203</node><expire-at>2021-05-07T05:36:08Z</expire-at><entry><content>content_t19a00207</content></entry></data>

2021-05-06 22:36:03 | target: http://localhost:8088

2021-05-06 22:36:03 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2021-05-06 22:36:03 | entity: <data><node>node_l3zemr0203</node><expire-at>2021-05-07T05:36:08Z</expire-at><entry><content>content_t19a00207</content></entry></data>

2021-05-06 22:36:03 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 07 May 2021 05:36:03 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-05-06 22:36:03 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>00b3bd68-d020-4591-941e-90064abb4330</value></item-id></result>

2021-05-06 22:36:03 | contains: true

2021-05-06 22:36:12 | [Mutex] waiting for: [user_regularuid17y0202@test-domain.com:message:received:content_t19a00207]

2021-05-06 22:36:27 | [Mutex] timeout. Not received [user_regularuid17y0202@test-domain.com:message:received:content_t19a00207]

2021-05-06 22:36:27 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_t19a00207]

2021-05-06 22:36:42 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_t19a00207]

2021-05-06 22:36:42 | [Mutex] isItemNotified: user_regularuid17y0202@test-domain.com:message:received:content_t19a00207 :: false

2021-05-06 22:36:42 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_t19a00207 :: false

java.lang.AssertionError: User: admin@test-domain.com should have received message: t19a00207 expected [true] but found [false]
org.testng.Assert.fail(Assert.java:99)
org.testng.Assert.failNotEquals(Assert.java:1037)
org.testng.Assert.assertTrue(Assert.java:45)
tigase.tests.pubsub.TestRestApiWithMessageExpiration.testMessageExpiration(TestRestApiWithMessageExpiration.java:180)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
org.testng.TestRunner.privateRun(TestRunner.java:764)
org.testng.TestRunner.run(TestRunner.java:585)
org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
org.testng.SuiteRunner.run(SuiteRunner.java:286)
org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
org.testng.TestNG.runSuites(TestNG.java:1069)
org.testng.TestNG.run(TestNG.java:1037)
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)