Test duration : 9.072s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2021-10-06 23:17:58 |
2021-10-06 23:17:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:17:58 | ------------------------------------ 2021-10-06 23:17:58 | [Mutex] waiting for: [configured:node:node-a7a6739a-c65f-4571-840a-92e54bec28ad:node-4fc07493-c60e-4abb-977a-47deb645681c] 2021-10-06 23:17:58 | [Mutex] received everything. 2021-10-06 23:17:58 | [Mutex] isItemNotified: configured:node:node-a7a6739a-c65f-4571-840a-92e54bec28ad:node-4fc07493-c60e-4abb-977a-47deb645681c :: true 2021-10-06 23:17:59 | [Mutex] waiting for: [received:nodes:8b6024b5-f94d-482c-aa14-0892d1c8d669:localhost] 2021-10-06 23:17:59 | [Mutex] waiting for: [received:nodes:8b6024b5-f94d-482c-aa14-0892d1c8d669:localhost] 2021-10-06 23:17:59 | [Mutex] received everything. 2021-10-06 23:17:59 | [Mutex] isItemNotified: received:node:8b6024b5-f94d-482c-aa14-0892d1c8d669:localhost:node-a7a6739a-c65f-4571-840a-92e54bec28ad:Node a7a6739a-c65f-4571-840a-92e54bec28ad :: true 2021-10-06 23:17:59 | [Mutex] waiting for: [received:nodes:063d8643-f4f3-4ef1-a0d1-105716f48634:localhost] 2021-10-06 23:17:59 | [Mutex] received everything. 2021-10-06 23:17:59 | [Mutex] isItemNotified: received:node:063d8643-f4f3-4ef1-a0d1-105716f48634:localhost:node-a7a6739a-c65f-4571-840a-92e54bec28ad:Node a7a6739a-c65f-4571-840a-92e54bec28ad :: false |
createNodes | 1.715s |
2021-10-06 23:17:56 |
2021-10-06 23:17:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:17:56 | ------------------------------------ 2021-10-06 23:17:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "pubsub#title": "Node a7a6739a-c65f-4571-840a-92e54bec28ad" } 2021-10-06 23:17:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 23:17:57 | [Mutex] waiting for: [received:nodes:d79051ee-5e81-4cb6-9698-40870e75a048:localhost] 2021-10-06 23:17:57 | [Mutex] received everything. 2021-10-06 23:17:57 | [Mutex] isItemNotified: received:node:d79051ee-5e81-4cb6-9698-40870e75a048:localhost:node-a7a6739a-c65f-4571-840a-92e54bec28ad:Node a7a6739a-c65f-4571-840a-92e54bec28ad :: true |
createSubnodes | 1.028s |
2021-10-06 23:17:57 |
2021-10-06 23:17:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:17:57 | ------------------------------------ 2021-10-06 23:17:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4fc07493-c60e-4abb-977a-47deb645681c", "pubsub#title": "Node 4fc07493-c60e-4abb-977a-47deb645681c" } 2021-10-06 23:17:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 23:17:58 | [Mutex] waiting for: [received:nodes:39c19422-5988-42d6-81a2-61bf344427d5:localhost] 2021-10-06 23:17:58 | [Mutex] received everything. 2021-10-06 23:17:58 | [Mutex] isItemNotified: received:node:39c19422-5988-42d6-81a2-61bf344427d5:localhost:node-4fc07493-c60e-4abb-977a-47deb645681c:Node 4fc07493-c60e-4abb-977a-47deb645681c :: true |
deleteNodes | 1.022s |
2021-10-06 23:18:03 |
2021-10-06 23:18:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:03 | ------------------------------------ 2021-10-06 23:18:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4fc07493-c60e-4abb-977a-47deb645681c" } 2021-10-06 23:18:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 23:18:04 | [Mutex] waiting for: [received:nodes:b22b119f-6602-4aad-be23-319ea317f815:localhost] 2021-10-06 23:18:04 | [Mutex] received everything. 2021-10-06 23:18:04 | [Mutex] isItemNotified: received:node:b22b119f-6602-4aad-be23-319ea317f815:localhost:node-4fc07493-c60e-4abb-977a-47deb645681c:Node 4fc07493-c60e-4abb-977a-47deb645681c :: false |
deleteSubnodes | 1.030s |
2021-10-06 23:18:02 |
2021-10-06 23:18:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:02 | ------------------------------------ 2021-10-06 23:18:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad" } 2021-10-06 23:18:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 23:18:03 | [Mutex] waiting for: [received:nodes:b3970bc6-6450-4554-b16f-9304f8a4ea27:localhost] 2021-10-06 23:18:03 | [Mutex] received everything. 2021-10-06 23:18:03 | [Mutex] isItemNotified: received:node:b3970bc6-6450-4554-b16f-9304f8a4ea27:localhost:node-a7a6739a-c65f-4571-840a-92e54bec28ad:Node a7a6739a-c65f-4571-840a-92e54bec28ad :: false 2021-10-06 23:18:03 | [Mutex] waiting for: [received:nodes:3f6bb375-74fc-4db2-b117-4344fcaa1f1d:localhost] 2021-10-06 23:18:03 | [Mutex] received everything. 2021-10-06 23:18:03 | [Mutex] isItemNotified: received:node:3f6bb375-74fc-4db2-b117-4344fcaa1f1d:localhost:node-a7a6739a-c65f-4571-840a-92e54bec28ad:Node a7a6739a-c65f-4571-840a-92e54bec28ad :: false |
publishItemsToNodes | 0.057s |
2021-10-06 23:18:00 |
2021-10-06 23:18:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:00 | ------------------------------------ 2021-10-06 23:18:00 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "entry": "<test>item-de15ab66-70b4-4988-b1d6-f23a2e9383d5</test>", "item-id": "item-de15ab66-70b4-4988-b1d6-f23a2e9383d5" } 2021-10-06 23:18:01 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-de15ab66-70b4-4988-b1d6-f23a2e9383d5" } 2021-10-06 23:18:01 | [Mutex] received everything. 2021-10-06 23:18:01 | [Mutex] isItemNotified: published:item:notifieditem-de15ab66-70b4-4988-b1d6-f23a2e9383d5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2021-10-06 23:18:01 |
2021-10-06 23:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:01 | ------------------------------------ 2021-10-06 23:18:01 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "item-id": "item-de15ab66-70b4-4988-b1d6-f23a2e9383d5" } 2021-10-06 23:18:01 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-de15ab66-70b4-4988-b1d6-f23a2e9383d5" } 2021-10-06 23:18:01 | [Mutex] received everything. 2021-10-06 23:18:01 | [Mutex] isItemNotified: retracted:item:notifieditem-de15ab66-70b4-4988-b1d6-f23a2e9383d5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2021-10-06 23:18:01 |
2021-10-06 23:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:01 | ------------------------------------ 2021-10-06 23:18:01 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "item-id": "item-de15ab66-70b4-4988-b1d6-f23a2e9383d5" } 2021-10-06 23:18:01 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "item-id": "item-de15ab66-70b4-4988-b1d6-f23a2e9383d5", "item": [ "<item id=\"item-de15ab66-70b4-4988-b1d6-f23a2e9383d5\"><test>item-de15ab66-70b4-4988-b1d6-f23a2e9383d5</test></item>" ] } 2021-10-06 23:18:01 | [Mutex] notify: [retrieved:item:item-de15ab66-70b4-4988-b1d6-f23a2e9383d5:payload-matches:true:localhost] 2021-10-06 23:18:01 | [Mutex] received everything. 2021-10-06 23:18:01 | [Mutex] isItemNotified: retrieved:item:item-de15ab66-70b4-4988-b1d6-f23a2e9383d5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.099s |
2021-10-06 23:18:01 |
2021-10-06 23:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:01 | ------------------------------------ 2021-10-06 23:18:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-06 23:18:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-4fc07493-c60e-4abb-977a-47deb645681c", "test", "node-a7a6739a-c65f-4571-840a-92e54bec28ad" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-10-06 23:18:01 |
2021-10-06 23:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:01 | ------------------------------------ 2021-10-06 23:18:01 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a7a6739a-c65f-4571-840a-92e54bec28ad)" } 2021-10-06 23:18:01 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-10-06 23:17:59 |
2021-10-06 23:17:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:17:59 | ------------------------------------ 2021-10-06 23:17:59 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "jids": [ "admin@test-domain.com" ] } 2021-10-06 23:17:59 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.083s |
2021-10-06 23:18:01 |
2021-10-06 23:18:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 23:18:01 | ------------------------------------ 2021-10-06 23:18:01 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a7a6739a-c65f-4571-840a-92e54bec28ad", "jids": [ "admin@test-domain.com" ] } 2021-10-06 23:18:01 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |