Generated by TestNG with ReportNG at 21:51 PST on Thursday 28 January 2021
root@eaa73862192b / 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.769s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.776s
2021-01-28 22:08:08 |

2021-01-28 22:08:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2021-01-28 22:08:08 | ------------------------------------

2021-01-28 22:08:08 | [Mutex] isItemNotified: node_nfyqqh0203:exists :: false

2021-01-28 22:08:08 | [Mutex] waiting for: [node_nfyqqh0203:create_node]

2021-01-28 22:08:08 | [Mutex] received everything.

2021-01-28 22:08:08 | [Mutex] isItemNotified: node_nfyqqh0203:create_node:success :: true

2021-01-28 22:08:08 | [Mutex] waiting for: [node_nfyqqh0203:subscribe_node]

2021-01-28 22:08:08 | [Mutex] waiting for: [node_nfyqqh0203:subscribe_node]

2021-01-28 22:08:08 | [Mutex] received everything.

2021-01-28 22:08:08 | [Mutex] isItemNotified: node_nfyqqh0203:subscribe_node:success :: true

2021-01-28 22:08:08 |


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


2021-01-28 22:08:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-28 22:08:08 | command: <data><node>node_nfyqqh0203</node><entry><content>content_cgrf2z0204</content></entry></data>

2021-01-28 22:08:08 | target: http://localhost:8088

2021-01-28 22:08:08 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-01-28 22:08:08 | entity: <data><node>node_nfyqqh0203</node><entry><content>content_cgrf2z0204</content></entry></data>

2021-01-28 22:08:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 29 Jan 2021 06:08:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-28 22:08:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>551955d6-c159-4ead-a2ff-ca760e0ea71d</value></item-id></result>

2021-01-28 22:08:08 | contains: true

2021-01-28 22:08:08 | [Mutex] received everything.

2021-01-28 22:08:08 | [Mutex] isItemNotified: user_regular87dtkd0202@test-domain.com:message:received:content_cgrf2z0204 :: true

2021-01-28 22:08:08 |


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


2021-01-28 22:08:08 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-28 22:08:08 | command: <data><node>node_nfyqqh0203</node><expire-at>2021-01-29T06:08:03Z</expire-at><entry><content>content_klbzv0205</content></entry></data>

2021-01-28 22:08:08 | target: http://localhost:8088

2021-01-28 22:08:08 | entity: [Content-Type: application/xml,Content-Length: 135,Chunked: false]

2021-01-28 22:08:08 | entity: <data><node>node_nfyqqh0203</node><expire-at>2021-01-29T06:08:03Z</expire-at><entry><content>content_klbzv0205</content></entry></data>

2021-01-28 22:08:08 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 29 Jan 2021 06:08:08 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-28 22:08:08 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>f5b21207-d813-4692-978a-6864abcc9f66</value></item-id></result>

2021-01-28 22:08:08 | contains: true

2021-01-28 22:08:08 | [Mutex] waiting for: [user_regular87dtkd0202@test-domain.com:message:received:content_klbzv0205]

2021-01-28 22:08:23 | [Mutex] timeout. Not received [user_regular87dtkd0202@test-domain.com:message:received:content_klbzv0205]

2021-01-28 22:08:23 | [Mutex] isItemNotified: user_regular87dtkd0202@test-domain.com:message:received:content_klbzv0205 :: false

2021-01-28 22:08:23 |


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


2021-01-28 22:08:24 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-28 22:08:24 | command: <data><node>node_nfyqqh0203</node><entry><content>content_xu7f490206</content></entry></data>

2021-01-28 22:08:24 | target: http://localhost:8088

2021-01-28 22:08:24 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-01-28 22:08:24 | entity: <data><node>node_nfyqqh0203</node><entry><content>content_xu7f490206</content></entry></data>

2021-01-28 22:08:24 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 29 Jan 2021 06:08:24 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-28 22:08:24 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>c318eeb0-1756-419d-a274-aff282cb955b</value></item-id></result>

2021-01-28 22:08:24 | contains: true

2021-01-28 22:08:29 | [Mutex] waiting for: [user_regular87dtkd0202@test-domain.com:message:received:content_xu7f490206]

2021-01-28 22:08:29 | [Mutex] waiting for: [user_regular87dtkd0202@test-domain.com:message:received:content_xu7f490206]

2021-01-28 22:08:29 | [Mutex] received everything.

2021-01-28 22:08:29 | [Mutex] isItemNotified: user_regular87dtkd0202@test-domain.com:message:received:content_xu7f490206 :: true

2021-01-28 22:08:29 |


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


2021-01-28 22:08:29 | [Mutex] received everything.

2021-01-28 22:08:29 | [Mutex] isItemNotified: node_nfyqqh0203:subscribe_node:success :: true

2021-01-28 22:08:29 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-28 22:08:29 | command: <data><node>node_nfyqqh0203</node><expire-at>2021-01-29T06:08:34Z</expire-at><entry><content>content_cifqhf0207</content></entry></data>

2021-01-28 22:08:29 | target: http://localhost:8088

2021-01-28 22:08:29 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-01-28 22:08:29 | entity: <data><node>node_nfyqqh0203</node><expire-at>2021-01-29T06:08:34Z</expire-at><entry><content>content_cifqhf0207</content></entry></data>

2021-01-28 22:08:29 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Fri, 29 Jan 2021 06:08:29 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-28 22:08:29 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>6d81c939-ac55-40af-9e5c-2b06461983c9</value></item-id></result>

2021-01-28 22:08:29 | contains: true

2021-01-28 22:08:37 | [Mutex] waiting for: [user_regular87dtkd0202@test-domain.com:message:received:content_cifqhf0207]

2021-01-28 22:08:37 | [Mutex] waiting for: [user_regular87dtkd0202@test-domain.com:message:received:content_cifqhf0207]

2021-01-28 22:08:37 | [Mutex] waiting for: [user_regular87dtkd0202@test-domain.com:message:received:content_cifqhf0207]

2021-01-28 22:08:52 | [Mutex] timeout. Not received [user_regular87dtkd0202@test-domain.com:message:received:content_cifqhf0207]

2021-01-28 22:08:52 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_cifqhf0207]

2021-01-28 22:09:07 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_cifqhf0207]

2021-01-28 22:09:07 | [Mutex] isItemNotified: user_regular87dtkd0202@test-domain.com:message:received:content_cifqhf0207 :: false

2021-01-28 22:09:07 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_cifqhf0207 :: false

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