Test duration: 8.954s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2019-11-22 19:14:09 |
2019-11-22 19:14:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:09 | ------------------------------------ 2019-11-22 19:14:09 | [Mutex] waiting for: [configured:node:node-69e66936-0bab-4361-847c-7cead5227283:node-8a9e7b46-a85d-4c46-ab5c-f480260167e7] 2019-11-22 19:14:09 | [Mutex] received everything. 2019-11-22 19:14:09 | [Mutex] isItemNotified: configured:node:node-69e66936-0bab-4361-847c-7cead5227283:node-8a9e7b46-a85d-4c46-ab5c-f480260167e7 :: true 2019-11-22 19:14:10 | [Mutex] waiting for: [received:nodes:034cdb15-cb9a-4e33-a1dd-4841e17c98d9:localhost] 2019-11-22 19:14:10 | [Mutex] received everything. 2019-11-22 19:14:10 | [Mutex] isItemNotified: received:node:034cdb15-cb9a-4e33-a1dd-4841e17c98d9:localhost:node-69e66936-0bab-4361-847c-7cead5227283:Node 69e66936-0bab-4361-847c-7cead5227283 :: true 2019-11-22 19:14:10 | [Mutex] waiting for: [received:nodes:97c19739-8efb-49d4-8062-c506774a5eb8:localhost] 2019-11-22 19:14:10 | [Mutex] received everything. 2019-11-22 19:14:10 | [Mutex] isItemNotified: received:node:97c19739-8efb-49d4-8062-c506774a5eb8:localhost:node-69e66936-0bab-4361-847c-7cead5227283:Node 69e66936-0bab-4361-847c-7cead5227283 :: false |
createNodes | 1.723s |
2019-11-22 19:14:06 |
2019-11-22 19:14:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:06 | ------------------------------------ 2019-11-22 19:14:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-69e66936-0bab-4361-847c-7cead5227283", "pubsub#title": "Node 69e66936-0bab-4361-847c-7cead5227283" } 2019-11-22 19:14:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 19:14:08 | [Mutex] waiting for: [received:nodes:59614c33-d762-418f-a97a-ffbced37c9a0:localhost] 2019-11-22 19:14:08 | [Mutex] waiting for: [received:nodes:59614c33-d762-418f-a97a-ffbced37c9a0:localhost] 2019-11-22 19:14:08 | [Mutex] received everything. 2019-11-22 19:14:08 | [Mutex] isItemNotified: received:node:59614c33-d762-418f-a97a-ffbced37c9a0:localhost:node-69e66936-0bab-4361-847c-7cead5227283:Node 69e66936-0bab-4361-847c-7cead5227283 :: true |
createSubnodes | 1.024s |
2019-11-22 19:14:08 |
2019-11-22 19:14:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:08 | ------------------------------------ 2019-11-22 19:14:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-8a9e7b46-a85d-4c46-ab5c-f480260167e7", "pubsub#title": "Node 8a9e7b46-a85d-4c46-ab5c-f480260167e7" } 2019-11-22 19:14:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 19:14:09 | [Mutex] waiting for: [received:nodes:10eedf0e-ae9b-4b0f-800e-08dcebbc43c8:localhost] 2019-11-22 19:14:09 | [Mutex] received everything. 2019-11-22 19:14:09 | [Mutex] isItemNotified: received:node:10eedf0e-ae9b-4b0f-800e-08dcebbc43c8:localhost:node-8a9e7b46-a85d-4c46-ab5c-f480260167e7:Node 8a9e7b46-a85d-4c46-ab5c-f480260167e7 :: true |
deleteNodes | 1.020s |
2019-11-22 19:14:13 |
2019-11-22 19:14:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:13 | ------------------------------------ 2019-11-22 19:14:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8a9e7b46-a85d-4c46-ab5c-f480260167e7" } 2019-11-22 19:14:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 19:14:14 | [Mutex] waiting for: [received:nodes:867141e9-5a02-4ebb-b611-2a5b7872185c:localhost] 2019-11-22 19:14:14 | [Mutex] received everything. 2019-11-22 19:14:14 | [Mutex] isItemNotified: received:node:867141e9-5a02-4ebb-b611-2a5b7872185c:localhost:node-8a9e7b46-a85d-4c46-ab5c-f480260167e7:Node 8a9e7b46-a85d-4c46-ab5c-f480260167e7 :: false |
deleteSubnodes | 1.029s |
2019-11-22 19:14:12 |
2019-11-22 19:14:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:12 | ------------------------------------ 2019-11-22 19:14:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-69e66936-0bab-4361-847c-7cead5227283" } 2019-11-22 19:14:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-22 19:14:13 | [Mutex] waiting for: [received:nodes:66878ea8-95f0-48c3-8368-c095e9047c46:localhost] 2019-11-22 19:14:13 | [Mutex] waiting for: [received:nodes:66878ea8-95f0-48c3-8368-c095e9047c46:localhost] 2019-11-22 19:14:13 | [Mutex] received everything. 2019-11-22 19:14:13 | [Mutex] isItemNotified: received:node:66878ea8-95f0-48c3-8368-c095e9047c46:localhost:node-69e66936-0bab-4361-847c-7cead5227283:Node 69e66936-0bab-4361-847c-7cead5227283 :: false 2019-11-22 19:14:13 | [Mutex] waiting for: [received:nodes:c43160aa-903e-4a21-9646-7bae940dc24c:localhost] 2019-11-22 19:14:13 | [Mutex] received everything. 2019-11-22 19:14:13 | [Mutex] isItemNotified: received:node:c43160aa-903e-4a21-9646-7bae940dc24c:localhost:node-69e66936-0bab-4361-847c-7cead5227283:Node 69e66936-0bab-4361-847c-7cead5227283 :: false |
publishItemsToNodes | 0.050s |
2019-11-22 19:14:11 |
2019-11-22 19:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:11 | ------------------------------------ 2019-11-22 19:14:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-69e66936-0bab-4361-847c-7cead5227283", "entry": "<test>item-182761bf-3554-4918-bfc4-81de133ac0dc</test>", "item-id": "item-182761bf-3554-4918-bfc4-81de133ac0dc" } 2019-11-22 19:14:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-182761bf-3554-4918-bfc4-81de133ac0dc" } 2019-11-22 19:14:11 | [Mutex] waiting for: [published:item:notifieditem-182761bf-3554-4918-bfc4-81de133ac0dc:admin@localhost] 2019-11-22 19:14:11 | [Mutex] received everything. 2019-11-22 19:14:11 | [Mutex] isItemNotified: published:item:notifieditem-182761bf-3554-4918-bfc4-81de133ac0dc:admin@localhost :: true |
retractItemsFromNodes | 0.051s |
2019-11-22 19:14:11 |
2019-11-22 19:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:11 | ------------------------------------ 2019-11-22 19:14:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-69e66936-0bab-4361-847c-7cead5227283", "item-id": "item-182761bf-3554-4918-bfc4-81de133ac0dc" } 2019-11-22 19:14:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-182761bf-3554-4918-bfc4-81de133ac0dc" } 2019-11-22 19:14:11 | [Mutex] received everything. 2019-11-22 19:14:11 | [Mutex] isItemNotified: retracted:item:notifieditem-182761bf-3554-4918-bfc4-81de133ac0dc:admin@localhost :: true |
retrieveItemsFromNodes | 0.021s |
2019-11-22 19:14:11 |
2019-11-22 19:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:11 | ------------------------------------ 2019-11-22 19:14:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-69e66936-0bab-4361-847c-7cead5227283", "item-id": "item-182761bf-3554-4918-bfc4-81de133ac0dc" } 2019-11-22 19:14:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-69e66936-0bab-4361-847c-7cead5227283", "item-id": "item-182761bf-3554-4918-bfc4-81de133ac0dc", "item": [ "<item id=\"item-182761bf-3554-4918-bfc4-81de133ac0dc\"><test>item-182761bf-3554-4918-bfc4-81de133ac0dc</test></item>" ] } 2019-11-22 19:14:11 | [Mutex] notify: [retrieved:item:item-182761bf-3554-4918-bfc4-81de133ac0dc:payload-matches:true:localhost] 2019-11-22 19:14:11 | [Mutex] received everything. 2019-11-22 19:14:11 | [Mutex] isItemNotified: retrieved:item:item-182761bf-3554-4918-bfc4-81de133ac0dc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2019-11-22 19:14:11 |
2019-11-22 19:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:11 | ------------------------------------ 2019-11-22 19:14:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-22 19:14:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-8a9e7b46-a85d-4c46-ab5c-f480260167e7", "node-69e66936-0bab-4361-847c-7cead5227283" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-22 19:14:11 |
2019-11-22 19:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:11 | ------------------------------------ 2019-11-22 19:14:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-69e66936-0bab-4361-847c-7cead5227283)" } 2019-11-22 19:14:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2019-11-22 19:14:10 |
2019-11-22 19:14:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:10 | ------------------------------------ 2019-11-22 19:14:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-69e66936-0bab-4361-847c-7cead5227283", "jids": [ "admin@localhost" ] } 2019-11-22 19:14:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2019-11-22 19:14:11 |
2019-11-22 19:14:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-22 19:14:11 | ------------------------------------ 2019-11-22 19:14:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-69e66936-0bab-4361-847c-7cead5227283", "jids": [ "admin@localhost" ] } 2019-11-22 19:14:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |