Test duration : 9.139s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2021-09-28 22:43:03 |
2021-09-28 22:43:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:03 | ------------------------------------ 2021-09-28 22:43:03 | [Mutex] waiting for: [configured:node:node-970b6483-e05a-431a-a9a2-447e2607f6ad:node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0] 2021-09-28 22:43:03 | [Mutex] received everything. 2021-09-28 22:43:03 | [Mutex] isItemNotified: configured:node:node-970b6483-e05a-431a-a9a2-447e2607f6ad:node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0 :: true 2021-09-28 22:43:04 | [Mutex] waiting for: [received:nodes:33aafb53-89b6-43a6-9121-ed8b25b5b3af:localhost] 2021-09-28 22:43:04 | [Mutex] received everything. 2021-09-28 22:43:04 | [Mutex] isItemNotified: received:node:33aafb53-89b6-43a6-9121-ed8b25b5b3af:localhost:node-970b6483-e05a-431a-a9a2-447e2607f6ad:Node 970b6483-e05a-431a-a9a2-447e2607f6ad :: true 2021-09-28 22:43:04 | [Mutex] waiting for: [received:nodes:fcbca151-78f3-4460-8325-586694c0e6d4:localhost] 2021-09-28 22:43:04 | [Mutex] received everything. 2021-09-28 22:43:04 | [Mutex] isItemNotified: received:node:fcbca151-78f3-4460-8325-586694c0e6d4:localhost:node-970b6483-e05a-431a-a9a2-447e2607f6ad:Node 970b6483-e05a-431a-a9a2-447e2607f6ad :: false |
createNodes | 1.639s |
2021-09-28 22:43:00 |
2021-09-28 22:43:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:00 | ------------------------------------ 2021-09-28 22:43:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "pubsub#title": "Node 970b6483-e05a-431a-a9a2-447e2607f6ad" } 2021-09-28 22:43:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:43:01 | [Mutex] waiting for: [received:nodes:868815f5-e9b1-4149-b367-e4788e4fb40c:localhost] 2021-09-28 22:43:01 | [Mutex] received everything. 2021-09-28 22:43:01 | [Mutex] isItemNotified: received:node:868815f5-e9b1-4149-b367-e4788e4fb40c:localhost:node-970b6483-e05a-431a-a9a2-447e2607f6ad:Node 970b6483-e05a-431a-a9a2-447e2607f6ad :: true |
createSubnodes | 1.035s |
2021-09-28 22:43:01 |
2021-09-28 22:43:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:01 | ------------------------------------ 2021-09-28 22:43:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0", "pubsub#title": "Node 51771b88-b61c-4d19-9ffc-d0e133fd3bd0" } 2021-09-28 22:43:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:43:03 | [Mutex] waiting for: [received:nodes:4af40756-93b1-469e-96db-12eb05b6af13:localhost] 2021-09-28 22:43:03 | [Mutex] received everything. 2021-09-28 22:43:03 | [Mutex] isItemNotified: received:node:4af40756-93b1-469e-96db-12eb05b6af13:localhost:node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0:Node 51771b88-b61c-4d19-9ffc-d0e133fd3bd0 :: true |
deleteNodes | 1.032s |
2021-09-28 22:43:07 |
2021-09-28 22:43:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:07 | ------------------------------------ 2021-09-28 22:43:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0" } 2021-09-28 22:43:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:43:08 | [Mutex] waiting for: [received:nodes:ca796d8f-72ae-4c44-8f2e-2cbe3c845d9b:localhost] 2021-09-28 22:43:08 | [Mutex] received everything. 2021-09-28 22:43:08 | [Mutex] isItemNotified: received:node:ca796d8f-72ae-4c44-8f2e-2cbe3c845d9b:localhost:node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0:Node 51771b88-b61c-4d19-9ffc-d0e133fd3bd0 :: false |
deleteSubnodes | 1.034s |
2021-09-28 22:43:06 |
2021-09-28 22:43:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:06 | ------------------------------------ 2021-09-28 22:43:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad" } 2021-09-28 22:43:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-28 22:43:07 | [Mutex] waiting for: [received:nodes:70839792-4923-45b3-975f-b7ce11a90bb5:localhost] 2021-09-28 22:43:07 | [Mutex] received everything. 2021-09-28 22:43:07 | [Mutex] isItemNotified: received:node:70839792-4923-45b3-975f-b7ce11a90bb5:localhost:node-970b6483-e05a-431a-a9a2-447e2607f6ad:Node 970b6483-e05a-431a-a9a2-447e2607f6ad :: false 2021-09-28 22:43:07 | [Mutex] waiting for: [received:nodes:487e5165-1283-4809-94e1-3a9ce982a975:localhost] 2021-09-28 22:43:07 | [Mutex] received everything. 2021-09-28 22:43:07 | [Mutex] isItemNotified: received:node:487e5165-1283-4809-94e1-3a9ce982a975:localhost:node-970b6483-e05a-431a-a9a2-447e2607f6ad:Node 970b6483-e05a-431a-a9a2-447e2607f6ad :: false |
publishItemsToNodes | 0.116s |
2021-09-28 22:43:05 |
2021-09-28 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:05 | ------------------------------------ 2021-09-28 22:43:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "entry": "<test>item-5d196545-3abe-4694-8a6c-e31319235e47</test>", "item-id": "item-5d196545-3abe-4694-8a6c-e31319235e47" } 2021-09-28 22:43:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5d196545-3abe-4694-8a6c-e31319235e47" } 2021-09-28 22:43:05 | [Mutex] waiting for: [published:item:notifieditem-5d196545-3abe-4694-8a6c-e31319235e47:admin@test-domain.com] 2021-09-28 22:43:05 | [Mutex] received everything. 2021-09-28 22:43:05 | [Mutex] isItemNotified: published:item:notifieditem-5d196545-3abe-4694-8a6c-e31319235e47:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-09-28 22:43:05 |
2021-09-28 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:05 | ------------------------------------ 2021-09-28 22:43:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "item-id": "item-5d196545-3abe-4694-8a6c-e31319235e47" } 2021-09-28 22:43:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5d196545-3abe-4694-8a6c-e31319235e47" } 2021-09-28 22:43:05 | [Mutex] received everything. 2021-09-28 22:43:05 | [Mutex] isItemNotified: retracted:item:notifieditem-5d196545-3abe-4694-8a6c-e31319235e47:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.051s |
2021-09-28 22:43:05 |
2021-09-28 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:05 | ------------------------------------ 2021-09-28 22:43:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "item-id": "item-5d196545-3abe-4694-8a6c-e31319235e47" } 2021-09-28 22:43:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "item-id": "item-5d196545-3abe-4694-8a6c-e31319235e47", "item": [ "<item id=\"item-5d196545-3abe-4694-8a6c-e31319235e47\"><test>item-5d196545-3abe-4694-8a6c-e31319235e47</test></item>" ] } 2021-09-28 22:43:05 | [Mutex] notify: [retrieved:item:item-5d196545-3abe-4694-8a6c-e31319235e47:payload-matches:true:localhost] 2021-09-28 22:43:05 | [Mutex] received everything. 2021-09-28 22:43:05 | [Mutex] isItemNotified: retrieved:item:item-5d196545-3abe-4694-8a6c-e31319235e47:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-09-28 22:43:05 |
2021-09-28 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:05 | ------------------------------------ 2021-09-28 22:43:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-28 22:43:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-51771b88-b61c-4d19-9ffc-d0e133fd3bd0", "node-970b6483-e05a-431a-a9a2-447e2607f6ad" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-09-28 22:43:05 |
2021-09-28 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:05 | ------------------------------------ 2021-09-28 22:43:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-970b6483-e05a-431a-a9a2-447e2607f6ad)" } 2021-09-28 22:43:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2021-09-28 22:43:04 |
2021-09-28 22:43:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:04 | ------------------------------------ 2021-09-28 22:43:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:43:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2021-09-28 22:43:05 |
2021-09-28 22:43:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-28 22:43:05 | ------------------------------------ 2021-09-28 22:43:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-970b6483-e05a-431a-a9a2-447e2607f6ad", "jids": [ "admin@test-domain.com" ] } 2021-09-28 22:43:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |