Test duration : 8.976s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2020-09-16 22:46:15 |
2020-09-16 22:46:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:15 | ------------------------------------ 2020-09-16 22:46:15 | [Mutex] waiting for: [configured:node:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:node-049539ff-639c-48d5-abd8-a7f88841a2d1] 2020-09-16 22:46:15 | [Mutex] received everything. 2020-09-16 22:46:15 | [Mutex] isItemNotified: configured:node:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:node-049539ff-639c-48d5-abd8-a7f88841a2d1 :: true 2020-09-16 22:46:16 | [Mutex] waiting for: [received:nodes:64a3afce-096a-4b3a-b70d-31b33cf0e094:localhost] 2020-09-16 22:46:16 | [Mutex] received everything. 2020-09-16 22:46:16 | [Mutex] isItemNotified: received:node:64a3afce-096a-4b3a-b70d-31b33cf0e094:localhost:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:Node 98471bec-f89d-4c56-8fd6-86e2e4f848d8 :: true 2020-09-16 22:46:16 | [Mutex] waiting for: [received:nodes:8cd545d4-f2bf-4a16-be99-55f72b9a0f82:localhost] 2020-09-16 22:46:16 | [Mutex] received everything. 2020-09-16 22:46:16 | [Mutex] isItemNotified: received:node:8cd545d4-f2bf-4a16-be99-55f72b9a0f82:localhost:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:Node 98471bec-f89d-4c56-8fd6-86e2e4f848d8 :: false |
createNodes | 1.714s |
2020-09-16 22:46:12 |
2020-09-16 22:46:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:12 | ------------------------------------ 2020-09-16 22:46:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "pubsub#title": "Node 98471bec-f89d-4c56-8fd6-86e2e4f848d8" } 2020-09-16 22:46:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:46:14 | [Mutex] waiting for: [received:nodes:4c8364e0-df3a-4db1-ac0b-3861eab4a85e:localhost] 2020-09-16 22:46:14 | [Mutex] received everything. 2020-09-16 22:46:14 | [Mutex] isItemNotified: received:node:4c8364e0-df3a-4db1-ac0b-3861eab4a85e:localhost:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:Node 98471bec-f89d-4c56-8fd6-86e2e4f848d8 :: true |
createSubnodes | 1.035s |
2020-09-16 22:46:14 |
2020-09-16 22:46:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:14 | ------------------------------------ 2020-09-16 22:46:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-049539ff-639c-48d5-abd8-a7f88841a2d1", "pubsub#title": "Node 049539ff-639c-48d5-abd8-a7f88841a2d1" } 2020-09-16 22:46:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:46:15 | [Mutex] waiting for: [received:nodes:cccc20e7-b4d2-4107-a54c-a23206588b54:localhost] 2020-09-16 22:46:15 | [Mutex] received everything. 2020-09-16 22:46:15 | [Mutex] isItemNotified: received:node:cccc20e7-b4d2-4107-a54c-a23206588b54:localhost:node-049539ff-639c-48d5-abd8-a7f88841a2d1:Node 049539ff-639c-48d5-abd8-a7f88841a2d1 :: true |
deleteNodes | 1.020s |
2020-09-16 22:46:20 |
2020-09-16 22:46:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:20 | ------------------------------------ 2020-09-16 22:46:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-049539ff-639c-48d5-abd8-a7f88841a2d1" } 2020-09-16 22:46:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:46:21 | [Mutex] waiting for: [received:nodes:828bf5a3-f8a7-4c60-841a-e73d67712c15:localhost] 2020-09-16 22:46:21 | [Mutex] waiting for: [received:nodes:828bf5a3-f8a7-4c60-841a-e73d67712c15:localhost] 2020-09-16 22:46:21 | [Mutex] received everything. 2020-09-16 22:46:21 | [Mutex] isItemNotified: received:node:828bf5a3-f8a7-4c60-841a-e73d67712c15:localhost:node-049539ff-639c-48d5-abd8-a7f88841a2d1:Node 049539ff-639c-48d5-abd8-a7f88841a2d1 :: false |
deleteSubnodes | 1.024s |
2020-09-16 22:46:18 |
2020-09-16 22:46:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:18 | ------------------------------------ 2020-09-16 22:46:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8" } 2020-09-16 22:46:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 22:46:19 | [Mutex] waiting for: [received:nodes:cbb495be-2768-4653-b411-93c9f5bdf8a7:localhost] 2020-09-16 22:46:19 | [Mutex] waiting for: [received:nodes:cbb495be-2768-4653-b411-93c9f5bdf8a7:localhost] 2020-09-16 22:46:19 | [Mutex] received everything. 2020-09-16 22:46:19 | [Mutex] isItemNotified: received:node:cbb495be-2768-4653-b411-93c9f5bdf8a7:localhost:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:Node 98471bec-f89d-4c56-8fd6-86e2e4f848d8 :: false 2020-09-16 22:46:19 | [Mutex] waiting for: [received:nodes:097297cc-f22a-40df-ae11-8cf258eafff1:localhost] 2020-09-16 22:46:19 | [Mutex] received everything. 2020-09-16 22:46:19 | [Mutex] isItemNotified: received:node:097297cc-f22a-40df-ae11-8cf258eafff1:localhost:node-98471bec-f89d-4c56-8fd6-86e2e4f848d8:Node 98471bec-f89d-4c56-8fd6-86e2e4f848d8 :: false |
publishItemsToNodes | 0.037s |
2020-09-16 22:46:17 |
2020-09-16 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:17 | ------------------------------------ 2020-09-16 22:46:17 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "entry": "<test>item-fec0c90f-0d8c-4af3-86a0-f14142c6beec</test>", "item-id": "item-fec0c90f-0d8c-4af3-86a0-f14142c6beec" } 2020-09-16 22:46:17 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fec0c90f-0d8c-4af3-86a0-f14142c6beec" } 2020-09-16 22:46:17 | [Mutex] waiting for: [published:item:notifieditem-fec0c90f-0d8c-4af3-86a0-f14142c6beec:admin@test-domain.com] 2020-09-16 22:46:17 | [Mutex] received everything. 2020-09-16 22:46:17 | [Mutex] isItemNotified: published:item:notifieditem-fec0c90f-0d8c-4af3-86a0-f14142c6beec:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-09-16 22:46:17 |
2020-09-16 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:17 | ------------------------------------ 2020-09-16 22:46:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "item-id": "item-fec0c90f-0d8c-4af3-86a0-f14142c6beec" } 2020-09-16 22:46:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fec0c90f-0d8c-4af3-86a0-f14142c6beec" } 2020-09-16 22:46:17 | [Mutex] received everything. 2020-09-16 22:46:17 | [Mutex] isItemNotified: retracted:item:notifieditem-fec0c90f-0d8c-4af3-86a0-f14142c6beec:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2020-09-16 22:46:17 |
2020-09-16 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:17 | ------------------------------------ 2020-09-16 22:46:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "item-id": "item-fec0c90f-0d8c-4af3-86a0-f14142c6beec" } 2020-09-16 22:46:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "item-id": "item-fec0c90f-0d8c-4af3-86a0-f14142c6beec", "item": [ "<item id=\"item-fec0c90f-0d8c-4af3-86a0-f14142c6beec\"><test>item-fec0c90f-0d8c-4af3-86a0-f14142c6beec</test></item>" ] } 2020-09-16 22:46:17 | [Mutex] notify: [retrieved:item:item-fec0c90f-0d8c-4af3-86a0-f14142c6beec:payload-matches:true:localhost] 2020-09-16 22:46:17 | [Mutex] received everything. 2020-09-16 22:46:17 | [Mutex] isItemNotified: retrieved:item:item-fec0c90f-0d8c-4af3-86a0-f14142c6beec:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-16 22:46:17 |
2020-09-16 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:17 | ------------------------------------ 2020-09-16 22:46:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-16 22:46:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-049539ff-639c-48d5-abd8-a7f88841a2d1", "test", "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-16 22:46:17 |
2020-09-16 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:17 | ------------------------------------ 2020-09-16 22:46:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-98471bec-f89d-4c56-8fd6-86e2e4f848d8)" } 2020-09-16 22:46:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-16 22:46:16 |
2020-09-16 22:46:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:16 | ------------------------------------ 2020-09-16 22:46:16 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "jids": [ "admin@test-domain.com" ] } 2020-09-16 22:46:16 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-16 22:46:17 |
2020-09-16 22:46:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 22:46:17 | ------------------------------------ 2020-09-16 22:46:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-98471bec-f89d-4c56-8fd6-86e2e4f848d8", "jids": [ "admin@test-domain.com" ] } 2020-09-16 22:46:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |