Test duration : 8.662s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.084s |
2022-05-10 22:37:03 |
2022-05-10 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:03 | ------------------------------------ 2022-05-10 22:37:03 | [Mutex] waiting for: [configured:node:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf] 2022-05-10 22:37:03 | [Mutex] received everything. 2022-05-10 22:37:03 | [Mutex] isItemNotified: configured:node:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf :: true 2022-05-10 22:37:04 | [Mutex] waiting for: [received:nodes:89f8508c-1630-4b39-945c-da3f1343e7a4:localhost] 2022-05-10 22:37:04 | [Mutex] received everything. 2022-05-10 22:37:04 | [Mutex] isItemNotified: received:node:89f8508c-1630-4b39-945c-da3f1343e7a4:localhost:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:Node 897c137b-d990-4d69-a9f2-fc9dc095e05e :: true 2022-05-10 22:37:04 | [Mutex] waiting for: [received:nodes:ce6611bc-7c64-4bab-9ae9-13339985d851:localhost] 2022-05-10 22:37:04 | [Mutex] waiting for: [received:nodes:ce6611bc-7c64-4bab-9ae9-13339985d851:localhost] 2022-05-10 22:37:04 | [Mutex] received everything. 2022-05-10 22:37:04 | [Mutex] isItemNotified: received:node:ce6611bc-7c64-4bab-9ae9-13339985d851:localhost:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:Node 897c137b-d990-4d69-a9f2-fc9dc095e05e :: false |
createNodes | 1.587s |
2022-05-10 22:37:01 |
2022-05-10 22:37:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:01 | ------------------------------------ 2022-05-10 22:37:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "pubsub#title": "Node 897c137b-d990-4d69-a9f2-fc9dc095e05e" } 2022-05-10 22:37:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:37:02 | [Mutex] waiting for: [received:nodes:3b15b455-fcd8-4273-8087-f3812f0cce75:localhost] 2022-05-10 22:37:02 | [Mutex] waiting for: [received:nodes:3b15b455-fcd8-4273-8087-f3812f0cce75:localhost] 2022-05-10 22:37:02 | [Mutex] received everything. 2022-05-10 22:37:02 | [Mutex] isItemNotified: received:node:3b15b455-fcd8-4273-8087-f3812f0cce75:localhost:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:Node 897c137b-d990-4d69-a9f2-fc9dc095e05e :: true |
createSubnodes | 1.022s |
2022-05-10 22:37:02 |
2022-05-10 22:37:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:02 | ------------------------------------ 2022-05-10 22:37:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf", "pubsub#title": "Node 1d60d824-c5d0-4cfb-9af2-1841aeccdcdf" } 2022-05-10 22:37:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:37:03 | [Mutex] waiting for: [received:nodes:b17691a4-da85-4a1e-addd-51927c4bd504:localhost] 2022-05-10 22:37:03 | [Mutex] received everything. 2022-05-10 22:37:03 | [Mutex] isItemNotified: received:node:b17691a4-da85-4a1e-addd-51927c4bd504:localhost:node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf:Node 1d60d824-c5d0-4cfb-9af2-1841aeccdcdf :: true |
deleteNodes | 1.020s |
2022-05-10 22:37:08 |
2022-05-10 22:37:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:08 | ------------------------------------ 2022-05-10 22:37:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf" } 2022-05-10 22:37:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:37:09 | [Mutex] waiting for: [received:nodes:1becd5fc-5abf-447a-b00a-19488e4c3ed3:localhost] 2022-05-10 22:37:09 | [Mutex] waiting for: [received:nodes:1becd5fc-5abf-447a-b00a-19488e4c3ed3:localhost] 2022-05-10 22:37:09 | [Mutex] received everything. 2022-05-10 22:37:09 | [Mutex] isItemNotified: received:node:1becd5fc-5abf-447a-b00a-19488e4c3ed3:localhost:node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf:Node 1d60d824-c5d0-4cfb-9af2-1841aeccdcdf :: false |
deleteSubnodes | 1.023s |
2022-05-10 22:37:07 |
2022-05-10 22:37:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:07 | ------------------------------------ 2022-05-10 22:37:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e" } 2022-05-10 22:37:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 22:37:08 | [Mutex] waiting for: [received:nodes:e7696653-3b18-4a18-8e15-5356ec46eb94:localhost] 2022-05-10 22:37:08 | [Mutex] waiting for: [received:nodes:e7696653-3b18-4a18-8e15-5356ec46eb94:localhost] 2022-05-10 22:37:08 | [Mutex] received everything. 2022-05-10 22:37:08 | [Mutex] isItemNotified: received:node:e7696653-3b18-4a18-8e15-5356ec46eb94:localhost:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:Node 897c137b-d990-4d69-a9f2-fc9dc095e05e :: false 2022-05-10 22:37:08 | [Mutex] waiting for: [received:nodes:97d1b314-2f15-4129-9e52-0e2539bd6130:localhost] 2022-05-10 22:37:08 | [Mutex] received everything. 2022-05-10 22:37:08 | [Mutex] isItemNotified: received:node:97d1b314-2f15-4129-9e52-0e2539bd6130:localhost:node-897c137b-d990-4d69-a9f2-fc9dc095e05e:Node 897c137b-d990-4d69-a9f2-fc9dc095e05e :: false |
publishItemsToNodes | 0.053s |
2022-05-10 22:37:05 |
2022-05-10 22:37:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:05 | ------------------------------------ 2022-05-10 22:37:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "entry": "<test>item-af222a1c-9b99-4954-9b02-f3750cb628e5</test>", "item-id": "item-af222a1c-9b99-4954-9b02-f3750cb628e5" } 2022-05-10 22:37:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-af222a1c-9b99-4954-9b02-f3750cb628e5" } 2022-05-10 22:37:05 | [Mutex] waiting for: [published:item:notifieditem-af222a1c-9b99-4954-9b02-f3750cb628e5:admin@test-domain.com] 2022-05-10 22:37:05 | [Mutex] received everything. 2022-05-10 22:37:05 | [Mutex] isItemNotified: published:item:notifieditem-af222a1c-9b99-4954-9b02-f3750cb628e5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-05-10 22:37:06 |
2022-05-10 22:37:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:06 | ------------------------------------ 2022-05-10 22:37:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "item-id": "item-af222a1c-9b99-4954-9b02-f3750cb628e5" } 2022-05-10 22:37:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-af222a1c-9b99-4954-9b02-f3750cb628e5" } 2022-05-10 22:37:06 | [Mutex] received everything. 2022-05-10 22:37:06 | [Mutex] isItemNotified: retracted:item:notifieditem-af222a1c-9b99-4954-9b02-f3750cb628e5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.014s |
2022-05-10 22:37:05 |
2022-05-10 22:37:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:05 | ------------------------------------ 2022-05-10 22:37:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "item-id": "item-af222a1c-9b99-4954-9b02-f3750cb628e5" } 2022-05-10 22:37:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "item-id": "item-af222a1c-9b99-4954-9b02-f3750cb628e5", "item": [ "<item id=\"item-af222a1c-9b99-4954-9b02-f3750cb628e5\"><test>item-af222a1c-9b99-4954-9b02-f3750cb628e5</test></item>" ] } 2022-05-10 22:37:05 | [Mutex] notify: [retrieved:item:item-af222a1c-9b99-4954-9b02-f3750cb628e5:payload-matches:true:localhost] 2022-05-10 22:37:05 | [Mutex] received everything. 2022-05-10 22:37:05 | [Mutex] isItemNotified: retrieved:item:item-af222a1c-9b99-4954-9b02-f3750cb628e5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-05-10 22:37:05 |
2022-05-10 22:37:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:05 | ------------------------------------ 2022-05-10 22:37:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-10 22:37:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "node-1d60d824-c5d0-4cfb-9af2-1841aeccdcdf" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-10 22:37:06 |
2022-05-10 22:37:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:06 | ------------------------------------ 2022-05-10 22:37:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-897c137b-d990-4d69-a9f2-fc9dc095e05e)" } 2022-05-10 22:37:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-05-10 22:37:04 |
2022-05-10 22:37:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:04 | ------------------------------------ 2022-05-10 22:37:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "jids": [ "admin@test-domain.com" ] } 2022-05-10 22:37:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-05-10 22:37:06 |
2022-05-10 22:37:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 22:37:06 | ------------------------------------ 2022-05-10 22:37:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-897c137b-d990-4d69-a9f2-fc9dc095e05e", "jids": [ "admin@test-domain.com" ] } 2022-05-10 22:37:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |