Test duration : 9.124s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.124s |
2021-06-13 22:58:16 |
2021-06-13 22:58:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:16 | ------------------------------------ 2021-06-13 22:58:16 | [Mutex] waiting for: [configured:node:node-8236771a-4e95-43ba-8470-5885ddccf3e8:node-836a471d-efcb-4e68-af67-4ed516fa6542] 2021-06-13 22:58:16 | [Mutex] received everything. 2021-06-13 22:58:16 | [Mutex] isItemNotified: configured:node:node-8236771a-4e95-43ba-8470-5885ddccf3e8:node-836a471d-efcb-4e68-af67-4ed516fa6542 :: true 2021-06-13 22:58:17 | [Mutex] waiting for: [received:nodes:375e7609-9af6-46a1-9ea6-5324ceadac2f:localhost] 2021-06-13 22:58:17 | [Mutex] received everything. 2021-06-13 22:58:17 | [Mutex] isItemNotified: received:node:375e7609-9af6-46a1-9ea6-5324ceadac2f:localhost:node-8236771a-4e95-43ba-8470-5885ddccf3e8:Node 8236771a-4e95-43ba-8470-5885ddccf3e8 :: true 2021-06-13 22:58:17 | [Mutex] waiting for: [received:nodes:55f9e221-b168-488e-8a71-dfbff978493b:localhost] 2021-06-13 22:58:17 | [Mutex] received everything. 2021-06-13 22:58:17 | [Mutex] isItemNotified: received:node:55f9e221-b168-488e-8a71-dfbff978493b:localhost:node-8236771a-4e95-43ba-8470-5885ddccf3e8:Node 8236771a-4e95-43ba-8470-5885ddccf3e8 :: false |
createNodes | 1.747s |
2021-06-13 22:58:13 |
2021-06-13 22:58:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:13 | ------------------------------------ 2021-06-13 22:58:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "pubsub#title": "Node 8236771a-4e95-43ba-8470-5885ddccf3e8" } 2021-06-13 22:58:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:58:15 | [Mutex] waiting for: [received:nodes:144c18ba-129e-49c5-b195-c1ea6353fcfa:localhost] 2021-06-13 22:58:15 | [Mutex] received everything. 2021-06-13 22:58:15 | [Mutex] isItemNotified: received:node:144c18ba-129e-49c5-b195-c1ea6353fcfa:localhost:node-8236771a-4e95-43ba-8470-5885ddccf3e8:Node 8236771a-4e95-43ba-8470-5885ddccf3e8 :: true |
createSubnodes | 1.029s |
2021-06-13 22:58:15 |
2021-06-13 22:58:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:15 | ------------------------------------ 2021-06-13 22:58:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-836a471d-efcb-4e68-af67-4ed516fa6542", "pubsub#title": "Node 836a471d-efcb-4e68-af67-4ed516fa6542" } 2021-06-13 22:58:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:58:16 | [Mutex] waiting for: [received:nodes:ad9d3629-8baa-404c-8958-35bdc9b98707:localhost] 2021-06-13 22:58:16 | [Mutex] received everything. 2021-06-13 22:58:16 | [Mutex] isItemNotified: received:node:ad9d3629-8baa-404c-8958-35bdc9b98707:localhost:node-836a471d-efcb-4e68-af67-4ed516fa6542:Node 836a471d-efcb-4e68-af67-4ed516fa6542 :: true |
deleteNodes | 1.030s |
2021-06-13 22:58:21 |
2021-06-13 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:21 | ------------------------------------ 2021-06-13 22:58:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-836a471d-efcb-4e68-af67-4ed516fa6542" } 2021-06-13 22:58:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:58:22 | [Mutex] waiting for: [received:nodes:ec4d185d-64a2-4e12-9d6a-5b7912362cab:localhost] 2021-06-13 22:58:22 | [Mutex] waiting for: [received:nodes:ec4d185d-64a2-4e12-9d6a-5b7912362cab:localhost] 2021-06-13 22:58:22 | [Mutex] received everything. 2021-06-13 22:58:22 | [Mutex] isItemNotified: received:node:ec4d185d-64a2-4e12-9d6a-5b7912362cab:localhost:node-836a471d-efcb-4e68-af67-4ed516fa6542:Node 836a471d-efcb-4e68-af67-4ed516fa6542 :: false |
deleteSubnodes | 1.032s |
2021-06-13 22:58:20 |
2021-06-13 22:58:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:20 | ------------------------------------ 2021-06-13 22:58:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8" } 2021-06-13 22:58:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-13 22:58:21 | [Mutex] waiting for: [received:nodes:9a5f1979-c0d1-49a3-82f3-84ff2843da41:localhost] 2021-06-13 22:58:21 | [Mutex] received everything. 2021-06-13 22:58:21 | [Mutex] isItemNotified: received:node:9a5f1979-c0d1-49a3-82f3-84ff2843da41:localhost:node-8236771a-4e95-43ba-8470-5885ddccf3e8:Node 8236771a-4e95-43ba-8470-5885ddccf3e8 :: false 2021-06-13 22:58:21 | [Mutex] waiting for: [received:nodes:ed31661d-04d2-40f2-a063-ad113ee0a2a3:localhost] 2021-06-13 22:58:21 | [Mutex] received everything. 2021-06-13 22:58:21 | [Mutex] isItemNotified: received:node:ed31661d-04d2-40f2-a063-ad113ee0a2a3:localhost:node-8236771a-4e95-43ba-8470-5885ddccf3e8:Node 8236771a-4e95-43ba-8470-5885ddccf3e8 :: false |
publishItemsToNodes | 0.034s |
2021-06-13 22:58:18 |
2021-06-13 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:18 | ------------------------------------ 2021-06-13 22:58:18 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "entry": "<test>item-90e12bb9-f109-4ef5-ab42-a41a16372793</test>", "item-id": "item-90e12bb9-f109-4ef5-ab42-a41a16372793" } 2021-06-13 22:58:18 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-90e12bb9-f109-4ef5-ab42-a41a16372793" } 2021-06-13 22:58:18 | [Mutex] waiting for: [published:item:notifieditem-90e12bb9-f109-4ef5-ab42-a41a16372793:admin@test-domain.com] 2021-06-13 22:58:18 | [Mutex] received everything. 2021-06-13 22:58:18 | [Mutex] isItemNotified: published:item:notifieditem-90e12bb9-f109-4ef5-ab42-a41a16372793:admin@test-domain.com :: true |
retractItemsFromNodes | 0.062s |
2021-06-13 22:58:18 |
2021-06-13 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:18 | ------------------------------------ 2021-06-13 22:58:18 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "item-id": "item-90e12bb9-f109-4ef5-ab42-a41a16372793" } 2021-06-13 22:58:18 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-90e12bb9-f109-4ef5-ab42-a41a16372793" } 2021-06-13 22:58:18 | [Mutex] waiting for: [retracted:item:notifieditem-90e12bb9-f109-4ef5-ab42-a41a16372793:admin@test-domain.com] 2021-06-13 22:58:18 | [Mutex] received everything. 2021-06-13 22:58:18 | [Mutex] isItemNotified: retracted:item:notifieditem-90e12bb9-f109-4ef5-ab42-a41a16372793:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2021-06-13 22:58:18 |
2021-06-13 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:18 | ------------------------------------ 2021-06-13 22:58:18 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "item-id": "item-90e12bb9-f109-4ef5-ab42-a41a16372793" } 2021-06-13 22:58:18 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "item-id": "item-90e12bb9-f109-4ef5-ab42-a41a16372793", "item": [ "<item id=\"item-90e12bb9-f109-4ef5-ab42-a41a16372793\"><test>item-90e12bb9-f109-4ef5-ab42-a41a16372793</test></item>" ] } 2021-06-13 22:58:18 | [Mutex] notify: [retrieved:item:item-90e12bb9-f109-4ef5-ab42-a41a16372793:payload-matches:true:localhost] 2021-06-13 22:58:18 | [Mutex] received everything. 2021-06-13 22:58:18 | [Mutex] isItemNotified: retrieved:item:item-90e12bb9-f109-4ef5-ab42-a41a16372793:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.067s |
2021-06-13 22:58:18 |
2021-06-13 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:18 | ------------------------------------ 2021-06-13 22:58:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-13 22:58:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-836a471d-efcb-4e68-af67-4ed516fa6542", "test", "node-8236771a-4e95-43ba-8470-5885ddccf3e8" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-06-13 22:58:18 |
2021-06-13 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:18 | ------------------------------------ 2021-06-13 22:58:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8236771a-4e95-43ba-8470-5885ddccf3e8)" } 2021-06-13 22:58:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2021-06-13 22:58:17 |
2021-06-13 22:58:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:17 | ------------------------------------ 2021-06-13 22:58:17 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "jids": [ "admin@test-domain.com" ] } 2021-06-13 22:58:17 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2021-06-13 22:58:18 |
2021-06-13 22:58:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-13 22:58:18 | ------------------------------------ 2021-06-13 22:58:18 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8236771a-4e95-43ba-8470-5885ddccf3e8", "jids": [ "admin@test-domain.com" ] } 2021-06-13 22:58:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |