Test duration : 8.866s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2020-12-30 22:05:28 |
2020-12-30 22:05:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:28 | ------------------------------------ 2020-12-30 22:05:28 | [Mutex] waiting for: [configured:node:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:node-82a7265c-3965-450e-ab62-0ac110d7e993] 2020-12-30 22:05:28 | [Mutex] received everything. 2020-12-30 22:05:28 | [Mutex] isItemNotified: configured:node:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:node-82a7265c-3965-450e-ab62-0ac110d7e993 :: true 2020-12-30 22:05:29 | [Mutex] waiting for: [received:nodes:18866237-f6f0-4239-a99d-def85ce2f004:localhost] 2020-12-30 22:05:29 | [Mutex] waiting for: [received:nodes:18866237-f6f0-4239-a99d-def85ce2f004:localhost] 2020-12-30 22:05:29 | [Mutex] received everything. 2020-12-30 22:05:29 | [Mutex] isItemNotified: received:node:18866237-f6f0-4239-a99d-def85ce2f004:localhost:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:Node abaefa06-7a60-4a80-a0cd-4ac9ece5a74e :: true 2020-12-30 22:05:29 | [Mutex] waiting for: [received:nodes:5433d02c-19e0-4fd4-88fd-0cb9660b2198:localhost] 2020-12-30 22:05:29 | [Mutex] waiting for: [received:nodes:5433d02c-19e0-4fd4-88fd-0cb9660b2198:localhost] 2020-12-30 22:05:29 | [Mutex] waiting for: [received:nodes:5433d02c-19e0-4fd4-88fd-0cb9660b2198:localhost] 2020-12-30 22:05:29 | [Mutex] waiting for: [received:nodes:5433d02c-19e0-4fd4-88fd-0cb9660b2198:localhost] 2020-12-30 22:05:29 | [Mutex] received everything. 2020-12-30 22:05:29 | [Mutex] isItemNotified: received:node:5433d02c-19e0-4fd4-88fd-0cb9660b2198:localhost:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:Node abaefa06-7a60-4a80-a0cd-4ac9ece5a74e :: false |
createNodes | 1.555s |
2020-12-30 22:05:25 |
2020-12-30 22:05:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:25 | ------------------------------------ 2020-12-30 22:05:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "pubsub#title": "Node abaefa06-7a60-4a80-a0cd-4ac9ece5a74e" } 2020-12-30 22:05:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-30 22:05:27 | [Mutex] waiting for: [received:nodes:8517ff51-a4f4-405c-acf8-586a7643fa7e:localhost] 2020-12-30 22:05:27 | [Mutex] waiting for: [received:nodes:8517ff51-a4f4-405c-acf8-586a7643fa7e:localhost] 2020-12-30 22:05:27 | [Mutex] received everything. 2020-12-30 22:05:27 | [Mutex] isItemNotified: received:node:8517ff51-a4f4-405c-acf8-586a7643fa7e:localhost:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:Node abaefa06-7a60-4a80-a0cd-4ac9ece5a74e :: true |
createSubnodes | 1.022s |
2020-12-30 22:05:27 |
2020-12-30 22:05:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:27 | ------------------------------------ 2020-12-30 22:05:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-82a7265c-3965-450e-ab62-0ac110d7e993", "pubsub#title": "Node 82a7265c-3965-450e-ab62-0ac110d7e993" } 2020-12-30 22:05:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-30 22:05:28 | [Mutex] waiting for: [received:nodes:830bae52-68bb-4fdc-83cc-831fab28c9eb:localhost] 2020-12-30 22:05:28 | [Mutex] waiting for: [received:nodes:830bae52-68bb-4fdc-83cc-831fab28c9eb:localhost] 2020-12-30 22:05:28 | [Mutex] waiting for: [received:nodes:830bae52-68bb-4fdc-83cc-831fab28c9eb:localhost] 2020-12-30 22:05:28 | [Mutex] received everything. 2020-12-30 22:05:28 | [Mutex] isItemNotified: received:node:830bae52-68bb-4fdc-83cc-831fab28c9eb:localhost:node-82a7265c-3965-450e-ab62-0ac110d7e993:Node 82a7265c-3965-450e-ab62-0ac110d7e993 :: true |
deleteNodes | 1.017s |
2020-12-30 22:05:32 |
2020-12-30 22:05:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:32 | ------------------------------------ 2020-12-30 22:05:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-82a7265c-3965-450e-ab62-0ac110d7e993" } 2020-12-30 22:05:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-30 22:05:33 | [Mutex] waiting for: [received:nodes:75a4748e-6158-4b21-b679-9c06235b5c74:localhost] 2020-12-30 22:05:33 | [Mutex] received everything. 2020-12-30 22:05:33 | [Mutex] isItemNotified: received:node:75a4748e-6158-4b21-b679-9c06235b5c74:localhost:node-82a7265c-3965-450e-ab62-0ac110d7e993:Node 82a7265c-3965-450e-ab62-0ac110d7e993 :: false |
deleteSubnodes | 1.026s |
2020-12-30 22:05:31 |
2020-12-30 22:05:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:31 | ------------------------------------ 2020-12-30 22:05:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e" } 2020-12-30 22:05:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-30 22:05:32 | [Mutex] waiting for: [received:nodes:1560bc7e-c0a8-43f3-8c47-b138ba220b7d:localhost] 2020-12-30 22:05:32 | [Mutex] received everything. 2020-12-30 22:05:32 | [Mutex] isItemNotified: received:node:1560bc7e-c0a8-43f3-8c47-b138ba220b7d:localhost:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:Node abaefa06-7a60-4a80-a0cd-4ac9ece5a74e :: false 2020-12-30 22:05:32 | [Mutex] waiting for: [received:nodes:8b589907-b76c-455e-90d5-9c895cbcddee:localhost] 2020-12-30 22:05:32 | [Mutex] received everything. 2020-12-30 22:05:32 | [Mutex] isItemNotified: received:node:8b589907-b76c-455e-90d5-9c895cbcddee:localhost:node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e:Node abaefa06-7a60-4a80-a0cd-4ac9ece5a74e :: false |
publishItemsToNodes | 0.065s |
2020-12-30 22:05:30 |
2020-12-30 22:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:30 | ------------------------------------ 2020-12-30 22:05:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "entry": "<test>item-66675e88-9e85-4b53-8d3b-0606c011a432</test>", "item-id": "item-66675e88-9e85-4b53-8d3b-0606c011a432" } 2020-12-30 22:05:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-66675e88-9e85-4b53-8d3b-0606c011a432" } 2020-12-30 22:05:30 | [Mutex] waiting for: [published:item:notifieditem-66675e88-9e85-4b53-8d3b-0606c011a432:admin@test-domain.com] 2020-12-30 22:05:30 | [Mutex] received everything. 2020-12-30 22:05:30 | [Mutex] isItemNotified: published:item:notifieditem-66675e88-9e85-4b53-8d3b-0606c011a432:admin@test-domain.com :: true |
retractItemsFromNodes | 0.092s |
2020-12-30 22:05:30 |
2020-12-30 22:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:30 | ------------------------------------ 2020-12-30 22:05:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "item-id": "item-66675e88-9e85-4b53-8d3b-0606c011a432" } 2020-12-30 22:05:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-66675e88-9e85-4b53-8d3b-0606c011a432" } 2020-12-30 22:05:30 | [Mutex] received everything. 2020-12-30 22:05:30 | [Mutex] isItemNotified: retracted:item:notifieditem-66675e88-9e85-4b53-8d3b-0606c011a432:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2020-12-30 22:05:30 |
2020-12-30 22:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:30 | ------------------------------------ 2020-12-30 22:05:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "item-id": "item-66675e88-9e85-4b53-8d3b-0606c011a432" } 2020-12-30 22:05:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "item-id": "item-66675e88-9e85-4b53-8d3b-0606c011a432", "item": [ "<item id=\"item-66675e88-9e85-4b53-8d3b-0606c011a432\"><test>item-66675e88-9e85-4b53-8d3b-0606c011a432</test></item>" ] } 2020-12-30 22:05:30 | [Mutex] notify: [retrieved:item:item-66675e88-9e85-4b53-8d3b-0606c011a432:payload-matches:true:localhost] 2020-12-30 22:05:30 | [Mutex] received everything. 2020-12-30 22:05:30 | [Mutex] isItemNotified: retrieved:item:item-66675e88-9e85-4b53-8d3b-0606c011a432:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-12-30 22:05:30 |
2020-12-30 22:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:30 | ------------------------------------ 2020-12-30 22:05:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-30 22:05:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-82a7265c-3965-450e-ab62-0ac110d7e993", "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-12-30 22:05:30 |
2020-12-30 22:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:30 | ------------------------------------ 2020-12-30 22:05:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e)" } 2020-12-30 22:05:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-12-30 22:05:29 |
2020-12-30 22:05:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:29 | ------------------------------------ 2020-12-30 22:05:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "jids": [ "admin@test-domain.com" ] } 2020-12-30 22:05:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-12-30 22:05:30 |
2020-12-30 22:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-30 22:05:30 | ------------------------------------ 2020-12-30 22:05:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-abaefa06-7a60-4a80-a0cd-4ac9ece5a74e", "jids": [ "admin@test-domain.com" ] } 2020-12-30 22:05:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |