Test duration : 9.043s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2021-04-25 22:56:50 |
2021-04-25 22:56:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:50 | ------------------------------------ 2021-04-25 22:56:50 | [Mutex] waiting for: [configured:node:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:node-c0b34ca0-a986-4980-95d3-453e3cdd92f9] 2021-04-25 22:56:50 | [Mutex] received everything. 2021-04-25 22:56:50 | [Mutex] isItemNotified: configured:node:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:node-c0b34ca0-a986-4980-95d3-453e3cdd92f9 :: true 2021-04-25 22:56:51 | [Mutex] waiting for: [received:nodes:fda4efae-6434-4b0c-8d9d-36c3ba1ac72e:localhost] 2021-04-25 22:56:51 | [Mutex] received everything. 2021-04-25 22:56:51 | [Mutex] isItemNotified: received:node:fda4efae-6434-4b0c-8d9d-36c3ba1ac72e:localhost:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:Node 50e0c3c2-0f15-4f95-9020-26cc5218d57e :: true 2021-04-25 22:56:51 | [Mutex] waiting for: [received:nodes:a33cfee9-9e31-4872-b366-873ad538c8d4:localhost] 2021-04-25 22:56:51 | [Mutex] waiting for: [received:nodes:a33cfee9-9e31-4872-b366-873ad538c8d4:localhost] 2021-04-25 22:56:51 | [Mutex] received everything. 2021-04-25 22:56:51 | [Mutex] isItemNotified: received:node:a33cfee9-9e31-4872-b366-873ad538c8d4:localhost:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:Node 50e0c3c2-0f15-4f95-9020-26cc5218d57e :: false |
createNodes | 1.567s |
2021-04-25 22:56:48 |
2021-04-25 22:56:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:48 | ------------------------------------ 2021-04-25 22:56:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "pubsub#title": "Node 50e0c3c2-0f15-4f95-9020-26cc5218d57e" } 2021-04-25 22:56:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:56:49 | [Mutex] waiting for: [received:nodes:0851eb24-911b-4884-a977-3d895e6541d6:localhost] 2021-04-25 22:56:49 | [Mutex] received everything. 2021-04-25 22:56:49 | [Mutex] isItemNotified: received:node:0851eb24-911b-4884-a977-3d895e6541d6:localhost:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:Node 50e0c3c2-0f15-4f95-9020-26cc5218d57e :: true |
createSubnodes | 1.029s |
2021-04-25 22:56:49 |
2021-04-25 22:56:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:49 | ------------------------------------ 2021-04-25 22:56:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c0b34ca0-a986-4980-95d3-453e3cdd92f9", "pubsub#title": "Node c0b34ca0-a986-4980-95d3-453e3cdd92f9" } 2021-04-25 22:56:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:56:50 | [Mutex] waiting for: [received:nodes:1e352794-6ce8-490d-9009-9b37aa220b55:localhost] 2021-04-25 22:56:50 | [Mutex] waiting for: [received:nodes:1e352794-6ce8-490d-9009-9b37aa220b55:localhost] 2021-04-25 22:56:50 | [Mutex] received everything. 2021-04-25 22:56:50 | [Mutex] isItemNotified: received:node:1e352794-6ce8-490d-9009-9b37aa220b55:localhost:node-c0b34ca0-a986-4980-95d3-453e3cdd92f9:Node c0b34ca0-a986-4980-95d3-453e3cdd92f9 :: true |
deleteNodes | 1.024s |
2021-04-25 22:56:55 |
2021-04-25 22:56:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:55 | ------------------------------------ 2021-04-25 22:56:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c0b34ca0-a986-4980-95d3-453e3cdd92f9" } 2021-04-25 22:56:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:56:56 | [Mutex] waiting for: [received:nodes:bfdffb3b-000b-49da-8ef7-093ef8548ec9:localhost] 2021-04-25 22:56:56 | [Mutex] received everything. 2021-04-25 22:56:56 | [Mutex] isItemNotified: received:node:bfdffb3b-000b-49da-8ef7-093ef8548ec9:localhost:node-c0b34ca0-a986-4980-95d3-453e3cdd92f9:Node c0b34ca0-a986-4980-95d3-453e3cdd92f9 :: false |
deleteSubnodes | 1.025s |
2021-04-25 22:56:54 |
2021-04-25 22:56:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:54 | ------------------------------------ 2021-04-25 22:56:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e" } 2021-04-25 22:56:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-25 22:56:55 | [Mutex] waiting for: [received:nodes:b0c6ce20-daca-4219-a69f-b77d2dadd80d:localhost] 2021-04-25 22:56:55 | [Mutex] waiting for: [received:nodes:b0c6ce20-daca-4219-a69f-b77d2dadd80d:localhost] 2021-04-25 22:56:55 | [Mutex] waiting for: [received:nodes:b0c6ce20-daca-4219-a69f-b77d2dadd80d:localhost] 2021-04-25 22:56:55 | [Mutex] received everything. 2021-04-25 22:56:55 | [Mutex] isItemNotified: received:node:b0c6ce20-daca-4219-a69f-b77d2dadd80d:localhost:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:Node 50e0c3c2-0f15-4f95-9020-26cc5218d57e :: false 2021-04-25 22:56:55 | [Mutex] waiting for: [received:nodes:34863942-6bd6-4047-bdb2-57dfc7fb5c12:localhost] 2021-04-25 22:56:55 | [Mutex] received everything. 2021-04-25 22:56:55 | [Mutex] isItemNotified: received:node:34863942-6bd6-4047-bdb2-57dfc7fb5c12:localhost:node-50e0c3c2-0f15-4f95-9020-26cc5218d57e:Node 50e0c3c2-0f15-4f95-9020-26cc5218d57e :: false |
publishItemsToNodes | 0.059s |
2021-04-25 22:56:53 |
2021-04-25 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:53 | ------------------------------------ 2021-04-25 22:56:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "entry": "<test>item-3bc6f254-4457-44a3-acd0-ed30299cad5b</test>", "item-id": "item-3bc6f254-4457-44a3-acd0-ed30299cad5b" } 2021-04-25 22:56:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3bc6f254-4457-44a3-acd0-ed30299cad5b" } 2021-04-25 22:56:53 | [Mutex] waiting for: [published:item:notifieditem-3bc6f254-4457-44a3-acd0-ed30299cad5b:admin@test-domain.com] 2021-04-25 22:56:53 | [Mutex] received everything. 2021-04-25 22:56:53 | [Mutex] isItemNotified: published:item:notifieditem-3bc6f254-4457-44a3-acd0-ed30299cad5b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.058s |
2021-04-25 22:56:53 |
2021-04-25 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:53 | ------------------------------------ 2021-04-25 22:56:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "item-id": "item-3bc6f254-4457-44a3-acd0-ed30299cad5b" } 2021-04-25 22:56:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3bc6f254-4457-44a3-acd0-ed30299cad5b" } 2021-04-25 22:56:53 | [Mutex] received everything. 2021-04-25 22:56:53 | [Mutex] isItemNotified: retracted:item:notifieditem-3bc6f254-4457-44a3-acd0-ed30299cad5b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.177s |
2021-04-25 22:56:53 |
2021-04-25 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:53 | ------------------------------------ 2021-04-25 22:56:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "item-id": "item-3bc6f254-4457-44a3-acd0-ed30299cad5b" } 2021-04-25 22:56:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "item-id": "item-3bc6f254-4457-44a3-acd0-ed30299cad5b", "item": [ "<item id=\"item-3bc6f254-4457-44a3-acd0-ed30299cad5b\"><test>item-3bc6f254-4457-44a3-acd0-ed30299cad5b</test></item>" ] } 2021-04-25 22:56:53 | [Mutex] notify: [retrieved:item:item-3bc6f254-4457-44a3-acd0-ed30299cad5b:payload-matches:true:localhost] 2021-04-25 22:56:53 | [Mutex] received everything. 2021-04-25 22:56:53 | [Mutex] isItemNotified: retrieved:item:item-3bc6f254-4457-44a3-acd0-ed30299cad5b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-04-25 22:56:53 |
2021-04-25 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:53 | ------------------------------------ 2021-04-25 22:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-25 22:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "node-c0b34ca0-a986-4980-95d3-453e3cdd92f9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-04-25 22:56:53 |
2021-04-25 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:53 | ------------------------------------ 2021-04-25 22:56:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-50e0c3c2-0f15-4f95-9020-26cc5218d57e)" } 2021-04-25 22:56:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2021-04-25 22:56:51 |
2021-04-25 22:56:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:51 | ------------------------------------ 2021-04-25 22:56:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "jids": [ "admin@test-domain.com" ] } 2021-04-25 22:56:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2021-04-25 22:56:53 |
2021-04-25 22:56:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-25 22:56:53 | ------------------------------------ 2021-04-25 22:56:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-50e0c3c2-0f15-4f95-9020-26cc5218d57e", "jids": [ "admin@test-domain.com" ] } 2021-04-25 22:56:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |