Test duration : 8.862s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2021-03-17 22:57:09 |
2021-03-17 22:57:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:09 | ------------------------------------ 2021-03-17 22:57:09 | [Mutex] waiting for: [configured:node:node-05289692-574f-4502-9aef-d100ef5db14a:node-8a34cead-d0a7-429f-928c-72cc903eb620] 2021-03-17 22:57:09 | [Mutex] received everything. 2021-03-17 22:57:09 | [Mutex] isItemNotified: configured:node:node-05289692-574f-4502-9aef-d100ef5db14a:node-8a34cead-d0a7-429f-928c-72cc903eb620 :: true 2021-03-17 22:57:10 | [Mutex] waiting for: [received:nodes:a7577785-6308-44c9-9fbb-47765e163529:localhost] 2021-03-17 22:57:10 | [Mutex] received everything. 2021-03-17 22:57:10 | [Mutex] isItemNotified: received:node:a7577785-6308-44c9-9fbb-47765e163529:localhost:node-05289692-574f-4502-9aef-d100ef5db14a:Node 05289692-574f-4502-9aef-d100ef5db14a :: true 2021-03-17 22:57:10 | [Mutex] waiting for: [received:nodes:bf238195-a789-41ff-8420-02a0ad61f5ac:localhost] 2021-03-17 22:57:10 | [Mutex] waiting for: [received:nodes:bf238195-a789-41ff-8420-02a0ad61f5ac:localhost] 2021-03-17 22:57:10 | [Mutex] received everything. 2021-03-17 22:57:10 | [Mutex] isItemNotified: received:node:bf238195-a789-41ff-8420-02a0ad61f5ac:localhost:node-05289692-574f-4502-9aef-d100ef5db14a:Node 05289692-574f-4502-9aef-d100ef5db14a :: false |
createNodes | 1.578s |
2021-03-17 22:57:06 |
2021-03-17 22:57:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:06 | ------------------------------------ 2021-03-17 22:57:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "pubsub#title": "Node 05289692-574f-4502-9aef-d100ef5db14a" } 2021-03-17 22:57:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-17 22:57:07 | [Mutex] waiting for: [received:nodes:10774a38-aac7-4cbc-b4dc-80b7f4cd9481:localhost] 2021-03-17 22:57:07 | [Mutex] received everything. 2021-03-17 22:57:07 | [Mutex] isItemNotified: received:node:10774a38-aac7-4cbc-b4dc-80b7f4cd9481:localhost:node-05289692-574f-4502-9aef-d100ef5db14a:Node 05289692-574f-4502-9aef-d100ef5db14a :: true |
createSubnodes | 1.043s |
2021-03-17 22:57:07 |
2021-03-17 22:57:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:07 | ------------------------------------ 2021-03-17 22:57:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8a34cead-d0a7-429f-928c-72cc903eb620", "pubsub#title": "Node 8a34cead-d0a7-429f-928c-72cc903eb620" } 2021-03-17 22:57:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-17 22:57:09 | [Mutex] waiting for: [received:nodes:2f7057af-4558-4133-9c1b-b7810e649fe9:localhost] 2021-03-17 22:57:09 | [Mutex] received everything. 2021-03-17 22:57:09 | [Mutex] isItemNotified: received:node:2f7057af-4558-4133-9c1b-b7810e649fe9:localhost:node-8a34cead-d0a7-429f-928c-72cc903eb620:Node 8a34cead-d0a7-429f-928c-72cc903eb620 :: true |
deleteNodes | 1.025s |
2021-03-17 22:57:13 |
2021-03-17 22:57:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:13 | ------------------------------------ 2021-03-17 22:57:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8a34cead-d0a7-429f-928c-72cc903eb620" } 2021-03-17 22:57:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-17 22:57:14 | [Mutex] waiting for: [received:nodes:fe495ed6-81e8-46c1-be8a-e0bd69beeac4:localhost] 2021-03-17 22:57:14 | [Mutex] received everything. 2021-03-17 22:57:14 | [Mutex] isItemNotified: received:node:fe495ed6-81e8-46c1-be8a-e0bd69beeac4:localhost:node-8a34cead-d0a7-429f-928c-72cc903eb620:Node 8a34cead-d0a7-429f-928c-72cc903eb620 :: false |
deleteSubnodes | 1.036s |
2021-03-17 22:57:12 |
2021-03-17 22:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:12 | ------------------------------------ 2021-03-17 22:57:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-05289692-574f-4502-9aef-d100ef5db14a" } 2021-03-17 22:57:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-17 22:57:13 | [Mutex] waiting for: [received:nodes:710eaaa7-4297-44c8-bc38-aabad0f64a40:localhost] 2021-03-17 22:57:13 | [Mutex] waiting for: [received:nodes:710eaaa7-4297-44c8-bc38-aabad0f64a40:localhost] 2021-03-17 22:57:13 | [Mutex] received everything. 2021-03-17 22:57:13 | [Mutex] isItemNotified: received:node:710eaaa7-4297-44c8-bc38-aabad0f64a40:localhost:node-05289692-574f-4502-9aef-d100ef5db14a:Node 05289692-574f-4502-9aef-d100ef5db14a :: false 2021-03-17 22:57:13 | [Mutex] waiting for: [received:nodes:f000d22a-9c59-4318-b030-4bbc82985eb2:localhost] 2021-03-17 22:57:13 | [Mutex] received everything. 2021-03-17 22:57:13 | [Mutex] isItemNotified: received:node:f000d22a-9c59-4318-b030-4bbc82985eb2:localhost:node-05289692-574f-4502-9aef-d100ef5db14a:Node 05289692-574f-4502-9aef-d100ef5db14a :: false |
publishItemsToNodes | 0.045s |
2021-03-17 22:57:11 |
2021-03-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:11 | ------------------------------------ 2021-03-17 22:57:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "entry": "<test>item-649c8332-b36f-41b5-8c3e-9867cc95a253</test>", "item-id": "item-649c8332-b36f-41b5-8c3e-9867cc95a253" } 2021-03-17 22:57:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-649c8332-b36f-41b5-8c3e-9867cc95a253" } 2021-03-17 22:57:11 | [Mutex] waiting for: [published:item:notifieditem-649c8332-b36f-41b5-8c3e-9867cc95a253:admin@test-domain.com] 2021-03-17 22:57:11 | [Mutex] received everything. 2021-03-17 22:57:11 | [Mutex] isItemNotified: published:item:notifieditem-649c8332-b36f-41b5-8c3e-9867cc95a253:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2021-03-17 22:57:11 |
2021-03-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:11 | ------------------------------------ 2021-03-17 22:57:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "item-id": "item-649c8332-b36f-41b5-8c3e-9867cc95a253" } 2021-03-17 22:57:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-649c8332-b36f-41b5-8c3e-9867cc95a253" } 2021-03-17 22:57:11 | [Mutex] received everything. 2021-03-17 22:57:11 | [Mutex] isItemNotified: retracted:item:notifieditem-649c8332-b36f-41b5-8c3e-9867cc95a253:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2021-03-17 22:57:11 |
2021-03-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:11 | ------------------------------------ 2021-03-17 22:57:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "item-id": "item-649c8332-b36f-41b5-8c3e-9867cc95a253" } 2021-03-17 22:57:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "item-id": "item-649c8332-b36f-41b5-8c3e-9867cc95a253", "item": [ "<item id=\"item-649c8332-b36f-41b5-8c3e-9867cc95a253\"><test>item-649c8332-b36f-41b5-8c3e-9867cc95a253</test></item>" ] } 2021-03-17 22:57:11 | [Mutex] notify: [retrieved:item:item-649c8332-b36f-41b5-8c3e-9867cc95a253:payload-matches:true:localhost] 2021-03-17 22:57:11 | [Mutex] received everything. 2021-03-17 22:57:11 | [Mutex] isItemNotified: retrieved:item:item-649c8332-b36f-41b5-8c3e-9867cc95a253:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-17 22:57:11 |
2021-03-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:11 | ------------------------------------ 2021-03-17 22:57:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-17 22:57:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8a34cead-d0a7-429f-928c-72cc903eb620", "node-05289692-574f-4502-9aef-d100ef5db14a" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-03-17 22:57:11 |
2021-03-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:11 | ------------------------------------ 2021-03-17 22:57:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-05289692-574f-4502-9aef-d100ef5db14a)" } 2021-03-17 22:57:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2021-03-17 22:57:10 |
2021-03-17 22:57:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:10 | ------------------------------------ 2021-03-17 22:57:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "jids": [ "admin@test-domain.com" ] } 2021-03-17 22:57:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.100s |
2021-03-17 22:57:11 |
2021-03-17 22:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-17 22:57:11 | ------------------------------------ 2021-03-17 22:57:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-05289692-574f-4502-9aef-d100ef5db14a", "jids": [ "admin@test-domain.com" ] } 2021-03-17 22:57:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |