Test duration : 9.089s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2020-11-09 21:57:06 |
2020-11-09 21:57:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:06 | ------------------------------------ 2020-11-09 21:57:06 | [Mutex] waiting for: [configured:node:node-c31215fc-b3ba-4f8d-90fd-67d480685484:node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61] 2020-11-09 21:57:06 | [Mutex] received everything. 2020-11-09 21:57:06 | [Mutex] isItemNotified: configured:node:node-c31215fc-b3ba-4f8d-90fd-67d480685484:node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61 :: true 2020-11-09 21:57:07 | [Mutex] waiting for: [received:nodes:03c7234b-b2c7-4f8d-ad6e-9305b00bcec3:localhost] 2020-11-09 21:57:07 | [Mutex] received everything. 2020-11-09 21:57:07 | [Mutex] isItemNotified: received:node:03c7234b-b2c7-4f8d-ad6e-9305b00bcec3:localhost:node-c31215fc-b3ba-4f8d-90fd-67d480685484:Node c31215fc-b3ba-4f8d-90fd-67d480685484 :: true 2020-11-09 21:57:07 | [Mutex] waiting for: [received:nodes:55130143-f535-492c-be6d-78de48bdf4b9:localhost] 2020-11-09 21:57:07 | [Mutex] received everything. 2020-11-09 21:57:07 | [Mutex] isItemNotified: received:node:55130143-f535-492c-be6d-78de48bdf4b9:localhost:node-c31215fc-b3ba-4f8d-90fd-67d480685484:Node c31215fc-b3ba-4f8d-90fd-67d480685484 :: false |
createNodes | 1.808s |
2020-11-09 21:57:03 |
2020-11-09 21:57:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:03 | ------------------------------------ 2020-11-09 21:57:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "pubsub#title": "Node c31215fc-b3ba-4f8d-90fd-67d480685484" } 2020-11-09 21:57:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-09 21:57:05 | [Mutex] waiting for: [received:nodes:6d375bb7-8a65-4ab4-ad1c-5727a908500a:localhost] 2020-11-09 21:57:05 | [Mutex] waiting for: [received:nodes:6d375bb7-8a65-4ab4-ad1c-5727a908500a:localhost] 2020-11-09 21:57:05 | [Mutex] waiting for: [received:nodes:6d375bb7-8a65-4ab4-ad1c-5727a908500a:localhost] 2020-11-09 21:57:05 | [Mutex] received everything. 2020-11-09 21:57:05 | [Mutex] isItemNotified: received:node:6d375bb7-8a65-4ab4-ad1c-5727a908500a:localhost:node-c31215fc-b3ba-4f8d-90fd-67d480685484:Node c31215fc-b3ba-4f8d-90fd-67d480685484 :: true |
createSubnodes | 1.034s |
2020-11-09 21:57:05 |
2020-11-09 21:57:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:05 | ------------------------------------ 2020-11-09 21:57:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61", "pubsub#title": "Node a7bea8ad-010c-4b85-9b4f-c354dbfa6c61" } 2020-11-09 21:57:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-09 21:57:06 | [Mutex] waiting for: [received:nodes:3a12f39a-626f-4b8f-b041-8b31c71ef4fb:localhost] 2020-11-09 21:57:06 | [Mutex] received everything. 2020-11-09 21:57:06 | [Mutex] isItemNotified: received:node:3a12f39a-626f-4b8f-b041-8b31c71ef4fb:localhost:node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61:Node a7bea8ad-010c-4b85-9b4f-c354dbfa6c61 :: true |
deleteNodes | 1.025s |
2020-11-09 21:57:11 |
2020-11-09 21:57:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:11 | ------------------------------------ 2020-11-09 21:57:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61" } 2020-11-09 21:57:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-09 21:57:12 | [Mutex] waiting for: [received:nodes:e334d341-c644-469f-9a6d-220009273bef:localhost] 2020-11-09 21:57:12 | [Mutex] received everything. 2020-11-09 21:57:12 | [Mutex] isItemNotified: received:node:e334d341-c644-469f-9a6d-220009273bef:localhost:node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61:Node a7bea8ad-010c-4b85-9b4f-c354dbfa6c61 :: false |
deleteSubnodes | 1.034s |
2020-11-09 21:57:10 |
2020-11-09 21:57:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:10 | ------------------------------------ 2020-11-09 21:57:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484" } 2020-11-09 21:57:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-09 21:57:11 | [Mutex] waiting for: [received:nodes:59ca40ed-66ac-49c3-9cf2-a5b20660982b:localhost] 2020-11-09 21:57:11 | [Mutex] waiting for: [received:nodes:59ca40ed-66ac-49c3-9cf2-a5b20660982b:localhost] 2020-11-09 21:57:11 | [Mutex] received everything. 2020-11-09 21:57:11 | [Mutex] isItemNotified: received:node:59ca40ed-66ac-49c3-9cf2-a5b20660982b:localhost:node-c31215fc-b3ba-4f8d-90fd-67d480685484:Node c31215fc-b3ba-4f8d-90fd-67d480685484 :: false 2020-11-09 21:57:11 | [Mutex] waiting for: [received:nodes:f15e6f55-b94d-44b8-b5e1-9bc621a6a35f:localhost] 2020-11-09 21:57:11 | [Mutex] received everything. 2020-11-09 21:57:11 | [Mutex] isItemNotified: received:node:f15e6f55-b94d-44b8-b5e1-9bc621a6a35f:localhost:node-c31215fc-b3ba-4f8d-90fd-67d480685484:Node c31215fc-b3ba-4f8d-90fd-67d480685484 :: false |
publishItemsToNodes | 0.033s |
2020-11-09 21:57:08 |
2020-11-09 21:57:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:08 | ------------------------------------ 2020-11-09 21:57:08 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "entry": "<test>item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c</test>", "item-id": "item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c" } 2020-11-09 21:57:08 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c" } 2020-11-09 21:57:08 | [Mutex] waiting for: [published:item:notifieditem-a878c74c-b751-41b4-bd1c-8cf851aeaa2c:admin@test-domain.com] 2020-11-09 21:57:08 | [Mutex] received everything. 2020-11-09 21:57:08 | [Mutex] isItemNotified: published:item:notifieditem-a878c74c-b751-41b4-bd1c-8cf851aeaa2c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.116s |
2020-11-09 21:57:09 |
2020-11-09 21:57:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:09 | ------------------------------------ 2020-11-09 21:57:09 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "item-id": "item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c" } 2020-11-09 21:57:09 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c" } 2020-11-09 21:57:09 | [Mutex] waiting for: [retracted:item:notifieditem-a878c74c-b751-41b4-bd1c-8cf851aeaa2c:admin@test-domain.com] 2020-11-09 21:57:09 | [Mutex] received everything. 2020-11-09 21:57:09 | [Mutex] isItemNotified: retracted:item:notifieditem-a878c74c-b751-41b4-bd1c-8cf851aeaa2c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2020-11-09 21:57:08 |
2020-11-09 21:57:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:08 | ------------------------------------ 2020-11-09 21:57:08 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "item-id": "item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c" } 2020-11-09 21:57:08 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "item-id": "item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c", "item": [ "<item id=\"item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c\"><test>item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c</test></item>" ] } 2020-11-09 21:57:08 | [Mutex] notify: [retrieved:item:item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c:payload-matches:true:localhost] 2020-11-09 21:57:08 | [Mutex] received everything. 2020-11-09 21:57:08 | [Mutex] isItemNotified: retrieved:item:item-a878c74c-b751-41b4-bd1c-8cf851aeaa2c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-11-09 21:57:08 |
2020-11-09 21:57:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:08 | ------------------------------------ 2020-11-09 21:57:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-09 21:57:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "node-a7bea8ad-010c-4b85-9b4f-c354dbfa6c61" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-09 21:57:08 |
2020-11-09 21:57:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:08 | ------------------------------------ 2020-11-09 21:57:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c31215fc-b3ba-4f8d-90fd-67d480685484)" } 2020-11-09 21:57:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-11-09 21:57:07 |
2020-11-09 21:57:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:07 | ------------------------------------ 2020-11-09 21:57:07 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "jids": [ "admin@test-domain.com" ] } 2020-11-09 21:57:07 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.039s |
2020-11-09 21:57:09 |
2020-11-09 21:57:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-09 21:57:09 | ------------------------------------ 2020-11-09 21:57:09 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c31215fc-b3ba-4f8d-90fd-67d480685484", "jids": [ "admin@test-domain.com" ] } 2020-11-09 21:57:09 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |