Test duration : 8.755s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2022-05-24 09:45:30 |
2022-05-24 09:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:30 | ------------------------------------ 2022-05-24 09:45:30 | [Mutex] waiting for: [configured:node:node-d4223130-e2db-4995-a367-f144dd32d06d:node-e58ced85-dd9f-4ed2-af90-47e2da233efb] 2022-05-24 09:45:31 | [Mutex] received everything. 2022-05-24 09:45:31 | [Mutex] isItemNotified: configured:node:node-d4223130-e2db-4995-a367-f144dd32d06d:node-e58ced85-dd9f-4ed2-af90-47e2da233efb :: true 2022-05-24 09:45:32 | [Mutex] waiting for: [received:nodes:56cc9226-1f17-43a8-abc1-060aed242a0b:localhost] 2022-05-24 09:45:32 | [Mutex] received everything. 2022-05-24 09:45:32 | [Mutex] isItemNotified: received:node:56cc9226-1f17-43a8-abc1-060aed242a0b:localhost:node-d4223130-e2db-4995-a367-f144dd32d06d:Node d4223130-e2db-4995-a367-f144dd32d06d :: true 2022-05-24 09:45:32 | [Mutex] waiting for: [received:nodes:1dae02b7-7ead-4309-b71e-c6882504e1d2:localhost] 2022-05-24 09:45:32 | [Mutex] waiting for: [received:nodes:1dae02b7-7ead-4309-b71e-c6882504e1d2:localhost] 2022-05-24 09:45:32 | [Mutex] received everything. 2022-05-24 09:45:32 | [Mutex] isItemNotified: received:node:1dae02b7-7ead-4309-b71e-c6882504e1d2:localhost:node-d4223130-e2db-4995-a367-f144dd32d06d:Node d4223130-e2db-4995-a367-f144dd32d06d :: false |
createNodes | 1.582s |
2022-05-24 09:45:28 |
2022-05-24 09:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:28 | ------------------------------------ 2022-05-24 09:45:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "pubsub#title": "Node d4223130-e2db-4995-a367-f144dd32d06d" } 2022-05-24 09:45:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 09:45:29 | [Mutex] waiting for: [received:nodes:5f06fd14-728d-4cc7-b395-4355fc0ab73d:localhost] 2022-05-24 09:45:29 | [Mutex] received everything. 2022-05-24 09:45:29 | [Mutex] isItemNotified: received:node:5f06fd14-728d-4cc7-b395-4355fc0ab73d:localhost:node-d4223130-e2db-4995-a367-f144dd32d06d:Node d4223130-e2db-4995-a367-f144dd32d06d :: true |
createSubnodes | 1.034s |
2022-05-24 09:45:29 |
2022-05-24 09:45:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:29 | ------------------------------------ 2022-05-24 09:45:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e58ced85-dd9f-4ed2-af90-47e2da233efb", "pubsub#title": "Node e58ced85-dd9f-4ed2-af90-47e2da233efb" } 2022-05-24 09:45:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 09:45:30 | [Mutex] waiting for: [received:nodes:863e8ac0-94a0-4dc6-9fb5-f1bd83a3c0e3:localhost] 2022-05-24 09:45:30 | [Mutex] received everything. 2022-05-24 09:45:30 | [Mutex] isItemNotified: received:node:863e8ac0-94a0-4dc6-9fb5-f1bd83a3c0e3:localhost:node-e58ced85-dd9f-4ed2-af90-47e2da233efb:Node e58ced85-dd9f-4ed2-af90-47e2da233efb :: true |
deleteNodes | 1.082s |
2022-05-24 09:45:35 |
2022-05-24 09:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:35 | ------------------------------------ 2022-05-24 09:45:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e58ced85-dd9f-4ed2-af90-47e2da233efb" } 2022-05-24 09:45:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 09:45:36 | [Mutex] waiting for: [received:nodes:830f3244-150b-474c-86d9-6f31cb0297d6:localhost] 2022-05-24 09:45:36 | [Mutex] waiting for: [received:nodes:830f3244-150b-474c-86d9-6f31cb0297d6:localhost] 2022-05-24 09:45:36 | [Mutex] received everything. 2022-05-24 09:45:36 | [Mutex] isItemNotified: received:node:830f3244-150b-474c-86d9-6f31cb0297d6:localhost:node-e58ced85-dd9f-4ed2-af90-47e2da233efb:Node e58ced85-dd9f-4ed2-af90-47e2da233efb :: false |
deleteSubnodes | 1.030s |
2022-05-24 09:45:34 |
2022-05-24 09:45:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:34 | ------------------------------------ 2022-05-24 09:45:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d4223130-e2db-4995-a367-f144dd32d06d" } 2022-05-24 09:45:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-24 09:45:35 | [Mutex] waiting for: [received:nodes:39c59c82-5991-4eea-a2f4-9ac77acb4df9:localhost] 2022-05-24 09:45:35 | [Mutex] waiting for: [received:nodes:39c59c82-5991-4eea-a2f4-9ac77acb4df9:localhost] 2022-05-24 09:45:35 | [Mutex] received everything. 2022-05-24 09:45:35 | [Mutex] isItemNotified: received:node:39c59c82-5991-4eea-a2f4-9ac77acb4df9:localhost:node-d4223130-e2db-4995-a367-f144dd32d06d:Node d4223130-e2db-4995-a367-f144dd32d06d :: false 2022-05-24 09:45:35 | [Mutex] waiting for: [received:nodes:f415f2eb-d81e-4c57-8aba-dc789e8ae06d:localhost] 2022-05-24 09:45:35 | [Mutex] received everything. 2022-05-24 09:45:35 | [Mutex] isItemNotified: received:node:f415f2eb-d81e-4c57-8aba-dc789e8ae06d:localhost:node-d4223130-e2db-4995-a367-f144dd32d06d:Node d4223130-e2db-4995-a367-f144dd32d06d :: false |
publishItemsToNodes | 0.060s |
2022-05-24 09:45:33 |
2022-05-24 09:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:33 | ------------------------------------ 2022-05-24 09:45:33 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "entry": "<test>item-4c7e0624-4558-4434-9b6f-23072556deca</test>", "item-id": "item-4c7e0624-4558-4434-9b6f-23072556deca" } 2022-05-24 09:45:33 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4c7e0624-4558-4434-9b6f-23072556deca" } 2022-05-24 09:45:33 | [Mutex] received everything. 2022-05-24 09:45:33 | [Mutex] isItemNotified: published:item:notifieditem-4c7e0624-4558-4434-9b6f-23072556deca:admin@test-domain.com :: true |
retractItemsFromNodes | 0.062s |
2022-05-24 09:45:33 |
2022-05-24 09:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:33 | ------------------------------------ 2022-05-24 09:45:33 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "item-id": "item-4c7e0624-4558-4434-9b6f-23072556deca" } 2022-05-24 09:45:33 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4c7e0624-4558-4434-9b6f-23072556deca" } 2022-05-24 09:45:33 | [Mutex] received everything. 2022-05-24 09:45:33 | [Mutex] isItemNotified: retracted:item:notifieditem-4c7e0624-4558-4434-9b6f-23072556deca:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2022-05-24 09:45:33 |
2022-05-24 09:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:33 | ------------------------------------ 2022-05-24 09:45:33 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "item-id": "item-4c7e0624-4558-4434-9b6f-23072556deca" } 2022-05-24 09:45:33 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "item-id": "item-4c7e0624-4558-4434-9b6f-23072556deca", "item": [ "<item id=\"item-4c7e0624-4558-4434-9b6f-23072556deca\"><test>item-4c7e0624-4558-4434-9b6f-23072556deca</test></item>" ] } 2022-05-24 09:45:33 | [Mutex] notify: [retrieved:item:item-4c7e0624-4558-4434-9b6f-23072556deca:payload-matches:true:localhost] 2022-05-24 09:45:33 | [Mutex] received everything. 2022-05-24 09:45:33 | [Mutex] isItemNotified: retrieved:item:item-4c7e0624-4558-4434-9b6f-23072556deca:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-05-24 09:45:33 |
2022-05-24 09:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:33 | ------------------------------------ 2022-05-24 09:45:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-24 09:45:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d4223130-e2db-4995-a367-f144dd32d06d", "node-e58ced85-dd9f-4ed2-af90-47e2da233efb" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-05-24 09:45:33 |
2022-05-24 09:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:33 | ------------------------------------ 2022-05-24 09:45:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d4223130-e2db-4995-a367-f144dd32d06d)" } 2022-05-24 09:45:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-05-24 09:45:32 |
2022-05-24 09:45:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:32 | ------------------------------------ 2022-05-24 09:45:32 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "jids": [ "admin@test-domain.com" ] } 2022-05-24 09:45:32 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2022-05-24 09:45:33 |
2022-05-24 09:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-24 09:45:33 | ------------------------------------ 2022-05-24 09:45:33 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d4223130-e2db-4995-a367-f144dd32d06d", "jids": [ "admin@test-domain.com" ] } 2022-05-24 09:45:33 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |