Generated by TestNG with ReportNG at 21:18 PST on Sunday 13 February 2022
root@b2c2a8eba6e6 / 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.221s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.606s
2022-02-13 21:35:28 |

2022-02-13 21:35:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2022-02-13 21:35:28 | ------------------------------------

2022-02-13 21:35:28 | [Mutex] isItemNotified: node_dl7sl70203:exists :: false

2022-02-13 21:35:28 | [Mutex] waiting for: [node_dl7sl70203:create_node]

2022-02-13 21:35:28 | [Mutex] received everything.

2022-02-13 21:35:28 | [Mutex] isItemNotified: node_dl7sl70203:create_node:success :: true

2022-02-13 21:35:28 | [Mutex] waiting for: [node_dl7sl70203:subscribe_node]

2022-02-13 21:35:28 | [Mutex] waiting for: [node_dl7sl70203:subscribe_node]

2022-02-13 21:35:28 | [Mutex] received everything.

2022-02-13 21:35:28 | [Mutex] isItemNotified: node_dl7sl70203:subscribe_node:success :: true

2022-02-13 21:35:28 |


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


2022-02-13 21:35:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-13 21:35:28 | command: <data><node>node_dl7sl70203</node><entry><content>content_dlji2h0204</content></entry></data>

2022-02-13 21:35:28 | target: http://localhost:8088

2022-02-13 21:35:28 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2022-02-13 21:35:28 | entity: <data><node>node_dl7sl70203</node><entry><content>content_dlji2h0204</content></entry></data>

2022-02-13 21:35:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Feb 2022 05:35:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-13 21:35:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>5edb4b6e-c85b-42e8-a9b5-555bab3b27b3</value></item-id></result>

2022-02-13 21:35:28 | contains: true

2022-02-13 21:35:28 | [Mutex] waiting for: [user_regular468dgd0202@test-domain.com:message:received:content_dlji2h0204]

2022-02-13 21:35:28 | [Mutex] received everything.

2022-02-13 21:35:28 | [Mutex] isItemNotified: user_regular468dgd0202@test-domain.com:message:received:content_dlji2h0204 :: true

2022-02-13 21:35:28 |


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


2022-02-13 21:35:28 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-13 21:35:28 | command: <data><node>node_dl7sl70203</node><expire-at>2022-02-14T05:35:23Z</expire-at><entry><content>content_bk116d0205</content></entry></data>

2022-02-13 21:35:28 | target: http://localhost:8088

2022-02-13 21:35:28 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-02-13 21:35:28 | entity: <data><node>node_dl7sl70203</node><expire-at>2022-02-14T05:35:23Z</expire-at><entry><content>content_bk116d0205</content></entry></data>

2022-02-13 21:35:28 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Feb 2022 05:35:28 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-13 21:35:28 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>b92a4496-32d2-4dd9-b530-a133daf96b4b</value></item-id></result>

2022-02-13 21:35:28 | contains: true

2022-02-13 21:35:28 | [Mutex] waiting for: [user_regular468dgd0202@test-domain.com:message:received:content_bk116d0205]

2022-02-13 21:35:43 | [Mutex] timeout. Not received [user_regular468dgd0202@test-domain.com:message:received:content_bk116d0205]

2022-02-13 21:35:43 | [Mutex] isItemNotified: user_regular468dgd0202@test-domain.com:message:received:content_bk116d0205 :: false

2022-02-13 21:35:43 |


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


2022-02-13 21:35:43 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-13 21:35:43 | command: <data><node>node_dl7sl70203</node><entry><content>content_8j7kw0206</content></entry></data>

2022-02-13 21:35:43 | target: http://localhost:8088

2022-02-13 21:35:43 | entity: [Content-Type: application/xml,Content-Length: 92,Chunked: false]

2022-02-13 21:35:43 | entity: <data><node>node_dl7sl70203</node><entry><content>content_8j7kw0206</content></entry></data>

2022-02-13 21:35:43 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Feb 2022 05:35:43 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-13 21:35:43 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>3214dc34-4e92-4017-8d78-b8c2dcd6a946</value></item-id></result>

2022-02-13 21:35:43 | contains: true

2022-02-13 21:35:48 | [Mutex] waiting for: [user_regular468dgd0202@test-domain.com:message:received:content_8j7kw0206]

2022-02-13 21:35:48 | [Mutex] waiting for: [user_regular468dgd0202@test-domain.com:message:received:content_8j7kw0206]

2022-02-13 21:35:48 | [Mutex] received everything.

2022-02-13 21:35:48 | [Mutex] isItemNotified: user_regular468dgd0202@test-domain.com:message:received:content_8j7kw0206 :: true

2022-02-13 21:35:48 |


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


2022-02-13 21:35:48 | [Mutex] received everything.

2022-02-13 21:35:48 | [Mutex] isItemNotified: node_dl7sl70203:subscribe_node:success :: true

2022-02-13 21:35:48 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2022-02-13 21:35:48 | command: <data><node>node_dl7sl70203</node><expire-at>2022-02-14T05:35:53Z</expire-at><entry><content>content_rleow40207</content></entry></data>

2022-02-13 21:35:48 | target: http://localhost:8088

2022-02-13 21:35:48 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2022-02-13 21:35:48 | entity: <data><node>node_dl7sl70203</node><expire-at>2022-02-14T05:35:53Z</expire-at><entry><content>content_rleow40207</content></entry></data>

2022-02-13 21:35:48 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Mon, 14 Feb 2022 05:35:48 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2022-02-13 21:35:48 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>8adc91dd-ca33-4ca3-b463-28221e72f59e</value></item-id></result>

2022-02-13 21:35:48 | contains: true

2022-02-13 21:35:56 | [Mutex] waiting for: [user_regular468dgd0202@test-domain.com:message:received:content_rleow40207]

2022-02-13 21:35:56 | [Mutex] waiting for: [user_regular468dgd0202@test-domain.com:message:received:content_rleow40207]

2022-02-13 21:36:11 | [Mutex] timeout. Not received [user_regular468dgd0202@test-domain.com:message:received:content_rleow40207]

2022-02-13 21:36:11 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_rleow40207]

2022-02-13 21:36:26 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_rleow40207]

2022-02-13 21:36:26 | [Mutex] isItemNotified: user_regular468dgd0202@test-domain.com:message:received:content_rleow40207 :: false

2022-02-13 21:36:26 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_rleow40207 :: false

java.lang.AssertionError: User: admin@test-domain.com should have received message: rleow40207 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)