Test duration : 8.619s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.080s |
2022-11-14 21:32:45 |
2022-11-14 21:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:45 | ------------------------------------ 2022-11-14 21:32:45 | [Mutex] waiting for: [configured:node:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:node-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9] 2022-11-14 21:32:46 | [Mutex] received everything. 2022-11-14 21:32:46 | [Mutex] isItemNotified: configured:node:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:node-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9 :: true 2022-11-14 21:32:47 | [Mutex] waiting for: [received:nodes:38b7a217-6021-4ad2-adb5-2a4c6491958f:localhost] 2022-11-14 21:32:47 | [Mutex] received everything. 2022-11-14 21:32:47 | [Mutex] isItemNotified: received:node:38b7a217-6021-4ad2-adb5-2a4c6491958f:localhost:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:Node ca0c1c1a-01bb-468d-989d-d7ad21525e74 :: true 2022-11-14 21:32:47 | [Mutex] waiting for: [received:nodes:9be00397-a65d-42da-aba7-98c850f8e8b9:localhost] 2022-11-14 21:32:47 | [Mutex] received everything. 2022-11-14 21:32:47 | [Mutex] isItemNotified: received:node:9be00397-a65d-42da-aba7-98c850f8e8b9:localhost:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:Node ca0c1c1a-01bb-468d-989d-d7ad21525e74 :: false |
createNodes | 1.513s |
2022-11-14 21:32:43 |
2022-11-14 21:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:43 | ------------------------------------ 2022-11-14 21:32: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-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "pubsub#title": "Node ca0c1c1a-01bb-468d-989d-d7ad21525e74" } 2022-11-14 21:32:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 21:32:44 | [Mutex] waiting for: [received:nodes:66c67dc8-144d-456e-91aa-34306373bb4f:localhost] 2022-11-14 21:32:44 | [Mutex] waiting for: [received:nodes:66c67dc8-144d-456e-91aa-34306373bb4f:localhost] 2022-11-14 21:32:44 | [Mutex] received everything. 2022-11-14 21:32:44 | [Mutex] isItemNotified: received:node:66c67dc8-144d-456e-91aa-34306373bb4f:localhost:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:Node ca0c1c1a-01bb-468d-989d-d7ad21525e74 :: true |
createSubnodes | 1.028s |
2022-11-14 21:32:44 |
2022-11-14 21:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:44 | ------------------------------------ 2022-11-14 21:32: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-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9", "pubsub#title": "Node 5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9" } 2022-11-14 21:32:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 21:32:45 | [Mutex] waiting for: [received:nodes:2215bf4c-b35b-4037-be12-759491380995:localhost] 2022-11-14 21:32:45 | [Mutex] waiting for: [received:nodes:2215bf4c-b35b-4037-be12-759491380995:localhost] 2022-11-14 21:32:45 | [Mutex] received everything. 2022-11-14 21:32:45 | [Mutex] isItemNotified: received:node:2215bf4c-b35b-4037-be12-759491380995:localhost:node-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9:Node 5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9 :: true |
deleteNodes | 1.023s |
2022-11-14 21:32:50 |
2022-11-14 21:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:50 | ------------------------------------ 2022-11-14 21:32:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9" } 2022-11-14 21:32:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 21:32:51 | [Mutex] waiting for: [received:nodes:a98b97f3-3e28-4c44-8ecc-80582e022b0e:localhost] 2022-11-14 21:32:51 | [Mutex] waiting for: [received:nodes:a98b97f3-3e28-4c44-8ecc-80582e022b0e:localhost] 2022-11-14 21:32:51 | [Mutex] received everything. 2022-11-14 21:32:51 | [Mutex] isItemNotified: received:node:a98b97f3-3e28-4c44-8ecc-80582e022b0e:localhost:node-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9:Node 5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9 :: false |
deleteSubnodes | 1.029s |
2022-11-14 21:32:49 |
2022-11-14 21:32:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:49 | ------------------------------------ 2022-11-14 21:32:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74" } 2022-11-14 21:32:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-14 21:32:50 | [Mutex] waiting for: [received:nodes:62eeef32-5d25-423e-b8fa-f7049f6d19e2:localhost] 2022-11-14 21:32:50 | [Mutex] waiting for: [received:nodes:62eeef32-5d25-423e-b8fa-f7049f6d19e2:localhost] 2022-11-14 21:32:50 | [Mutex] waiting for: [received:nodes:62eeef32-5d25-423e-b8fa-f7049f6d19e2:localhost] 2022-11-14 21:32:50 | [Mutex] waiting for: [received:nodes:62eeef32-5d25-423e-b8fa-f7049f6d19e2:localhost] 2022-11-14 21:32:50 | [Mutex] received everything. 2022-11-14 21:32:50 | [Mutex] isItemNotified: received:node:62eeef32-5d25-423e-b8fa-f7049f6d19e2:localhost:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:Node ca0c1c1a-01bb-468d-989d-d7ad21525e74 :: false 2022-11-14 21:32:50 | [Mutex] waiting for: [received:nodes:17d184c9-fbb6-4aac-bfeb-205ea5d21c9a:localhost] 2022-11-14 21:32:50 | [Mutex] received everything. 2022-11-14 21:32:50 | [Mutex] isItemNotified: received:node:17d184c9-fbb6-4aac-bfeb-205ea5d21c9a:localhost:node-ca0c1c1a-01bb-468d-989d-d7ad21525e74:Node ca0c1c1a-01bb-468d-989d-d7ad21525e74 :: false |
publishItemsToNodes | 0.039s |
2022-11-14 21:32:48 |
2022-11-14 21:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:48 | ------------------------------------ 2022-11-14 21:32:48 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "entry": "<test>item-aee8e384-1390-4efb-bc51-91e62f531be3</test>", "item-id": "item-aee8e384-1390-4efb-bc51-91e62f531be3" } 2022-11-14 21:32:48 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-aee8e384-1390-4efb-bc51-91e62f531be3" } 2022-11-14 21:32:48 | [Mutex] waiting for: [published:item:notifieditem-aee8e384-1390-4efb-bc51-91e62f531be3:admin@test-domain.com] 2022-11-14 21:32:48 | [Mutex] received everything. 2022-11-14 21:32:48 | [Mutex] isItemNotified: published:item:notifieditem-aee8e384-1390-4efb-bc51-91e62f531be3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-11-14 21:32:48 |
2022-11-14 21:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:48 | ------------------------------------ 2022-11-14 21:32:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "item-id": "item-aee8e384-1390-4efb-bc51-91e62f531be3" } 2022-11-14 21:32:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-aee8e384-1390-4efb-bc51-91e62f531be3" } 2022-11-14 21:32:48 | [Mutex] received everything. 2022-11-14 21:32:48 | [Mutex] isItemNotified: retracted:item:notifieditem-aee8e384-1390-4efb-bc51-91e62f531be3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.135s |
2022-11-14 21:32:48 |
2022-11-14 21:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:48 | ------------------------------------ 2022-11-14 21:32:48 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "item-id": "item-aee8e384-1390-4efb-bc51-91e62f531be3" } 2022-11-14 21:32:48 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "item-id": "item-aee8e384-1390-4efb-bc51-91e62f531be3", "item": [ "<item id=\"item-aee8e384-1390-4efb-bc51-91e62f531be3\"><test>item-aee8e384-1390-4efb-bc51-91e62f531be3</test></item>" ] } 2022-11-14 21:32:48 | [Mutex] notify: [retrieved:item:item-aee8e384-1390-4efb-bc51-91e62f531be3:payload-matches:true:localhost] 2022-11-14 21:32:48 | [Mutex] received everything. 2022-11-14 21:32:48 | [Mutex] isItemNotified: retrieved:item:item-aee8e384-1390-4efb-bc51-91e62f531be3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-11-14 21:32:48 |
2022-11-14 21:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:48 | ------------------------------------ 2022-11-14 21:32:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-14 21:32:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5c4f2b93-ecc8-4cec-92c0-a9ab6cd7c4a9", "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-11-14 21:32:48 |
2022-11-14 21:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:48 | ------------------------------------ 2022-11-14 21:32:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ca0c1c1a-01bb-468d-989d-d7ad21525e74)" } 2022-11-14 21:32:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-11-14 21:32:47 |
2022-11-14 21:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:47 | ------------------------------------ 2022-11-14 21:32:47 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "jids": [ "admin@test-domain.com" ] } 2022-11-14 21:32:47 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-11-14 21:32:48 |
2022-11-14 21:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-14 21:32:48 | ------------------------------------ 2022-11-14 21:32:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ca0c1c1a-01bb-468d-989d-d7ad21525e74", "jids": [ "admin@test-domain.com" ] } 2022-11-14 21:32:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |