Test duration : 8.707s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.082s |
2022-05-26 22:50:29 |
2022-05-26 22:50:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:29 | ------------------------------------ 2022-05-26 22:50:29 | [Mutex] waiting for: [configured:node:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1] 2022-05-26 22:50:29 | [Mutex] received everything. 2022-05-26 22:50:29 | [Mutex] isItemNotified: configured:node:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1 :: true 2022-05-26 22:50:30 | [Mutex] waiting for: [received:nodes:b597ab74-7687-4b55-aa47-dfe9b3a86db1:localhost] 2022-05-26 22:50:30 | [Mutex] received everything. 2022-05-26 22:50:30 | [Mutex] isItemNotified: received:node:b597ab74-7687-4b55-aa47-dfe9b3a86db1:localhost:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:Node 38f94544-37e6-45ee-87f3-bdc82f6c1b51 :: true 2022-05-26 22:50:30 | [Mutex] waiting for: [received:nodes:01e409b0-4ac2-4214-aeb5-9d5e42a0609e:localhost] 2022-05-26 22:50:30 | [Mutex] waiting for: [received:nodes:01e409b0-4ac2-4214-aeb5-9d5e42a0609e:localhost] 2022-05-26 22:50:30 | [Mutex] received everything. 2022-05-26 22:50:30 | [Mutex] isItemNotified: received:node:01e409b0-4ac2-4214-aeb5-9d5e42a0609e:localhost:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:Node 38f94544-37e6-45ee-87f3-bdc82f6c1b51 :: false |
createNodes | 1.705s |
2022-05-26 22:50:26 |
2022-05-26 22:50:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:26 | ------------------------------------ 2022-05-26 22:50:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "pubsub#title": "Node 38f94544-37e6-45ee-87f3-bdc82f6c1b51" } 2022-05-26 22:50:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-26 22:50:28 | [Mutex] waiting for: [received:nodes:d65b8821-650a-4a1e-a0b6-398b4886e291:localhost] 2022-05-26 22:50:28 | [Mutex] received everything. 2022-05-26 22:50:28 | [Mutex] isItemNotified: received:node:d65b8821-650a-4a1e-a0b6-398b4886e291:localhost:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:Node 38f94544-37e6-45ee-87f3-bdc82f6c1b51 :: true |
createSubnodes | 1.022s |
2022-05-26 22:50:28 |
2022-05-26 22:50:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:28 | ------------------------------------ 2022-05-26 22:50:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1", "pubsub#title": "Node 2bda3b9d-ab75-4ea7-be83-7804c3671cf1" } 2022-05-26 22:50:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-26 22:50:29 | [Mutex] waiting for: [received:nodes:a47a52f2-0fc2-4b5a-82e2-ab4128c05c6f:localhost] 2022-05-26 22:50:29 | [Mutex] received everything. 2022-05-26 22:50:29 | [Mutex] isItemNotified: received:node:a47a52f2-0fc2-4b5a-82e2-ab4128c05c6f:localhost:node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1:Node 2bda3b9d-ab75-4ea7-be83-7804c3671cf1 :: true |
deleteNodes | 1.028s |
2022-05-26 22:50:34 |
2022-05-26 22:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:34 | ------------------------------------ 2022-05-26 22:50:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1" } 2022-05-26 22:50:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-26 22:50:35 | [Mutex] waiting for: [received:nodes:1434fddf-2635-444e-b90c-baf7791c02f7:localhost] 2022-05-26 22:50:35 | [Mutex] received everything. 2022-05-26 22:50:35 | [Mutex] isItemNotified: received:node:1434fddf-2635-444e-b90c-baf7791c02f7:localhost:node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1:Node 2bda3b9d-ab75-4ea7-be83-7804c3671cf1 :: false |
deleteSubnodes | 1.071s |
2022-05-26 22:50:32 |
2022-05-26 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:32 | ------------------------------------ 2022-05-26 22:50:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51" } 2022-05-26 22:50:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-26 22:50:33 | [Mutex] waiting for: [received:nodes:c57c56f2-0b95-420a-99cb-a719126501ed:localhost] 2022-05-26 22:50:34 | [Mutex] received everything. 2022-05-26 22:50:34 | [Mutex] isItemNotified: received:node:c57c56f2-0b95-420a-99cb-a719126501ed:localhost:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:Node 38f94544-37e6-45ee-87f3-bdc82f6c1b51 :: false 2022-05-26 22:50:34 | [Mutex] waiting for: [received:nodes:c0924cbf-f41b-4143-9234-9c703a009ba3:localhost] 2022-05-26 22:50:34 | [Mutex] received everything. 2022-05-26 22:50:34 | [Mutex] isItemNotified: received:node:c0924cbf-f41b-4143-9234-9c703a009ba3:localhost:node-38f94544-37e6-45ee-87f3-bdc82f6c1b51:Node 38f94544-37e6-45ee-87f3-bdc82f6c1b51 :: false |
publishItemsToNodes | 0.061s |
2022-05-26 22:50:31 |
2022-05-26 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:31 | ------------------------------------ 2022-05-26 22:50:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "entry": "<test>item-540bdeca-a81a-485b-9ab3-35447784f76f</test>", "item-id": "item-540bdeca-a81a-485b-9ab3-35447784f76f" } 2022-05-26 22:50:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-540bdeca-a81a-485b-9ab3-35447784f76f" } 2022-05-26 22:50:31 | [Mutex] waiting for: [published:item:notifieditem-540bdeca-a81a-485b-9ab3-35447784f76f:admin@test-domain.com] 2022-05-26 22:50:31 | [Mutex] received everything. 2022-05-26 22:50:31 | [Mutex] isItemNotified: published:item:notifieditem-540bdeca-a81a-485b-9ab3-35447784f76f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-26 22:50:31 |
2022-05-26 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:31 | ------------------------------------ 2022-05-26 22:50:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "item-id": "item-540bdeca-a81a-485b-9ab3-35447784f76f" } 2022-05-26 22:50:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-540bdeca-a81a-485b-9ab3-35447784f76f" } 2022-05-26 22:50:31 | [Mutex] received everything. 2022-05-26 22:50:31 | [Mutex] isItemNotified: retracted:item:notifieditem-540bdeca-a81a-485b-9ab3-35447784f76f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2022-05-26 22:50:31 |
2022-05-26 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:31 | ------------------------------------ 2022-05-26 22:50:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "item-id": "item-540bdeca-a81a-485b-9ab3-35447784f76f" } 2022-05-26 22:50:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "item-id": "item-540bdeca-a81a-485b-9ab3-35447784f76f", "item": [ "<item id=\"item-540bdeca-a81a-485b-9ab3-35447784f76f\"><test>item-540bdeca-a81a-485b-9ab3-35447784f76f</test></item>" ] } 2022-05-26 22:50:31 | [Mutex] notify: [retrieved:item:item-540bdeca-a81a-485b-9ab3-35447784f76f:payload-matches:true:localhost] 2022-05-26 22:50:31 | [Mutex] received everything. 2022-05-26 22:50:31 | [Mutex] isItemNotified: retrieved:item:item-540bdeca-a81a-485b-9ab3-35447784f76f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-05-26 22:50:31 |
2022-05-26 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:31 | ------------------------------------ 2022-05-26 22:50:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-26 22:50:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "node-2bda3b9d-ab75-4ea7-be83-7804c3671cf1" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-26 22:50:31 |
2022-05-26 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:31 | ------------------------------------ 2022-05-26 22:50:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-38f94544-37e6-45ee-87f3-bdc82f6c1b51)" } 2022-05-26 22:50:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-05-26 22:50:30 |
2022-05-26 22:50:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:30 | ------------------------------------ 2022-05-26 22:50:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "jids": [ "admin@test-domain.com" ] } 2022-05-26 22:50:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-05-26 22:50:31 |
2022-05-26 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-26 22:50:31 | ------------------------------------ 2022-05-26 22:50:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-38f94544-37e6-45ee-87f3-bdc82f6c1b51", "jids": [ "admin@test-domain.com" ] } 2022-05-26 22:50:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |