Test duration : 9.126s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2020-09-13 23:10:18 |
2020-09-13 23:10:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:18 | ------------------------------------ 2020-09-13 23:10:18 | [Mutex] waiting for: [configured:node:node-be6ac1c2-257c-4405-895b-a926a20e63dd:node-1e09f930-f8a0-40c3-a2cb-702626bf5114] 2020-09-13 23:10:18 | [Mutex] received everything. 2020-09-13 23:10:18 | [Mutex] isItemNotified: configured:node:node-be6ac1c2-257c-4405-895b-a926a20e63dd:node-1e09f930-f8a0-40c3-a2cb-702626bf5114 :: true 2020-09-13 23:10:19 | [Mutex] waiting for: [received:nodes:5e62c2a8-8859-41d1-83c6-2000b4456433:localhost] 2020-09-13 23:10:19 | [Mutex] received everything. 2020-09-13 23:10:19 | [Mutex] isItemNotified: received:node:5e62c2a8-8859-41d1-83c6-2000b4456433:localhost:node-be6ac1c2-257c-4405-895b-a926a20e63dd:Node be6ac1c2-257c-4405-895b-a926a20e63dd :: true 2020-09-13 23:10:19 | [Mutex] waiting for: [received:nodes:a87d5dc9-9751-4f84-858f-7ad4d26b5949:localhost] 2020-09-13 23:10:19 | [Mutex] waiting for: [received:nodes:a87d5dc9-9751-4f84-858f-7ad4d26b5949:localhost] 2020-09-13 23:10:19 | [Mutex] waiting for: [received:nodes:a87d5dc9-9751-4f84-858f-7ad4d26b5949:localhost] 2020-09-13 23:10:19 | [Mutex] received everything. 2020-09-13 23:10:19 | [Mutex] isItemNotified: received:node:a87d5dc9-9751-4f84-858f-7ad4d26b5949:localhost:node-be6ac1c2-257c-4405-895b-a926a20e63dd:Node be6ac1c2-257c-4405-895b-a926a20e63dd :: false |
createNodes | 1.812s |
2020-09-13 23:10:15 |
2020-09-13 23:10:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:15 | ------------------------------------ 2020-09-13 23:10:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "pubsub#title": "Node be6ac1c2-257c-4405-895b-a926a20e63dd" } 2020-09-13 23:10:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 23:10:17 | [Mutex] waiting for: [received:nodes:d016e99f-c877-4bb5-8c79-beae38e69706:localhost] 2020-09-13 23:10:17 | [Mutex] received everything. 2020-09-13 23:10:17 | [Mutex] isItemNotified: received:node:d016e99f-c877-4bb5-8c79-beae38e69706:localhost:node-be6ac1c2-257c-4405-895b-a926a20e63dd:Node be6ac1c2-257c-4405-895b-a926a20e63dd :: true |
createSubnodes | 1.035s |
2020-09-13 23:10:17 |
2020-09-13 23:10:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:17 | ------------------------------------ 2020-09-13 23:10:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1e09f930-f8a0-40c3-a2cb-702626bf5114", "pubsub#title": "Node 1e09f930-f8a0-40c3-a2cb-702626bf5114" } 2020-09-13 23:10:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 23:10:18 | [Mutex] waiting for: [received:nodes:9a4c33e1-587c-471b-aef0-2955b3bed630:localhost] 2020-09-13 23:10:18 | [Mutex] received everything. 2020-09-13 23:10:18 | [Mutex] isItemNotified: received:node:9a4c33e1-587c-471b-aef0-2955b3bed630:localhost:node-1e09f930-f8a0-40c3-a2cb-702626bf5114:Node 1e09f930-f8a0-40c3-a2cb-702626bf5114 :: true |
deleteNodes | 1.024s |
2020-09-13 23:10:23 |
2020-09-13 23:10:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:23 | ------------------------------------ 2020-09-13 23:10:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1e09f930-f8a0-40c3-a2cb-702626bf5114" } 2020-09-13 23:10:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 23:10:24 | [Mutex] waiting for: [received:nodes:9013db38-f1e3-43b8-bd22-c1e08a0eb3cd:localhost] 2020-09-13 23:10:24 | [Mutex] received everything. 2020-09-13 23:10:24 | [Mutex] isItemNotified: received:node:9013db38-f1e3-43b8-bd22-c1e08a0eb3cd:localhost:node-1e09f930-f8a0-40c3-a2cb-702626bf5114:Node 1e09f930-f8a0-40c3-a2cb-702626bf5114 :: false |
deleteSubnodes | 1.030s |
2020-09-13 23:10:22 |
2020-09-13 23:10:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:22 | ------------------------------------ 2020-09-13 23:10:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd" } 2020-09-13 23:10:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 23:10:23 | [Mutex] waiting for: [received:nodes:5ca0209e-52b9-461c-9d81-8c87d311fb66:localhost] 2020-09-13 23:10:23 | [Mutex] waiting for: [received:nodes:5ca0209e-52b9-461c-9d81-8c87d311fb66:localhost] 2020-09-13 23:10:23 | [Mutex] received everything. 2020-09-13 23:10:23 | [Mutex] isItemNotified: received:node:5ca0209e-52b9-461c-9d81-8c87d311fb66:localhost:node-be6ac1c2-257c-4405-895b-a926a20e63dd:Node be6ac1c2-257c-4405-895b-a926a20e63dd :: false 2020-09-13 23:10:23 | [Mutex] waiting for: [received:nodes:4b554591-63a6-4759-8df3-fd5d9077eef7:localhost] 2020-09-13 23:10:23 | [Mutex] received everything. 2020-09-13 23:10:23 | [Mutex] isItemNotified: received:node:4b554591-63a6-4759-8df3-fd5d9077eef7:localhost:node-be6ac1c2-257c-4405-895b-a926a20e63dd:Node be6ac1c2-257c-4405-895b-a926a20e63dd :: false |
publishItemsToNodes | 0.037s |
2020-09-13 23:10:20 |
2020-09-13 23:10:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:20 | ------------------------------------ 2020-09-13 23:10:20 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "entry": "<test>item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6</test>", "item-id": "item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6" } 2020-09-13 23:10:20 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6" } 2020-09-13 23:10:20 | [Mutex] waiting for: [published:item:notifieditem-5ac96f97-b876-44c2-b12a-38cd2fb13cc6:admin@test-domain.com] 2020-09-13 23:10:20 | [Mutex] received everything. 2020-09-13 23:10:20 | [Mutex] isItemNotified: published:item:notifieditem-5ac96f97-b876-44c2-b12a-38cd2fb13cc6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-13 23:10:21 |
2020-09-13 23:10:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:21 | ------------------------------------ 2020-09-13 23:10:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "item-id": "item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6" } 2020-09-13 23:10:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6" } 2020-09-13 23:10:21 | [Mutex] received everything. 2020-09-13 23:10:21 | [Mutex] isItemNotified: retracted:item:notifieditem-5ac96f97-b876-44c2-b12a-38cd2fb13cc6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2020-09-13 23:10:20 |
2020-09-13 23:10:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:20 | ------------------------------------ 2020-09-13 23:10:20 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "item-id": "item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6" } 2020-09-13 23:10:20 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "item-id": "item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6", "item": [ "<item id=\"item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6\"><test>item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6</test></item>" ] } 2020-09-13 23:10:20 | [Mutex] notify: [retrieved:item:item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6:payload-matches:true:localhost] 2020-09-13 23:10:20 | [Mutex] received everything. 2020-09-13 23:10:20 | [Mutex] isItemNotified: retrieved:item:item-5ac96f97-b876-44c2-b12a-38cd2fb13cc6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2020-09-13 23:10:20 |
2020-09-13 23:10:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:20 | ------------------------------------ 2020-09-13 23:10:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-13 23:10:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "node-1e09f930-f8a0-40c3-a2cb-702626bf5114" ] } |
retrieveUserSubscriptionsWithRegex | 0.049s |
2020-09-13 23:10:20 |
2020-09-13 23:10:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:20 | ------------------------------------ 2020-09-13 23:10:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-be6ac1c2-257c-4405-895b-a926a20e63dd)" } 2020-09-13 23:10:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-13 23:10:19 |
2020-09-13 23:10:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:19 | ------------------------------------ 2020-09-13 23:10:19 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "jids": [ "admin@test-domain.com" ] } 2020-09-13 23:10:19 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-13 23:10:21 |
2020-09-13 23:10:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 23:10:21 | ------------------------------------ 2020-09-13 23:10:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-be6ac1c2-257c-4405-895b-a926a20e63dd", "jids": [ "admin@test-domain.com" ] } 2020-09-13 23:10:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |