Test duration : 9.188s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2020-10-08 22:42:09 |
2020-10-08 22:42:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:09 | ------------------------------------ 2020-10-08 22:42:09 | [Mutex] waiting for: [configured:node:node-f758fcf7-5984-44b9-860c-e65fb63418be:node-05bddf11-2f6a-47eb-8015-a30fb9d23a1e] 2020-10-08 22:42:09 | [Mutex] received everything. 2020-10-08 22:42:09 | [Mutex] isItemNotified: configured:node:node-f758fcf7-5984-44b9-860c-e65fb63418be:node-05bddf11-2f6a-47eb-8015-a30fb9d23a1e :: true 2020-10-08 22:42:10 | [Mutex] waiting for: [received:nodes:62c55fe6-96e6-4c8b-972c-c3e1171454ae:localhost] 2020-10-08 22:42:10 | [Mutex] received everything. 2020-10-08 22:42:10 | [Mutex] isItemNotified: received:node:62c55fe6-96e6-4c8b-972c-c3e1171454ae:localhost:node-f758fcf7-5984-44b9-860c-e65fb63418be:Node f758fcf7-5984-44b9-860c-e65fb63418be :: true 2020-10-08 22:42:10 | [Mutex] waiting for: [received:nodes:c62f4553-152d-450e-b7a6-428934504d6e:localhost] 2020-10-08 22:42:10 | [Mutex] waiting for: [received:nodes:c62f4553-152d-450e-b7a6-428934504d6e:localhost] 2020-10-08 22:42:10 | [Mutex] received everything. 2020-10-08 22:42:10 | [Mutex] isItemNotified: received:node:c62f4553-152d-450e-b7a6-428934504d6e:localhost:node-f758fcf7-5984-44b9-860c-e65fb63418be:Node f758fcf7-5984-44b9-860c-e65fb63418be :: false |
createNodes | 1.649s |
2020-10-08 22:42:06 |
2020-10-08 22:42:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:06 | ------------------------------------ 2020-10-08 22:42: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-f758fcf7-5984-44b9-860c-e65fb63418be", "pubsub#title": "Node f758fcf7-5984-44b9-860c-e65fb63418be" } 2020-10-08 22:42:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:42:07 | [Mutex] waiting for: [received:nodes:1d28bd68-3776-4af7-a2dc-4a94c1b4b368:localhost] 2020-10-08 22:42:07 | [Mutex] waiting for: [received:nodes:1d28bd68-3776-4af7-a2dc-4a94c1b4b368:localhost] 2020-10-08 22:42:07 | [Mutex] received everything. 2020-10-08 22:42:07 | [Mutex] isItemNotified: received:node:1d28bd68-3776-4af7-a2dc-4a94c1b4b368:localhost:node-f758fcf7-5984-44b9-860c-e65fb63418be:Node f758fcf7-5984-44b9-860c-e65fb63418be :: true |
createSubnodes | 1.032s |
2020-10-08 22:42:07 |
2020-10-08 22:42:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:07 | ------------------------------------ 2020-10-08 22:42: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-05bddf11-2f6a-47eb-8015-a30fb9d23a1e", "pubsub#title": "Node 05bddf11-2f6a-47eb-8015-a30fb9d23a1e" } 2020-10-08 22:42:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:42:09 | [Mutex] waiting for: [received:nodes:23b95465-4b10-4a5c-ab0b-94d88ecefe9f:localhost] 2020-10-08 22:42:09 | [Mutex] received everything. 2020-10-08 22:42:09 | [Mutex] isItemNotified: received:node:23b95465-4b10-4a5c-ab0b-94d88ecefe9f:localhost:node-05bddf11-2f6a-47eb-8015-a30fb9d23a1e:Node 05bddf11-2f6a-47eb-8015-a30fb9d23a1e :: true |
deleteNodes | 1.023s |
2020-10-08 22:42:13 |
2020-10-08 22:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:13 | ------------------------------------ 2020-10-08 22:42:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-05bddf11-2f6a-47eb-8015-a30fb9d23a1e" } 2020-10-08 22:42:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:42:14 | [Mutex] waiting for: [received:nodes:85bf95a5-62c3-4cbe-ba83-9cf46e0c23f0:localhost] 2020-10-08 22:42:14 | [Mutex] waiting for: [received:nodes:85bf95a5-62c3-4cbe-ba83-9cf46e0c23f0:localhost] 2020-10-08 22:42:14 | [Mutex] received everything. 2020-10-08 22:42:14 | [Mutex] isItemNotified: received:node:85bf95a5-62c3-4cbe-ba83-9cf46e0c23f0:localhost:node-05bddf11-2f6a-47eb-8015-a30fb9d23a1e:Node 05bddf11-2f6a-47eb-8015-a30fb9d23a1e :: false |
deleteSubnodes | 1.031s |
2020-10-08 22:42:12 |
2020-10-08 22:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:12 | ------------------------------------ 2020-10-08 22:42:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be" } 2020-10-08 22:42:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:42:13 | [Mutex] waiting for: [received:nodes:1f7915f0-18c9-4c6b-aeff-012527c79c7d:localhost] 2020-10-08 22:42:13 | [Mutex] received everything. 2020-10-08 22:42:13 | [Mutex] isItemNotified: received:node:1f7915f0-18c9-4c6b-aeff-012527c79c7d:localhost:node-f758fcf7-5984-44b9-860c-e65fb63418be:Node f758fcf7-5984-44b9-860c-e65fb63418be :: false 2020-10-08 22:42:13 | [Mutex] waiting for: [received:nodes:02fa5143-7a61-49d2-a1bf-2ac96f78d1e4:localhost] 2020-10-08 22:42:13 | [Mutex] received everything. 2020-10-08 22:42:13 | [Mutex] isItemNotified: received:node:02fa5143-7a61-49d2-a1bf-2ac96f78d1e4:localhost:node-f758fcf7-5984-44b9-860c-e65fb63418be:Node f758fcf7-5984-44b9-860c-e65fb63418be :: false |
publishItemsToNodes | 0.051s |
2020-10-08 22:42:11 |
2020-10-08 22:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:11 | ------------------------------------ 2020-10-08 22:42:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be", "entry": "<test>item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e</test>", "item-id": "item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e" } 2020-10-08 22:42:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e" } 2020-10-08 22:42:11 | [Mutex] waiting for: [published:item:notifieditem-a800b14b-afd1-4e4e-b0e0-e7315e6f088e:admin@test-domain.com] 2020-10-08 22:42:11 | [Mutex] received everything. 2020-10-08 22:42:11 | [Mutex] isItemNotified: published:item:notifieditem-a800b14b-afd1-4e4e-b0e0-e7315e6f088e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.096s |
2020-10-08 22:42:11 |
2020-10-08 22:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:11 | ------------------------------------ 2020-10-08 22:42:11 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be", "item-id": "item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e" } 2020-10-08 22:42:11 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e" } 2020-10-08 22:42:11 | [Mutex] received everything. 2020-10-08 22:42:11 | [Mutex] isItemNotified: retracted:item:notifieditem-a800b14b-afd1-4e4e-b0e0-e7315e6f088e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.128s |
2020-10-08 22:42:11 |
2020-10-08 22:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:11 | ------------------------------------ 2020-10-08 22:42:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be", "item-id": "item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e" } 2020-10-08 22:42:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be", "item-id": "item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e", "item": [ "<item id=\"item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e\"><test>item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e</test></item>" ] } 2020-10-08 22:42:11 | [Mutex] notify: [retrieved:item:item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e:payload-matches:true:localhost] 2020-10-08 22:42:11 | [Mutex] received everything. 2020-10-08 22:42:11 | [Mutex] isItemNotified: retrieved:item:item-a800b14b-afd1-4e4e-b0e0-e7315e6f088e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-08 22:42:11 |
2020-10-08 22:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:11 | ------------------------------------ 2020-10-08 22:42:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-08 22:42:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f758fcf7-5984-44b9-860c-e65fb63418be", "node-05bddf11-2f6a-47eb-8015-a30fb9d23a1e", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-10-08 22:42:11 |
2020-10-08 22:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:11 | ------------------------------------ 2020-10-08 22:42:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f758fcf7-5984-44b9-860c-e65fb63418be)" } 2020-10-08 22:42:11 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-10-08 22:42:10 |
2020-10-08 22:42:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:10 | ------------------------------------ 2020-10-08 22:42:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be", "jids": [ "admin@test-domain.com" ] } 2020-10-08 22:42:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-10-08 22:42:11 |
2020-10-08 22:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:42:11 | ------------------------------------ 2020-10-08 22:42:11 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f758fcf7-5984-44b9-860c-e65fb63418be", "jids": [ "admin@test-domain.com" ] } 2020-10-08 22:42:11 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |