Test duration : 9.074s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2021-03-14 22:33:22 |
2021-03-14 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:22 | ------------------------------------ 2021-03-14 22:33:22 | [Mutex] waiting for: [configured:node:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9] 2021-03-14 22:33:22 | [Mutex] received everything. 2021-03-14 22:33:22 | [Mutex] isItemNotified: configured:node:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9 :: true 2021-03-14 22:33:23 | [Mutex] waiting for: [received:nodes:da334518-0500-4933-a919-48aef95eeb6c:localhost] 2021-03-14 22:33:23 | [Mutex] received everything. 2021-03-14 22:33:23 | [Mutex] isItemNotified: received:node:da334518-0500-4933-a919-48aef95eeb6c:localhost:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:Node 752eb1d6-dd58-40a0-a68b-6a9453fb3039 :: true 2021-03-14 22:33:23 | [Mutex] waiting for: [received:nodes:204aad57-29fe-46dc-be45-eda4d02b5a91:localhost] 2021-03-14 22:33:23 | [Mutex] received everything. 2021-03-14 22:33:23 | [Mutex] isItemNotified: received:node:204aad57-29fe-46dc-be45-eda4d02b5a91:localhost:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:Node 752eb1d6-dd58-40a0-a68b-6a9453fb3039 :: false |
createNodes | 1.771s |
2021-03-14 22:33:19 |
2021-03-14 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:19 | ------------------------------------ 2021-03-14 22:33:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "pubsub#title": "Node 752eb1d6-dd58-40a0-a68b-6a9453fb3039" } 2021-03-14 22:33:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:33:21 | [Mutex] waiting for: [received:nodes:51732671-b78b-49db-92ad-5b5c0b6741a2:localhost] 2021-03-14 22:33:21 | [Mutex] received everything. 2021-03-14 22:33:21 | [Mutex] isItemNotified: received:node:51732671-b78b-49db-92ad-5b5c0b6741a2:localhost:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:Node 752eb1d6-dd58-40a0-a68b-6a9453fb3039 :: true |
createSubnodes | 1.029s |
2021-03-14 22:33:21 |
2021-03-14 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:21 | ------------------------------------ 2021-03-14 22:33:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9", "pubsub#title": "Node 8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9" } 2021-03-14 22:33:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:33:22 | [Mutex] waiting for: [received:nodes:7a5f28d4-df5e-44d3-94b6-14d828d32f0b:localhost] 2021-03-14 22:33:22 | [Mutex] received everything. 2021-03-14 22:33:22 | [Mutex] isItemNotified: received:node:7a5f28d4-df5e-44d3-94b6-14d828d32f0b:localhost:node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9:Node 8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9 :: true |
deleteNodes | 1.024s |
2021-03-14 22:33:27 |
2021-03-14 22:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:27 | ------------------------------------ 2021-03-14 22:33:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9" } 2021-03-14 22:33:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:33:28 | [Mutex] waiting for: [received:nodes:ac202f6b-b1a6-4ab3-bb8b-5c86c1930fb8:localhost] 2021-03-14 22:33:28 | [Mutex] waiting for: [received:nodes:ac202f6b-b1a6-4ab3-bb8b-5c86c1930fb8:localhost] 2021-03-14 22:33:28 | [Mutex] received everything. 2021-03-14 22:33:28 | [Mutex] isItemNotified: received:node:ac202f6b-b1a6-4ab3-bb8b-5c86c1930fb8:localhost:node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9:Node 8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9 :: false |
deleteSubnodes | 1.030s |
2021-03-14 22:33:26 |
2021-03-14 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:26 | ------------------------------------ 2021-03-14 22:33:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039" } 2021-03-14 22:33:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-14 22:33:27 | [Mutex] waiting for: [received:nodes:fb8eaa2c-e9d7-40db-b392-0df059da379d:localhost] 2021-03-14 22:33:27 | [Mutex] received everything. 2021-03-14 22:33:27 | [Mutex] isItemNotified: received:node:fb8eaa2c-e9d7-40db-b392-0df059da379d:localhost:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:Node 752eb1d6-dd58-40a0-a68b-6a9453fb3039 :: false 2021-03-14 22:33:27 | [Mutex] waiting for: [received:nodes:ef277894-d5fe-4b4d-a139-849d6de78589:localhost] 2021-03-14 22:33:27 | [Mutex] received everything. 2021-03-14 22:33:27 | [Mutex] isItemNotified: received:node:ef277894-d5fe-4b4d-a139-849d6de78589:localhost:node-752eb1d6-dd58-40a0-a68b-6a9453fb3039:Node 752eb1d6-dd58-40a0-a68b-6a9453fb3039 :: false |
publishItemsToNodes | 0.044s |
2021-03-14 22:33:24 |
2021-03-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:24 | ------------------------------------ 2021-03-14 22:33:24 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "entry": "<test>item-52e01c54-8063-495d-b089-1309389a6f88</test>", "item-id": "item-52e01c54-8063-495d-b089-1309389a6f88" } 2021-03-14 22:33:24 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-52e01c54-8063-495d-b089-1309389a6f88" } 2021-03-14 22:33:24 | [Mutex] received everything. 2021-03-14 22:33:24 | [Mutex] isItemNotified: published:item:notifieditem-52e01c54-8063-495d-b089-1309389a6f88:admin@test-domain.com :: true |
retractItemsFromNodes | 0.100s |
2021-03-14 22:33:24 |
2021-03-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:24 | ------------------------------------ 2021-03-14 22:33:24 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "item-id": "item-52e01c54-8063-495d-b089-1309389a6f88" } 2021-03-14 22:33:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-52e01c54-8063-495d-b089-1309389a6f88" } 2021-03-14 22:33:24 | [Mutex] waiting for: [retracted:item:notifieditem-52e01c54-8063-495d-b089-1309389a6f88:admin@test-domain.com] 2021-03-14 22:33:24 | [Mutex] received everything. 2021-03-14 22:33:24 | [Mutex] isItemNotified: retracted:item:notifieditem-52e01c54-8063-495d-b089-1309389a6f88:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2021-03-14 22:33:24 |
2021-03-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:24 | ------------------------------------ 2021-03-14 22:33:24 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "item-id": "item-52e01c54-8063-495d-b089-1309389a6f88" } 2021-03-14 22:33:24 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "item-id": "item-52e01c54-8063-495d-b089-1309389a6f88", "item": [ "<item id=\"item-52e01c54-8063-495d-b089-1309389a6f88\"><test>item-52e01c54-8063-495d-b089-1309389a6f88</test></item>" ] } 2021-03-14 22:33:24 | [Mutex] notify: [retrieved:item:item-52e01c54-8063-495d-b089-1309389a6f88:payload-matches:true:localhost] 2021-03-14 22:33:24 | [Mutex] received everything. 2021-03-14 22:33:24 | [Mutex] isItemNotified: retrieved:item:item-52e01c54-8063-495d-b089-1309389a6f88:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-03-14 22:33:24 |
2021-03-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:24 | ------------------------------------ 2021-03-14 22:33:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-14 22:33:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8d5646a4-ec2b-40e8-a7e9-7ebda9bd66a9", "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-03-14 22:33:24 |
2021-03-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:24 | ------------------------------------ 2021-03-14 22:33:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-752eb1d6-dd58-40a0-a68b-6a9453fb3039)" } 2021-03-14 22:33:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-03-14 22:33:23 |
2021-03-14 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:23 | ------------------------------------ 2021-03-14 22:33:23 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "jids": [ "admin@test-domain.com" ] } 2021-03-14 22:33:23 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.031s |
2021-03-14 22:33:24 |
2021-03-14 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-14 22:33:24 | ------------------------------------ 2021-03-14 22:33:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-752eb1d6-dd58-40a0-a68b-6a9453fb3039", "jids": [ "admin@test-domain.com" ] } 2021-03-14 22:33:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |