Test duration : 8.878s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.095s |
2021-06-24 22:41:45 |
2021-06-24 22:41:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:45 | ------------------------------------ 2021-06-24 22:41:45 | [Mutex] waiting for: [configured:node:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:node-86617619-702a-4165-978e-024d7a8068dc] 2021-06-24 22:41:45 | [Mutex] received everything. 2021-06-24 22:41:45 | [Mutex] isItemNotified: configured:node:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:node-86617619-702a-4165-978e-024d7a8068dc :: true 2021-06-24 22:41:46 | [Mutex] waiting for: [received:nodes:079f921b-c4e0-4cb7-8370-c8810e9f1f04:localhost] 2021-06-24 22:41:46 | [Mutex] received everything. 2021-06-24 22:41:46 | [Mutex] isItemNotified: received:node:079f921b-c4e0-4cb7-8370-c8810e9f1f04:localhost:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:Node ebee876c-3dad-4ed3-b2ae-657b96f04bad :: true 2021-06-24 22:41:46 | [Mutex] waiting for: [received:nodes:c0a959e8-ea7f-43e2-a95d-40fcf5e7f988:localhost] 2021-06-24 22:41:46 | [Mutex] waiting for: [received:nodes:c0a959e8-ea7f-43e2-a95d-40fcf5e7f988:localhost] 2021-06-24 22:41:46 | [Mutex] waiting for: [received:nodes:c0a959e8-ea7f-43e2-a95d-40fcf5e7f988:localhost] 2021-06-24 22:41:46 | [Mutex] received everything. 2021-06-24 22:41:46 | [Mutex] isItemNotified: received:node:c0a959e8-ea7f-43e2-a95d-40fcf5e7f988:localhost:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:Node ebee876c-3dad-4ed3-b2ae-657b96f04bad :: false |
createNodes | 1.599s |
2021-06-24 22:41:43 |
2021-06-24 22:41:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:43 | ------------------------------------ 2021-06-24 22:41:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "pubsub#title": "Node ebee876c-3dad-4ed3-b2ae-657b96f04bad" } 2021-06-24 22:41:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:41:44 | [Mutex] waiting for: [received:nodes:f5afcaed-c13b-4bfa-bc86-375281ebefb0:localhost] 2021-06-24 22:41:44 | [Mutex] waiting for: [received:nodes:f5afcaed-c13b-4bfa-bc86-375281ebefb0:localhost] 2021-06-24 22:41:44 | [Mutex] received everything. 2021-06-24 22:41:44 | [Mutex] isItemNotified: received:node:f5afcaed-c13b-4bfa-bc86-375281ebefb0:localhost:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:Node ebee876c-3dad-4ed3-b2ae-657b96f04bad :: true |
createSubnodes | 1.036s |
2021-06-24 22:41:44 |
2021-06-24 22:41:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:44 | ------------------------------------ 2021-06-24 22:41:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-86617619-702a-4165-978e-024d7a8068dc", "pubsub#title": "Node 86617619-702a-4165-978e-024d7a8068dc" } 2021-06-24 22:41:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:41:45 | [Mutex] waiting for: [received:nodes:c605ef3b-8639-45af-9215-bf6ae1740608:localhost] 2021-06-24 22:41:45 | [Mutex] received everything. 2021-06-24 22:41:45 | [Mutex] isItemNotified: received:node:c605ef3b-8639-45af-9215-bf6ae1740608:localhost:node-86617619-702a-4165-978e-024d7a8068dc:Node 86617619-702a-4165-978e-024d7a8068dc :: true |
deleteNodes | 1.026s |
2021-06-24 22:41:50 |
2021-06-24 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:50 | ------------------------------------ 2021-06-24 22:41:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-86617619-702a-4165-978e-024d7a8068dc" } 2021-06-24 22:41:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:41:51 | [Mutex] waiting for: [received:nodes:caeb20fd-3e89-44bd-bb8f-a177a8f94557:localhost] 2021-06-24 22:41:51 | [Mutex] received everything. 2021-06-24 22:41:51 | [Mutex] isItemNotified: received:node:caeb20fd-3e89-44bd-bb8f-a177a8f94557:localhost:node-86617619-702a-4165-978e-024d7a8068dc:Node 86617619-702a-4165-978e-024d7a8068dc :: false |
deleteSubnodes | 1.030s |
2021-06-24 22:41:49 |
2021-06-24 22:41:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:49 | ------------------------------------ 2021-06-24 22:41:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad" } 2021-06-24 22:41:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-24 22:41:50 | [Mutex] waiting for: [received:nodes:afa12040-ada0-499c-8273-2387d20ec0a8:localhost] 2021-06-24 22:41:50 | [Mutex] waiting for: [received:nodes:afa12040-ada0-499c-8273-2387d20ec0a8:localhost] 2021-06-24 22:41:50 | [Mutex] waiting for: [received:nodes:afa12040-ada0-499c-8273-2387d20ec0a8:localhost] 2021-06-24 22:41:50 | [Mutex] received everything. 2021-06-24 22:41:50 | [Mutex] isItemNotified: received:node:afa12040-ada0-499c-8273-2387d20ec0a8:localhost:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:Node ebee876c-3dad-4ed3-b2ae-657b96f04bad :: false 2021-06-24 22:41:50 | [Mutex] waiting for: [received:nodes:29330cb2-96fd-4610-a8e5-6206bda87ac3:localhost] 2021-06-24 22:41:50 | [Mutex] received everything. 2021-06-24 22:41:50 | [Mutex] isItemNotified: received:node:29330cb2-96fd-4610-a8e5-6206bda87ac3:localhost:node-ebee876c-3dad-4ed3-b2ae-657b96f04bad:Node ebee876c-3dad-4ed3-b2ae-657b96f04bad :: false |
publishItemsToNodes | 0.045s |
2021-06-24 22:41:47 |
2021-06-24 22:41:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:47 | ------------------------------------ 2021-06-24 22:41:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "entry": "<test>item-fa9e1897-3216-4f3a-9314-44ed96d4e855</test>", "item-id": "item-fa9e1897-3216-4f3a-9314-44ed96d4e855" } 2021-06-24 22:41:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fa9e1897-3216-4f3a-9314-44ed96d4e855" } 2021-06-24 22:41:47 | [Mutex] waiting for: [published:item:notifieditem-fa9e1897-3216-4f3a-9314-44ed96d4e855:admin@test-domain.com] 2021-06-24 22:41:47 | [Mutex] received everything. 2021-06-24 22:41:47 | [Mutex] isItemNotified: published:item:notifieditem-fa9e1897-3216-4f3a-9314-44ed96d4e855:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2021-06-24 22:41:48 |
2021-06-24 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:48 | ------------------------------------ 2021-06-24 22:41:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "item-id": "item-fa9e1897-3216-4f3a-9314-44ed96d4e855" } 2021-06-24 22:41:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fa9e1897-3216-4f3a-9314-44ed96d4e855" } 2021-06-24 22:41:48 | [Mutex] received everything. 2021-06-24 22:41:48 | [Mutex] isItemNotified: retracted:item:notifieditem-fa9e1897-3216-4f3a-9314-44ed96d4e855:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2021-06-24 22:41:47 |
2021-06-24 22:41:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:47 | ------------------------------------ 2021-06-24 22:41:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "item-id": "item-fa9e1897-3216-4f3a-9314-44ed96d4e855" } 2021-06-24 22:41:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "item-id": "item-fa9e1897-3216-4f3a-9314-44ed96d4e855", "item": [ "<item id=\"item-fa9e1897-3216-4f3a-9314-44ed96d4e855\"><test>item-fa9e1897-3216-4f3a-9314-44ed96d4e855</test></item>" ] } 2021-06-24 22:41:48 | [Mutex] notify: [retrieved:item:item-fa9e1897-3216-4f3a-9314-44ed96d4e855:payload-matches:true:localhost] 2021-06-24 22:41:48 | [Mutex] received everything. 2021-06-24 22:41:48 | [Mutex] isItemNotified: retrieved:item:item-fa9e1897-3216-4f3a-9314-44ed96d4e855:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-06-24 22:41:48 |
2021-06-24 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:48 | ------------------------------------ 2021-06-24 22:41:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-24 22:41:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "test", "node-86617619-702a-4165-978e-024d7a8068dc" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-06-24 22:41:48 |
2021-06-24 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:48 | ------------------------------------ 2021-06-24 22:41:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ebee876c-3dad-4ed3-b2ae-657b96f04bad)" } 2021-06-24 22:41:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-06-24 22:41:46 |
2021-06-24 22:41:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:46 | ------------------------------------ 2021-06-24 22:41:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:41:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-06-24 22:41:48 |
2021-06-24 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-24 22:41:48 | ------------------------------------ 2021-06-24 22:41:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ebee876c-3dad-4ed3-b2ae-657b96f04bad", "jids": [ "admin@test-domain.com" ] } 2021-06-24 22:41:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |