Test duration : 8.947s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2020-09-11 23:02:51 |
2020-09-11 23:02:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:51 | ------------------------------------ 2020-09-11 23:02:51 | [Mutex] waiting for: [configured:node:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:node-b15b30cd-477d-4a65-88e7-d77fbd7204fd] 2020-09-11 23:02:51 | [Mutex] received everything. 2020-09-11 23:02:51 | [Mutex] isItemNotified: configured:node:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:node-b15b30cd-477d-4a65-88e7-d77fbd7204fd :: true 2020-09-11 23:02:52 | [Mutex] waiting for: [received:nodes:e271dc15-af8f-4c1a-91d1-b6c5b667362d:localhost] 2020-09-11 23:02:52 | [Mutex] received everything. 2020-09-11 23:02:52 | [Mutex] isItemNotified: received:node:e271dc15-af8f-4c1a-91d1-b6c5b667362d:localhost:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:Node 002ea9c7-dd6c-4e5e-a90e-24076deccb87 :: true 2020-09-11 23:02:52 | [Mutex] waiting for: [received:nodes:2da78b82-e06a-4e72-be45-0ef2064ab1df:localhost] 2020-09-11 23:02:52 | [Mutex] received everything. 2020-09-11 23:02:52 | [Mutex] isItemNotified: received:node:2da78b82-e06a-4e72-be45-0ef2064ab1df:localhost:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:Node 002ea9c7-dd6c-4e5e-a90e-24076deccb87 :: false |
createNodes | 1.725s |
2020-09-11 23:02:49 |
2020-09-11 23:02:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:49 | ------------------------------------ 2020-09-11 23:02:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "pubsub#title": "Node 002ea9c7-dd6c-4e5e-a90e-24076deccb87" } 2020-09-11 23:02:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 23:02:50 | [Mutex] waiting for: [received:nodes:9751d123-58a1-4c28-b2f8-a21f90725f1c:localhost] 2020-09-11 23:02:50 | [Mutex] received everything. 2020-09-11 23:02:50 | [Mutex] isItemNotified: received:node:9751d123-58a1-4c28-b2f8-a21f90725f1c:localhost:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:Node 002ea9c7-dd6c-4e5e-a90e-24076deccb87 :: true |
createSubnodes | 1.026s |
2020-09-11 23:02:50 |
2020-09-11 23:02:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:50 | ------------------------------------ 2020-09-11 23:02:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b15b30cd-477d-4a65-88e7-d77fbd7204fd", "pubsub#title": "Node b15b30cd-477d-4a65-88e7-d77fbd7204fd" } 2020-09-11 23:02:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 23:02:51 | [Mutex] waiting for: [received:nodes:2da67b1e-7f6d-4633-9420-cacb76eedaeb:localhost] 2020-09-11 23:02:51 | [Mutex] received everything. 2020-09-11 23:02:51 | [Mutex] isItemNotified: received:node:2da67b1e-7f6d-4633-9420-cacb76eedaeb:localhost:node-b15b30cd-477d-4a65-88e7-d77fbd7204fd:Node b15b30cd-477d-4a65-88e7-d77fbd7204fd :: true |
deleteNodes | 1.045s |
2020-09-11 23:02:56 |
2020-09-11 23:02:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:56 | ------------------------------------ 2020-09-11 23:02:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b15b30cd-477d-4a65-88e7-d77fbd7204fd" } 2020-09-11 23:02:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 23:02:57 | [Mutex] waiting for: [received:nodes:047cde82-bf72-4d90-9023-ea2afd155b4a:localhost] 2020-09-11 23:02:57 | [Mutex] received everything. 2020-09-11 23:02:57 | [Mutex] isItemNotified: received:node:047cde82-bf72-4d90-9023-ea2afd155b4a:localhost:node-b15b30cd-477d-4a65-88e7-d77fbd7204fd:Node b15b30cd-477d-4a65-88e7-d77fbd7204fd :: false |
deleteSubnodes | 1.028s |
2020-09-11 23:02:55 |
2020-09-11 23:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:55 | ------------------------------------ 2020-09-11 23:02:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87" } 2020-09-11 23:02:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 23:02:56 | [Mutex] waiting for: [received:nodes:a2d5ed0c-d267-4ad2-b1cf-da04972f16be:localhost] 2020-09-11 23:02:56 | [Mutex] received everything. 2020-09-11 23:02:56 | [Mutex] isItemNotified: received:node:a2d5ed0c-d267-4ad2-b1cf-da04972f16be:localhost:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:Node 002ea9c7-dd6c-4e5e-a90e-24076deccb87 :: false 2020-09-11 23:02:56 | [Mutex] waiting for: [received:nodes:3c05d82e-6ba3-45d5-a38d-1de995022681:localhost] 2020-09-11 23:02:56 | [Mutex] received everything. 2020-09-11 23:02:56 | [Mutex] isItemNotified: received:node:3c05d82e-6ba3-45d5-a38d-1de995022681:localhost:node-002ea9c7-dd6c-4e5e-a90e-24076deccb87:Node 002ea9c7-dd6c-4e5e-a90e-24076deccb87 :: false |
publishItemsToNodes | 0.034s |
2020-09-11 23:02:54 |
2020-09-11 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:54 | ------------------------------------ 2020-09-11 23:02:54 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "entry": "<test>item-d652c7f0-71ff-4b32-9ac0-f5b669f83111</test>", "item-id": "item-d652c7f0-71ff-4b32-9ac0-f5b669f83111" } 2020-09-11 23:02:54 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d652c7f0-71ff-4b32-9ac0-f5b669f83111" } 2020-09-11 23:02:54 | [Mutex] waiting for: [published:item:notifieditem-d652c7f0-71ff-4b32-9ac0-f5b669f83111:admin@test-domain.com] 2020-09-11 23:02:54 | [Mutex] received everything. 2020-09-11 23:02:54 | [Mutex] isItemNotified: published:item:notifieditem-d652c7f0-71ff-4b32-9ac0-f5b669f83111:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2020-09-11 23:02:54 |
2020-09-11 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:54 | ------------------------------------ 2020-09-11 23:02:54 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "item-id": "item-d652c7f0-71ff-4b32-9ac0-f5b669f83111" } 2020-09-11 23:02:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d652c7f0-71ff-4b32-9ac0-f5b669f83111" } 2020-09-11 23:02:54 | [Mutex] received everything. 2020-09-11 23:02:54 | [Mutex] isItemNotified: retracted:item:notifieditem-d652c7f0-71ff-4b32-9ac0-f5b669f83111:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.055s |
2020-09-11 23:02:54 |
2020-09-11 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:54 | ------------------------------------ 2020-09-11 23:02:54 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "item-id": "item-d652c7f0-71ff-4b32-9ac0-f5b669f83111" } 2020-09-11 23:02:54 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "item-id": "item-d652c7f0-71ff-4b32-9ac0-f5b669f83111", "item": [ "<item id=\"item-d652c7f0-71ff-4b32-9ac0-f5b669f83111\"><test>item-d652c7f0-71ff-4b32-9ac0-f5b669f83111</test></item>" ] } 2020-09-11 23:02:54 | [Mutex] notify: [retrieved:item:item-d652c7f0-71ff-4b32-9ac0-f5b669f83111:payload-matches:true:localhost] 2020-09-11 23:02:54 | [Mutex] received everything. 2020-09-11 23:02:54 | [Mutex] isItemNotified: retrieved:item:item-d652c7f0-71ff-4b32-9ac0-f5b669f83111:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-11 23:02:54 |
2020-09-11 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:54 | ------------------------------------ 2020-09-11 23:02:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-11 23:02:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "node-b15b30cd-477d-4a65-88e7-d77fbd7204fd" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-11 23:02:54 |
2020-09-11 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:54 | ------------------------------------ 2020-09-11 23:02:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-002ea9c7-dd6c-4e5e-a90e-24076deccb87)" } 2020-09-11 23:02:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-11 23:02:52 |
2020-09-11 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:52 | ------------------------------------ 2020-09-11 23:02:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "jids": [ "admin@test-domain.com" ] } 2020-09-11 23:02:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-09-11 23:02:54 |
2020-09-11 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 23:02:54 | ------------------------------------ 2020-09-11 23:02:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-002ea9c7-dd6c-4e5e-a90e-24076deccb87", "jids": [ "admin@test-domain.com" ] } 2020-09-11 23:02:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |