Test duration : 8.869s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.127s |
2022-02-03 01:59:02 |
2022-02-03 01:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:02 | ------------------------------------ 2022-02-03 01:59:02 | [Mutex] waiting for: [configured:node:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:node-326f7b2c-2205-4645-9533-5dacf4ce4f7b] 2022-02-03 01:59:02 | [Mutex] received everything. 2022-02-03 01:59:02 | [Mutex] isItemNotified: configured:node:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:node-326f7b2c-2205-4645-9533-5dacf4ce4f7b :: true 2022-02-03 01:59:03 | [Mutex] waiting for: [received:nodes:6261c830-559b-4acf-a76c-ad0e20cc23bd:localhost] 2022-02-03 01:59:03 | [Mutex] received everything. 2022-02-03 01:59:03 | [Mutex] isItemNotified: received:node:6261c830-559b-4acf-a76c-ad0e20cc23bd:localhost:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:Node c07c6f41-a939-458f-ac7e-d553ec9eee7f :: true 2022-02-03 01:59:03 | [Mutex] waiting for: [received:nodes:aa7d60fc-d5f2-4b76-845d-de6703620022:localhost] 2022-02-03 01:59:03 | [Mutex] waiting for: [received:nodes:aa7d60fc-d5f2-4b76-845d-de6703620022:localhost] 2022-02-03 01:59:03 | [Mutex] received everything. 2022-02-03 01:59:03 | [Mutex] isItemNotified: received:node:aa7d60fc-d5f2-4b76-845d-de6703620022:localhost:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:Node c07c6f41-a939-458f-ac7e-d553ec9eee7f :: false |
createNodes | 1.640s |
2022-02-03 01:58:59 |
2022-02-03 01:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:58:59 | ------------------------------------ 2022-02-03 01:59:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "pubsub#title": "Node c07c6f41-a939-458f-ac7e-d553ec9eee7f" } 2022-02-03 01:59:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 01:59:01 | [Mutex] waiting for: [received:nodes:fdedc404-ded2-473a-ae68-13bed9c3c77d:localhost] 2022-02-03 01:59:01 | [Mutex] waiting for: [received:nodes:fdedc404-ded2-473a-ae68-13bed9c3c77d:localhost] 2022-02-03 01:59:01 | [Mutex] received everything. 2022-02-03 01:59:01 | [Mutex] isItemNotified: received:node:fdedc404-ded2-473a-ae68-13bed9c3c77d:localhost:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:Node c07c6f41-a939-458f-ac7e-d553ec9eee7f :: true |
createSubnodes | 1.031s |
2022-02-03 01:59:01 |
2022-02-03 01:59:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:01 | ------------------------------------ 2022-02-03 01:59:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-326f7b2c-2205-4645-9533-5dacf4ce4f7b", "pubsub#title": "Node 326f7b2c-2205-4645-9533-5dacf4ce4f7b" } 2022-02-03 01:59:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 01:59:02 | [Mutex] waiting for: [received:nodes:bda329cd-8b37-4f01-b128-9b1866643910:localhost] 2022-02-03 01:59:02 | [Mutex] received everything. 2022-02-03 01:59:02 | [Mutex] isItemNotified: received:node:bda329cd-8b37-4f01-b128-9b1866643910:localhost:node-326f7b2c-2205-4645-9533-5dacf4ce4f7b:Node 326f7b2c-2205-4645-9533-5dacf4ce4f7b :: true |
deleteNodes | 1.020s |
2022-02-03 01:59:06 |
2022-02-03 01:59:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:06 | ------------------------------------ 2022-02-03 01:59:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-326f7b2c-2205-4645-9533-5dacf4ce4f7b" } 2022-02-03 01:59:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 01:59:07 | [Mutex] waiting for: [received:nodes:e2e7f159-343d-491b-95ba-f388f023156f:localhost] 2022-02-03 01:59:07 | [Mutex] received everything. 2022-02-03 01:59:07 | [Mutex] isItemNotified: received:node:e2e7f159-343d-491b-95ba-f388f023156f:localhost:node-326f7b2c-2205-4645-9533-5dacf4ce4f7b:Node 326f7b2c-2205-4645-9533-5dacf4ce4f7b :: false |
deleteSubnodes | 1.045s |
2022-02-03 01:59:05 |
2022-02-03 01:59:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:05 | ------------------------------------ 2022-02-03 01:59:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f" } 2022-02-03 01:59:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-03 01:59:06 | [Mutex] waiting for: [received:nodes:7005747f-4287-49a8-85ab-ab2e7edd3e0b:localhost] 2022-02-03 01:59:06 | [Mutex] waiting for: [received:nodes:7005747f-4287-49a8-85ab-ab2e7edd3e0b:localhost] 2022-02-03 01:59:06 | [Mutex] received everything. 2022-02-03 01:59:06 | [Mutex] isItemNotified: received:node:7005747f-4287-49a8-85ab-ab2e7edd3e0b:localhost:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:Node c07c6f41-a939-458f-ac7e-d553ec9eee7f :: false 2022-02-03 01:59:06 | [Mutex] waiting for: [received:nodes:247426da-1785-4293-b787-72ce81c9c412:localhost] 2022-02-03 01:59:06 | [Mutex] received everything. 2022-02-03 01:59:06 | [Mutex] isItemNotified: received:node:247426da-1785-4293-b787-72ce81c9c412:localhost:node-c07c6f41-a939-458f-ac7e-d553ec9eee7f:Node c07c6f41-a939-458f-ac7e-d553ec9eee7f :: false |
publishItemsToNodes | 0.064s |
2022-02-03 01:59:04 |
2022-02-03 01:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:04 | ------------------------------------ 2022-02-03 01:59:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "entry": "<test>item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3</test>", "item-id": "item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3" } 2022-02-03 01:59:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3" } 2022-02-03 01:59:04 | [Mutex] waiting for: [published:item:notifieditem-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3:admin@test-domain.com] 2022-02-03 01:59:04 | [Mutex] received everything. 2022-02-03 01:59:04 | [Mutex] isItemNotified: published:item:notifieditem-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-02-03 01:59:04 |
2022-02-03 01:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:04 | ------------------------------------ 2022-02-03 01:59:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "item-id": "item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3" } 2022-02-03 01:59:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3" } 2022-02-03 01:59:04 | [Mutex] received everything. 2022-02-03 01:59:04 | [Mutex] isItemNotified: retracted:item:notifieditem-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.017s |
2022-02-03 01:59:04 |
2022-02-03 01:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:04 | ------------------------------------ 2022-02-03 01:59:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "item-id": "item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3" } 2022-02-03 01:59:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "item-id": "item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3", "item": [ "<item id=\"item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3\"><test>item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3</test></item>" ] } 2022-02-03 01:59:04 | [Mutex] notify: [retrieved:item:item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3:payload-matches:true:localhost] 2022-02-03 01:59:04 | [Mutex] received everything. 2022-02-03 01:59:04 | [Mutex] isItemNotified: retrieved:item:item-f15b4cae-8d12-47c7-bcda-9fe35f7bc8d3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.061s |
2022-02-03 01:59:04 |
2022-02-03 01:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:04 | ------------------------------------ 2022-02-03 01:59:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-03 01:59:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "node-326f7b2c-2205-4645-9533-5dacf4ce4f7b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-03 01:59:04 |
2022-02-03 01:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:04 | ------------------------------------ 2022-02-03 01:59:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-c07c6f41-a939-458f-ac7e-d553ec9eee7f)" } 2022-02-03 01:59:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-02-03 01:59:03 |
2022-02-03 01:59:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:03 | ------------------------------------ 2022-02-03 01:59:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "jids": [ "admin@test-domain.com" ] } 2022-02-03 01:59:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-02-03 01:59:04 |
2022-02-03 01:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-03 01:59:04 | ------------------------------------ 2022-02-03 01:59:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c07c6f41-a939-458f-ac7e-d553ec9eee7f", "jids": [ "admin@test-domain.com" ] } 2022-02-03 01:59:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |