Test duration : 9.058s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2020-09-15 22:46:30 |
2020-09-15 22:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:30 | ------------------------------------ 2020-09-15 22:46:30 | [Mutex] waiting for: [configured:node:node-e9f424e5-5cef-4977-a800-8767710dc820:node-1977afb4-f6b7-41cd-b198-799b35cb57fd] 2020-09-15 22:46:30 | [Mutex] received everything. 2020-09-15 22:46:30 | [Mutex] isItemNotified: configured:node:node-e9f424e5-5cef-4977-a800-8767710dc820:node-1977afb4-f6b7-41cd-b198-799b35cb57fd :: true 2020-09-15 22:46:31 | [Mutex] waiting for: [received:nodes:e5cf8a9c-831d-4f9a-8f5b-20bdedec47b2:localhost] 2020-09-15 22:46:31 | [Mutex] received everything. 2020-09-15 22:46:31 | [Mutex] isItemNotified: received:node:e5cf8a9c-831d-4f9a-8f5b-20bdedec47b2:localhost:node-e9f424e5-5cef-4977-a800-8767710dc820:Node e9f424e5-5cef-4977-a800-8767710dc820 :: true 2020-09-15 22:46:31 | [Mutex] waiting for: [received:nodes:f8e1b575-c571-42b7-ba51-8c0a0c87125b:localhost] 2020-09-15 22:46:31 | [Mutex] waiting for: [received:nodes:f8e1b575-c571-42b7-ba51-8c0a0c87125b:localhost] 2020-09-15 22:46:31 | [Mutex] waiting for: [received:nodes:f8e1b575-c571-42b7-ba51-8c0a0c87125b:localhost] 2020-09-15 22:46:31 | [Mutex] waiting for: [received:nodes:f8e1b575-c571-42b7-ba51-8c0a0c87125b:localhost] 2020-09-15 22:46:31 | [Mutex] received everything. 2020-09-15 22:46:31 | [Mutex] isItemNotified: received:node:f8e1b575-c571-42b7-ba51-8c0a0c87125b:localhost:node-e9f424e5-5cef-4977-a800-8767710dc820:Node e9f424e5-5cef-4977-a800-8767710dc820 :: false |
createNodes | 1.741s |
2020-09-15 22:46:27 |
2020-09-15 22:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:27 | ------------------------------------ 2020-09-15 22:46:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "pubsub#title": "Node e9f424e5-5cef-4977-a800-8767710dc820" } 2020-09-15 22:46:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-15 22:46:29 | [Mutex] waiting for: [received:nodes:cc7f39b7-5396-4aeb-b175-d3e65d44c1e7:localhost] 2020-09-15 22:46:29 | [Mutex] received everything. 2020-09-15 22:46:29 | [Mutex] isItemNotified: received:node:cc7f39b7-5396-4aeb-b175-d3e65d44c1e7:localhost:node-e9f424e5-5cef-4977-a800-8767710dc820:Node e9f424e5-5cef-4977-a800-8767710dc820 :: true |
createSubnodes | 1.031s |
2020-09-15 22:46:29 |
2020-09-15 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:29 | ------------------------------------ 2020-09-15 22:46:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1977afb4-f6b7-41cd-b198-799b35cb57fd", "pubsub#title": "Node 1977afb4-f6b7-41cd-b198-799b35cb57fd" } 2020-09-15 22:46:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-15 22:46:30 | [Mutex] waiting for: [received:nodes:6c999f3a-1021-4ed0-a175-0e4eb2da8864:localhost] 2020-09-15 22:46:30 | [Mutex] waiting for: [received:nodes:6c999f3a-1021-4ed0-a175-0e4eb2da8864:localhost] 2020-09-15 22:46:30 | [Mutex] received everything. 2020-09-15 22:46:30 | [Mutex] isItemNotified: received:node:6c999f3a-1021-4ed0-a175-0e4eb2da8864:localhost:node-1977afb4-f6b7-41cd-b198-799b35cb57fd:Node 1977afb4-f6b7-41cd-b198-799b35cb57fd :: true |
deleteNodes | 1.026s |
2020-09-15 22:46:34 |
2020-09-15 22:46:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:34 | ------------------------------------ 2020-09-15 22:46:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1977afb4-f6b7-41cd-b198-799b35cb57fd" } 2020-09-15 22:46:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-15 22:46:35 | [Mutex] waiting for: [received:nodes:dbb0bd7c-a3b1-4c35-8ead-1e1b79e1a445:localhost] 2020-09-15 22:46:35 | [Mutex] received everything. 2020-09-15 22:46:35 | [Mutex] isItemNotified: received:node:dbb0bd7c-a3b1-4c35-8ead-1e1b79e1a445:localhost:node-1977afb4-f6b7-41cd-b198-799b35cb57fd:Node 1977afb4-f6b7-41cd-b198-799b35cb57fd :: false |
deleteSubnodes | 1.024s |
2020-09-15 22:46:33 |
2020-09-15 22:46:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:33 | ------------------------------------ 2020-09-15 22:46:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e9f424e5-5cef-4977-a800-8767710dc820" } 2020-09-15 22:46:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-15 22:46:34 | [Mutex] waiting for: [received:nodes:fa7c930e-3e59-4de9-b104-835d6513744b:localhost] 2020-09-15 22:46:34 | [Mutex] waiting for: [received:nodes:fa7c930e-3e59-4de9-b104-835d6513744b:localhost] 2020-09-15 22:46:34 | [Mutex] received everything. 2020-09-15 22:46:34 | [Mutex] isItemNotified: received:node:fa7c930e-3e59-4de9-b104-835d6513744b:localhost:node-e9f424e5-5cef-4977-a800-8767710dc820:Node e9f424e5-5cef-4977-a800-8767710dc820 :: false 2020-09-15 22:46:34 | [Mutex] waiting for: [received:nodes:24d2b103-b15b-472f-b029-1c3665d502ae:localhost] 2020-09-15 22:46:34 | [Mutex] received everything. 2020-09-15 22:46:34 | [Mutex] isItemNotified: received:node:24d2b103-b15b-472f-b029-1c3665d502ae:localhost:node-e9f424e5-5cef-4977-a800-8767710dc820:Node e9f424e5-5cef-4977-a800-8767710dc820 :: false |
publishItemsToNodes | 0.048s |
2020-09-15 22:46:32 |
2020-09-15 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:32 | ------------------------------------ 2020-09-15 22:46:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "entry": "<test>item-69eb4758-dcb4-406c-b5ae-02dacddf5236</test>", "item-id": "item-69eb4758-dcb4-406c-b5ae-02dacddf5236" } 2020-09-15 22:46:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-69eb4758-dcb4-406c-b5ae-02dacddf5236" } 2020-09-15 22:46:32 | [Mutex] waiting for: [published:item:notifieditem-69eb4758-dcb4-406c-b5ae-02dacddf5236:admin@test-domain.com] 2020-09-15 22:46:32 | [Mutex] received everything. 2020-09-15 22:46:32 | [Mutex] isItemNotified: published:item:notifieditem-69eb4758-dcb4-406c-b5ae-02dacddf5236:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2020-09-15 22:46:32 |
2020-09-15 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:32 | ------------------------------------ 2020-09-15 22:46:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "item-id": "item-69eb4758-dcb4-406c-b5ae-02dacddf5236" } 2020-09-15 22:46:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-69eb4758-dcb4-406c-b5ae-02dacddf5236" } 2020-09-15 22:46:32 | [Mutex] received everything. 2020-09-15 22:46:32 | [Mutex] isItemNotified: retracted:item:notifieditem-69eb4758-dcb4-406c-b5ae-02dacddf5236:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2020-09-15 22:46:32 |
2020-09-15 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:32 | ------------------------------------ 2020-09-15 22:46:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "item-id": "item-69eb4758-dcb4-406c-b5ae-02dacddf5236" } 2020-09-15 22:46:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "item-id": "item-69eb4758-dcb4-406c-b5ae-02dacddf5236", "item": [ "<item id=\"item-69eb4758-dcb4-406c-b5ae-02dacddf5236\"><test>item-69eb4758-dcb4-406c-b5ae-02dacddf5236</test></item>" ] } 2020-09-15 22:46:32 | [Mutex] notify: [retrieved:item:item-69eb4758-dcb4-406c-b5ae-02dacddf5236:payload-matches:true:localhost] 2020-09-15 22:46:32 | [Mutex] received everything. 2020-09-15 22:46:32 | [Mutex] isItemNotified: retrieved:item:item-69eb4758-dcb4-406c-b5ae-02dacddf5236:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-15 22:46:32 |
2020-09-15 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:32 | ------------------------------------ 2020-09-15 22:46:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-15 22:46:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-1977afb4-f6b7-41cd-b198-799b35cb57fd", "test", "node-e9f424e5-5cef-4977-a800-8767710dc820" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-15 22:46:32 |
2020-09-15 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:32 | ------------------------------------ 2020-09-15 22:46:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e9f424e5-5cef-4977-a800-8767710dc820)" } 2020-09-15 22:46:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-15 22:46:31 |
2020-09-15 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:31 | ------------------------------------ 2020-09-15 22:46:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "jids": [ "admin@test-domain.com" ] } 2020-09-15 22:46:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.092s |
2020-09-15 22:46:32 |
2020-09-15 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-15 22:46:32 | ------------------------------------ 2020-09-15 22:46:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e9f424e5-5cef-4977-a800-8767710dc820", "jids": [ "admin@test-domain.com" ] } 2020-09-15 22:46:32 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |