Test duration : 9.309s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2020-10-18 22:31:19 |
2020-10-18 22:31:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:19 | ------------------------------------ 2020-10-18 22:31:19 | [Mutex] waiting for: [configured:node:node-83595499-4962-4225-b465-7586034b6b31:node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42] 2020-10-18 22:31:19 | [Mutex] received everything. 2020-10-18 22:31:19 | [Mutex] isItemNotified: configured:node:node-83595499-4962-4225-b465-7586034b6b31:node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42 :: true 2020-10-18 22:31:20 | [Mutex] waiting for: [received:nodes:7e410bfc-13d6-4fa1-839f-0c048d94f7fa:localhost] 2020-10-18 22:31:20 | [Mutex] received everything. 2020-10-18 22:31:20 | [Mutex] isItemNotified: received:node:7e410bfc-13d6-4fa1-839f-0c048d94f7fa:localhost:node-83595499-4962-4225-b465-7586034b6b31:Node 83595499-4962-4225-b465-7586034b6b31 :: true 2020-10-18 22:31:20 | [Mutex] waiting for: [received:nodes:dbec9647-e817-4a1d-92c1-d18ba28d2d84:localhost] 2020-10-18 22:31:20 | [Mutex] received everything. 2020-10-18 22:31:20 | [Mutex] isItemNotified: received:node:dbec9647-e817-4a1d-92c1-d18ba28d2d84:localhost:node-83595499-4962-4225-b465-7586034b6b31:Node 83595499-4962-4225-b465-7586034b6b31 :: false |
createNodes | 1.728s |
2020-10-18 22:31:16 |
2020-10-18 22:31:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:16 | ------------------------------------ 2020-10-18 22:31:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-83595499-4962-4225-b465-7586034b6b31", "pubsub#title": "Node 83595499-4962-4225-b465-7586034b6b31" } 2020-10-18 22:31:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 22:31:18 | [Mutex] waiting for: [received:nodes:64d27d6a-1121-454a-8c4d-034f04b28a26:localhost] 2020-10-18 22:31:18 | [Mutex] received everything. 2020-10-18 22:31:18 | [Mutex] isItemNotified: received:node:64d27d6a-1121-454a-8c4d-034f04b28a26:localhost:node-83595499-4962-4225-b465-7586034b6b31:Node 83595499-4962-4225-b465-7586034b6b31 :: true |
createSubnodes | 1.029s |
2020-10-18 22:31:18 |
2020-10-18 22:31:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:18 | ------------------------------------ 2020-10-18 22:31:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42", "pubsub#title": "Node 7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42" } 2020-10-18 22:31:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 22:31:19 | [Mutex] waiting for: [received:nodes:8ad8fc5f-dc84-4e02-aa52-dcf38c11efaf:localhost] 2020-10-18 22:31:19 | [Mutex] received everything. 2020-10-18 22:31:19 | [Mutex] isItemNotified: received:node:8ad8fc5f-dc84-4e02-aa52-dcf38c11efaf:localhost:node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42:Node 7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42 :: true |
deleteNodes | 1.022s |
2020-10-18 22:31:23 |
2020-10-18 22:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:23 | ------------------------------------ 2020-10-18 22:31:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42" } 2020-10-18 22:31:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 22:31:24 | [Mutex] waiting for: [received:nodes:2023c0fd-81b1-4d07-9ae5-89db259a87f2:localhost] 2020-10-18 22:31:24 | [Mutex] received everything. 2020-10-18 22:31:24 | [Mutex] isItemNotified: received:node:2023c0fd-81b1-4d07-9ae5-89db259a87f2:localhost:node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42:Node 7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42 :: false |
deleteSubnodes | 1.035s |
2020-10-18 22:31:22 |
2020-10-18 22:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:22 | ------------------------------------ 2020-10-18 22:31:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-83595499-4962-4225-b465-7586034b6b31" } 2020-10-18 22:31:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-18 22:31:23 | [Mutex] waiting for: [received:nodes:44b4150f-b3a8-41ac-8c48-d431540c4b93:localhost] 2020-10-18 22:31:23 | [Mutex] received everything. 2020-10-18 22:31:23 | [Mutex] isItemNotified: received:node:44b4150f-b3a8-41ac-8c48-d431540c4b93:localhost:node-83595499-4962-4225-b465-7586034b6b31:Node 83595499-4962-4225-b465-7586034b6b31 :: false 2020-10-18 22:31:23 | [Mutex] waiting for: [received:nodes:c3d58356-b9b4-4116-9d4d-4915d3735914:localhost] 2020-10-18 22:31:23 | [Mutex] received everything. 2020-10-18 22:31:23 | [Mutex] isItemNotified: received:node:c3d58356-b9b4-4116-9d4d-4915d3735914:localhost:node-83595499-4962-4225-b465-7586034b6b31:Node 83595499-4962-4225-b465-7586034b6b31 :: false |
publishItemsToNodes | 0.049s |
2020-10-18 22:31:21 |
2020-10-18 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:21 | ------------------------------------ 2020-10-18 22:31:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-83595499-4962-4225-b465-7586034b6b31", "entry": "<test>item-f1d35c96-b8ec-4538-b840-5deca7dba079</test>", "item-id": "item-f1d35c96-b8ec-4538-b840-5deca7dba079" } 2020-10-18 22:31:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f1d35c96-b8ec-4538-b840-5deca7dba079" } 2020-10-18 22:31:21 | [Mutex] waiting for: [published:item:notifieditem-f1d35c96-b8ec-4538-b840-5deca7dba079:admin@test-domain.com] 2020-10-18 22:31:21 | [Mutex] received everything. 2020-10-18 22:31:21 | [Mutex] isItemNotified: published:item:notifieditem-f1d35c96-b8ec-4538-b840-5deca7dba079:admin@test-domain.com :: true |
retractItemsFromNodes | 0.097s |
2020-10-18 22:31:21 |
2020-10-18 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:21 | ------------------------------------ 2020-10-18 22:31:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-83595499-4962-4225-b465-7586034b6b31", "item-id": "item-f1d35c96-b8ec-4538-b840-5deca7dba079" } 2020-10-18 22:31:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f1d35c96-b8ec-4538-b840-5deca7dba079" } 2020-10-18 22:31:21 | [Mutex] waiting for: [retracted:item:notifieditem-f1d35c96-b8ec-4538-b840-5deca7dba079:admin@test-domain.com] 2020-10-18 22:31:21 | [Mutex] received everything. 2020-10-18 22:31:21 | [Mutex] isItemNotified: retracted:item:notifieditem-f1d35c96-b8ec-4538-b840-5deca7dba079:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.082s |
2020-10-18 22:31:21 |
2020-10-18 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:21 | ------------------------------------ 2020-10-18 22:31:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-83595499-4962-4225-b465-7586034b6b31", "item-id": "item-f1d35c96-b8ec-4538-b840-5deca7dba079" } 2020-10-18 22:31:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-83595499-4962-4225-b465-7586034b6b31", "item-id": "item-f1d35c96-b8ec-4538-b840-5deca7dba079", "item": [ "<item id=\"item-f1d35c96-b8ec-4538-b840-5deca7dba079\"><test>item-f1d35c96-b8ec-4538-b840-5deca7dba079</test></item>" ] } 2020-10-18 22:31:21 | [Mutex] notify: [retrieved:item:item-f1d35c96-b8ec-4538-b840-5deca7dba079:payload-matches:true:localhost] 2020-10-18 22:31:21 | [Mutex] received everything. 2020-10-18 22:31:21 | [Mutex] isItemNotified: retrieved:item:item-f1d35c96-b8ec-4538-b840-5deca7dba079:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-10-18 22:31:21 |
2020-10-18 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:21 | ------------------------------------ 2020-10-18 22:31:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-18 22:31:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-83595499-4962-4225-b465-7586034b6b31", "node-7ac5d3f9-032d-4fcd-b877-2ae5d8c63c42", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2020-10-18 22:31:21 |
2020-10-18 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:21 | ------------------------------------ 2020-10-18 22:31:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-83595499-4962-4225-b465-7586034b6b31)" } 2020-10-18 22:31:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-10-18 22:31:20 |
2020-10-18 22:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:20 | ------------------------------------ 2020-10-18 22:31:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-83595499-4962-4225-b465-7586034b6b31", "jids": [ "admin@test-domain.com" ] } 2020-10-18 22:31:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2020-10-18 22:31:21 |
2020-10-18 22:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-18 22:31:21 | ------------------------------------ 2020-10-18 22:31:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-83595499-4962-4225-b465-7586034b6b31", "jids": [ "admin@test-domain.com" ] } 2020-10-18 22:31:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |