Test duration : 9.170s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2021-02-14 21:32:13 |
2021-02-14 21:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:13 | ------------------------------------ 2021-02-14 21:32:13 | [Mutex] waiting for: [configured:node:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:node-26ad127a-81dd-4334-87fd-48036ceacec9] 2021-02-14 21:32:13 | [Mutex] received everything. 2021-02-14 21:32:13 | [Mutex] isItemNotified: configured:node:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:node-26ad127a-81dd-4334-87fd-48036ceacec9 :: true 2021-02-14 21:32:14 | [Mutex] waiting for: [received:nodes:bdcf1541-c422-4a38-a35b-781382e4c2cc:localhost] 2021-02-14 21:32:14 | [Mutex] received everything. 2021-02-14 21:32:14 | [Mutex] isItemNotified: received:node:bdcf1541-c422-4a38-a35b-781382e4c2cc:localhost:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:Node 579f31d3-b72c-4c6a-9248-e1b856e945bc :: true 2021-02-14 21:32:14 | [Mutex] waiting for: [received:nodes:2e14a37e-64d3-4295-9c23-02d3e25dd6aa:localhost] 2021-02-14 21:32:14 | [Mutex] received everything. 2021-02-14 21:32:14 | [Mutex] isItemNotified: received:node:2e14a37e-64d3-4295-9c23-02d3e25dd6aa:localhost:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:Node 579f31d3-b72c-4c6a-9248-e1b856e945bc :: false |
createNodes | 1.828s |
2021-02-14 21:32:10 |
2021-02-14 21:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:10 | ------------------------------------ 2021-02-14 21:32:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "pubsub#title": "Node 579f31d3-b72c-4c6a-9248-e1b856e945bc" } 2021-02-14 21:32:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-14 21:32:12 | [Mutex] waiting for: [received:nodes:06c37009-5ed7-4a14-91bf-319a56bc769b:localhost] 2021-02-14 21:32:12 | [Mutex] waiting for: [received:nodes:06c37009-5ed7-4a14-91bf-319a56bc769b:localhost] 2021-02-14 21:32:12 | [Mutex] received everything. 2021-02-14 21:32:12 | [Mutex] isItemNotified: received:node:06c37009-5ed7-4a14-91bf-319a56bc769b:localhost:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:Node 579f31d3-b72c-4c6a-9248-e1b856e945bc :: true |
createSubnodes | 1.032s |
2021-02-14 21:32:12 |
2021-02-14 21:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:12 | ------------------------------------ 2021-02-14 21:32:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-26ad127a-81dd-4334-87fd-48036ceacec9", "pubsub#title": "Node 26ad127a-81dd-4334-87fd-48036ceacec9" } 2021-02-14 21:32:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-14 21:32:13 | [Mutex] waiting for: [received:nodes:442cb2a6-070c-4a35-b1f6-f350b397ff76:localhost] 2021-02-14 21:32:13 | [Mutex] received everything. 2021-02-14 21:32:13 | [Mutex] isItemNotified: received:node:442cb2a6-070c-4a35-b1f6-f350b397ff76:localhost:node-26ad127a-81dd-4334-87fd-48036ceacec9:Node 26ad127a-81dd-4334-87fd-48036ceacec9 :: true |
deleteNodes | 1.021s |
2021-02-14 21:32:17 |
2021-02-14 21:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:17 | ------------------------------------ 2021-02-14 21:32:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-26ad127a-81dd-4334-87fd-48036ceacec9" } 2021-02-14 21:32:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-14 21:32:18 | [Mutex] waiting for: [received:nodes:6fc2d4f3-3035-43eb-a5d4-0965c06b5083:localhost] 2021-02-14 21:32:18 | [Mutex] received everything. 2021-02-14 21:32:18 | [Mutex] isItemNotified: received:node:6fc2d4f3-3035-43eb-a5d4-0965c06b5083:localhost:node-26ad127a-81dd-4334-87fd-48036ceacec9:Node 26ad127a-81dd-4334-87fd-48036ceacec9 :: false |
deleteSubnodes | 1.026s |
2021-02-14 21:32:16 |
2021-02-14 21:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:16 | ------------------------------------ 2021-02-14 21:32:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc" } 2021-02-14 21:32:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-14 21:32:17 | [Mutex] waiting for: [received:nodes:7e4d4622-5c7c-4513-84ad-258f6241cfb6:localhost] 2021-02-14 21:32:17 | [Mutex] received everything. 2021-02-14 21:32:17 | [Mutex] isItemNotified: received:node:7e4d4622-5c7c-4513-84ad-258f6241cfb6:localhost:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:Node 579f31d3-b72c-4c6a-9248-e1b856e945bc :: false 2021-02-14 21:32:17 | [Mutex] waiting for: [received:nodes:95ed550f-e640-4a84-a1a9-5c0db4347d81:localhost] 2021-02-14 21:32:17 | [Mutex] received everything. 2021-02-14 21:32:17 | [Mutex] isItemNotified: received:node:95ed550f-e640-4a84-a1a9-5c0db4347d81:localhost:node-579f31d3-b72c-4c6a-9248-e1b856e945bc:Node 579f31d3-b72c-4c6a-9248-e1b856e945bc :: false |
publishItemsToNodes | 0.057s |
2021-02-14 21:32:15 |
2021-02-14 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:15 | ------------------------------------ 2021-02-14 21:32:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "entry": "<test>item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a</test>", "item-id": "item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a" } 2021-02-14 21:32:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a" } 2021-02-14 21:32:15 | [Mutex] waiting for: [published:item:notifieditem-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a:admin@test-domain.com] 2021-02-14 21:32:15 | [Mutex] received everything. 2021-02-14 21:32:15 | [Mutex] isItemNotified: published:item:notifieditem-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a:admin@test-domain.com :: true |
retractItemsFromNodes | 0.136s |
2021-02-14 21:32:15 |
2021-02-14 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:15 | ------------------------------------ 2021-02-14 21:32:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "item-id": "item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a" } 2021-02-14 21:32:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a" } 2021-02-14 21:32:15 | [Mutex] waiting for: [retracted:item:notifieditem-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a:admin@test-domain.com] 2021-02-14 21:32:15 | [Mutex] received everything. 2021-02-14 21:32:15 | [Mutex] isItemNotified: retracted:item:notifieditem-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.038s |
2021-02-14 21:32:15 |
2021-02-14 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:15 | ------------------------------------ 2021-02-14 21:32:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "item-id": "item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a" } 2021-02-14 21:32:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "item-id": "item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a", "item": [ "<item id=\"item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a\"><test>item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a</test></item>" ] } 2021-02-14 21:32:15 | [Mutex] notify: [retrieved:item:item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a:payload-matches:true:localhost] 2021-02-14 21:32:15 | [Mutex] received everything. 2021-02-14 21:32:15 | [Mutex] isItemNotified: retrieved:item:item-5dd9b6d8-0ef1-4ebd-85fd-40063c611a5a:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.063s |
2021-02-14 21:32:15 |
2021-02-14 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:15 | ------------------------------------ 2021-02-14 21:32:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-14 21:32:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "node-26ad127a-81dd-4334-87fd-48036ceacec9" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-02-14 21:32:15 |
2021-02-14 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:15 | ------------------------------------ 2021-02-14 21:32:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-579f31d3-b72c-4c6a-9248-e1b856e945bc)" } 2021-02-14 21:32:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2021-02-14 21:32:14 |
2021-02-14 21:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:14 | ------------------------------------ 2021-02-14 21:32:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "jids": [ "admin@test-domain.com" ] } 2021-02-14 21:32:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.015s |
2021-02-14 21:32:15 |
2021-02-14 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-14 21:32:15 | ------------------------------------ 2021-02-14 21:32:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-579f31d3-b72c-4c6a-9248-e1b856e945bc", "jids": [ "admin@test-domain.com" ] } 2021-02-14 21:32:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |