Test duration : 9.066s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2020-10-09 22:46:17 |
2020-10-09 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:17 | ------------------------------------ 2020-10-09 22:46:17 | [Mutex] waiting for: [configured:node:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:node-66202ef9-4ff6-44be-8973-3c93bd339020] 2020-10-09 22:46:17 | [Mutex] received everything. 2020-10-09 22:46:17 | [Mutex] isItemNotified: configured:node:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:node-66202ef9-4ff6-44be-8973-3c93bd339020 :: true 2020-10-09 22:46:18 | [Mutex] waiting for: [received:nodes:e03b9945-f24a-4559-8620-a0721f1b04e3:localhost] 2020-10-09 22:46:18 | [Mutex] received everything. 2020-10-09 22:46:18 | [Mutex] isItemNotified: received:node:e03b9945-f24a-4559-8620-a0721f1b04e3:localhost:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:Node ec3beeb3-53e9-4595-a663-18a43a1371ec :: true 2020-10-09 22:46:18 | [Mutex] waiting for: [received:nodes:902192f7-c61b-4ca0-b281-86dfe70ce5f7:localhost] 2020-10-09 22:46:18 | [Mutex] received everything. 2020-10-09 22:46:18 | [Mutex] isItemNotified: received:node:902192f7-c61b-4ca0-b281-86dfe70ce5f7:localhost:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:Node ec3beeb3-53e9-4595-a663-18a43a1371ec :: false |
createNodes | 1.631s |
2020-10-09 22:46:14 |
2020-10-09 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:14 | ------------------------------------ 2020-10-09 22:46:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "pubsub#title": "Node ec3beeb3-53e9-4595-a663-18a43a1371ec" } 2020-10-09 22:46:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:46:16 | [Mutex] waiting for: [received:nodes:a774c2e7-08eb-4d7d-a67d-178c0b610a3e:localhost] 2020-10-09 22:46:16 | [Mutex] received everything. 2020-10-09 22:46:16 | [Mutex] isItemNotified: received:node:a774c2e7-08eb-4d7d-a67d-178c0b610a3e:localhost:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:Node ec3beeb3-53e9-4595-a663-18a43a1371ec :: true |
createSubnodes | 1.034s |
2020-10-09 22:46:16 |
2020-10-09 22:46:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:16 | ------------------------------------ 2020-10-09 22:46:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-66202ef9-4ff6-44be-8973-3c93bd339020", "pubsub#title": "Node 66202ef9-4ff6-44be-8973-3c93bd339020" } 2020-10-09 22:46:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:46:17 | [Mutex] waiting for: [received:nodes:2d985dc9-a2cb-4874-82d0-3b3ef852ba6e:localhost] 2020-10-09 22:46:17 | [Mutex] received everything. 2020-10-09 22:46:17 | [Mutex] isItemNotified: received:node:2d985dc9-a2cb-4874-82d0-3b3ef852ba6e:localhost:node-66202ef9-4ff6-44be-8973-3c93bd339020:Node 66202ef9-4ff6-44be-8973-3c93bd339020 :: true |
deleteNodes | 1.023s |
2020-10-09 22:46:21 |
2020-10-09 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:21 | ------------------------------------ 2020-10-09 22:46:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-66202ef9-4ff6-44be-8973-3c93bd339020" } 2020-10-09 22:46:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:46:22 | [Mutex] waiting for: [received:nodes:00bcab52-738f-4913-94e6-44f792c408e0:localhost] 2020-10-09 22:46:22 | [Mutex] waiting for: [received:nodes:00bcab52-738f-4913-94e6-44f792c408e0:localhost] 2020-10-09 22:46:22 | [Mutex] received everything. 2020-10-09 22:46:22 | [Mutex] isItemNotified: received:node:00bcab52-738f-4913-94e6-44f792c408e0:localhost:node-66202ef9-4ff6-44be-8973-3c93bd339020:Node 66202ef9-4ff6-44be-8973-3c93bd339020 :: false |
deleteSubnodes | 1.031s |
2020-10-09 22:46:20 |
2020-10-09 22:46:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:20 | ------------------------------------ 2020-10-09 22:46:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec" } 2020-10-09 22:46:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-09 22:46:21 | [Mutex] waiting for: [received:nodes:a46cf4b6-a1ac-4189-b331-5e4ff78f6fbd:localhost] 2020-10-09 22:46:21 | [Mutex] received everything. 2020-10-09 22:46:21 | [Mutex] isItemNotified: received:node:a46cf4b6-a1ac-4189-b331-5e4ff78f6fbd:localhost:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:Node ec3beeb3-53e9-4595-a663-18a43a1371ec :: false 2020-10-09 22:46:21 | [Mutex] waiting for: [received:nodes:3d4a251c-6774-41db-9522-e7cc9b105570:localhost] 2020-10-09 22:46:21 | [Mutex] received everything. 2020-10-09 22:46:21 | [Mutex] isItemNotified: received:node:3d4a251c-6774-41db-9522-e7cc9b105570:localhost:node-ec3beeb3-53e9-4595-a663-18a43a1371ec:Node ec3beeb3-53e9-4595-a663-18a43a1371ec :: false |
publishItemsToNodes | 0.053s |
2020-10-09 22:46:19 |
2020-10-09 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:19 | ------------------------------------ 2020-10-09 22:46:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "entry": "<test>item-5f77d6de-a9a3-4759-b6c5-19b6f65accde</test>", "item-id": "item-5f77d6de-a9a3-4759-b6c5-19b6f65accde" } 2020-10-09 22:46:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f77d6de-a9a3-4759-b6c5-19b6f65accde" } 2020-10-09 22:46:19 | [Mutex] waiting for: [published:item:notifieditem-5f77d6de-a9a3-4759-b6c5-19b6f65accde:admin@test-domain.com] 2020-10-09 22:46:19 | [Mutex] received everything. 2020-10-09 22:46:19 | [Mutex] isItemNotified: published:item:notifieditem-5f77d6de-a9a3-4759-b6c5-19b6f65accde:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2020-10-09 22:46:19 |
2020-10-09 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:19 | ------------------------------------ 2020-10-09 22:46:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "item-id": "item-5f77d6de-a9a3-4759-b6c5-19b6f65accde" } 2020-10-09 22:46:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f77d6de-a9a3-4759-b6c5-19b6f65accde" } 2020-10-09 22:46:19 | [Mutex] waiting for: [retracted:item:notifieditem-5f77d6de-a9a3-4759-b6c5-19b6f65accde:admin@test-domain.com] 2020-10-09 22:46:19 | [Mutex] received everything. 2020-10-09 22:46:19 | [Mutex] isItemNotified: retracted:item:notifieditem-5f77d6de-a9a3-4759-b6c5-19b6f65accde:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.091s |
2020-10-09 22:46:19 |
2020-10-09 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:19 | ------------------------------------ 2020-10-09 22:46:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "item-id": "item-5f77d6de-a9a3-4759-b6c5-19b6f65accde" } 2020-10-09 22:46:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "item-id": "item-5f77d6de-a9a3-4759-b6c5-19b6f65accde", "item": [ "<item id=\"item-5f77d6de-a9a3-4759-b6c5-19b6f65accde\"><test>item-5f77d6de-a9a3-4759-b6c5-19b6f65accde</test></item>" ] } 2020-10-09 22:46:19 | [Mutex] notify: [retrieved:item:item-5f77d6de-a9a3-4759-b6c5-19b6f65accde:payload-matches:true:localhost] 2020-10-09 22:46:19 | [Mutex] received everything. 2020-10-09 22:46:19 | [Mutex] isItemNotified: retrieved:item:item-5f77d6de-a9a3-4759-b6c5-19b6f65accde:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2020-10-09 22:46:19 |
2020-10-09 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:19 | ------------------------------------ 2020-10-09 22:46:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-09 22:46:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "test", "node-66202ef9-4ff6-44be-8973-3c93bd339020" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-10-09 22:46:19 |
2020-10-09 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:19 | ------------------------------------ 2020-10-09 22:46:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ec3beeb3-53e9-4595-a663-18a43a1371ec)" } 2020-10-09 22:46:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-10-09 22:46:18 |
2020-10-09 22:46:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:18 | ------------------------------------ 2020-10-09 22:46:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "jids": [ "admin@test-domain.com" ] } 2020-10-09 22:46:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2020-10-09 22:46:19 |
2020-10-09 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-09 22:46:19 | ------------------------------------ 2020-10-09 22:46:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ec3beeb3-53e9-4595-a663-18a43a1371ec", "jids": [ "admin@test-domain.com" ] } 2020-10-09 22:46:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |