Test duration : 9.152s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.224s |
2021-09-19 22:32:12 |
2021-09-19 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:12 | ------------------------------------ 2021-09-19 22:32:12 | [Mutex] waiting for: [configured:node:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:node-e63ab512-ec8a-4410-97ed-21ae19ac0930] 2021-09-19 22:32:12 | [Mutex] received everything. 2021-09-19 22:32:12 | [Mutex] isItemNotified: configured:node:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:node-e63ab512-ec8a-4410-97ed-21ae19ac0930 :: true 2021-09-19 22:32:13 | [Mutex] waiting for: [received:nodes:5a0eab09-7698-464e-8c01-f04cd45e3537:localhost] 2021-09-19 22:32:13 | [Mutex] received everything. 2021-09-19 22:32:13 | [Mutex] isItemNotified: received:node:5a0eab09-7698-464e-8c01-f04cd45e3537:localhost:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:Node e252c5ba-6de0-4252-aa8d-f890e61abd0c :: true 2021-09-19 22:32:13 | [Mutex] waiting for: [received:nodes:92a19fb4-2fb5-49c1-b9dd-fff7dbbe2923:localhost] 2021-09-19 22:32:13 | [Mutex] received everything. 2021-09-19 22:32:13 | [Mutex] isItemNotified: received:node:92a19fb4-2fb5-49c1-b9dd-fff7dbbe2923:localhost:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:Node e252c5ba-6de0-4252-aa8d-f890e61abd0c :: false |
createNodes | 1.764s |
2021-09-19 22:32:09 |
2021-09-19 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:09 | ------------------------------------ 2021-09-19 22:32:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "pubsub#title": "Node e252c5ba-6de0-4252-aa8d-f890e61abd0c" } 2021-09-19 22:32:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:32:11 | [Mutex] waiting for: [received:nodes:d37a78ed-11fd-4a53-939a-1ef3005ca18f:localhost] 2021-09-19 22:32:11 | [Mutex] received everything. 2021-09-19 22:32:11 | [Mutex] isItemNotified: received:node:d37a78ed-11fd-4a53-939a-1ef3005ca18f:localhost:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:Node e252c5ba-6de0-4252-aa8d-f890e61abd0c :: true |
createSubnodes | 1.039s |
2021-09-19 22:32:11 |
2021-09-19 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:11 | ------------------------------------ 2021-09-19 22:32:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e63ab512-ec8a-4410-97ed-21ae19ac0930", "pubsub#title": "Node e63ab512-ec8a-4410-97ed-21ae19ac0930" } 2021-09-19 22:32:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:32:12 | [Mutex] waiting for: [received:nodes:175ed631-6318-4d70-8c92-c74bcb490e9a:localhost] 2021-09-19 22:32:12 | [Mutex] waiting for: [received:nodes:175ed631-6318-4d70-8c92-c74bcb490e9a:localhost] 2021-09-19 22:32:12 | [Mutex] received everything. 2021-09-19 22:32:12 | [Mutex] isItemNotified: received:node:175ed631-6318-4d70-8c92-c74bcb490e9a:localhost:node-e63ab512-ec8a-4410-97ed-21ae19ac0930:Node e63ab512-ec8a-4410-97ed-21ae19ac0930 :: true |
deleteNodes | 1.033s |
2021-09-19 22:32:16 |
2021-09-19 22:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:16 | ------------------------------------ 2021-09-19 22:32:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e63ab512-ec8a-4410-97ed-21ae19ac0930" } 2021-09-19 22:32:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:32:17 | [Mutex] waiting for: [received:nodes:7f05536d-79c3-41fe-9105-c9d8e39e7008:localhost] 2021-09-19 22:32:17 | [Mutex] received everything. 2021-09-19 22:32:17 | [Mutex] isItemNotified: received:node:7f05536d-79c3-41fe-9105-c9d8e39e7008:localhost:node-e63ab512-ec8a-4410-97ed-21ae19ac0930:Node e63ab512-ec8a-4410-97ed-21ae19ac0930 :: false |
deleteSubnodes | 1.031s |
2021-09-19 22:32:15 |
2021-09-19 22:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:15 | ------------------------------------ 2021-09-19 22:32:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c" } 2021-09-19 22:32:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-19 22:32:16 | [Mutex] waiting for: [received:nodes:6f2534b6-6f84-4962-bb7e-52acdbc7288c:localhost] 2021-09-19 22:32:16 | [Mutex] waiting for: [received:nodes:6f2534b6-6f84-4962-bb7e-52acdbc7288c:localhost] 2021-09-19 22:32:16 | [Mutex] received everything. 2021-09-19 22:32:16 | [Mutex] isItemNotified: received:node:6f2534b6-6f84-4962-bb7e-52acdbc7288c:localhost:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:Node e252c5ba-6de0-4252-aa8d-f890e61abd0c :: false 2021-09-19 22:32:16 | [Mutex] waiting for: [received:nodes:fd09f546-6202-4db9-82b0-c4cd847e447d:localhost] 2021-09-19 22:32:16 | [Mutex] received everything. 2021-09-19 22:32:16 | [Mutex] isItemNotified: received:node:fd09f546-6202-4db9-82b0-c4cd847e447d:localhost:node-e252c5ba-6de0-4252-aa8d-f890e61abd0c:Node e252c5ba-6de0-4252-aa8d-f890e61abd0c :: false |
publishItemsToNodes | 0.058s |
2021-09-19 22:32:14 |
2021-09-19 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:14 | ------------------------------------ 2021-09-19 22:32:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "entry": "<test>item-5723d4e4-1bee-4574-b618-4bb0cf06655e</test>", "item-id": "item-5723d4e4-1bee-4574-b618-4bb0cf06655e" } 2021-09-19 22:32:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5723d4e4-1bee-4574-b618-4bb0cf06655e" } 2021-09-19 22:32:14 | [Mutex] waiting for: [published:item:notifieditem-5723d4e4-1bee-4574-b618-4bb0cf06655e:admin@test-domain.com] 2021-09-19 22:32:14 | [Mutex] received everything. 2021-09-19 22:32:14 | [Mutex] isItemNotified: published:item:notifieditem-5723d4e4-1bee-4574-b618-4bb0cf06655e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.077s |
2021-09-19 22:32:14 |
2021-09-19 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:14 | ------------------------------------ 2021-09-19 22:32:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "item-id": "item-5723d4e4-1bee-4574-b618-4bb0cf06655e" } 2021-09-19 22:32:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5723d4e4-1bee-4574-b618-4bb0cf06655e" } 2021-09-19 22:32:14 | [Mutex] waiting for: [retracted:item:notifieditem-5723d4e4-1bee-4574-b618-4bb0cf06655e:admin@test-domain.com] 2021-09-19 22:32:14 | [Mutex] received everything. 2021-09-19 22:32:14 | [Mutex] isItemNotified: retracted:item:notifieditem-5723d4e4-1bee-4574-b618-4bb0cf06655e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.084s |
2021-09-19 22:32:14 |
2021-09-19 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:14 | ------------------------------------ 2021-09-19 22:32:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "item-id": "item-5723d4e4-1bee-4574-b618-4bb0cf06655e" } 2021-09-19 22:32:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "item-id": "item-5723d4e4-1bee-4574-b618-4bb0cf06655e", "item": [ "<item id=\"item-5723d4e4-1bee-4574-b618-4bb0cf06655e\"><test>item-5723d4e4-1bee-4574-b618-4bb0cf06655e</test></item>" ] } 2021-09-19 22:32:14 | [Mutex] notify: [retrieved:item:item-5723d4e4-1bee-4574-b618-4bb0cf06655e:payload-matches:true:localhost] 2021-09-19 22:32:14 | [Mutex] received everything. 2021-09-19 22:32:14 | [Mutex] isItemNotified: retrieved:item:item-5723d4e4-1bee-4574-b618-4bb0cf06655e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2021-09-19 22:32:14 |
2021-09-19 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:14 | ------------------------------------ 2021-09-19 22:32:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-19 22:32:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "node-e63ab512-ec8a-4410-97ed-21ae19ac0930" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-09-19 22:32:14 |
2021-09-19 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:14 | ------------------------------------ 2021-09-19 22:32:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e252c5ba-6de0-4252-aa8d-f890e61abd0c)" } 2021-09-19 22:32:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-09-19 22:32:13 |
2021-09-19 22:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:13 | ------------------------------------ 2021-09-19 22:32:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "jids": [ "admin@test-domain.com" ] } 2021-09-19 22:32:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.066s |
2021-09-19 22:32:14 |
2021-09-19 22:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-19 22:32:14 | ------------------------------------ 2021-09-19 22:32:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e252c5ba-6de0-4252-aa8d-f890e61abd0c", "jids": [ "admin@test-domain.com" ] } 2021-09-19 22:32:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |