Test duration : 8.602s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2022-06-05 22:41:10 |
2022-06-05 22:41:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:10 | ------------------------------------ 2022-06-05 22:41:10 | [Mutex] waiting for: [configured:node:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:node-99685a15-a305-4711-bdea-c8e54f9f0dd2] 2022-06-05 22:41:10 | [Mutex] received everything. 2022-06-05 22:41:10 | [Mutex] isItemNotified: configured:node:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:node-99685a15-a305-4711-bdea-c8e54f9f0dd2 :: true 2022-06-05 22:41:11 | [Mutex] waiting for: [received:nodes:2161ee8b-2849-499f-ad3b-66ec29ab0b2a:localhost] 2022-06-05 22:41:11 | [Mutex] received everything. 2022-06-05 22:41:11 | [Mutex] isItemNotified: received:node:2161ee8b-2849-499f-ad3b-66ec29ab0b2a:localhost:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:Node c03b2a8d-95b1-4be6-8f2a-6a38df294a78 :: true 2022-06-05 22:41:11 | [Mutex] waiting for: [received:nodes:ef1c0ff5-60f2-4798-851f-100e0eb3b195:localhost] 2022-06-05 22:41:11 | [Mutex] waiting for: [received:nodes:ef1c0ff5-60f2-4798-851f-100e0eb3b195:localhost] 2022-06-05 22:41:11 | [Mutex] received everything. 2022-06-05 22:41:11 | [Mutex] isItemNotified: received:node:ef1c0ff5-60f2-4798-851f-100e0eb3b195:localhost:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:Node c03b2a8d-95b1-4be6-8f2a-6a38df294a78 :: false |
createNodes | 1.551s |
2022-06-05 22:41:07 |
2022-06-05 22:41:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:07 | ------------------------------------ 2022-06-05 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-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "pubsub#title": "Node c03b2a8d-95b1-4be6-8f2a-6a38df294a78" } 2022-06-05 22:41:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:41:09 | [Mutex] waiting for: [received:nodes:76e99cd7-2533-423b-9e16-d20147eca988:localhost] 2022-06-05 22:41:09 | [Mutex] received everything. 2022-06-05 22:41:09 | [Mutex] isItemNotified: received:node:76e99cd7-2533-423b-9e16-d20147eca988:localhost:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:Node c03b2a8d-95b1-4be6-8f2a-6a38df294a78 :: true |
createSubnodes | 1.031s |
2022-06-05 22:41:09 |
2022-06-05 22:41:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:09 | ------------------------------------ 2022-06-05 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-99685a15-a305-4711-bdea-c8e54f9f0dd2", "pubsub#title": "Node 99685a15-a305-4711-bdea-c8e54f9f0dd2" } 2022-06-05 22:41:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:41:10 | [Mutex] waiting for: [received:nodes:9df45e03-8570-439a-bed4-498f057b4156:localhost] 2022-06-05 22:41:10 | [Mutex] received everything. 2022-06-05 22:41:10 | [Mutex] isItemNotified: received:node:9df45e03-8570-439a-bed4-498f057b4156:localhost:node-99685a15-a305-4711-bdea-c8e54f9f0dd2:Node 99685a15-a305-4711-bdea-c8e54f9f0dd2 :: true |
deleteNodes | 1.026s |
2022-06-05 22:41:14 |
2022-06-05 22:41:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:14 | ------------------------------------ 2022-06-05 22:41:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-99685a15-a305-4711-bdea-c8e54f9f0dd2" } 2022-06-05 22:41:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:41:15 | [Mutex] waiting for: [received:nodes:e178026b-ce40-4528-a576-68fa385b7eaa:localhost] 2022-06-05 22:41:15 | [Mutex] received everything. 2022-06-05 22:41:15 | [Mutex] isItemNotified: received:node:e178026b-ce40-4528-a576-68fa385b7eaa:localhost:node-99685a15-a305-4711-bdea-c8e54f9f0dd2:Node 99685a15-a305-4711-bdea-c8e54f9f0dd2 :: false |
deleteSubnodes | 1.029s |
2022-06-05 22:41:13 |
2022-06-05 22:41:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:13 | ------------------------------------ 2022-06-05 22:41:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78" } 2022-06-05 22:41:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-05 22:41:14 | [Mutex] waiting for: [received:nodes:e8c25538-0875-4d0f-b225-d48b82502d9e:localhost] 2022-06-05 22:41:14 | [Mutex] received everything. 2022-06-05 22:41:14 | [Mutex] isItemNotified: received:node:e8c25538-0875-4d0f-b225-d48b82502d9e:localhost:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:Node c03b2a8d-95b1-4be6-8f2a-6a38df294a78 :: false 2022-06-05 22:41:14 | [Mutex] waiting for: [received:nodes:0987a902-24aa-4294-b585-e67a04c1a35d:localhost] 2022-06-05 22:41:14 | [Mutex] received everything. 2022-06-05 22:41:14 | [Mutex] isItemNotified: received:node:0987a902-24aa-4294-b585-e67a04c1a35d:localhost:node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78:Node c03b2a8d-95b1-4be6-8f2a-6a38df294a78 :: false |
publishItemsToNodes | 0.048s |
2022-06-05 22:41:12 |
2022-06-05 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:12 | ------------------------------------ 2022-06-05 22:41:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "entry": "<test>item-b301089c-11c2-41c7-91ed-247d1c6a6a6d</test>", "item-id": "item-b301089c-11c2-41c7-91ed-247d1c6a6a6d" } 2022-06-05 22:41:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b301089c-11c2-41c7-91ed-247d1c6a6a6d" } 2022-06-05 22:41:12 | [Mutex] waiting for: [published:item:notifieditem-b301089c-11c2-41c7-91ed-247d1c6a6a6d:admin@test-domain.com] 2022-06-05 22:41:12 | [Mutex] received everything. 2022-06-05 22:41:12 | [Mutex] isItemNotified: published:item:notifieditem-b301089c-11c2-41c7-91ed-247d1c6a6a6d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.098s |
2022-06-05 22:41:12 |
2022-06-05 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:12 | ------------------------------------ 2022-06-05 22:41:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "item-id": "item-b301089c-11c2-41c7-91ed-247d1c6a6a6d" } 2022-06-05 22:41:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b301089c-11c2-41c7-91ed-247d1c6a6a6d" } 2022-06-05 22:41:12 | [Mutex] waiting for: [retracted:item:notifieditem-b301089c-11c2-41c7-91ed-247d1c6a6a6d:admin@test-domain.com] 2022-06-05 22:41:12 | [Mutex] received everything. 2022-06-05 22:41:12 | [Mutex] isItemNotified: retracted:item:notifieditem-b301089c-11c2-41c7-91ed-247d1c6a6a6d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.056s |
2022-06-05 22:41:12 |
2022-06-05 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:12 | ------------------------------------ 2022-06-05 22:41:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "item-id": "item-b301089c-11c2-41c7-91ed-247d1c6a6a6d" } 2022-06-05 22:41:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "item-id": "item-b301089c-11c2-41c7-91ed-247d1c6a6a6d", "item": [ "<item id=\"item-b301089c-11c2-41c7-91ed-247d1c6a6a6d\"><test>item-b301089c-11c2-41c7-91ed-247d1c6a6a6d</test></item>" ] } 2022-06-05 22:41:12 | [Mutex] notify: [retrieved:item:item-b301089c-11c2-41c7-91ed-247d1c6a6a6d:payload-matches:true:localhost] 2022-06-05 22:41:12 | [Mutex] received everything. 2022-06-05 22:41:12 | [Mutex] isItemNotified: retrieved:item:item-b301089c-11c2-41c7-91ed-247d1c6a6a6d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-06-05 22:41:12 |
2022-06-05 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:12 | ------------------------------------ 2022-06-05 22:41:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-05 22:41:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "test", "node-99685a15-a305-4711-bdea-c8e54f9f0dd2" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-06-05 22:41:12 |
2022-06-05 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:12 | ------------------------------------ 2022-06-05 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-c03b2a8d-95b1-4be6-8f2a-6a38df294a78)" } 2022-06-05 22:41:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-06-05 22:41:11 |
2022-06-05 22:41:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:11 | ------------------------------------ 2022-06-05 22:41:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "jids": [ "admin@test-domain.com" ] } 2022-06-05 22:41:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.045s |
2022-06-05 22:41:12 |
2022-06-05 22:41:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-05 22:41:12 | ------------------------------------ 2022-06-05 22:41:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c03b2a8d-95b1-4be6-8f2a-6a38df294a78", "jids": [ "admin@test-domain.com" ] } 2022-06-05 22:41:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |