Test duration : 8.826s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-05-02 22:37:42 |
2022-05-02 22:37:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:42 | ------------------------------------ 2022-05-02 22:37:42 | [Mutex] waiting for: [configured:node:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:node-ce267038-a743-4eff-ae78-7de782b569b7] 2022-05-02 22:37:42 | [Mutex] received everything. 2022-05-02 22:37:42 | [Mutex] isItemNotified: configured:node:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:node-ce267038-a743-4eff-ae78-7de782b569b7 :: true 2022-05-02 22:37:43 | [Mutex] waiting for: [received:nodes:53f43b72-a443-4f1e-99f7-e40336d007c3:localhost] 2022-05-02 22:37:43 | [Mutex] received everything. 2022-05-02 22:37:43 | [Mutex] isItemNotified: received:node:53f43b72-a443-4f1e-99f7-e40336d007c3:localhost:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:Node 723e6e8b-ad78-4604-9504-f3c78f13bba5 :: true 2022-05-02 22:37:43 | [Mutex] waiting for: [received:nodes:6062394b-4120-430a-afa9-cd390dce9441:localhost] 2022-05-02 22:37:43 | [Mutex] received everything. 2022-05-02 22:37:43 | [Mutex] isItemNotified: received:node:6062394b-4120-430a-afa9-cd390dce9441:localhost:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:Node 723e6e8b-ad78-4604-9504-f3c78f13bba5 :: false |
createNodes | 1.563s |
2022-05-02 22:37:40 |
2022-05-02 22:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:40 | ------------------------------------ 2022-05-02 22:37:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "pubsub#title": "Node 723e6e8b-ad78-4604-9504-f3c78f13bba5" } 2022-05-02 22:37:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 22:37:41 | [Mutex] waiting for: [received:nodes:9fb464d7-5915-490e-8766-46b2006c2113:localhost] 2022-05-02 22:37:41 | [Mutex] received everything. 2022-05-02 22:37:41 | [Mutex] isItemNotified: received:node:9fb464d7-5915-490e-8766-46b2006c2113:localhost:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:Node 723e6e8b-ad78-4604-9504-f3c78f13bba5 :: true |
createSubnodes | 1.024s |
2022-05-02 22:37:41 |
2022-05-02 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:41 | ------------------------------------ 2022-05-02 22:37:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ce267038-a743-4eff-ae78-7de782b569b7", "pubsub#title": "Node ce267038-a743-4eff-ae78-7de782b569b7" } 2022-05-02 22:37:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 22:37:42 | [Mutex] waiting for: [received:nodes:9d298e7b-1f7c-4785-9618-219e752f9cfb:localhost] 2022-05-02 22:37:42 | [Mutex] received everything. 2022-05-02 22:37:42 | [Mutex] isItemNotified: received:node:9d298e7b-1f7c-4785-9618-219e752f9cfb:localhost:node-ce267038-a743-4eff-ae78-7de782b569b7:Node ce267038-a743-4eff-ae78-7de782b569b7 :: true |
deleteNodes | 1.020s |
2022-05-02 22:37:47 |
2022-05-02 22:37:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:47 | ------------------------------------ 2022-05-02 22:37:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ce267038-a743-4eff-ae78-7de782b569b7" } 2022-05-02 22:37:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 22:37:48 | [Mutex] waiting for: [received:nodes:99ff8fa9-561f-4828-ba90-6a736787ea25:localhost] 2022-05-02 22:37:48 | [Mutex] received everything. 2022-05-02 22:37:48 | [Mutex] isItemNotified: received:node:99ff8fa9-561f-4828-ba90-6a736787ea25:localhost:node-ce267038-a743-4eff-ae78-7de782b569b7:Node ce267038-a743-4eff-ae78-7de782b569b7 :: false |
deleteSubnodes | 1.031s |
2022-05-02 22:37:46 |
2022-05-02 22:37:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:46 | ------------------------------------ 2022-05-02 22:37:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5" } 2022-05-02 22:37:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 22:37:47 | [Mutex] waiting for: [received:nodes:fd7f8197-951c-4412-8998-c8045341a027:localhost] 2022-05-02 22:37:47 | [Mutex] received everything. 2022-05-02 22:37:47 | [Mutex] isItemNotified: received:node:fd7f8197-951c-4412-8998-c8045341a027:localhost:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:Node 723e6e8b-ad78-4604-9504-f3c78f13bba5 :: false 2022-05-02 22:37:47 | [Mutex] waiting for: [received:nodes:554fc5ff-e061-4d1c-8b03-1184f6593d51:localhost] 2022-05-02 22:37:47 | [Mutex] received everything. 2022-05-02 22:37:47 | [Mutex] isItemNotified: received:node:554fc5ff-e061-4d1c-8b03-1184f6593d51:localhost:node-723e6e8b-ad78-4604-9504-f3c78f13bba5:Node 723e6e8b-ad78-4604-9504-f3c78f13bba5 :: false |
publishItemsToNodes | 0.041s |
2022-05-02 22:37:44 |
2022-05-02 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:44 | ------------------------------------ 2022-05-02 22:37:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "entry": "<test>item-d0465f58-78dd-451a-bc27-6589b148f741</test>", "item-id": "item-d0465f58-78dd-451a-bc27-6589b148f741" } 2022-05-02 22:37:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d0465f58-78dd-451a-bc27-6589b148f741" } 2022-05-02 22:37:44 | [Mutex] waiting for: [published:item:notifieditem-d0465f58-78dd-451a-bc27-6589b148f741:admin@test-domain.com] 2022-05-02 22:37:44 | [Mutex] received everything. 2022-05-02 22:37:44 | [Mutex] isItemNotified: published:item:notifieditem-d0465f58-78dd-451a-bc27-6589b148f741:admin@test-domain.com :: true |
retractItemsFromNodes | 0.058s |
2022-05-02 22:37:44 |
2022-05-02 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:44 | ------------------------------------ 2022-05-02 22:37:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "item-id": "item-d0465f58-78dd-451a-bc27-6589b148f741" } 2022-05-02 22:37:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d0465f58-78dd-451a-bc27-6589b148f741" } 2022-05-02 22:37:44 | [Mutex] waiting for: [retracted:item:notifieditem-d0465f58-78dd-451a-bc27-6589b148f741:admin@test-domain.com] 2022-05-02 22:37:44 | [Mutex] received everything. 2022-05-02 22:37:44 | [Mutex] isItemNotified: retracted:item:notifieditem-d0465f58-78dd-451a-bc27-6589b148f741:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2022-05-02 22:37:44 |
2022-05-02 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:44 | ------------------------------------ 2022-05-02 22:37:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "item-id": "item-d0465f58-78dd-451a-bc27-6589b148f741" } 2022-05-02 22:37:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "item-id": "item-d0465f58-78dd-451a-bc27-6589b148f741", "item": [ "<item id=\"item-d0465f58-78dd-451a-bc27-6589b148f741\"><test>item-d0465f58-78dd-451a-bc27-6589b148f741</test></item>" ] } 2022-05-02 22:37:44 | [Mutex] notify: [retrieved:item:item-d0465f58-78dd-451a-bc27-6589b148f741:payload-matches:true:localhost] 2022-05-02 22:37:44 | [Mutex] received everything. 2022-05-02 22:37:44 | [Mutex] isItemNotified: retrieved:item:item-d0465f58-78dd-451a-bc27-6589b148f741:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-02 22:37:44 |
2022-05-02 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:44 | ------------------------------------ 2022-05-02 22:37:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-02 22:37:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "node-ce267038-a743-4eff-ae78-7de782b569b7", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-05-02 22:37:44 |
2022-05-02 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:44 | ------------------------------------ 2022-05-02 22:37:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-723e6e8b-ad78-4604-9504-f3c78f13bba5)" } 2022-05-02 22:37:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-05-02 22:37:43 |
2022-05-02 22:37:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:43 | ------------------------------------ 2022-05-02 22:37:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "jids": [ "admin@test-domain.com" ] } 2022-05-02 22:37:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2022-05-02 22:37:44 |
2022-05-02 22:37:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 22:37:44 | ------------------------------------ 2022-05-02 22:37:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-723e6e8b-ad78-4604-9504-f3c78f13bba5", "jids": [ "admin@test-domain.com" ] } 2022-05-02 22:37:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |