Test duration : 8.980s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2021-01-28 21:37:27 |
2021-01-28 21:37:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:27 | ------------------------------------ 2021-01-28 21:37:27 | [Mutex] waiting for: [configured:node:node-a132613b-4230-464d-9363-b351e2b47103:node-82a57663-5abd-48e3-a16a-15f932227d24] 2021-01-28 21:37:27 | [Mutex] received everything. 2021-01-28 21:37:27 | [Mutex] isItemNotified: configured:node:node-a132613b-4230-464d-9363-b351e2b47103:node-82a57663-5abd-48e3-a16a-15f932227d24 :: true 2021-01-28 21:37:28 | [Mutex] waiting for: [received:nodes:10286bcd-ec11-4b5f-97c6-f283455e7805:localhost] 2021-01-28 21:37:28 | [Mutex] received everything. 2021-01-28 21:37:28 | [Mutex] isItemNotified: received:node:10286bcd-ec11-4b5f-97c6-f283455e7805:localhost:node-a132613b-4230-464d-9363-b351e2b47103:Node a132613b-4230-464d-9363-b351e2b47103 :: true 2021-01-28 21:37:28 | [Mutex] waiting for: [received:nodes:abe04635-4273-44fd-94dc-204625972377:localhost] 2021-01-28 21:37:28 | [Mutex] received everything. 2021-01-28 21:37:28 | [Mutex] isItemNotified: received:node:abe04635-4273-44fd-94dc-204625972377:localhost:node-a132613b-4230-464d-9363-b351e2b47103:Node a132613b-4230-464d-9363-b351e2b47103 :: false |
createNodes | 1.657s |
2021-01-28 21:37:24 |
2021-01-28 21:37:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:24 | ------------------------------------ 2021-01-28 21:37:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a132613b-4230-464d-9363-b351e2b47103", "pubsub#title": "Node a132613b-4230-464d-9363-b351e2b47103" } 2021-01-28 21:37:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:37:26 | [Mutex] waiting for: [received:nodes:78e9940b-3aa4-4b0a-9f9e-d4b2ca88a1be:localhost] 2021-01-28 21:37:26 | [Mutex] waiting for: [received:nodes:78e9940b-3aa4-4b0a-9f9e-d4b2ca88a1be:localhost] 2021-01-28 21:37:26 | [Mutex] waiting for: [received:nodes:78e9940b-3aa4-4b0a-9f9e-d4b2ca88a1be:localhost] 2021-01-28 21:37:26 | [Mutex] received everything. 2021-01-28 21:37:26 | [Mutex] isItemNotified: received:node:78e9940b-3aa4-4b0a-9f9e-d4b2ca88a1be:localhost:node-a132613b-4230-464d-9363-b351e2b47103:Node a132613b-4230-464d-9363-b351e2b47103 :: true |
createSubnodes | 1.063s |
2021-01-28 21:37:26 |
2021-01-28 21:37:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:26 | ------------------------------------ 2021-01-28 21:37:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-82a57663-5abd-48e3-a16a-15f932227d24", "pubsub#title": "Node 82a57663-5abd-48e3-a16a-15f932227d24" } 2021-01-28 21:37:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:37:27 | [Mutex] waiting for: [received:nodes:a4eb528e-c99c-4b31-917f-6e5464109ea0:localhost] 2021-01-28 21:37:27 | [Mutex] received everything. 2021-01-28 21:37:27 | [Mutex] isItemNotified: received:node:a4eb528e-c99c-4b31-917f-6e5464109ea0:localhost:node-82a57663-5abd-48e3-a16a-15f932227d24:Node 82a57663-5abd-48e3-a16a-15f932227d24 :: true |
deleteNodes | 1.027s |
2021-01-28 21:37:32 |
2021-01-28 21:37:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:32 | ------------------------------------ 2021-01-28 21:37:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-82a57663-5abd-48e3-a16a-15f932227d24" } 2021-01-28 21:37:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:37:33 | [Mutex] waiting for: [received:nodes:bf202bf2-3992-4a8e-b3d4-0dad3e58e26e:localhost] 2021-01-28 21:37:33 | [Mutex] received everything. 2021-01-28 21:37:33 | [Mutex] isItemNotified: received:node:bf202bf2-3992-4a8e-b3d4-0dad3e58e26e:localhost:node-82a57663-5abd-48e3-a16a-15f932227d24:Node 82a57663-5abd-48e3-a16a-15f932227d24 :: false |
deleteSubnodes | 1.027s |
2021-01-28 21:37:31 |
2021-01-28 21:37:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:31 | ------------------------------------ 2021-01-28 21:37:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a132613b-4230-464d-9363-b351e2b47103" } 2021-01-28 21:37:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-28 21:37:32 | [Mutex] waiting for: [received:nodes:7c41791c-5ae9-4c03-aa4a-95fa783fa0e3:localhost] 2021-01-28 21:37:32 | [Mutex] waiting for: [received:nodes:7c41791c-5ae9-4c03-aa4a-95fa783fa0e3:localhost] 2021-01-28 21:37:32 | [Mutex] received everything. 2021-01-28 21:37:32 | [Mutex] isItemNotified: received:node:7c41791c-5ae9-4c03-aa4a-95fa783fa0e3:localhost:node-a132613b-4230-464d-9363-b351e2b47103:Node a132613b-4230-464d-9363-b351e2b47103 :: false 2021-01-28 21:37:32 | [Mutex] waiting for: [received:nodes:767d33c9-4742-484e-bcb8-f586a115ceb5:localhost] 2021-01-28 21:37:32 | [Mutex] received everything. 2021-01-28 21:37:32 | [Mutex] isItemNotified: received:node:767d33c9-4742-484e-bcb8-f586a115ceb5:localhost:node-a132613b-4230-464d-9363-b351e2b47103:Node a132613b-4230-464d-9363-b351e2b47103 :: false |
publishItemsToNodes | 0.053s |
2021-01-28 21:37:29 |
2021-01-28 21:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:29 | ------------------------------------ 2021-01-28 21:37:29 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a132613b-4230-464d-9363-b351e2b47103", "entry": "<test>item-558783a8-3e1a-465c-991c-3da3dddea7a8</test>", "item-id": "item-558783a8-3e1a-465c-991c-3da3dddea7a8" } 2021-01-28 21:37:29 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-558783a8-3e1a-465c-991c-3da3dddea7a8" } 2021-01-28 21:37:29 | [Mutex] waiting for: [published:item:notifieditem-558783a8-3e1a-465c-991c-3da3dddea7a8:admin@test-domain.com] 2021-01-28 21:37:29 | [Mutex] received everything. 2021-01-28 21:37:29 | [Mutex] isItemNotified: published:item:notifieditem-558783a8-3e1a-465c-991c-3da3dddea7a8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2021-01-28 21:37:29 |
2021-01-28 21:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:29 | ------------------------------------ 2021-01-28 21:37:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a132613b-4230-464d-9363-b351e2b47103", "item-id": "item-558783a8-3e1a-465c-991c-3da3dddea7a8" } 2021-01-28 21:37:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-558783a8-3e1a-465c-991c-3da3dddea7a8" } 2021-01-28 21:37:30 | [Mutex] received everything. 2021-01-28 21:37:30 | [Mutex] isItemNotified: retracted:item:notifieditem-558783a8-3e1a-465c-991c-3da3dddea7a8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.026s |
2021-01-28 21:37:29 |
2021-01-28 21:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:29 | ------------------------------------ 2021-01-28 21:37:29 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a132613b-4230-464d-9363-b351e2b47103", "item-id": "item-558783a8-3e1a-465c-991c-3da3dddea7a8" } 2021-01-28 21:37:29 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a132613b-4230-464d-9363-b351e2b47103", "item-id": "item-558783a8-3e1a-465c-991c-3da3dddea7a8", "item": [ "<item id=\"item-558783a8-3e1a-465c-991c-3da3dddea7a8\"><test>item-558783a8-3e1a-465c-991c-3da3dddea7a8</test></item>" ] } 2021-01-28 21:37:29 | [Mutex] notify: [retrieved:item:item-558783a8-3e1a-465c-991c-3da3dddea7a8:payload-matches:true:localhost] 2021-01-28 21:37:29 | [Mutex] received everything. 2021-01-28 21:37:29 | [Mutex] isItemNotified: retrieved:item:item-558783a8-3e1a-465c-991c-3da3dddea7a8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.054s |
2021-01-28 21:37:29 |
2021-01-28 21:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:29 | ------------------------------------ 2021-01-28 21:37:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-28 21:37:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a132613b-4230-464d-9363-b351e2b47103", "test", "node-82a57663-5abd-48e3-a16a-15f932227d24" ] } |
retrieveUserSubscriptionsWithRegex | 0.050s |
2021-01-28 21:37:29 |
2021-01-28 21:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:29 | ------------------------------------ 2021-01-28 21:37:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a132613b-4230-464d-9363-b351e2b47103)" } 2021-01-28 21:37:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-01-28 21:37:28 |
2021-01-28 21:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:28 | ------------------------------------ 2021-01-28 21:37:28 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a132613b-4230-464d-9363-b351e2b47103", "jids": [ "admin@test-domain.com" ] } 2021-01-28 21:37:28 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2021-01-28 21:37:30 |
2021-01-28 21:37:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-28 21:37:30 | ------------------------------------ 2021-01-28 21:37:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a132613b-4230-464d-9363-b351e2b47103", "jids": [ "admin@test-domain.com" ] } 2021-01-28 21:37:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |