Test duration : 9.063s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2020-09-21 22:48:34 |
2020-09-21 22:48:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:34 | ------------------------------------ 2020-09-21 22:48:34 | [Mutex] waiting for: [configured:node:node-ecf98836-e376-40c8-b570-2bad93b52c54:node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd] 2020-09-21 22:48:34 | [Mutex] received everything. 2020-09-21 22:48:34 | [Mutex] isItemNotified: configured:node:node-ecf98836-e376-40c8-b570-2bad93b52c54:node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd :: true 2020-09-21 22:48:35 | [Mutex] waiting for: [received:nodes:66cc02aa-dc60-4e16-8162-32a61c1a3591:localhost] 2020-09-21 22:48:35 | [Mutex] waiting for: [received:nodes:66cc02aa-dc60-4e16-8162-32a61c1a3591:localhost] 2020-09-21 22:48:35 | [Mutex] received everything. 2020-09-21 22:48:35 | [Mutex] isItemNotified: received:node:66cc02aa-dc60-4e16-8162-32a61c1a3591:localhost:node-ecf98836-e376-40c8-b570-2bad93b52c54:Node ecf98836-e376-40c8-b570-2bad93b52c54 :: true 2020-09-21 22:48:35 | [Mutex] waiting for: [received:nodes:fd65f9d4-b5d8-4c0f-959c-d2a2790887d8:localhost] 2020-09-21 22:48:35 | [Mutex] received everything. 2020-09-21 22:48:35 | [Mutex] isItemNotified: received:node:fd65f9d4-b5d8-4c0f-959c-d2a2790887d8:localhost:node-ecf98836-e376-40c8-b570-2bad93b52c54:Node ecf98836-e376-40c8-b570-2bad93b52c54 :: false |
createNodes | 1.637s |
2020-09-21 22:48:31 |
2020-09-21 22:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:31 | ------------------------------------ 2020-09-21 22:48:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "pubsub#title": "Node ecf98836-e376-40c8-b570-2bad93b52c54" } 2020-09-21 22:48:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:48:33 | [Mutex] waiting for: [received:nodes:e3a76ae3-f821-488e-929f-ec9dcf534f76:localhost] 2020-09-21 22:48:33 | [Mutex] waiting for: [received:nodes:e3a76ae3-f821-488e-929f-ec9dcf534f76:localhost] 2020-09-21 22:48:33 | [Mutex] waiting for: [received:nodes:e3a76ae3-f821-488e-929f-ec9dcf534f76:localhost] 2020-09-21 22:48:33 | [Mutex] received everything. 2020-09-21 22:48:33 | [Mutex] isItemNotified: received:node:e3a76ae3-f821-488e-929f-ec9dcf534f76:localhost:node-ecf98836-e376-40c8-b570-2bad93b52c54:Node ecf98836-e376-40c8-b570-2bad93b52c54 :: true |
createSubnodes | 1.030s |
2020-09-21 22:48:33 |
2020-09-21 22:48:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:33 | ------------------------------------ 2020-09-21 22:48:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd", "pubsub#title": "Node f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd" } 2020-09-21 22:48:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:48:34 | [Mutex] waiting for: [received:nodes:54f39289-596a-4458-acb3-d2525f1f79d0:localhost] 2020-09-21 22:48:34 | [Mutex] received everything. 2020-09-21 22:48:34 | [Mutex] isItemNotified: received:node:54f39289-596a-4458-acb3-d2525f1f79d0:localhost:node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd:Node f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd :: true |
deleteNodes | 1.019s |
2020-09-21 22:48:38 |
2020-09-21 22:48:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:38 | ------------------------------------ 2020-09-21 22:48:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd" } 2020-09-21 22:48:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:48:39 | [Mutex] waiting for: [received:nodes:e9b5f77c-0c18-49f9-9b04-63f0421af20d:localhost] 2020-09-21 22:48:39 | [Mutex] received everything. 2020-09-21 22:48:39 | [Mutex] isItemNotified: received:node:e9b5f77c-0c18-49f9-9b04-63f0421af20d:localhost:node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd:Node f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd :: false |
deleteSubnodes | 1.031s |
2020-09-21 22:48:37 |
2020-09-21 22:48:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:37 | ------------------------------------ 2020-09-21 22:48:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54" } 2020-09-21 22:48:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-21 22:48:38 | [Mutex] waiting for: [received:nodes:d3c9c5a0-0d5e-46b5-85ca-c094e6744a25:localhost] 2020-09-21 22:48:38 | [Mutex] received everything. 2020-09-21 22:48:38 | [Mutex] isItemNotified: received:node:d3c9c5a0-0d5e-46b5-85ca-c094e6744a25:localhost:node-ecf98836-e376-40c8-b570-2bad93b52c54:Node ecf98836-e376-40c8-b570-2bad93b52c54 :: false 2020-09-21 22:48:38 | [Mutex] waiting for: [received:nodes:25ddc73e-de40-46d5-97eb-ff83d9eb898f:localhost] 2020-09-21 22:48:38 | [Mutex] received everything. 2020-09-21 22:48:38 | [Mutex] isItemNotified: received:node:25ddc73e-de40-46d5-97eb-ff83d9eb898f:localhost:node-ecf98836-e376-40c8-b570-2bad93b52c54:Node ecf98836-e376-40c8-b570-2bad93b52c54 :: false |
publishItemsToNodes | 0.038s |
2020-09-21 22:48:36 |
2020-09-21 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:36 | ------------------------------------ 2020-09-21 22:48:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "entry": "<test>item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc</test>", "item-id": "item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc" } 2020-09-21 22:48:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc" } 2020-09-21 22:48:36 | [Mutex] waiting for: [published:item:notifieditem-03c6e32e-9535-4bdf-80fa-6fb6744aefcc:admin@test-domain.com] 2020-09-21 22:48:36 | [Mutex] received everything. 2020-09-21 22:48:36 | [Mutex] isItemNotified: published:item:notifieditem-03c6e32e-9535-4bdf-80fa-6fb6744aefcc:admin@test-domain.com :: true |
retractItemsFromNodes | 0.104s |
2020-09-21 22:48:36 |
2020-09-21 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:36 | ------------------------------------ 2020-09-21 22:48:36 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "item-id": "item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc" } 2020-09-21 22:48:36 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc" } 2020-09-21 22:48:36 | [Mutex] waiting for: [retracted:item:notifieditem-03c6e32e-9535-4bdf-80fa-6fb6744aefcc:admin@test-domain.com] 2020-09-21 22:48:36 | [Mutex] received everything. 2020-09-21 22:48:36 | [Mutex] isItemNotified: retracted:item:notifieditem-03c6e32e-9535-4bdf-80fa-6fb6744aefcc:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2020-09-21 22:48:36 |
2020-09-21 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:36 | ------------------------------------ 2020-09-21 22:48:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "item-id": "item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc" } 2020-09-21 22:48:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "item-id": "item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc", "item": [ "<item id=\"item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc\"><test>item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc</test></item>" ] } 2020-09-21 22:48:36 | [Mutex] notify: [retrieved:item:item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc:payload-matches:true:localhost] 2020-09-21 22:48:36 | [Mutex] received everything. 2020-09-21 22:48:36 | [Mutex] isItemNotified: retrieved:item:item-03c6e32e-9535-4bdf-80fa-6fb6744aefcc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2020-09-21 22:48:36 |
2020-09-21 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:36 | ------------------------------------ 2020-09-21 22:48:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-21 22:48:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ecf98836-e376-40c8-b570-2bad93b52c54", "test", "node-f0f9ab1e-f86a-4216-98ad-03b3efc1c5dd" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-21 22:48:36 |
2020-09-21 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:36 | ------------------------------------ 2020-09-21 22:48:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ecf98836-e376-40c8-b570-2bad93b52c54)" } 2020-09-21 22:48:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-21 22:48:35 |
2020-09-21 22:48:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:35 | ------------------------------------ 2020-09-21 22:48:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "jids": [ "admin@test-domain.com" ] } 2020-09-21 22:48:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.054s |
2020-09-21 22:48:36 |
2020-09-21 22:48:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-21 22:48:36 | ------------------------------------ 2020-09-21 22:48:36 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ecf98836-e376-40c8-b570-2bad93b52c54", "jids": [ "admin@test-domain.com" ] } 2020-09-21 22:48:36 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |