Test duration : 9.036s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2020-09-13 22:41:10 |
2020-09-13 22:41:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:10 | ------------------------------------ 2020-09-13 22:41:10 | [Mutex] waiting for: [configured:node:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22] 2020-09-13 22:41:10 | [Mutex] received everything. 2020-09-13 22:41:10 | [Mutex] isItemNotified: configured:node:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22 :: true 2020-09-13 22:41:11 | [Mutex] waiting for: [received:nodes:c208e90c-b48d-40fb-bac2-c6ac861155ca:localhost] 2020-09-13 22:41:11 | [Mutex] received everything. 2020-09-13 22:41:11 | [Mutex] isItemNotified: received:node:c208e90c-b48d-40fb-bac2-c6ac861155ca:localhost:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:Node 1a26406d-8335-43d0-8bbf-cf9401acbf66 :: true 2020-09-13 22:41:11 | [Mutex] waiting for: [received:nodes:887d841b-65f0-4656-801c-d037f20a179a:localhost] 2020-09-13 22:41:11 | [Mutex] waiting for: [received:nodes:887d841b-65f0-4656-801c-d037f20a179a:localhost] 2020-09-13 22:41:11 | [Mutex] received everything. 2020-09-13 22:41:11 | [Mutex] isItemNotified: received:node:887d841b-65f0-4656-801c-d037f20a179a:localhost:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:Node 1a26406d-8335-43d0-8bbf-cf9401acbf66 :: false |
createNodes | 1.666s |
2020-09-13 22:41:07 |
2020-09-13 22:41:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:07 | ------------------------------------ 2020-09-13 22:41:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "pubsub#title": "Node 1a26406d-8335-43d0-8bbf-cf9401acbf66" } 2020-09-13 22:41:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:41:09 | [Mutex] waiting for: [received:nodes:106f6399-9cd7-40bf-9426-63dc6692168d:localhost] 2020-09-13 22:41:09 | [Mutex] received everything. 2020-09-13 22:41:09 | [Mutex] isItemNotified: received:node:106f6399-9cd7-40bf-9426-63dc6692168d:localhost:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:Node 1a26406d-8335-43d0-8bbf-cf9401acbf66 :: true |
createSubnodes | 1.030s |
2020-09-13 22:41:09 |
2020-09-13 22:41:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:09 | ------------------------------------ 2020-09-13 22:41:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22", "pubsub#title": "Node 393ea83f-d9cc-4c4d-bfa8-544fc12d6e22" } 2020-09-13 22:41:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:41:10 | [Mutex] waiting for: [received:nodes:5fc5e404-695b-465c-8825-06ea5de38f05:localhost] 2020-09-13 22:41:10 | [Mutex] received everything. 2020-09-13 22:41:10 | [Mutex] isItemNotified: received:node:5fc5e404-695b-465c-8825-06ea5de38f05:localhost:node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22:Node 393ea83f-d9cc-4c4d-bfa8-544fc12d6e22 :: true |
deleteNodes | 1.021s |
2020-09-13 22:41:14 |
2020-09-13 22:41:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:14 | ------------------------------------ 2020-09-13 22:41:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22" } 2020-09-13 22:41:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:41:15 | [Mutex] waiting for: [received:nodes:0ac5d7e0-90a9-4a93-9d02-2f2e7999e799:localhost] 2020-09-13 22:41:15 | [Mutex] received everything. 2020-09-13 22:41:15 | [Mutex] isItemNotified: received:node:0ac5d7e0-90a9-4a93-9d02-2f2e7999e799:localhost:node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22:Node 393ea83f-d9cc-4c4d-bfa8-544fc12d6e22 :: false |
deleteSubnodes | 1.034s |
2020-09-13 22:41:13 |
2020-09-13 22:41:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:13 | ------------------------------------ 2020-09-13 22:41:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66" } 2020-09-13 22:41:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-13 22:41:14 | [Mutex] waiting for: [received:nodes:498b159a-49b5-4547-a69f-12a286e543b7:localhost] 2020-09-13 22:41:14 | [Mutex] received everything. 2020-09-13 22:41:14 | [Mutex] isItemNotified: received:node:498b159a-49b5-4547-a69f-12a286e543b7:localhost:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:Node 1a26406d-8335-43d0-8bbf-cf9401acbf66 :: false 2020-09-13 22:41:14 | [Mutex] waiting for: [received:nodes:d23738a9-00cd-4e7a-8910-6af32e4f811a:localhost] 2020-09-13 22:41:14 | [Mutex] received everything. 2020-09-13 22:41:14 | [Mutex] isItemNotified: received:node:d23738a9-00cd-4e7a-8910-6af32e4f811a:localhost:node-1a26406d-8335-43d0-8bbf-cf9401acbf66:Node 1a26406d-8335-43d0-8bbf-cf9401acbf66 :: false |
publishItemsToNodes | 0.139s |
2020-09-13 22:41:12 |
2020-09-13 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:12 | ------------------------------------ 2020-09-13 22:41:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "entry": "<test>item-24f4ae67-e943-48ec-b277-c3c319340bfd</test>", "item-id": "item-24f4ae67-e943-48ec-b277-c3c319340bfd" } 2020-09-13 22:41:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24f4ae67-e943-48ec-b277-c3c319340bfd" } 2020-09-13 22:41:12 | [Mutex] waiting for: [published:item:notifieditem-24f4ae67-e943-48ec-b277-c3c319340bfd:admin@test-domain.com] 2020-09-13 22:41:12 | [Mutex] received everything. 2020-09-13 22:41:12 | [Mutex] isItemNotified: published:item:notifieditem-24f4ae67-e943-48ec-b277-c3c319340bfd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2020-09-13 22:41:12 |
2020-09-13 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:12 | ------------------------------------ 2020-09-13 22:41:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "item-id": "item-24f4ae67-e943-48ec-b277-c3c319340bfd" } 2020-09-13 22:41:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-24f4ae67-e943-48ec-b277-c3c319340bfd" } 2020-09-13 22:41:12 | [Mutex] received everything. 2020-09-13 22:41:12 | [Mutex] isItemNotified: retracted:item:notifieditem-24f4ae67-e943-48ec-b277-c3c319340bfd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.019s |
2020-09-13 22:41:12 |
2020-09-13 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:12 | ------------------------------------ 2020-09-13 22:41:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "item-id": "item-24f4ae67-e943-48ec-b277-c3c319340bfd" } 2020-09-13 22:41:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "item-id": "item-24f4ae67-e943-48ec-b277-c3c319340bfd", "item": [ "<item id=\"item-24f4ae67-e943-48ec-b277-c3c319340bfd\"><test>item-24f4ae67-e943-48ec-b277-c3c319340bfd</test></item>" ] } 2020-09-13 22:41:12 | [Mutex] notify: [retrieved:item:item-24f4ae67-e943-48ec-b277-c3c319340bfd:payload-matches:true:localhost] 2020-09-13 22:41:12 | [Mutex] received everything. 2020-09-13 22:41:12 | [Mutex] isItemNotified: retrieved:item:item-24f4ae67-e943-48ec-b277-c3c319340bfd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-09-13 22:41:12 |
2020-09-13 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:12 | ------------------------------------ 2020-09-13 22:41:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-13 22:41:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-393ea83f-d9cc-4c4d-bfa8-544fc12d6e22", "node-1a26406d-8335-43d0-8bbf-cf9401acbf66" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-13 22:41:12 |
2020-09-13 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:12 | ------------------------------------ 2020-09-13 22:41:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1a26406d-8335-43d0-8bbf-cf9401acbf66)" } 2020-09-13 22:41:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-13 22:41:11 |
2020-09-13 22:41:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:11 | ------------------------------------ 2020-09-13 22:41:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "jids": [ "admin@test-domain.com" ] } 2020-09-13 22:41:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2020-09-13 22:41:12 |
2020-09-13 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-13 22:41:12 | ------------------------------------ 2020-09-13 22:41:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1a26406d-8335-43d0-8bbf-cf9401acbf66", "jids": [ "admin@test-domain.com" ] } 2020-09-13 22:41:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |