Test duration : 9.075s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.151s |
2021-09-30 23:10:02 |
2021-09-30 23:10:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:02 | ------------------------------------ 2021-09-30 23:10:02 | [Mutex] waiting for: [configured:node:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf] 2021-09-30 23:10:02 | [Mutex] received everything. 2021-09-30 23:10:02 | [Mutex] isItemNotified: configured:node:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf :: true 2021-09-30 23:10:03 | [Mutex] waiting for: [received:nodes:c5d8f1d4-b9e1-4e5f-9045-195f8acf810d:localhost] 2021-09-30 23:10:03 | [Mutex] received everything. 2021-09-30 23:10:03 | [Mutex] isItemNotified: received:node:c5d8f1d4-b9e1-4e5f-9045-195f8acf810d:localhost:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:Node 6ab98a12-cbd6-4b98-a45e-889f3c0379c0 :: true 2021-09-30 23:10:03 | [Mutex] waiting for: [received:nodes:3fa096b6-7c9e-4bd7-8f89-85a17780af3f:localhost] 2021-09-30 23:10:03 | [Mutex] received everything. 2021-09-30 23:10:03 | [Mutex] isItemNotified: received:node:3fa096b6-7c9e-4bd7-8f89-85a17780af3f:localhost:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:Node 6ab98a12-cbd6-4b98-a45e-889f3c0379c0 :: false |
createNodes | 1.604s |
2021-09-30 23:09:59 |
2021-09-30 23:09:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:09:59 | ------------------------------------ 2021-09-30 23:10:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "pubsub#title": "Node 6ab98a12-cbd6-4b98-a45e-889f3c0379c0" } 2021-09-30 23:10:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 23:10:01 | [Mutex] waiting for: [received:nodes:5894a987-0dd6-49fa-bae0-c123b6e1a000:localhost] 2021-09-30 23:10:01 | [Mutex] received everything. 2021-09-30 23:10:01 | [Mutex] isItemNotified: received:node:5894a987-0dd6-49fa-bae0-c123b6e1a000:localhost:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:Node 6ab98a12-cbd6-4b98-a45e-889f3c0379c0 :: true |
createSubnodes | 1.040s |
2021-09-30 23:10:01 |
2021-09-30 23:10:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:01 | ------------------------------------ 2021-09-30 23:10:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf", "pubsub#title": "Node 6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf" } 2021-09-30 23:10:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 23:10:02 | [Mutex] waiting for: [received:nodes:8cf82e39-3ac1-4696-8e28-504550c2ee76:localhost] 2021-09-30 23:10:02 | [Mutex] received everything. 2021-09-30 23:10:02 | [Mutex] isItemNotified: received:node:8cf82e39-3ac1-4696-8e28-504550c2ee76:localhost:node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf:Node 6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf :: true |
deleteNodes | 1.023s |
2021-09-30 23:10:06 |
2021-09-30 23:10:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:06 | ------------------------------------ 2021-09-30 23:10:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf" } 2021-09-30 23:10:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 23:10:07 | [Mutex] waiting for: [received:nodes:f40c65bd-92ab-4319-b25a-0c8a221eaa1e:localhost] 2021-09-30 23:10:07 | [Mutex] waiting for: [received:nodes:f40c65bd-92ab-4319-b25a-0c8a221eaa1e:localhost] 2021-09-30 23:10:07 | [Mutex] waiting for: [received:nodes:f40c65bd-92ab-4319-b25a-0c8a221eaa1e:localhost] 2021-09-30 23:10:07 | [Mutex] received everything. 2021-09-30 23:10:07 | [Mutex] isItemNotified: received:node:f40c65bd-92ab-4319-b25a-0c8a221eaa1e:localhost:node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf:Node 6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf :: false |
deleteSubnodes | 1.061s |
2021-09-30 23:10:05 |
2021-09-30 23:10:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:05 | ------------------------------------ 2021-09-30 23:10:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0" } 2021-09-30 23:10:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-30 23:10:06 | [Mutex] waiting for: [received:nodes:5b9cc610-904a-4b86-b30d-f0b8160ca2a4:localhost] 2021-09-30 23:10:06 | [Mutex] received everything. 2021-09-30 23:10:06 | [Mutex] isItemNotified: received:node:5b9cc610-904a-4b86-b30d-f0b8160ca2a4:localhost:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:Node 6ab98a12-cbd6-4b98-a45e-889f3c0379c0 :: false 2021-09-30 23:10:06 | [Mutex] waiting for: [received:nodes:5a180826-6dde-4f1e-acb6-0c3b5ab41f2e:localhost] 2021-09-30 23:10:06 | [Mutex] received everything. 2021-09-30 23:10:06 | [Mutex] isItemNotified: received:node:5a180826-6dde-4f1e-acb6-0c3b5ab41f2e:localhost:node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0:Node 6ab98a12-cbd6-4b98-a45e-889f3c0379c0 :: false |
publishItemsToNodes | 0.048s |
2021-09-30 23:10:04 |
2021-09-30 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:04 | ------------------------------------ 2021-09-30 23:10:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "entry": "<test>item-b892311a-877a-44a2-9fb6-b572598839fe</test>", "item-id": "item-b892311a-877a-44a2-9fb6-b572598839fe" } 2021-09-30 23:10:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b892311a-877a-44a2-9fb6-b572598839fe" } 2021-09-30 23:10:04 | [Mutex] waiting for: [published:item:notifieditem-b892311a-877a-44a2-9fb6-b572598839fe:admin@test-domain.com] 2021-09-30 23:10:04 | [Mutex] received everything. 2021-09-30 23:10:04 | [Mutex] isItemNotified: published:item:notifieditem-b892311a-877a-44a2-9fb6-b572598839fe:admin@test-domain.com :: true |
retractItemsFromNodes | 0.108s |
2021-09-30 23:10:04 |
2021-09-30 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:04 | ------------------------------------ 2021-09-30 23:10:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "item-id": "item-b892311a-877a-44a2-9fb6-b572598839fe" } 2021-09-30 23:10:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b892311a-877a-44a2-9fb6-b572598839fe" } 2021-09-30 23:10:04 | [Mutex] waiting for: [retracted:item:notifieditem-b892311a-877a-44a2-9fb6-b572598839fe:admin@test-domain.com] 2021-09-30 23:10:04 | [Mutex] received everything. 2021-09-30 23:10:04 | [Mutex] isItemNotified: retracted:item:notifieditem-b892311a-877a-44a2-9fb6-b572598839fe:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2021-09-30 23:10:04 |
2021-09-30 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:04 | ------------------------------------ 2021-09-30 23:10:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "item-id": "item-b892311a-877a-44a2-9fb6-b572598839fe" } 2021-09-30 23:10:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "item-id": "item-b892311a-877a-44a2-9fb6-b572598839fe", "item": [ "<item id=\"item-b892311a-877a-44a2-9fb6-b572598839fe\"><test>item-b892311a-877a-44a2-9fb6-b572598839fe</test></item>" ] } 2021-09-30 23:10:04 | [Mutex] notify: [retrieved:item:item-b892311a-877a-44a2-9fb6-b572598839fe:payload-matches:true:localhost] 2021-09-30 23:10:04 | [Mutex] received everything. 2021-09-30 23:10:04 | [Mutex] isItemNotified: retrieved:item:item-b892311a-877a-44a2-9fb6-b572598839fe:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-09-30 23:10:04 |
2021-09-30 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:04 | ------------------------------------ 2021-09-30 23:10:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-30 23:10:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6ac8d83f-e6d9-43a5-8021-a60bd4ee06cf", "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0" ] } |
retrieveUserSubscriptionsWithRegex | 0.059s |
2021-09-30 23:10:04 |
2021-09-30 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:04 | ------------------------------------ 2021-09-30 23:10:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0)" } 2021-09-30 23:10:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-09-30 23:10:03 |
2021-09-30 23:10:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:03 | ------------------------------------ 2021-09-30 23:10:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "jids": [ "admin@test-domain.com" ] } 2021-09-30 23:10:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2021-09-30 23:10:04 |
2021-09-30 23:10:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-30 23:10:04 | ------------------------------------ 2021-09-30 23:10:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6ab98a12-cbd6-4b98-a45e-889f3c0379c0", "jids": [ "admin@test-domain.com" ] } 2021-09-30 23:10:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |