Test duration : 9.196s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2020-11-01 21:40:55 |
2020-11-01 21:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:55 | ------------------------------------ 2020-11-01 21:40:55 | [Mutex] waiting for: [configured:node:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:node-17485d70-e74a-4826-93c3-77ad8ba4a16b] 2020-11-01 21:40:55 | [Mutex] received everything. 2020-11-01 21:40:55 | [Mutex] isItemNotified: configured:node:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:node-17485d70-e74a-4826-93c3-77ad8ba4a16b :: true 2020-11-01 21:40:56 | [Mutex] waiting for: [received:nodes:6aa24734-7575-49e7-8c5e-4086140d2060:localhost] 2020-11-01 21:40:56 | [Mutex] received everything. 2020-11-01 21:40:56 | [Mutex] isItemNotified: received:node:6aa24734-7575-49e7-8c5e-4086140d2060:localhost:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:Node 1f23ae40-78b6-4915-90c4-e68e2a44b32c :: true 2020-11-01 21:40:56 | [Mutex] waiting for: [received:nodes:63ff89a2-bbca-4921-8d15-73f998ded8e5:localhost] 2020-11-01 21:40:56 | [Mutex] received everything. 2020-11-01 21:40:56 | [Mutex] isItemNotified: received:node:63ff89a2-bbca-4921-8d15-73f998ded8e5:localhost:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:Node 1f23ae40-78b6-4915-90c4-e68e2a44b32c :: false |
createNodes | 1.708s |
2020-11-01 21:40:52 |
2020-11-01 21:40:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:52 | ------------------------------------ 2020-11-01 21:40:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "pubsub#title": "Node 1f23ae40-78b6-4915-90c4-e68e2a44b32c" } 2020-11-01 21:40:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:40:54 | [Mutex] waiting for: [received:nodes:8a71bc34-7cb5-46c6-9d7e-86b46446675f:localhost] 2020-11-01 21:40:54 | [Mutex] received everything. 2020-11-01 21:40:54 | [Mutex] isItemNotified: received:node:8a71bc34-7cb5-46c6-9d7e-86b46446675f:localhost:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:Node 1f23ae40-78b6-4915-90c4-e68e2a44b32c :: true |
createSubnodes | 1.027s |
2020-11-01 21:40:54 |
2020-11-01 21:40:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:54 | ------------------------------------ 2020-11-01 21:40:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-17485d70-e74a-4826-93c3-77ad8ba4a16b", "pubsub#title": "Node 17485d70-e74a-4826-93c3-77ad8ba4a16b" } 2020-11-01 21:40:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:40:55 | [Mutex] waiting for: [received:nodes:b853c603-405a-42d7-9986-105f731ffb9c:localhost] 2020-11-01 21:40:55 | [Mutex] received everything. 2020-11-01 21:40:55 | [Mutex] isItemNotified: received:node:b853c603-405a-42d7-9986-105f731ffb9c:localhost:node-17485d70-e74a-4826-93c3-77ad8ba4a16b:Node 17485d70-e74a-4826-93c3-77ad8ba4a16b :: true |
deleteNodes | 1.022s |
2020-11-01 21:41:00 |
2020-11-01 21:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:41:00 | ------------------------------------ 2020-11-01 21:41:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-17485d70-e74a-4826-93c3-77ad8ba4a16b" } 2020-11-01 21:41:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:41:01 | [Mutex] waiting for: [received:nodes:b63578bc-8378-4ad9-859f-81aef3081184:localhost] 2020-11-01 21:41:01 | [Mutex] received everything. 2020-11-01 21:41:01 | [Mutex] isItemNotified: received:node:b63578bc-8378-4ad9-859f-81aef3081184:localhost:node-17485d70-e74a-4826-93c3-77ad8ba4a16b:Node 17485d70-e74a-4826-93c3-77ad8ba4a16b :: false |
deleteSubnodes | 1.034s |
2020-11-01 21:40:59 |
2020-11-01 21:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:59 | ------------------------------------ 2020-11-01 21:40:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c" } 2020-11-01 21:40:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:41:00 | [Mutex] waiting for: [received:nodes:b4524260-303b-4aaa-8456-02eea7e1b437:localhost] 2020-11-01 21:41:00 | [Mutex] received everything. 2020-11-01 21:41:00 | [Mutex] isItemNotified: received:node:b4524260-303b-4aaa-8456-02eea7e1b437:localhost:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:Node 1f23ae40-78b6-4915-90c4-e68e2a44b32c :: false 2020-11-01 21:41:00 | [Mutex] waiting for: [received:nodes:eb650d35-5b85-4656-9206-b7bce2acadc0:localhost] 2020-11-01 21:41:00 | [Mutex] received everything. 2020-11-01 21:41:00 | [Mutex] isItemNotified: received:node:eb650d35-5b85-4656-9206-b7bce2acadc0:localhost:node-1f23ae40-78b6-4915-90c4-e68e2a44b32c:Node 1f23ae40-78b6-4915-90c4-e68e2a44b32c :: false |
publishItemsToNodes | 0.028s |
2020-11-01 21:40:57 |
2020-11-01 21:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:57 | ------------------------------------ 2020-11-01 21:40:57 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "entry": "<test>item-ded88892-09e2-4bc3-8148-054136b4187e</test>", "item-id": "item-ded88892-09e2-4bc3-8148-054136b4187e" } 2020-11-01 21:40:57 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ded88892-09e2-4bc3-8148-054136b4187e" } 2020-11-01 21:40:57 | [Mutex] waiting for: [published:item:notifieditem-ded88892-09e2-4bc3-8148-054136b4187e:admin@test-domain.com] 2020-11-01 21:40:57 | [Mutex] received everything. 2020-11-01 21:40:57 | [Mutex] isItemNotified: published:item:notifieditem-ded88892-09e2-4bc3-8148-054136b4187e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.090s |
2020-11-01 21:40:58 |
2020-11-01 21:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:58 | ------------------------------------ 2020-11-01 21:40:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "item-id": "item-ded88892-09e2-4bc3-8148-054136b4187e" } 2020-11-01 21:40:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ded88892-09e2-4bc3-8148-054136b4187e" } 2020-11-01 21:40:58 | [Mutex] waiting for: [retracted:item:notifieditem-ded88892-09e2-4bc3-8148-054136b4187e:admin@test-domain.com] 2020-11-01 21:40:58 | [Mutex] received everything. 2020-11-01 21:40:58 | [Mutex] isItemNotified: retracted:item:notifieditem-ded88892-09e2-4bc3-8148-054136b4187e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.080s |
2020-11-01 21:40:57 |
2020-11-01 21:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:57 | ------------------------------------ 2020-11-01 21:40:57 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "item-id": "item-ded88892-09e2-4bc3-8148-054136b4187e" } 2020-11-01 21:40:57 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "item-id": "item-ded88892-09e2-4bc3-8148-054136b4187e", "item": [ "<item id=\"item-ded88892-09e2-4bc3-8148-054136b4187e\"><test>item-ded88892-09e2-4bc3-8148-054136b4187e</test></item>" ] } 2020-11-01 21:40:57 | [Mutex] notify: [retrieved:item:item-ded88892-09e2-4bc3-8148-054136b4187e:payload-matches:true:localhost] 2020-11-01 21:40:57 | [Mutex] received everything. 2020-11-01 21:40:57 | [Mutex] isItemNotified: retrieved:item:item-ded88892-09e2-4bc3-8148-054136b4187e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.075s |
2020-11-01 21:40:57 |
2020-11-01 21:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:57 | ------------------------------------ 2020-11-01 21:40:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-01 21:40:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "test", "node-17485d70-e74a-4826-93c3-77ad8ba4a16b" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-11-01 21:40:58 |
2020-11-01 21:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:58 | ------------------------------------ 2020-11-01 21:40:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1f23ae40-78b6-4915-90c4-e68e2a44b32c)" } 2020-11-01 21:40:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-11-01 21:40:56 |
2020-11-01 21:40:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:56 | ------------------------------------ 2020-11-01 21:40:56 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "jids": [ "admin@test-domain.com" ] } 2020-11-01 21:40:56 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2020-11-01 21:40:58 |
2020-11-01 21:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:40:58 | ------------------------------------ 2020-11-01 21:40:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1f23ae40-78b6-4915-90c4-e68e2a44b32c", "jids": [ "admin@test-domain.com" ] } 2020-11-01 21:40:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |