Test duration : 9.159s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.116s |
2020-09-29 22:37:37 |
2020-09-29 22:37:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:37 | ------------------------------------ 2020-09-29 22:37:37 | [Mutex] waiting for: [configured:node:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27] 2020-09-29 22:37:37 | [Mutex] received everything. 2020-09-29 22:37:37 | [Mutex] isItemNotified: configured:node:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27 :: true 2020-09-29 22:37:38 | [Mutex] waiting for: [received:nodes:24401a33-d731-476b-a39e-5195da2556af:localhost] 2020-09-29 22:37:38 | [Mutex] received everything. 2020-09-29 22:37:38 | [Mutex] isItemNotified: received:node:24401a33-d731-476b-a39e-5195da2556af:localhost:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:Node a341935d-f2d2-48c2-b1e8-204efc73e14a :: true 2020-09-29 22:37:38 | [Mutex] waiting for: [received:nodes:913405c9-b50a-4835-8395-ff58444028e0:localhost] 2020-09-29 22:37:38 | [Mutex] received everything. 2020-09-29 22:37:38 | [Mutex] isItemNotified: received:node:913405c9-b50a-4835-8395-ff58444028e0:localhost:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:Node a341935d-f2d2-48c2-b1e8-204efc73e14a :: false |
createNodes | 1.809s |
2020-09-29 22:37:34 |
2020-09-29 22:37:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:34 | ------------------------------------ 2020-09-29 22:37:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "pubsub#title": "Node a341935d-f2d2-48c2-b1e8-204efc73e14a" } 2020-09-29 22:37:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 22:37:36 | [Mutex] waiting for: [received:nodes:95f9af03-6a5c-4c2d-b213-8a0d092b6764:localhost] 2020-09-29 22:37:36 | [Mutex] received everything. 2020-09-29 22:37:36 | [Mutex] isItemNotified: received:node:95f9af03-6a5c-4c2d-b213-8a0d092b6764:localhost:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:Node a341935d-f2d2-48c2-b1e8-204efc73e14a :: true |
createSubnodes | 1.022s |
2020-09-29 22:37:36 |
2020-09-29 22:37:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:36 | ------------------------------------ 2020-09-29 22:37:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27", "pubsub#title": "Node 431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27" } 2020-09-29 22:37:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 22:37:37 | [Mutex] waiting for: [received:nodes:5a350438-8d3e-4f5d-8994-77ce5b3d88c8:localhost] 2020-09-29 22:37:37 | [Mutex] received everything. 2020-09-29 22:37:37 | [Mutex] isItemNotified: received:node:5a350438-8d3e-4f5d-8994-77ce5b3d88c8:localhost:node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27:Node 431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27 :: true |
deleteNodes | 1.021s |
2020-09-29 22:37:41 |
2020-09-29 22:37:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:41 | ------------------------------------ 2020-09-29 22:37:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27" } 2020-09-29 22:37:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 22:37:42 | [Mutex] waiting for: [received:nodes:8c8c3829-8c72-43fb-a729-ca81b3050ce5:localhost] 2020-09-29 22:37:42 | [Mutex] waiting for: [received:nodes:8c8c3829-8c72-43fb-a729-ca81b3050ce5:localhost] 2020-09-29 22:37:42 | [Mutex] received everything. 2020-09-29 22:37:42 | [Mutex] isItemNotified: received:node:8c8c3829-8c72-43fb-a729-ca81b3050ce5:localhost:node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27:Node 431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27 :: false |
deleteSubnodes | 1.025s |
2020-09-29 22:37:40 |
2020-09-29 22:37:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:40 | ------------------------------------ 2020-09-29 22:37:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a" } 2020-09-29 22:37:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-29 22:37:41 | [Mutex] waiting for: [received:nodes:579b21d9-f559-40e4-bda8-2ecf70269a79:localhost] 2020-09-29 22:37:41 | [Mutex] received everything. 2020-09-29 22:37:41 | [Mutex] isItemNotified: received:node:579b21d9-f559-40e4-bda8-2ecf70269a79:localhost:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:Node a341935d-f2d2-48c2-b1e8-204efc73e14a :: false 2020-09-29 22:37:41 | [Mutex] waiting for: [received:nodes:33bb2cdd-9d7a-427b-b8df-3612535f9983:localhost] 2020-09-29 22:37:41 | [Mutex] received everything. 2020-09-29 22:37:41 | [Mutex] isItemNotified: received:node:33bb2cdd-9d7a-427b-b8df-3612535f9983:localhost:node-a341935d-f2d2-48c2-b1e8-204efc73e14a:Node a341935d-f2d2-48c2-b1e8-204efc73e14a :: false |
publishItemsToNodes | 0.045s |
2020-09-29 22:37:39 |
2020-09-29 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:39 | ------------------------------------ 2020-09-29 22:37:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "entry": "<test>item-7f31324f-b803-4841-a1ee-842755fbda76</test>", "item-id": "item-7f31324f-b803-4841-a1ee-842755fbda76" } 2020-09-29 22:37:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7f31324f-b803-4841-a1ee-842755fbda76" } 2020-09-29 22:37:39 | [Mutex] waiting for: [published:item:notifieditem-7f31324f-b803-4841-a1ee-842755fbda76:admin@test-domain.com] 2020-09-29 22:37:39 | [Mutex] received everything. 2020-09-29 22:37:39 | [Mutex] isItemNotified: published:item:notifieditem-7f31324f-b803-4841-a1ee-842755fbda76:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2020-09-29 22:37:39 |
2020-09-29 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:39 | ------------------------------------ 2020-09-29 22:37:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "item-id": "item-7f31324f-b803-4841-a1ee-842755fbda76" } 2020-09-29 22:37:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7f31324f-b803-4841-a1ee-842755fbda76" } 2020-09-29 22:37:39 | [Mutex] received everything. 2020-09-29 22:37:39 | [Mutex] isItemNotified: retracted:item:notifieditem-7f31324f-b803-4841-a1ee-842755fbda76:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.074s |
2020-09-29 22:37:39 |
2020-09-29 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:39 | ------------------------------------ 2020-09-29 22:37:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "item-id": "item-7f31324f-b803-4841-a1ee-842755fbda76" } 2020-09-29 22:37:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "item-id": "item-7f31324f-b803-4841-a1ee-842755fbda76", "item": [ "<item id=\"item-7f31324f-b803-4841-a1ee-842755fbda76\"><test>item-7f31324f-b803-4841-a1ee-842755fbda76</test></item>" ] } 2020-09-29 22:37:39 | [Mutex] notify: [retrieved:item:item-7f31324f-b803-4841-a1ee-842755fbda76:payload-matches:true:localhost] 2020-09-29 22:37:39 | [Mutex] received everything. 2020-09-29 22:37:39 | [Mutex] isItemNotified: retrieved:item:item-7f31324f-b803-4841-a1ee-842755fbda76:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-29 22:37:39 |
2020-09-29 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:39 | ------------------------------------ 2020-09-29 22:37:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-29 22:37:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-431ed5cd-45c0-4d6d-abb7-7fdd22a5ee27", "test", "node-a341935d-f2d2-48c2-b1e8-204efc73e14a" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-29 22:37:39 |
2020-09-29 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:39 | ------------------------------------ 2020-09-29 22:37:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a341935d-f2d2-48c2-b1e8-204efc73e14a)" } 2020-09-29 22:37:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-29 22:37:38 |
2020-09-29 22:37:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:38 | ------------------------------------ 2020-09-29 22:37:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "jids": [ "admin@test-domain.com" ] } 2020-09-29 22:37:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2020-09-29 22:37:39 |
2020-09-29 22:37:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-29 22:37:39 | ------------------------------------ 2020-09-29 22:37:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a341935d-f2d2-48c2-b1e8-204efc73e14a", "jids": [ "admin@test-domain.com" ] } 2020-09-29 22:37:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |