Test duration : 9.004s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.077s |
2020-09-09 22:44:08 |
2020-09-09 22:44:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:08 | ------------------------------------ 2020-09-09 22:44:08 | [Mutex] waiting for: [configured:node:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32] 2020-09-09 22:44:08 | [Mutex] received everything. 2020-09-09 22:44:08 | [Mutex] isItemNotified: configured:node:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32 :: true 2020-09-09 22:44:09 | [Mutex] waiting for: [received:nodes:11a3e085-c997-45c0-b32d-13e9b57f16ea:localhost] 2020-09-09 22:44:09 | [Mutex] received everything. 2020-09-09 22:44:09 | [Mutex] isItemNotified: received:node:11a3e085-c997-45c0-b32d-13e9b57f16ea:localhost:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:Node 9c17ec9d-482f-48ed-b7cc-166ea03caa5b :: true 2020-09-09 22:44:09 | [Mutex] waiting for: [received:nodes:6fdb46a9-37ee-4238-be60-0ff69fae027d:localhost] 2020-09-09 22:44:09 | [Mutex] received everything. 2020-09-09 22:44:09 | [Mutex] isItemNotified: received:node:6fdb46a9-37ee-4238-be60-0ff69fae027d:localhost:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:Node 9c17ec9d-482f-48ed-b7cc-166ea03caa5b :: false |
createNodes | 1.694s |
2020-09-09 22:44:05 |
2020-09-09 22:44:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:05 | ------------------------------------ 2020-09-09 22:44:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "pubsub#title": "Node 9c17ec9d-482f-48ed-b7cc-166ea03caa5b" } 2020-09-09 22:44:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 22:44:07 | [Mutex] waiting for: [received:nodes:de7d0b23-e4f8-479c-a161-8676ede61a96:localhost] 2020-09-09 22:44:07 | [Mutex] waiting for: [received:nodes:de7d0b23-e4f8-479c-a161-8676ede61a96:localhost] 2020-09-09 22:44:07 | [Mutex] received everything. 2020-09-09 22:44:07 | [Mutex] isItemNotified: received:node:de7d0b23-e4f8-479c-a161-8676ede61a96:localhost:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:Node 9c17ec9d-482f-48ed-b7cc-166ea03caa5b :: true |
createSubnodes | 1.027s |
2020-09-09 22:44:07 |
2020-09-09 22:44:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:07 | ------------------------------------ 2020-09-09 22:44:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32", "pubsub#title": "Node 68e96e09-2b1f-44c1-a37d-5ae0afeaeb32" } 2020-09-09 22:44:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 22:44:08 | [Mutex] waiting for: [received:nodes:4010d781-41b6-4f5c-809f-ba0a48fa91d1:localhost] 2020-09-09 22:44:08 | [Mutex] received everything. 2020-09-09 22:44:08 | [Mutex] isItemNotified: received:node:4010d781-41b6-4f5c-809f-ba0a48fa91d1:localhost:node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32:Node 68e96e09-2b1f-44c1-a37d-5ae0afeaeb32 :: true |
deleteNodes | 1.022s |
2020-09-09 22:44:13 |
2020-09-09 22:44:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:13 | ------------------------------------ 2020-09-09 22:44:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32" } 2020-09-09 22:44:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 22:44:14 | [Mutex] waiting for: [received:nodes:51b6720c-8921-45fc-83d6-367e1c5acf28:localhost] 2020-09-09 22:44:14 | [Mutex] received everything. 2020-09-09 22:44:14 | [Mutex] isItemNotified: received:node:51b6720c-8921-45fc-83d6-367e1c5acf28:localhost:node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32:Node 68e96e09-2b1f-44c1-a37d-5ae0afeaeb32 :: false |
deleteSubnodes | 1.045s |
2020-09-09 22:44:12 |
2020-09-09 22:44:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:12 | ------------------------------------ 2020-09-09 22:44:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b" } 2020-09-09 22:44:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-09 22:44:13 | [Mutex] waiting for: [received:nodes:518d333e-fcc6-4591-b8c2-f8a280a12661:localhost] 2020-09-09 22:44:13 | [Mutex] waiting for: [received:nodes:518d333e-fcc6-4591-b8c2-f8a280a12661:localhost] 2020-09-09 22:44:13 | [Mutex] received everything. 2020-09-09 22:44:13 | [Mutex] isItemNotified: received:node:518d333e-fcc6-4591-b8c2-f8a280a12661:localhost:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:Node 9c17ec9d-482f-48ed-b7cc-166ea03caa5b :: false 2020-09-09 22:44:13 | [Mutex] waiting for: [received:nodes:824faaa8-c9c5-4c97-b5b1-398ac7495fed:localhost] 2020-09-09 22:44:13 | [Mutex] received everything. 2020-09-09 22:44:13 | [Mutex] isItemNotified: received:node:824faaa8-c9c5-4c97-b5b1-398ac7495fed:localhost:node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b:Node 9c17ec9d-482f-48ed-b7cc-166ea03caa5b :: false |
publishItemsToNodes | 0.040s |
2020-09-09 22:44:10 |
2020-09-09 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:10 | ------------------------------------ 2020-09-09 22:44:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "entry": "<test>item-02eca3fc-c147-40ee-bc6c-4ad1cc785535</test>", "item-id": "item-02eca3fc-c147-40ee-bc6c-4ad1cc785535" } 2020-09-09 22:44:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-02eca3fc-c147-40ee-bc6c-4ad1cc785535" } 2020-09-09 22:44:10 | [Mutex] waiting for: [published:item:notifieditem-02eca3fc-c147-40ee-bc6c-4ad1cc785535:admin@test-domain.com] 2020-09-09 22:44:10 | [Mutex] received everything. 2020-09-09 22:44:10 | [Mutex] isItemNotified: published:item:notifieditem-02eca3fc-c147-40ee-bc6c-4ad1cc785535:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-09-09 22:44:10 |
2020-09-09 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:10 | ------------------------------------ 2020-09-09 22:44:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "item-id": "item-02eca3fc-c147-40ee-bc6c-4ad1cc785535" } 2020-09-09 22:44:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-02eca3fc-c147-40ee-bc6c-4ad1cc785535" } 2020-09-09 22:44:11 | [Mutex] received everything. 2020-09-09 22:44:11 | [Mutex] isItemNotified: retracted:item:notifieditem-02eca3fc-c147-40ee-bc6c-4ad1cc785535:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2020-09-09 22:44:10 |
2020-09-09 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:10 | ------------------------------------ 2020-09-09 22:44:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "item-id": "item-02eca3fc-c147-40ee-bc6c-4ad1cc785535" } 2020-09-09 22:44:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "item-id": "item-02eca3fc-c147-40ee-bc6c-4ad1cc785535", "item": [ "<item id=\"item-02eca3fc-c147-40ee-bc6c-4ad1cc785535\"><test>item-02eca3fc-c147-40ee-bc6c-4ad1cc785535</test></item>" ] } 2020-09-09 22:44:10 | [Mutex] notify: [retrieved:item:item-02eca3fc-c147-40ee-bc6c-4ad1cc785535:payload-matches:true:localhost] 2020-09-09 22:44:10 | [Mutex] received everything. 2020-09-09 22:44:10 | [Mutex] isItemNotified: retrieved:item:item-02eca3fc-c147-40ee-bc6c-4ad1cc785535:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-09-09 22:44:10 |
2020-09-09 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:10 | ------------------------------------ 2020-09-09 22:44:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-09 22:44:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-68e96e09-2b1f-44c1-a37d-5ae0afeaeb32", "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-09 22:44:10 |
2020-09-09 22:44:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:10 | ------------------------------------ 2020-09-09 22:44:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b)" } 2020-09-09 22:44:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-09 22:44:09 |
2020-09-09 22:44:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:09 | ------------------------------------ 2020-09-09 22:44:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "jids": [ "admin@test-domain.com" ] } 2020-09-09 22:44:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-09 22:44:11 |
2020-09-09 22:44:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-09 22:44:11 | ------------------------------------ 2020-09-09 22:44:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9c17ec9d-482f-48ed-b7cc-166ea03caa5b", "jids": [ "admin@test-domain.com" ] } 2020-09-09 22:44:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |