Test duration : 8.847s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2022-08-31 23:02:07 |
2022-08-31 23:02:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:07 | ------------------------------------ 2022-08-31 23:02:07 | [Mutex] waiting for: [configured:node:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec] 2022-08-31 23:02:07 | [Mutex] received everything. 2022-08-31 23:02:07 | [Mutex] isItemNotified: configured:node:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec :: true 2022-08-31 23:02:08 | [Mutex] waiting for: [received:nodes:8994484a-fe85-447c-97e4-c6c5474f73c1:localhost] 2022-08-31 23:02:08 | [Mutex] received everything. 2022-08-31 23:02:08 | [Mutex] isItemNotified: received:node:8994484a-fe85-447c-97e4-c6c5474f73c1:localhost:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:Node dd8e4141-b21a-4116-aaad-3d399f7561bd :: true 2022-08-31 23:02:08 | [Mutex] waiting for: [received:nodes:a5caf018-c374-4891-a491-2455f4584cfb:localhost] 2022-08-31 23:02:08 | [Mutex] received everything. 2022-08-31 23:02:08 | [Mutex] isItemNotified: received:node:a5caf018-c374-4891-a491-2455f4584cfb:localhost:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:Node dd8e4141-b21a-4116-aaad-3d399f7561bd :: false |
createNodes | 1.715s |
2022-08-31 23:02:05 |
2022-08-31 23:02:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:05 | ------------------------------------ 2022-08-31 23:02:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "pubsub#title": "Node dd8e4141-b21a-4116-aaad-3d399f7561bd" } 2022-08-31 23:02:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 23:02:06 | [Mutex] waiting for: [received:nodes:107542c4-8ab5-4799-be1e-4bd44049c3d2:localhost] 2022-08-31 23:02:06 | [Mutex] waiting for: [received:nodes:107542c4-8ab5-4799-be1e-4bd44049c3d2:localhost] 2022-08-31 23:02:06 | [Mutex] received everything. 2022-08-31 23:02:06 | [Mutex] isItemNotified: received:node:107542c4-8ab5-4799-be1e-4bd44049c3d2:localhost:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:Node dd8e4141-b21a-4116-aaad-3d399f7561bd :: true |
createSubnodes | 1.021s |
2022-08-31 23:02:06 |
2022-08-31 23:02:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:06 | ------------------------------------ 2022-08-31 23:02:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec", "pubsub#title": "Node 6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec" } 2022-08-31 23:02:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 23:02:07 | [Mutex] waiting for: [received:nodes:e084ae35-189e-4d1e-89e2-499e31171995:localhost] 2022-08-31 23:02:07 | [Mutex] received everything. 2022-08-31 23:02:07 | [Mutex] isItemNotified: received:node:e084ae35-189e-4d1e-89e2-499e31171995:localhost:node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec:Node 6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec :: true |
deleteNodes | 1.019s |
2022-08-31 23:02:12 |
2022-08-31 23:02:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:12 | ------------------------------------ 2022-08-31 23:02:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec" } 2022-08-31 23:02:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 23:02:13 | [Mutex] waiting for: [received:nodes:00230224-98a7-4a9c-b88b-8963e36bdee2:localhost] 2022-08-31 23:02:13 | [Mutex] waiting for: [received:nodes:00230224-98a7-4a9c-b88b-8963e36bdee2:localhost] 2022-08-31 23:02:13 | [Mutex] received everything. 2022-08-31 23:02:13 | [Mutex] isItemNotified: received:node:00230224-98a7-4a9c-b88b-8963e36bdee2:localhost:node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec:Node 6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec :: false |
deleteSubnodes | 1.032s |
2022-08-31 23:02:11 |
2022-08-31 23:02:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:11 | ------------------------------------ 2022-08-31 23:02:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd" } 2022-08-31 23:02:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-31 23:02:12 | [Mutex] waiting for: [received:nodes:6b118a5e-bb47-4813-b62d-c575fa915c2c:localhost] 2022-08-31 23:02:12 | [Mutex] received everything. 2022-08-31 23:02:12 | [Mutex] isItemNotified: received:node:6b118a5e-bb47-4813-b62d-c575fa915c2c:localhost:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:Node dd8e4141-b21a-4116-aaad-3d399f7561bd :: false 2022-08-31 23:02:12 | [Mutex] waiting for: [received:nodes:98b5926a-213d-4973-a8cf-4afed13f913c:localhost] 2022-08-31 23:02:12 | [Mutex] received everything. 2022-08-31 23:02:12 | [Mutex] isItemNotified: received:node:98b5926a-213d-4973-a8cf-4afed13f913c:localhost:node-dd8e4141-b21a-4116-aaad-3d399f7561bd:Node dd8e4141-b21a-4116-aaad-3d399f7561bd :: false |
publishItemsToNodes | 0.060s |
2022-08-31 23:02:09 |
2022-08-31 23:02:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:09 | ------------------------------------ 2022-08-31 23:02:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "entry": "<test>item-0ff8da14-6c58-4860-8192-b0745e75e3a2</test>", "item-id": "item-0ff8da14-6c58-4860-8192-b0745e75e3a2" } 2022-08-31 23:02:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0ff8da14-6c58-4860-8192-b0745e75e3a2" } 2022-08-31 23:02:09 | [Mutex] waiting for: [published:item:notifieditem-0ff8da14-6c58-4860-8192-b0745e75e3a2:admin@test-domain.com] 2022-08-31 23:02:10 | [Mutex] received everything. 2022-08-31 23:02:10 | [Mutex] isItemNotified: published:item:notifieditem-0ff8da14-6c58-4860-8192-b0745e75e3a2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.103s |
2022-08-31 23:02:10 |
2022-08-31 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:10 | ------------------------------------ 2022-08-31 23:02:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "item-id": "item-0ff8da14-6c58-4860-8192-b0745e75e3a2" } 2022-08-31 23:02:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0ff8da14-6c58-4860-8192-b0745e75e3a2" } 2022-08-31 23:02:10 | [Mutex] received everything. 2022-08-31 23:02:10 | [Mutex] isItemNotified: retracted:item:notifieditem-0ff8da14-6c58-4860-8192-b0745e75e3a2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.049s |
2022-08-31 23:02:10 |
2022-08-31 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:10 | ------------------------------------ 2022-08-31 23:02:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "item-id": "item-0ff8da14-6c58-4860-8192-b0745e75e3a2" } 2022-08-31 23:02:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "item-id": "item-0ff8da14-6c58-4860-8192-b0745e75e3a2", "item": [ "<item id=\"item-0ff8da14-6c58-4860-8192-b0745e75e3a2\"><test>item-0ff8da14-6c58-4860-8192-b0745e75e3a2</test></item>" ] } 2022-08-31 23:02:10 | [Mutex] notify: [retrieved:item:item-0ff8da14-6c58-4860-8192-b0745e75e3a2:payload-matches:true:localhost] 2022-08-31 23:02:10 | [Mutex] received everything. 2022-08-31 23:02:10 | [Mutex] isItemNotified: retrieved:item:item-0ff8da14-6c58-4860-8192-b0745e75e3a2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-08-31 23:02:10 |
2022-08-31 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:10 | ------------------------------------ 2022-08-31 23:02:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-31 23:02:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-6d6c1c85-2115-4ed9-857b-1cf0e0fd5bec", "test", "node-dd8e4141-b21a-4116-aaad-3d399f7561bd" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-31 23:02:10 |
2022-08-31 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:10 | ------------------------------------ 2022-08-31 23:02:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dd8e4141-b21a-4116-aaad-3d399f7561bd)" } 2022-08-31 23:02:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-31 23:02:08 |
2022-08-31 23:02:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:08 | ------------------------------------ 2022-08-31 23:02:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "jids": [ "admin@test-domain.com" ] } 2022-08-31 23:02:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.095s |
2022-08-31 23:02:10 |
2022-08-31 23:02:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-31 23:02:10 | ------------------------------------ 2022-08-31 23:02:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dd8e4141-b21a-4116-aaad-3d399f7561bd", "jids": [ "admin@test-domain.com" ] } 2022-08-31 23:02:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |