Test duration : 9.107s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.123s |
2021-03-31 22:59:19 |
2021-03-31 22:59:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:19 | ------------------------------------ 2021-03-31 22:59:19 | [Mutex] waiting for: [configured:node:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:node-f5e87170-172b-48d8-ac1e-29ea3ba343c0] 2021-03-31 22:59:19 | [Mutex] received everything. 2021-03-31 22:59:19 | [Mutex] isItemNotified: configured:node:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:node-f5e87170-172b-48d8-ac1e-29ea3ba343c0 :: true 2021-03-31 22:59:20 | [Mutex] waiting for: [received:nodes:91ec2424-6012-4bf0-bd1d-40637005c850:localhost] 2021-03-31 22:59:20 | [Mutex] received everything. 2021-03-31 22:59:20 | [Mutex] isItemNotified: received:node:91ec2424-6012-4bf0-bd1d-40637005c850:localhost:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:Node bcdc385b-8953-4c50-82c2-1f650b14d4e0 :: true 2021-03-31 22:59:20 | [Mutex] waiting for: [received:nodes:191ca358-ea39-4a0a-b0dc-d508cedf6a07:localhost] 2021-03-31 22:59:20 | [Mutex] received everything. 2021-03-31 22:59:20 | [Mutex] isItemNotified: received:node:191ca358-ea39-4a0a-b0dc-d508cedf6a07:localhost:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:Node bcdc385b-8953-4c50-82c2-1f650b14d4e0 :: false |
createNodes | 1.698s |
2021-03-31 22:59:16 |
2021-03-31 22:59:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:16 | ------------------------------------ 2021-03-31 22:59:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "pubsub#title": "Node bcdc385b-8953-4c50-82c2-1f650b14d4e0" } 2021-03-31 22:59:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:59:18 | [Mutex] waiting for: [received:nodes:908211a4-b1c3-4b2c-9bea-d4bbfa8edb23:localhost] 2021-03-31 22:59:18 | [Mutex] waiting for: [received:nodes:908211a4-b1c3-4b2c-9bea-d4bbfa8edb23:localhost] 2021-03-31 22:59:18 | [Mutex] received everything. 2021-03-31 22:59:18 | [Mutex] isItemNotified: received:node:908211a4-b1c3-4b2c-9bea-d4bbfa8edb23:localhost:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:Node bcdc385b-8953-4c50-82c2-1f650b14d4e0 :: true |
createSubnodes | 1.029s |
2021-03-31 22:59:18 |
2021-03-31 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:18 | ------------------------------------ 2021-03-31 22:59:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f5e87170-172b-48d8-ac1e-29ea3ba343c0", "pubsub#title": "Node f5e87170-172b-48d8-ac1e-29ea3ba343c0" } 2021-03-31 22:59:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:59:19 | [Mutex] waiting for: [received:nodes:9af17834-4086-4a5f-ac5d-47c528a411e8:localhost] 2021-03-31 22:59:19 | [Mutex] received everything. 2021-03-31 22:59:19 | [Mutex] isItemNotified: received:node:9af17834-4086-4a5f-ac5d-47c528a411e8:localhost:node-f5e87170-172b-48d8-ac1e-29ea3ba343c0:Node f5e87170-172b-48d8-ac1e-29ea3ba343c0 :: true |
deleteNodes | 1.020s |
2021-03-31 22:59:23 |
2021-03-31 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:23 | ------------------------------------ 2021-03-31 22:59:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f5e87170-172b-48d8-ac1e-29ea3ba343c0" } 2021-03-31 22:59:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:59:24 | [Mutex] waiting for: [received:nodes:608b5c24-8f6c-4526-90c2-a53d0bf70b4d:localhost] 2021-03-31 22:59:24 | [Mutex] received everything. 2021-03-31 22:59:24 | [Mutex] isItemNotified: received:node:608b5c24-8f6c-4526-90c2-a53d0bf70b4d:localhost:node-f5e87170-172b-48d8-ac1e-29ea3ba343c0:Node f5e87170-172b-48d8-ac1e-29ea3ba343c0 :: false |
deleteSubnodes | 1.029s |
2021-03-31 22:59:22 |
2021-03-31 22:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:22 | ------------------------------------ 2021-03-31 22:59:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0" } 2021-03-31 22:59:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:59:23 | [Mutex] waiting for: [received:nodes:1dac5030-87d7-43c8-88cf-2d5977bc2376:localhost] 2021-03-31 22:59:23 | [Mutex] received everything. 2021-03-31 22:59:23 | [Mutex] isItemNotified: received:node:1dac5030-87d7-43c8-88cf-2d5977bc2376:localhost:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:Node bcdc385b-8953-4c50-82c2-1f650b14d4e0 :: false 2021-03-31 22:59:23 | [Mutex] waiting for: [received:nodes:2b60631e-b8a5-481e-93cb-f7ac5297a3c8:localhost] 2021-03-31 22:59:23 | [Mutex] received everything. 2021-03-31 22:59:23 | [Mutex] isItemNotified: received:node:2b60631e-b8a5-481e-93cb-f7ac5297a3c8:localhost:node-bcdc385b-8953-4c50-82c2-1f650b14d4e0:Node bcdc385b-8953-4c50-82c2-1f650b14d4e0 :: false |
publishItemsToNodes | 0.051s |
2021-03-31 22:59:21 |
2021-03-31 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:21 | ------------------------------------ 2021-03-31 22:59:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "entry": "<test>item-c7b570d6-7b7a-4330-8f3f-e613c946c710</test>", "item-id": "item-c7b570d6-7b7a-4330-8f3f-e613c946c710" } 2021-03-31 22:59:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c7b570d6-7b7a-4330-8f3f-e613c946c710" } 2021-03-31 22:59:21 | [Mutex] waiting for: [published:item:notifieditem-c7b570d6-7b7a-4330-8f3f-e613c946c710:admin@test-domain.com] 2021-03-31 22:59:21 | [Mutex] received everything. 2021-03-31 22:59:21 | [Mutex] isItemNotified: published:item:notifieditem-c7b570d6-7b7a-4330-8f3f-e613c946c710:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-03-31 22:59:21 |
2021-03-31 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:21 | ------------------------------------ 2021-03-31 22:59:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "item-id": "item-c7b570d6-7b7a-4330-8f3f-e613c946c710" } 2021-03-31 22:59:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c7b570d6-7b7a-4330-8f3f-e613c946c710" } 2021-03-31 22:59:21 | [Mutex] received everything. 2021-03-31 22:59:21 | [Mutex] isItemNotified: retracted:item:notifieditem-c7b570d6-7b7a-4330-8f3f-e613c946c710:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.126s |
2021-03-31 22:59:21 |
2021-03-31 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:21 | ------------------------------------ 2021-03-31 22:59:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "item-id": "item-c7b570d6-7b7a-4330-8f3f-e613c946c710" } 2021-03-31 22:59:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "item-id": "item-c7b570d6-7b7a-4330-8f3f-e613c946c710", "item": [ "<item id=\"item-c7b570d6-7b7a-4330-8f3f-e613c946c710\"><test>item-c7b570d6-7b7a-4330-8f3f-e613c946c710</test></item>" ] } 2021-03-31 22:59:21 | [Mutex] notify: [retrieved:item:item-c7b570d6-7b7a-4330-8f3f-e613c946c710:payload-matches:true:localhost] 2021-03-31 22:59:21 | [Mutex] received everything. 2021-03-31 22:59:21 | [Mutex] isItemNotified: retrieved:item:item-c7b570d6-7b7a-4330-8f3f-e613c946c710:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-03-31 22:59:21 |
2021-03-31 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:21 | ------------------------------------ 2021-03-31 22:59:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-31 22:59:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "node-f5e87170-172b-48d8-ac1e-29ea3ba343c0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-31 22:59:21 |
2021-03-31 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:21 | ------------------------------------ 2021-03-31 22:59:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bcdc385b-8953-4c50-82c2-1f650b14d4e0)" } 2021-03-31 22:59:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-03-31 22:59:20 |
2021-03-31 22:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:20 | ------------------------------------ 2021-03-31 22:59:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "jids": [ "admin@test-domain.com" ] } 2021-03-31 22:59:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2021-03-31 22:59:21 |
2021-03-31 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:59:21 | ------------------------------------ 2021-03-31 22:59:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bcdc385b-8953-4c50-82c2-1f650b14d4e0", "jids": [ "admin@test-domain.com" ] } 2021-03-31 22:59:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |