Test duration: 9.102s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2020-05-19 17:43:28 |
2020-05-19 17:43:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:28 | ------------------------------------ 2020-05-19 17:43:28 | [Mutex] waiting for: [configured:node:node-4df5acda-989f-4374-a732-d57755be2915:node-f10c79dc-cea5-4a67-867a-8577c7d23bd2] 2020-05-19 17:43:29 | [Mutex] received everything. 2020-05-19 17:43:29 | [Mutex] isItemNotified: configured:node:node-4df5acda-989f-4374-a732-d57755be2915:node-f10c79dc-cea5-4a67-867a-8577c7d23bd2 :: true 2020-05-19 17:43:30 | [Mutex] waiting for: [received:nodes:e47f345b-c3bd-4744-92d0-4d5e0a9ef2e3:localhost] 2020-05-19 17:43:30 | [Mutex] received everything. 2020-05-19 17:43:30 | [Mutex] isItemNotified: received:node:e47f345b-c3bd-4744-92d0-4d5e0a9ef2e3:localhost:node-4df5acda-989f-4374-a732-d57755be2915:Node 4df5acda-989f-4374-a732-d57755be2915 :: true 2020-05-19 17:43:30 | [Mutex] waiting for: [received:nodes:c96c7880-f202-4780-a058-56996e9143b7:localhost] 2020-05-19 17:43:30 | [Mutex] waiting for: [received:nodes:c96c7880-f202-4780-a058-56996e9143b7:localhost] 2020-05-19 17:43:30 | [Mutex] received everything. 2020-05-19 17:43:30 | [Mutex] isItemNotified: received:node:c96c7880-f202-4780-a058-56996e9143b7:localhost:node-4df5acda-989f-4374-a732-d57755be2915:Node 4df5acda-989f-4374-a732-d57755be2915 :: false |
createNodes | 1.663s |
2020-05-19 17:43:26 |
2020-05-19 17:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:26 | ------------------------------------ 2020-05-19 17:43:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-4df5acda-989f-4374-a732-d57755be2915", "pubsub#title": "Node 4df5acda-989f-4374-a732-d57755be2915" } 2020-05-19 17:43:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-19 17:43:27 | [Mutex] waiting for: [received:nodes:1c16966e-c79c-48d9-8d9a-5ea7ca86118a:localhost] 2020-05-19 17:43:27 | [Mutex] received everything. 2020-05-19 17:43:27 | [Mutex] isItemNotified: received:node:1c16966e-c79c-48d9-8d9a-5ea7ca86118a:localhost:node-4df5acda-989f-4374-a732-d57755be2915:Node 4df5acda-989f-4374-a732-d57755be2915 :: true |
createSubnodes | 1.019s |
2020-05-19 17:43:27 |
2020-05-19 17:43:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:27 | ------------------------------------ 2020-05-19 17:43:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-f10c79dc-cea5-4a67-867a-8577c7d23bd2", "pubsub#title": "Node f10c79dc-cea5-4a67-867a-8577c7d23bd2" } 2020-05-19 17:43:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-19 17:43:28 | [Mutex] waiting for: [received:nodes:e7c31e67-0326-4c14-a056-b711c4e65c1e:localhost] 2020-05-19 17:43:28 | [Mutex] received everything. 2020-05-19 17:43:28 | [Mutex] isItemNotified: received:node:e7c31e67-0326-4c14-a056-b711c4e65c1e:localhost:node-f10c79dc-cea5-4a67-867a-8577c7d23bd2:Node f10c79dc-cea5-4a67-867a-8577c7d23bd2 :: true |
deleteNodes | 1.019s |
2020-05-19 17:43:33 |
2020-05-19 17:43:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:33 | ------------------------------------ 2020-05-19 17:43:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f10c79dc-cea5-4a67-867a-8577c7d23bd2" } 2020-05-19 17:43:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-19 17:43:34 | [Mutex] waiting for: [received:nodes:10d45725-622f-4a46-8151-beb46db54722:localhost] 2020-05-19 17:43:34 | [Mutex] received everything. 2020-05-19 17:43:34 | [Mutex] isItemNotified: received:node:10d45725-622f-4a46-8151-beb46db54722:localhost:node-f10c79dc-cea5-4a67-867a-8577c7d23bd2:Node f10c79dc-cea5-4a67-867a-8577c7d23bd2 :: false |
deleteSubnodes | 1.023s |
2020-05-19 17:43:32 |
2020-05-19 17:43:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:32 | ------------------------------------ 2020-05-19 17:43:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4df5acda-989f-4374-a732-d57755be2915" } 2020-05-19 17:43:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-19 17:43:33 | [Mutex] waiting for: [received:nodes:7a421bd1-4e34-494d-8e84-ec2c06d557b0:localhost] 2020-05-19 17:43:33 | [Mutex] received everything. 2020-05-19 17:43:33 | [Mutex] isItemNotified: received:node:7a421bd1-4e34-494d-8e84-ec2c06d557b0:localhost:node-4df5acda-989f-4374-a732-d57755be2915:Node 4df5acda-989f-4374-a732-d57755be2915 :: false 2020-05-19 17:43:33 | [Mutex] waiting for: [received:nodes:bf469016-4ca4-4ee4-96b7-78ff6aa5153f:localhost] 2020-05-19 17:43:33 | [Mutex] received everything. 2020-05-19 17:43:33 | [Mutex] isItemNotified: received:node:bf469016-4ca4-4ee4-96b7-78ff6aa5153f:localhost:node-4df5acda-989f-4374-a732-d57755be2915:Node 4df5acda-989f-4374-a732-d57755be2915 :: false |
publishItemsToNodes | 0.041s |
2020-05-19 17:43:31 |
2020-05-19 17:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:31 | ------------------------------------ 2020-05-19 17:43:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4df5acda-989f-4374-a732-d57755be2915", "entry": "<test>item-d6b36795-54bb-408e-954e-43b7a6fb7e14</test>", "item-id": "item-d6b36795-54bb-408e-954e-43b7a6fb7e14" } 2020-05-19 17:43:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d6b36795-54bb-408e-954e-43b7a6fb7e14" } 2020-05-19 17:43:31 | [Mutex] waiting for: [published:item:notifieditem-d6b36795-54bb-408e-954e-43b7a6fb7e14:admin@localhost] 2020-05-19 17:43:31 | [Mutex] received everything. 2020-05-19 17:43:31 | [Mutex] isItemNotified: published:item:notifieditem-d6b36795-54bb-408e-954e-43b7a6fb7e14:admin@localhost :: true |
retractItemsFromNodes | 0.082s |
2020-05-19 17:43:31 |
2020-05-19 17:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:31 | ------------------------------------ 2020-05-19 17:43:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4df5acda-989f-4374-a732-d57755be2915", "item-id": "item-d6b36795-54bb-408e-954e-43b7a6fb7e14" } 2020-05-19 17:43:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d6b36795-54bb-408e-954e-43b7a6fb7e14" } 2020-05-19 17:43:31 | [Mutex] waiting for: [retracted:item:notifieditem-d6b36795-54bb-408e-954e-43b7a6fb7e14:admin@localhost] 2020-05-19 17:43:31 | [Mutex] received everything. 2020-05-19 17:43:31 | [Mutex] isItemNotified: retracted:item:notifieditem-d6b36795-54bb-408e-954e-43b7a6fb7e14:admin@localhost :: true |
retrieveItemsFromNodes | 0.083s |
2020-05-19 17:43:31 |
2020-05-19 17:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:31 | ------------------------------------ 2020-05-19 17:43:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4df5acda-989f-4374-a732-d57755be2915", "item-id": "item-d6b36795-54bb-408e-954e-43b7a6fb7e14" } 2020-05-19 17:43:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4df5acda-989f-4374-a732-d57755be2915", "item-id": "item-d6b36795-54bb-408e-954e-43b7a6fb7e14", "item": [ "<item id=\"item-d6b36795-54bb-408e-954e-43b7a6fb7e14\"><test>item-d6b36795-54bb-408e-954e-43b7a6fb7e14</test></item>" ] } 2020-05-19 17:43:31 | [Mutex] notify: [retrieved:item:item-d6b36795-54bb-408e-954e-43b7a6fb7e14:payload-matches:true:localhost] 2020-05-19 17:43:31 | [Mutex] received everything. 2020-05-19 17:43:31 | [Mutex] isItemNotified: retrieved:item:item-d6b36795-54bb-408e-954e-43b7a6fb7e14:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-05-19 17:43:31 |
2020-05-19 17:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:31 | ------------------------------------ 2020-05-19 17:43:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-05-19 17:43:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f10c79dc-cea5-4a67-867a-8577c7d23bd2", "node-4df5acda-989f-4374-a732-d57755be2915" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-05-19 17:43:31 |
2020-05-19 17:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:31 | ------------------------------------ 2020-05-19 17:43:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-4df5acda-989f-4374-a732-d57755be2915)" } 2020-05-19 17:43:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2020-05-19 17:43:30 |
2020-05-19 17:43:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:30 | ------------------------------------ 2020-05-19 17:43:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4df5acda-989f-4374-a732-d57755be2915", "jids": [ "admin@localhost" ] } 2020-05-19 17:43:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2020-05-19 17:43:31 |
2020-05-19 17:43:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-19 17:43:31 | ------------------------------------ 2020-05-19 17:43:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4df5acda-989f-4374-a732-d57755be2915", "jids": [ "admin@localhost" ] } 2020-05-19 17:43:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |