Generated by TestNG with ReportNG at 21:15 PST on Monday 04 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.705s

Failed Tests
tigase.tests.pubsub.TestRestApiWithMessageExpiration
testMessageExpiration 58.725s
2021-01-04 21:31:47 |

2021-01-04 21:31:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiWithMessageExpiration]

2021-01-04 21:31:47 | ------------------------------------

2021-01-04 21:31:47 | [Mutex] isItemNotified: node_n9xar60203:exists :: false

2021-01-04 21:31:47 | [Mutex] waiting for: [node_n9xar60203:create_node]

2021-01-04 21:31:47 | [Mutex] received everything.

2021-01-04 21:31:47 | [Mutex] isItemNotified: node_n9xar60203:create_node:success :: true

2021-01-04 21:31:47 | [Mutex] waiting for: [node_n9xar60203:subscribe_node]

2021-01-04 21:31:47 | [Mutex] waiting for: [node_n9xar60203:subscribe_node]

2021-01-04 21:31:47 | [Mutex] received everything.

2021-01-04 21:31:47 | [Mutex] isItemNotified: node_n9xar60203:subscribe_node:success :: true

2021-01-04 21:31:47 |


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


2021-01-04 21:31:47 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-04 21:31:47 | command: <data><node>node_n9xar60203</node><entry><content>content_n8pyj60204</content></entry></data>

2021-01-04 21:31:47 | target: http://localhost:8088

2021-01-04 21:31:47 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-01-04 21:31:47 | entity: <data><node>node_n9xar60203</node><entry><content>content_n8pyj60204</content></entry></data>

2021-01-04 21:31:47 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 05 Jan 2021 05:31:47 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-04 21:31:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>02cb8617-d6b0-4221-ba52-d95581513e79</value></item-id></result>

2021-01-04 21:31:47 | contains: true

2021-01-04 21:31:47 | [Mutex] received everything.

2021-01-04 21:31:47 | [Mutex] isItemNotified: user_regularqu4ln40202@test-domain.com:message:received:content_n8pyj60204 :: true

2021-01-04 21:31:47 |


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


2021-01-04 21:31:47 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-04 21:31:47 | command: <data><node>node_n9xar60203</node><expire-at>2021-01-05T05:31:42Z</expire-at><entry><content>content_l1rysj0205</content></entry></data>

2021-01-04 21:31:47 | target: http://localhost:8088

2021-01-04 21:31:47 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-01-04 21:31:47 | entity: <data><node>node_n9xar60203</node><expire-at>2021-01-05T05:31:42Z</expire-at><entry><content>content_l1rysj0205</content></entry></data>

2021-01-04 21:31:47 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 05 Jan 2021 05:31:47 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-04 21:31:47 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>bdd1d073-481c-4a76-b7e3-6578159dd5d2</value></item-id></result>

2021-01-04 21:31:47 | contains: true

2021-01-04 21:31:47 | [Mutex] waiting for: [user_regularqu4ln40202@test-domain.com:message:received:content_l1rysj0205]

2021-01-04 21:32:02 | [Mutex] timeout. Not received [user_regularqu4ln40202@test-domain.com:message:received:content_l1rysj0205]

2021-01-04 21:32:02 | [Mutex] isItemNotified: user_regularqu4ln40202@test-domain.com:message:received:content_l1rysj0205 :: false

2021-01-04 21:32:02 |


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


2021-01-04 21:32:02 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-04 21:32:02 | command: <data><node>node_n9xar60203</node><entry><content>content_1co3cn0206</content></entry></data>

2021-01-04 21:32:02 | target: http://localhost:8088

2021-01-04 21:32:02 | entity: [Content-Type: application/xml,Content-Length: 93,Chunked: false]

2021-01-04 21:32:02 | entity: <data><node>node_n9xar60203</node><entry><content>content_1co3cn0206</content></entry></data>

2021-01-04 21:32:02 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 05 Jan 2021 05:32:02 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-04 21:32:02 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>10db40a9-70e1-4702-a1b6-656577393346</value></item-id></result>

2021-01-04 21:32:02 | contains: true

2021-01-04 21:32:07 | [Mutex] waiting for: [user_regularqu4ln40202@test-domain.com:message:received:content_1co3cn0206]

2021-01-04 21:32:07 | [Mutex] received everything.

2021-01-04 21:32:07 | [Mutex] isItemNotified: user_regularqu4ln40202@test-domain.com:message:received:content_1co3cn0206 :: true

2021-01-04 21:32:07 |


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


2021-01-04 21:32:07 | [Mutex] received everything.

2021-01-04 21:32:07 | [Mutex] isItemNotified: node_n9xar60203:subscribe_node:success :: true

2021-01-04 21:32:07 | postRequest: POST /rest/pubsub/pubsub.test-domain.com/publish-item HTTP/1.1

2021-01-04 21:32:07 | command: <data><node>node_n9xar60203</node><expire-at>2021-01-05T05:32:12Z</expire-at><entry><content>content_u2qsk40207</content></entry></data>

2021-01-04 21:32:07 | target: http://localhost:8088

2021-01-04 21:32:07 | entity: [Content-Type: application/xml,Content-Length: 136,Chunked: false]

2021-01-04 21:32:07 | entity: <data><node>node_n9xar60203</node><expire-at>2021-01-05T05:32:12Z</expire-at><entry><content>content_u2qsk40207</content></entry></data>

2021-01-04 21:32:07 | response: HttpResponseProxy{HTTP/1.1 200 OK [Date: Tue, 05 Jan 2021 05:32:07 GMT, Transfer-encoding: chunked] ResponseEntityProxy{[Chunked: true]}}

2021-01-04 21:32:07 | response entity: <result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>ac66ef72-fee9-45c1-840e-52e1f1ad558c</value></item-id></result>

2021-01-04 21:32:07 | contains: true

2021-01-04 21:32:16 | [Mutex] waiting for: [user_regularqu4ln40202@test-domain.com:message:received:content_u2qsk40207]

2021-01-04 21:32:16 | [Mutex] waiting for: [user_regularqu4ln40202@test-domain.com:message:received:content_u2qsk40207]

2021-01-04 21:32:31 | [Mutex] timeout. Not received [user_regularqu4ln40202@test-domain.com:message:received:content_u2qsk40207]

2021-01-04 21:32:31 | [Mutex] waiting for: [admin@test-domain.com:message:received:content_u2qsk40207]

2021-01-04 21:32:46 | [Mutex] timeout. Not received [admin@test-domain.com:message:received:content_u2qsk40207]

2021-01-04 21:32:46 | [Mutex] isItemNotified: user_regularqu4ln40202@test-domain.com:message:received:content_u2qsk40207 :: false

2021-01-04 21:32:46 | [Mutex] isItemNotified: admin@test-domain.com:message:received:content_u2qsk40207 :: false

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