Test duration : 9.016s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2021-03-31 22:29:05 |
2021-03-31 22:29:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:05 | ------------------------------------ 2021-03-31 22:29:05 | [Mutex] waiting for: [configured:node:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:node-368b9218-ebe8-4770-af19-cfec4acc8926] 2021-03-31 22:29:05 | [Mutex] received everything. 2021-03-31 22:29:05 | [Mutex] isItemNotified: configured:node:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:node-368b9218-ebe8-4770-af19-cfec4acc8926 :: true 2021-03-31 22:29:06 | [Mutex] waiting for: [received:nodes:efefa288-4dbf-41e9-b614-d077412fa9e0:localhost] 2021-03-31 22:29:06 | [Mutex] received everything. 2021-03-31 22:29:06 | [Mutex] isItemNotified: received:node:efefa288-4dbf-41e9-b614-d077412fa9e0:localhost:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:Node 2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99 :: true 2021-03-31 22:29:06 | [Mutex] waiting for: [received:nodes:72a4547f-f06c-4d35-85b9-b44f403b559f:localhost] 2021-03-31 22:29:06 | [Mutex] waiting for: [received:nodes:72a4547f-f06c-4d35-85b9-b44f403b559f:localhost] 2021-03-31 22:29:06 | [Mutex] received everything. 2021-03-31 22:29:06 | [Mutex] isItemNotified: received:node:72a4547f-f06c-4d35-85b9-b44f403b559f:localhost:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:Node 2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99 :: false |
createNodes | 1.673s |
2021-03-31 22:29:02 |
2021-03-31 22:29:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:02 | ------------------------------------ 2021-03-31 22:29:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "pubsub#title": "Node 2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99" } 2021-03-31 22:29:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:29:04 | [Mutex] waiting for: [received:nodes:77deda37-7ea4-41da-badf-602956767271:localhost] 2021-03-31 22:29:04 | [Mutex] received everything. 2021-03-31 22:29:04 | [Mutex] isItemNotified: received:node:77deda37-7ea4-41da-badf-602956767271:localhost:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:Node 2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99 :: true |
createSubnodes | 1.030s |
2021-03-31 22:29:04 |
2021-03-31 22:29:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:04 | ------------------------------------ 2021-03-31 22:29:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-368b9218-ebe8-4770-af19-cfec4acc8926", "pubsub#title": "Node 368b9218-ebe8-4770-af19-cfec4acc8926" } 2021-03-31 22:29:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:29:05 | [Mutex] waiting for: [received:nodes:81874776-a1b5-4db2-8fa4-13fc62f210e0:localhost] 2021-03-31 22:29:05 | [Mutex] received everything. 2021-03-31 22:29:05 | [Mutex] isItemNotified: received:node:81874776-a1b5-4db2-8fa4-13fc62f210e0:localhost:node-368b9218-ebe8-4770-af19-cfec4acc8926:Node 368b9218-ebe8-4770-af19-cfec4acc8926 :: true |
deleteNodes | 1.036s |
2021-03-31 22:29:10 |
2021-03-31 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:10 | ------------------------------------ 2021-03-31 22:29:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-368b9218-ebe8-4770-af19-cfec4acc8926" } 2021-03-31 22:29:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:29:11 | [Mutex] waiting for: [received:nodes:a69998e4-5a1c-4e40-b2d6-0caa4d10c031:localhost] 2021-03-31 22:29:11 | [Mutex] received everything. 2021-03-31 22:29:11 | [Mutex] isItemNotified: received:node:a69998e4-5a1c-4e40-b2d6-0caa4d10c031:localhost:node-368b9218-ebe8-4770-af19-cfec4acc8926:Node 368b9218-ebe8-4770-af19-cfec4acc8926 :: false |
deleteSubnodes | 1.029s |
2021-03-31 22:29:09 |
2021-03-31 22:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:09 | ------------------------------------ 2021-03-31 22:29:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99" } 2021-03-31 22:29:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-31 22:29:10 | [Mutex] waiting for: [received:nodes:c13e6cd4-1a5d-413f-b115-decad41c6fe0:localhost] 2021-03-31 22:29:10 | [Mutex] waiting for: [received:nodes:c13e6cd4-1a5d-413f-b115-decad41c6fe0:localhost] 2021-03-31 22:29:10 | [Mutex] received everything. 2021-03-31 22:29:10 | [Mutex] isItemNotified: received:node:c13e6cd4-1a5d-413f-b115-decad41c6fe0:localhost:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:Node 2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99 :: false 2021-03-31 22:29:10 | [Mutex] waiting for: [received:nodes:0cd717ea-7a3a-4f95-ac2e-f76ac77dcc8e:localhost] 2021-03-31 22:29:10 | [Mutex] received everything. 2021-03-31 22:29:10 | [Mutex] isItemNotified: received:node:0cd717ea-7a3a-4f95-ac2e-f76ac77dcc8e:localhost:node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99:Node 2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99 :: false |
publishItemsToNodes | 0.048s |
2021-03-31 22:29:07 |
2021-03-31 22:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:07 | ------------------------------------ 2021-03-31 22:29:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "entry": "<test>item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298</test>", "item-id": "item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298" } 2021-03-31 22:29:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298" } 2021-03-31 22:29:07 | [Mutex] waiting for: [published:item:notifieditem-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298:admin@test-domain.com] 2021-03-31 22:29:07 | [Mutex] received everything. 2021-03-31 22:29:07 | [Mutex] isItemNotified: published:item:notifieditem-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298:admin@test-domain.com :: true |
retractItemsFromNodes | 0.107s |
2021-03-31 22:29:07 |
2021-03-31 22:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:07 | ------------------------------------ 2021-03-31 22:29:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "item-id": "item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298" } 2021-03-31 22:29:08 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298" } 2021-03-31 22:29:08 | [Mutex] received everything. 2021-03-31 22:29:08 | [Mutex] isItemNotified: retracted:item:notifieditem-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.073s |
2021-03-31 22:29:07 |
2021-03-31 22:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:07 | ------------------------------------ 2021-03-31 22:29:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "item-id": "item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298" } 2021-03-31 22:29:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "item-id": "item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298", "item": [ "<item id=\"item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298\"><test>item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298</test></item>" ] } 2021-03-31 22:29:07 | [Mutex] notify: [retrieved:item:item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298:payload-matches:true:localhost] 2021-03-31 22:29:07 | [Mutex] received everything. 2021-03-31 22:29:07 | [Mutex] isItemNotified: retrieved:item:item-c7b0c6b8-1e9c-4350-9b52-a5e778ab5298:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.103s |
2021-03-31 22:29:07 |
2021-03-31 22:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:07 | ------------------------------------ 2021-03-31 22:29:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-31 22:29:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "node-368b9218-ebe8-4770-af19-cfec4acc8926" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-03-31 22:29:07 |
2021-03-31 22:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:07 | ------------------------------------ 2021-03-31 22:29:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99)" } 2021-03-31 22:29:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-03-31 22:29:06 |
2021-03-31 22:29:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:06 | ------------------------------------ 2021-03-31 22:29:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "jids": [ "admin@test-domain.com" ] } 2021-03-31 22:29:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2021-03-31 22:29:08 |
2021-03-31 22:29:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-31 22:29:08 | ------------------------------------ 2021-03-31 22:29:08 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2c47f7a7-f2b7-4aa4-89b5-d8efa6823a99", "jids": [ "admin@test-domain.com" ] } 2021-03-31 22:29:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |