Test duration : 8.706s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-07-09 22:45:14 |
2022-07-09 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:14 | ------------------------------------ 2022-07-09 22:45:14 | [Mutex] waiting for: [configured:node:node-40dc4627-d62f-4bc0-b007-307dd3577a76:node-8f32d3e8-c542-43c2-b1fc-4462566530c7] 2022-07-09 22:45:14 | [Mutex] received everything. 2022-07-09 22:45:14 | [Mutex] isItemNotified: configured:node:node-40dc4627-d62f-4bc0-b007-307dd3577a76:node-8f32d3e8-c542-43c2-b1fc-4462566530c7 :: true 2022-07-09 22:45:15 | [Mutex] waiting for: [received:nodes:ca825fb7-7213-4385-9dfb-32fadeea6c5a:localhost] 2022-07-09 22:45:15 | [Mutex] received everything. 2022-07-09 22:45:15 | [Mutex] isItemNotified: received:node:ca825fb7-7213-4385-9dfb-32fadeea6c5a:localhost:node-40dc4627-d62f-4bc0-b007-307dd3577a76:Node 40dc4627-d62f-4bc0-b007-307dd3577a76 :: true 2022-07-09 22:45:15 | [Mutex] waiting for: [received:nodes:5db5c0a5-fe77-4777-8b55-cf8d587631b5:localhost] 2022-07-09 22:45:15 | [Mutex] received everything. 2022-07-09 22:45:15 | [Mutex] isItemNotified: received:node:5db5c0a5-fe77-4777-8b55-cf8d587631b5:localhost:node-40dc4627-d62f-4bc0-b007-307dd3577a76:Node 40dc4627-d62f-4bc0-b007-307dd3577a76 :: false |
createNodes | 1.615s |
2022-07-09 22:45:12 |
2022-07-09 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:12 | ------------------------------------ 2022-07-09 22:45:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "pubsub#title": "Node 40dc4627-d62f-4bc0-b007-307dd3577a76" } 2022-07-09 22:45:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-09 22:45:13 | [Mutex] waiting for: [received:nodes:785c8c96-680c-43b0-9001-32453e01f766:localhost] 2022-07-09 22:45:13 | [Mutex] received everything. 2022-07-09 22:45:13 | [Mutex] isItemNotified: received:node:785c8c96-680c-43b0-9001-32453e01f766:localhost:node-40dc4627-d62f-4bc0-b007-307dd3577a76:Node 40dc4627-d62f-4bc0-b007-307dd3577a76 :: true |
createSubnodes | 1.030s |
2022-07-09 22:45:13 |
2022-07-09 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:13 | ------------------------------------ 2022-07-09 22:45:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8f32d3e8-c542-43c2-b1fc-4462566530c7", "pubsub#title": "Node 8f32d3e8-c542-43c2-b1fc-4462566530c7" } 2022-07-09 22:45:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-09 22:45:14 | [Mutex] waiting for: [received:nodes:e17da7f8-d251-457b-8924-31cf63c6f775:localhost] 2022-07-09 22:45:14 | [Mutex] received everything. 2022-07-09 22:45:14 | [Mutex] isItemNotified: received:node:e17da7f8-d251-457b-8924-31cf63c6f775:localhost:node-8f32d3e8-c542-43c2-b1fc-4462566530c7:Node 8f32d3e8-c542-43c2-b1fc-4462566530c7 :: true |
deleteNodes | 1.031s |
2022-07-09 22:45:19 |
2022-07-09 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:19 | ------------------------------------ 2022-07-09 22:45:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8f32d3e8-c542-43c2-b1fc-4462566530c7" } 2022-07-09 22:45:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-09 22:45:20 | [Mutex] waiting for: [received:nodes:ed5deb1a-b53d-4ced-a191-df3383bbfa8f:localhost] 2022-07-09 22:45:20 | [Mutex] waiting for: [received:nodes:ed5deb1a-b53d-4ced-a191-df3383bbfa8f:localhost] 2022-07-09 22:45:20 | [Mutex] received everything. 2022-07-09 22:45:20 | [Mutex] isItemNotified: received:node:ed5deb1a-b53d-4ced-a191-df3383bbfa8f:localhost:node-8f32d3e8-c542-43c2-b1fc-4462566530c7:Node 8f32d3e8-c542-43c2-b1fc-4462566530c7 :: false |
deleteSubnodes | 1.027s |
2022-07-09 22:45:18 |
2022-07-09 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:18 | ------------------------------------ 2022-07-09 22:45:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76" } 2022-07-09 22:45:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-09 22:45:19 | [Mutex] waiting for: [received:nodes:dd9b914c-9daf-47ab-a50c-b293b4764e6e:localhost] 2022-07-09 22:45:19 | [Mutex] received everything. 2022-07-09 22:45:19 | [Mutex] isItemNotified: received:node:dd9b914c-9daf-47ab-a50c-b293b4764e6e:localhost:node-40dc4627-d62f-4bc0-b007-307dd3577a76:Node 40dc4627-d62f-4bc0-b007-307dd3577a76 :: false 2022-07-09 22:45:19 | [Mutex] waiting for: [received:nodes:f6657bf1-920a-4355-82bd-4fd449b053b2:localhost] 2022-07-09 22:45:19 | [Mutex] received everything. 2022-07-09 22:45:19 | [Mutex] isItemNotified: received:node:f6657bf1-920a-4355-82bd-4fd449b053b2:localhost:node-40dc4627-d62f-4bc0-b007-307dd3577a76:Node 40dc4627-d62f-4bc0-b007-307dd3577a76 :: false |
publishItemsToNodes | 0.047s |
2022-07-09 22:45:16 |
2022-07-09 22:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:16 | ------------------------------------ 2022-07-09 22:45:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "entry": "<test>item-523ff59d-8b22-4440-a1e1-93d9ac80a547</test>", "item-id": "item-523ff59d-8b22-4440-a1e1-93d9ac80a547" } 2022-07-09 22:45:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-523ff59d-8b22-4440-a1e1-93d9ac80a547" } 2022-07-09 22:45:16 | [Mutex] waiting for: [published:item:notifieditem-523ff59d-8b22-4440-a1e1-93d9ac80a547:admin@test-domain.com] 2022-07-09 22:45:17 | [Mutex] received everything. 2022-07-09 22:45:17 | [Mutex] isItemNotified: published:item:notifieditem-523ff59d-8b22-4440-a1e1-93d9ac80a547:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-07-09 22:45:17 |
2022-07-09 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:17 | ------------------------------------ 2022-07-09 22:45:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "item-id": "item-523ff59d-8b22-4440-a1e1-93d9ac80a547" } 2022-07-09 22:45:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-523ff59d-8b22-4440-a1e1-93d9ac80a547" } 2022-07-09 22:45:17 | [Mutex] received everything. 2022-07-09 22:45:17 | [Mutex] isItemNotified: retracted:item:notifieditem-523ff59d-8b22-4440-a1e1-93d9ac80a547:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-07-09 22:45:17 |
2022-07-09 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:17 | ------------------------------------ 2022-07-09 22:45:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "item-id": "item-523ff59d-8b22-4440-a1e1-93d9ac80a547" } 2022-07-09 22:45:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "item-id": "item-523ff59d-8b22-4440-a1e1-93d9ac80a547", "item": [ "<item id=\"item-523ff59d-8b22-4440-a1e1-93d9ac80a547\"><test>item-523ff59d-8b22-4440-a1e1-93d9ac80a547</test></item>" ] } 2022-07-09 22:45:17 | [Mutex] notify: [retrieved:item:item-523ff59d-8b22-4440-a1e1-93d9ac80a547:payload-matches:true:localhost] 2022-07-09 22:45:17 | [Mutex] received everything. 2022-07-09 22:45:17 | [Mutex] isItemNotified: retrieved:item:item-523ff59d-8b22-4440-a1e1-93d9ac80a547:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.063s |
2022-07-09 22:45:17 |
2022-07-09 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:17 | ------------------------------------ 2022-07-09 22:45:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-09 22:45:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8f32d3e8-c542-43c2-b1fc-4462566530c7", "test", "node-40dc4627-d62f-4bc0-b007-307dd3577a76" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-09 22:45:17 |
2022-07-09 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:17 | ------------------------------------ 2022-07-09 22:45:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-40dc4627-d62f-4bc0-b007-307dd3577a76)" } 2022-07-09 22:45:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-07-09 22:45:15 |
2022-07-09 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:15 | ------------------------------------ 2022-07-09 22:45:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "jids": [ "admin@test-domain.com" ] } 2022-07-09 22:45:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-07-09 22:45:17 |
2022-07-09 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-09 22:45:17 | ------------------------------------ 2022-07-09 22:45:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-40dc4627-d62f-4bc0-b007-307dd3577a76", "jids": [ "admin@test-domain.com" ] } 2022-07-09 22:45:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |