Generated by TestNG with ReportNG at 22:34 PDT on Tuesday 29 September 2020
root@87f6aca6b6f2 / 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.308s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.742s
2020-09-29 22:50:46 |

2020-09-29 22:50:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2020-09-29 22:50:46 | ------------------------------------

2020-09-29 22:50:46 | [Mutex] isItemNotified: node_antyj70203:exists :: false

2020-09-29 22:50:46 | [Mutex] waiting for: [node_antyj70203:create_node]

2020-09-29 22:50:46 | [Mutex] received everything.

2020-09-29 22:50:46 | [Mutex] isItemNotified: node_antyj70203:create_node:success :: true

2020-09-29 22:50:46 | [Mutex] waiting for: [node_antyj70203:subscribe_node]

2020-09-29 22:50:46 | [Mutex] waiting for: [node_antyj70203:subscribe_node]

2020-09-29 22:50:46 | [Mutex] received everything.

2020-09-29 22:50:46 | [Mutex] isItemNotified: node_antyj70203:subscribe_node:success :: true

2020-09-29 22:50:46 |


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


2020-09-29 22:50:46 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-29 22:50:46 | command: <data><node>node_antyj70203</node><entry><content>content_x2dc5j0204</content></entry></data>

2020-09-29 22:50:46 | target: http://localhost:8088

2020-09-29 22:50:46 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-09-29 22:50:46 | entity: <data><node>node_antyj70203</node><entry><content>content_x2dc5j0204</content></entry></data>

2020-09-29 22:50:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 30 Sep 2020 05:50:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-29 22:50:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>24ce2c0d-b4e6-4aa7-a779-84e07c74bd0a</value></item-id></result>

2020-09-29 22:50:46 | contains: true

2020-09-29 22:50:46 | [Mutex] received everything.

2020-09-29 22:50:46 | [Mutex] isItemNotified: user_regularts1pql0202@test-domain.com:message:received:content_x2dc5j0204 :: true

2020-09-29 22:50:46 |


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


2020-09-29 22:50:46 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-29 22:50:46 | command: <data><node>node_antyj70203</node><expire-at>2020-09-30T05:50:41Z</expire-at><entry><content>content_7lhj850205</content></entry></data>

2020-09-29 22:50:46 | target: http://localhost:8088

2020-09-29 22:50:46 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-09-29 22:50:46 | entity: <data><node>node_antyj70203</node><expire-at>2020-09-30T05:50:41Z</expire-at><entry><content>content_7lhj850205</content></entry></data>

2020-09-29 22:50:46 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 30 Sep 2020 05:50:46 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-29 22:50:46 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>66037335-2b02-4450-b994-4d4a6fdbf6cb</value></item-id></result>

2020-09-29 22:50:46 | contains: true

2020-09-29 22:50:46 | [Mutex] waiting for: [user_regularts1pql0202@test-domain.com:message:received:content_7lhj850205]

2020-09-29 22:51:01 | [Mutex] timeout. Not received [user_regularts1pql0202@test-domain.com:message:received:content_7lhj850205]

2020-09-29 22:51:01 | [Mutex] isItemNotified: user_regularts1pql0202@test-domain.com:message:received:content_7lhj850205 :: false

2020-09-29 22:51:01 |


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


2020-09-29 22:51:01 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-29 22:51:01 | command: <data><node>node_antyj70203</node><entry><content>content_blja0b0206</content></entry></data>

2020-09-29 22:51:01 | target: http://localhost:8088

2020-09-29 22:51:01 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2020-09-29 22:51:01 | entity: <data><node>node_antyj70203</node><entry><content>content_blja0b0206</content></entry></data>

2020-09-29 22:51:01 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 30 Sep 2020 05:51:01 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-29 22:51:01 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>377ea5b3-4458-4432-8320-e2a9676215ff</value></item-id></result>

2020-09-29 22:51:01 | contains: true

2020-09-29 22:51:06 | [Mutex] waiting for: [user_regularts1pql0202@test-domain.com:message:received:content_blja0b0206]

2020-09-29 22:51:06 | [Mutex] waiting for: [user_regularts1pql0202@test-domain.com:message:received:content_blja0b0206]

2020-09-29 22:51:06 | [Mutex] received everything.

2020-09-29 22:51:06 | [Mutex] isItemNotified: user_regularts1pql0202@test-domain.com:message:received:content_blja0b0206 :: true

2020-09-29 22:51:06 |


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


2020-09-29 22:51:06 | [Mutex] received everything.

2020-09-29 22:51:06 | [Mutex] isItemNotified: node_antyj70203:subscribe_node:success :: true

2020-09-29 22:51:06 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2020-09-29 22:51:06 | command: <data><node>node_antyj70203</node><expire-at>2020-09-30T05:51:11Z</expire-at><entry><content>content_ofyuzc0207</content></entry></data>

2020-09-29 22:51:06 | target: http://localhost:8088

2020-09-29 22:51:06 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2020-09-29 22:51:06 | entity: <data><node>node_antyj70203</node><expire-at>2020-09-30T05:51:11Z</expire-at><entry><content>content_ofyuzc0207</content></entry></data>

2020-09-29 22:51:06 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Wed, 30 Sep 2020 05:51:06 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2020-09-29 22:51:06 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>babeb0b8-c850-4dee-a0a9-0e3240b9ac5a</value></item-id></result>

2020-09-29 22:51:06 | contains: true

2020-09-29 22:51:14 | [Mutex] waiting for: [user_regularts1pql0202@test-domain.com:message:received:content_ofyuzc0207]

2020-09-29 22:51:14 | [Mutex] waiting for: [user_regularts1pql0202@test-domain.com:message:received:content_ofyuzc0207]

2020-09-29 22:51:29 | [Mutex] timeout. Not received [user_regularts1pql0202@test-domain.com:message:received:content_ofyuzc0207]

2020-09-29 22:51:29 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_ofyuzc0207]

2020-09-29 22:51:44 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_ofyuzc0207]

2020-09-29 22:51:44 | [Mutex] isItemNotified: user_regularts1pql0202@test-domain.com:message:received:content_ofyuzc0207 :: false

2020-09-29 22:51:44 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_ofyuzc0207 :: false

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