Test duration : 8.637s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2022-09-08 23:17:35 |
2022-09-08 23:17:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:35 | ------------------------------------ 2022-09-08 23:17:35 | [Mutex] waiting for: [configured:node:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:node-d943d689-6d87-4e77-a6f3-f3fd09479b28] 2022-09-08 23:17:35 | [Mutex] received everything. 2022-09-08 23:17:35 | [Mutex] isItemNotified: configured:node:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:node-d943d689-6d87-4e77-a6f3-f3fd09479b28 :: true 2022-09-08 23:17:36 | [Mutex] waiting for: [received:nodes:267e212f-4951-41cd-9d4c-a7f466d6b3a1:localhost] 2022-09-08 23:17:36 | [Mutex] received everything. 2022-09-08 23:17:36 | [Mutex] isItemNotified: received:node:267e212f-4951-41cd-9d4c-a7f466d6b3a1:localhost:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:Node c006cf5c-21a8-4b5c-868a-ae2027c504bd :: true 2022-09-08 23:17:36 | [Mutex] waiting for: [received:nodes:cc403199-7a1c-4e60-b50f-8a043c2d33f2:localhost] 2022-09-08 23:17:36 | [Mutex] received everything. 2022-09-08 23:17:36 | [Mutex] isItemNotified: received:node:cc403199-7a1c-4e60-b50f-8a043c2d33f2:localhost:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:Node c006cf5c-21a8-4b5c-868a-ae2027c504bd :: false |
createNodes | 1.574s |
2022-09-08 23:17:32 |
2022-09-08 23:17:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:32 | ------------------------------------ 2022-09-08 23:17:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "pubsub#title": "Node c006cf5c-21a8-4b5c-868a-ae2027c504bd" } 2022-09-08 23:17:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-08 23:17:34 | [Mutex] waiting for: [received:nodes:b6c50aec-aa48-4676-8215-7b02989e5366:localhost] 2022-09-08 23:17:34 | [Mutex] received everything. 2022-09-08 23:17:34 | [Mutex] isItemNotified: received:node:b6c50aec-aa48-4676-8215-7b02989e5366:localhost:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:Node c006cf5c-21a8-4b5c-868a-ae2027c504bd :: true |
createSubnodes | 1.030s |
2022-09-08 23:17:34 |
2022-09-08 23:17:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:34 | ------------------------------------ 2022-09-08 23:17:34 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d943d689-6d87-4e77-a6f3-f3fd09479b28", "pubsub#title": "Node d943d689-6d87-4e77-a6f3-f3fd09479b28" } 2022-09-08 23:17:34 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-08 23:17:35 | [Mutex] waiting for: [received:nodes:e6aacf57-459c-47a9-a60d-2ffe56b8efb8:localhost] 2022-09-08 23:17:35 | [Mutex] received everything. 2022-09-08 23:17:35 | [Mutex] isItemNotified: received:node:e6aacf57-459c-47a9-a60d-2ffe56b8efb8:localhost:node-d943d689-6d87-4e77-a6f3-f3fd09479b28:Node d943d689-6d87-4e77-a6f3-f3fd09479b28 :: true |
deleteNodes | 1.017s |
2022-09-08 23:17:39 |
2022-09-08 23:17:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:39 | ------------------------------------ 2022-09-08 23:17:39 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d943d689-6d87-4e77-a6f3-f3fd09479b28" } 2022-09-08 23:17:39 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-08 23:17:40 | [Mutex] waiting for: [received:nodes:37338384-101f-4635-b717-198c0d29908a:localhost] 2022-09-08 23:17:40 | [Mutex] received everything. 2022-09-08 23:17:40 | [Mutex] isItemNotified: received:node:37338384-101f-4635-b717-198c0d29908a:localhost:node-d943d689-6d87-4e77-a6f3-f3fd09479b28:Node d943d689-6d87-4e77-a6f3-f3fd09479b28 :: false |
deleteSubnodes | 1.027s |
2022-09-08 23:17:38 |
2022-09-08 23:17:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:38 | ------------------------------------ 2022-09-08 23:17:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd" } 2022-09-08 23:17:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-09-08 23:17:39 | [Mutex] waiting for: [received:nodes:62a5c3e1-5c21-4dd7-8360-40664a0e13cd:localhost] 2022-09-08 23:17:39 | [Mutex] received everything. 2022-09-08 23:17:39 | [Mutex] isItemNotified: received:node:62a5c3e1-5c21-4dd7-8360-40664a0e13cd:localhost:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:Node c006cf5c-21a8-4b5c-868a-ae2027c504bd :: false 2022-09-08 23:17:39 | [Mutex] waiting for: [received:nodes:20973b1c-19a9-4dc7-8466-d896cca7d2b2:localhost] 2022-09-08 23:17:39 | [Mutex] received everything. 2022-09-08 23:17:39 | [Mutex] isItemNotified: received:node:20973b1c-19a9-4dc7-8466-d896cca7d2b2:localhost:node-c006cf5c-21a8-4b5c-868a-ae2027c504bd:Node c006cf5c-21a8-4b5c-868a-ae2027c504bd :: false |
publishItemsToNodes | 0.049s |
2022-09-08 23:17:37 |
2022-09-08 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:37 | ------------------------------------ 2022-09-08 23:17:37 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "entry": "<test>item-ac4d4412-279f-4dce-bc05-98d638ab2d9f</test>", "item-id": "item-ac4d4412-279f-4dce-bc05-98d638ab2d9f" } 2022-09-08 23:17:37 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ac4d4412-279f-4dce-bc05-98d638ab2d9f" } 2022-09-08 23:17:37 | [Mutex] waiting for: [published:item:notifieditem-ac4d4412-279f-4dce-bc05-98d638ab2d9f:admin@test-domain.com] 2022-09-08 23:17:37 | [Mutex] received everything. 2022-09-08 23:17:37 | [Mutex] isItemNotified: published:item:notifieditem-ac4d4412-279f-4dce-bc05-98d638ab2d9f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-09-08 23:17:37 |
2022-09-08 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:37 | ------------------------------------ 2022-09-08 23:17:37 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "item-id": "item-ac4d4412-279f-4dce-bc05-98d638ab2d9f" } 2022-09-08 23:17:37 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ac4d4412-279f-4dce-bc05-98d638ab2d9f" } 2022-09-08 23:17:37 | [Mutex] received everything. 2022-09-08 23:17:37 | [Mutex] isItemNotified: retracted:item:notifieditem-ac4d4412-279f-4dce-bc05-98d638ab2d9f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.021s |
2022-09-08 23:17:37 |
2022-09-08 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:37 | ------------------------------------ 2022-09-08 23:17:37 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "item-id": "item-ac4d4412-279f-4dce-bc05-98d638ab2d9f" } 2022-09-08 23:17:37 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "item-id": "item-ac4d4412-279f-4dce-bc05-98d638ab2d9f", "item": [ "<item id=\"item-ac4d4412-279f-4dce-bc05-98d638ab2d9f\"><test>item-ac4d4412-279f-4dce-bc05-98d638ab2d9f</test></item>" ] } 2022-09-08 23:17:37 | [Mutex] notify: [retrieved:item:item-ac4d4412-279f-4dce-bc05-98d638ab2d9f:payload-matches:true:localhost] 2022-09-08 23:17:37 | [Mutex] received everything. 2022-09-08 23:17:37 | [Mutex] isItemNotified: retrieved:item:item-ac4d4412-279f-4dce-bc05-98d638ab2d9f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-09-08 23:17:37 |
2022-09-08 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:37 | ------------------------------------ 2022-09-08 23:17:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-09-08 23:17:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d943d689-6d87-4e77-a6f3-f3fd09479b28", "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-09-08 23:17:37 |
2022-09-08 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:37 | ------------------------------------ 2022-09-08 23:17:37 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c006cf5c-21a8-4b5c-868a-ae2027c504bd)" } 2022-09-08 23:17:37 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.007s |
2022-09-08 23:17:36 |
2022-09-08 23:17:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:36 | ------------------------------------ 2022-09-08 23:17:36 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "jids": [ "admin@test-domain.com" ] } 2022-09-08 23:17:36 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.052s |
2022-09-08 23:17:37 |
2022-09-08 23:17:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-09-08 23:17:37 | ------------------------------------ 2022-09-08 23:17:37 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c006cf5c-21a8-4b5c-868a-ae2027c504bd", "jids": [ "admin@test-domain.com" ] } 2022-09-08 23:17:37 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |