Test duration : 8.917s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2021-01-26 21:32:13 |
2021-01-26 21:32:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:13 | ------------------------------------ 2021-01-26 21:32:13 | [Mutex] waiting for: [configured:node:node-abac91a4-29c5-464e-b6d0-f48423fe628c:node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835] 2021-01-26 21:32:13 | [Mutex] received everything. 2021-01-26 21:32:13 | [Mutex] isItemNotified: configured:node:node-abac91a4-29c5-464e-b6d0-f48423fe628c:node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835 :: true 2021-01-26 21:32:14 | [Mutex] waiting for: [received:nodes:ad027992-bd9c-4293-b129-4fe830119d1f:localhost] 2021-01-26 21:32:14 | [Mutex] received everything. 2021-01-26 21:32:14 | [Mutex] isItemNotified: received:node:ad027992-bd9c-4293-b129-4fe830119d1f:localhost:node-abac91a4-29c5-464e-b6d0-f48423fe628c:Node abac91a4-29c5-464e-b6d0-f48423fe628c :: true 2021-01-26 21:32:14 | [Mutex] waiting for: [received:nodes:e6a6914b-c8de-47e5-945c-9a2e524cc651:localhost] 2021-01-26 21:32:14 | [Mutex] waiting for: [received:nodes:e6a6914b-c8de-47e5-945c-9a2e524cc651:localhost] 2021-01-26 21:32:14 | [Mutex] waiting for: [received:nodes:e6a6914b-c8de-47e5-945c-9a2e524cc651:localhost] 2021-01-26 21:32:14 | [Mutex] received everything. 2021-01-26 21:32:14 | [Mutex] isItemNotified: received:node:e6a6914b-c8de-47e5-945c-9a2e524cc651:localhost:node-abac91a4-29c5-464e-b6d0-f48423fe628c:Node abac91a4-29c5-464e-b6d0-f48423fe628c :: false |
createNodes | 1.568s |
2021-01-26 21:32:10 |
2021-01-26 21:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:10 | ------------------------------------ 2021-01-26 21:32:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "pubsub#title": "Node abac91a4-29c5-464e-b6d0-f48423fe628c" } 2021-01-26 21:32:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:32:11 | [Mutex] waiting for: [received:nodes:a7a8c80a-4af9-40e6-b9cb-631f20f2f1ef:localhost] 2021-01-26 21:32:11 | [Mutex] received everything. 2021-01-26 21:32:11 | [Mutex] isItemNotified: received:node:a7a8c80a-4af9-40e6-b9cb-631f20f2f1ef:localhost:node-abac91a4-29c5-464e-b6d0-f48423fe628c:Node abac91a4-29c5-464e-b6d0-f48423fe628c :: true |
createSubnodes | 1.025s |
2021-01-26 21:32:11 |
2021-01-26 21:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:11 | ------------------------------------ 2021-01-26 21:32:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835", "pubsub#title": "Node 43fd1d35-2e9b-48bd-ab5d-75f1e14df835" } 2021-01-26 21:32:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:32:12 | [Mutex] waiting for: [received:nodes:8f11dce4-d8db-41fc-9cad-98173ee932d3:localhost] 2021-01-26 21:32:13 | [Mutex] received everything. 2021-01-26 21:32:13 | [Mutex] isItemNotified: received:node:8f11dce4-d8db-41fc-9cad-98173ee932d3:localhost:node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835:Node 43fd1d35-2e9b-48bd-ab5d-75f1e14df835 :: true |
deleteNodes | 1.022s |
2021-01-26 21:32:17 |
2021-01-26 21:32:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:17 | ------------------------------------ 2021-01-26 21:32:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835" } 2021-01-26 21:32:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:32:18 | [Mutex] waiting for: [received:nodes:f7ac7660-560f-40d4-93f6-d0e9622d78ae:localhost] 2021-01-26 21:32:18 | [Mutex] received everything. 2021-01-26 21:32:18 | [Mutex] isItemNotified: received:node:f7ac7660-560f-40d4-93f6-d0e9622d78ae:localhost:node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835:Node 43fd1d35-2e9b-48bd-ab5d-75f1e14df835 :: false |
deleteSubnodes | 1.024s |
2021-01-26 21:32:16 |
2021-01-26 21:32:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:16 | ------------------------------------ 2021-01-26 21:32:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c" } 2021-01-26 21:32:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:32:17 | [Mutex] waiting for: [received:nodes:5011224f-410c-4288-88d5-629ad6002d1f:localhost] 2021-01-26 21:32:17 | [Mutex] waiting for: [received:nodes:5011224f-410c-4288-88d5-629ad6002d1f:localhost] 2021-01-26 21:32:17 | [Mutex] waiting for: [received:nodes:5011224f-410c-4288-88d5-629ad6002d1f:localhost] 2021-01-26 21:32:17 | [Mutex] received everything. 2021-01-26 21:32:17 | [Mutex] isItemNotified: received:node:5011224f-410c-4288-88d5-629ad6002d1f:localhost:node-abac91a4-29c5-464e-b6d0-f48423fe628c:Node abac91a4-29c5-464e-b6d0-f48423fe628c :: false 2021-01-26 21:32:17 | [Mutex] waiting for: [received:nodes:e459da69-4ec9-4e76-b61b-fadae54e4ffb:localhost] 2021-01-26 21:32:17 | [Mutex] received everything. 2021-01-26 21:32:17 | [Mutex] isItemNotified: received:node:e459da69-4ec9-4e76-b61b-fadae54e4ffb:localhost:node-abac91a4-29c5-464e-b6d0-f48423fe628c:Node abac91a4-29c5-464e-b6d0-f48423fe628c :: false |
publishItemsToNodes | 0.049s |
2021-01-26 21:32:15 |
2021-01-26 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:15 | ------------------------------------ 2021-01-26 21:32:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "entry": "<test>item-2c921a29-1457-4889-9cc3-ba2576913f3e</test>", "item-id": "item-2c921a29-1457-4889-9cc3-ba2576913f3e" } 2021-01-26 21:32:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2c921a29-1457-4889-9cc3-ba2576913f3e" } 2021-01-26 21:32:15 | [Mutex] waiting for: [published:item:notifieditem-2c921a29-1457-4889-9cc3-ba2576913f3e:admin@test-domain.com] 2021-01-26 21:32:15 | [Mutex] received everything. 2021-01-26 21:32:15 | [Mutex] isItemNotified: published:item:notifieditem-2c921a29-1457-4889-9cc3-ba2576913f3e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.072s |
2021-01-26 21:32:15 |
2021-01-26 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:15 | ------------------------------------ 2021-01-26 21:32:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "item-id": "item-2c921a29-1457-4889-9cc3-ba2576913f3e" } 2021-01-26 21:32:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2c921a29-1457-4889-9cc3-ba2576913f3e" } 2021-01-26 21:32:15 | [Mutex] received everything. 2021-01-26 21:32:15 | [Mutex] isItemNotified: retracted:item:notifieditem-2c921a29-1457-4889-9cc3-ba2576913f3e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.095s |
2021-01-26 21:32:15 |
2021-01-26 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:15 | ------------------------------------ 2021-01-26 21:32:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "item-id": "item-2c921a29-1457-4889-9cc3-ba2576913f3e" } 2021-01-26 21:32:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "item-id": "item-2c921a29-1457-4889-9cc3-ba2576913f3e", "item": [ "<item id=\"item-2c921a29-1457-4889-9cc3-ba2576913f3e\"><test>item-2c921a29-1457-4889-9cc3-ba2576913f3e</test></item>" ] } 2021-01-26 21:32:15 | [Mutex] notify: [retrieved:item:item-2c921a29-1457-4889-9cc3-ba2576913f3e:payload-matches:true:localhost] 2021-01-26 21:32:15 | [Mutex] received everything. 2021-01-26 21:32:15 | [Mutex] isItemNotified: retrieved:item:item-2c921a29-1457-4889-9cc3-ba2576913f3e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2021-01-26 21:32:15 |
2021-01-26 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:15 | ------------------------------------ 2021-01-26 21:32:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-26 21:32:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-43fd1d35-2e9b-48bd-ab5d-75f1e14df835", "node-abac91a4-29c5-464e-b6d0-f48423fe628c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-01-26 21:32:15 |
2021-01-26 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:15 | ------------------------------------ 2021-01-26 21:32:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-abac91a4-29c5-464e-b6d0-f48423fe628c)" } 2021-01-26 21:32:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-01-26 21:32:14 |
2021-01-26 21:32:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:14 | ------------------------------------ 2021-01-26 21:32:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "jids": [ "admin@test-domain.com" ] } 2021-01-26 21:32:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2021-01-26 21:32:15 |
2021-01-26 21:32:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:32:15 | ------------------------------------ 2021-01-26 21:32:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-abac91a4-29c5-464e-b6d0-f48423fe628c", "jids": [ "admin@test-domain.com" ] } 2021-01-26 21:32:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |