Test duration : 9.050s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.129s |
2020-10-29 22:41:56 |
2020-10-29 22:41:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:56 | ------------------------------------ 2020-10-29 22:41:56 | [Mutex] waiting for: [configured:node:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab] 2020-10-29 22:41:56 | [Mutex] received everything. 2020-10-29 22:41:56 | [Mutex] isItemNotified: configured:node:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab :: true 2020-10-29 22:41:57 | [Mutex] waiting for: [received:nodes:7a2233f2-9169-44f0-84bb-7f8e11bb9d6e:localhost] 2020-10-29 22:41:57 | [Mutex] received everything. 2020-10-29 22:41:57 | [Mutex] isItemNotified: received:node:7a2233f2-9169-44f0-84bb-7f8e11bb9d6e:localhost:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:Node cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb :: true 2020-10-29 22:41:58 | [Mutex] waiting for: [received:nodes:b800063a-fa4d-4b82-80ea-b371a4dc944e:localhost] 2020-10-29 22:41:58 | [Mutex] waiting for: [received:nodes:b800063a-fa4d-4b82-80ea-b371a4dc944e:localhost] 2020-10-29 22:41:58 | [Mutex] received everything. 2020-10-29 22:41:58 | [Mutex] isItemNotified: received:node:b800063a-fa4d-4b82-80ea-b371a4dc944e:localhost:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:Node cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb :: false |
createNodes | 1.626s |
2020-10-29 22:41:54 |
2020-10-29 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:54 | ------------------------------------ 2020-10-29 22:41:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "pubsub#title": "Node cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb" } 2020-10-29 22:41:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:41:55 | [Mutex] waiting for: [received:nodes:290716e5-d78d-493e-a70b-1eccad1a4e50:localhost] 2020-10-29 22:41:55 | [Mutex] waiting for: [received:nodes:290716e5-d78d-493e-a70b-1eccad1a4e50:localhost] 2020-10-29 22:41:55 | [Mutex] received everything. 2020-10-29 22:41:55 | [Mutex] isItemNotified: received:node:290716e5-d78d-493e-a70b-1eccad1a4e50:localhost:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:Node cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb :: true |
createSubnodes | 1.028s |
2020-10-29 22:41:55 |
2020-10-29 22:41:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:55 | ------------------------------------ 2020-10-29 22:41:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab", "pubsub#title": "Node 6ec4c5f8-f35a-4c71-904b-2847ab18c5ab" } 2020-10-29 22:41:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:41:56 | [Mutex] waiting for: [received:nodes:62a784a4-0970-4653-9335-3bace3ec3e2f:localhost] 2020-10-29 22:41:56 | [Mutex] received everything. 2020-10-29 22:41:56 | [Mutex] isItemNotified: received:node:62a784a4-0970-4653-9335-3bace3ec3e2f:localhost:node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab:Node 6ec4c5f8-f35a-4c71-904b-2847ab18c5ab :: true |
deleteNodes | 1.029s |
2020-10-29 22:42:01 |
2020-10-29 22:42:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:42:01 | ------------------------------------ 2020-10-29 22:42:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab" } 2020-10-29 22:42:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:42:02 | [Mutex] waiting for: [received:nodes:4e4a2776-4a53-4079-b380-4a8efd2dff87:localhost] 2020-10-29 22:42:02 | [Mutex] received everything. 2020-10-29 22:42:02 | [Mutex] isItemNotified: received:node:4e4a2776-4a53-4079-b380-4a8efd2dff87:localhost:node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab:Node 6ec4c5f8-f35a-4c71-904b-2847ab18c5ab :: false |
deleteSubnodes | 1.031s |
2020-10-29 22:42:00 |
2020-10-29 22:42:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:42:00 | ------------------------------------ 2020-10-29 22:42:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb" } 2020-10-29 22:42:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:42:01 | [Mutex] waiting for: [received:nodes:7a600554-a74f-4fb7-a7c2-ba79ef92352f:localhost] 2020-10-29 22:42:01 | [Mutex] received everything. 2020-10-29 22:42:01 | [Mutex] isItemNotified: received:node:7a600554-a74f-4fb7-a7c2-ba79ef92352f:localhost:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:Node cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb :: false 2020-10-29 22:42:01 | [Mutex] waiting for: [received:nodes:f494aded-6b4f-446f-acd1-3c2b8cbe016f:localhost] 2020-10-29 22:42:01 | [Mutex] received everything. 2020-10-29 22:42:01 | [Mutex] isItemNotified: received:node:f494aded-6b4f-446f-acd1-3c2b8cbe016f:localhost:node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb:Node cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb :: false |
publishItemsToNodes | 0.065s |
2020-10-29 22:41:59 |
2020-10-29 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:59 | ------------------------------------ 2020-10-29 22:41:59 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "entry": "<test>item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add</test>", "item-id": "item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add" } 2020-10-29 22:41:59 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add" } 2020-10-29 22:41:59 | [Mutex] waiting for: [published:item:notifieditem-bf0bfa1c-5f13-440e-843c-3fd8b96b1add:admin@test-domain.com] 2020-10-29 22:41:59 | [Mutex] received everything. 2020-10-29 22:41:59 | [Mutex] isItemNotified: published:item:notifieditem-bf0bfa1c-5f13-440e-843c-3fd8b96b1add:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-10-29 22:41:59 |
2020-10-29 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:59 | ------------------------------------ 2020-10-29 22:41:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "item-id": "item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add" } 2020-10-29 22:41:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add" } 2020-10-29 22:41:59 | [Mutex] received everything. 2020-10-29 22:41:59 | [Mutex] isItemNotified: retracted:item:notifieditem-bf0bfa1c-5f13-440e-843c-3fd8b96b1add:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2020-10-29 22:41:59 |
2020-10-29 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:59 | ------------------------------------ 2020-10-29 22:41:59 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "item-id": "item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add" } 2020-10-29 22:41:59 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "item-id": "item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add", "item": [ "<item id=\"item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add\"><test>item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add</test></item>" ] } 2020-10-29 22:41:59 | [Mutex] notify: [retrieved:item:item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add:payload-matches:true:localhost] 2020-10-29 22:41:59 | [Mutex] received everything. 2020-10-29 22:41:59 | [Mutex] isItemNotified: retrieved:item:item-bf0bfa1c-5f13-440e-843c-3fd8b96b1add:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2020-10-29 22:41:59 |
2020-10-29 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:59 | ------------------------------------ 2020-10-29 22:41:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-29 22:41:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6ec4c5f8-f35a-4c71-904b-2847ab18c5ab", "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-10-29 22:41:59 |
2020-10-29 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:59 | ------------------------------------ 2020-10-29 22:41:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb)" } 2020-10-29 22:41:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-10-29 22:41:58 |
2020-10-29 22:41:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:58 | ------------------------------------ 2020-10-29 22:41:58 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "jids": [ "admin@test-domain.com" ] } 2020-10-29 22:41:58 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2020-10-29 22:41:59 |
2020-10-29 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:41:59 | ------------------------------------ 2020-10-29 22:41:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cfd30a37-f4e0-46f4-934a-a8a5f9f2cbdb", "jids": [ "admin@test-domain.com" ] } 2020-10-29 22:41:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |