Test duration : 8.663s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.097s |
2022-08-12 23:11:01 |
2022-08-12 23:11:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:01 | ------------------------------------ 2022-08-12 23:11:01 | [Mutex] waiting for: [configured:node:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:node-c9409153-3b68-443b-b207-22fec449ddee] 2022-08-12 23:11:01 | [Mutex] received everything. 2022-08-12 23:11:01 | [Mutex] isItemNotified: configured:node:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:node-c9409153-3b68-443b-b207-22fec449ddee :: true 2022-08-12 23:11:02 | [Mutex] waiting for: [received:nodes:00d0bbd6-d0df-4e12-a261-22cc402a00fd:localhost] 2022-08-12 23:11:02 | [Mutex] received everything. 2022-08-12 23:11:02 | [Mutex] isItemNotified: received:node:00d0bbd6-d0df-4e12-a261-22cc402a00fd:localhost:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:Node 60e3ed97-7ad5-4715-a327-1d53a8f88b60 :: true 2022-08-12 23:11:02 | [Mutex] waiting for: [received:nodes:a06909dc-9810-48fc-afdf-88fb7d58e1a1:localhost] 2022-08-12 23:11:02 | [Mutex] waiting for: [received:nodes:a06909dc-9810-48fc-afdf-88fb7d58e1a1:localhost] 2022-08-12 23:11:02 | [Mutex] waiting for: [received:nodes:a06909dc-9810-48fc-afdf-88fb7d58e1a1:localhost] 2022-08-12 23:11:02 | [Mutex] waiting for: [received:nodes:a06909dc-9810-48fc-afdf-88fb7d58e1a1:localhost] 2022-08-12 23:11:02 | [Mutex] received everything. 2022-08-12 23:11:02 | [Mutex] isItemNotified: received:node:a06909dc-9810-48fc-afdf-88fb7d58e1a1:localhost:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:Node 60e3ed97-7ad5-4715-a327-1d53a8f88b60 :: false |
createNodes | 1.568s |
2022-08-12 23:10:59 |
2022-08-12 23:10:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:10:59 | ------------------------------------ 2022-08-12 23:10:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "pubsub#title": "Node 60e3ed97-7ad5-4715-a327-1d53a8f88b60" } 2022-08-12 23:10:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 23:11:00 | [Mutex] waiting for: [received:nodes:c21cbccf-5106-4103-902a-10a371707a45:localhost] 2022-08-12 23:11:00 | [Mutex] received everything. 2022-08-12 23:11:00 | [Mutex] isItemNotified: received:node:c21cbccf-5106-4103-902a-10a371707a45:localhost:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:Node 60e3ed97-7ad5-4715-a327-1d53a8f88b60 :: true |
createSubnodes | 1.021s |
2022-08-12 23:11:00 |
2022-08-12 23:11:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:00 | ------------------------------------ 2022-08-12 23:11:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c9409153-3b68-443b-b207-22fec449ddee", "pubsub#title": "Node c9409153-3b68-443b-b207-22fec449ddee" } 2022-08-12 23:11:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 23:11:01 | [Mutex] waiting for: [received:nodes:2ab8a220-45f7-4649-b84a-8e760b57a00c:localhost] 2022-08-12 23:11:01 | [Mutex] waiting for: [received:nodes:2ab8a220-45f7-4649-b84a-8e760b57a00c:localhost] 2022-08-12 23:11:01 | [Mutex] received everything. 2022-08-12 23:11:01 | [Mutex] isItemNotified: received:node:2ab8a220-45f7-4649-b84a-8e760b57a00c:localhost:node-c9409153-3b68-443b-b207-22fec449ddee:Node c9409153-3b68-443b-b207-22fec449ddee :: true |
deleteNodes | 1.021s |
2022-08-12 23:11:06 |
2022-08-12 23:11:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:06 | ------------------------------------ 2022-08-12 23:11:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c9409153-3b68-443b-b207-22fec449ddee" } 2022-08-12 23:11:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 23:11:07 | [Mutex] waiting for: [received:nodes:02d11aa4-aa22-4470-b482-31d958114d3c:localhost] 2022-08-12 23:11:07 | [Mutex] waiting for: [received:nodes:02d11aa4-aa22-4470-b482-31d958114d3c:localhost] 2022-08-12 23:11:07 | [Mutex] received everything. 2022-08-12 23:11:07 | [Mutex] isItemNotified: received:node:02d11aa4-aa22-4470-b482-31d958114d3c:localhost:node-c9409153-3b68-443b-b207-22fec449ddee:Node c9409153-3b68-443b-b207-22fec449ddee :: false |
deleteSubnodes | 1.039s |
2022-08-12 23:11:05 |
2022-08-12 23:11:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:05 | ------------------------------------ 2022-08-12 23:11:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60" } 2022-08-12 23:11:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 23:11:06 | [Mutex] waiting for: [received:nodes:d41e837f-0d66-425a-9372-32057a180085:localhost] 2022-08-12 23:11:06 | [Mutex] received everything. 2022-08-12 23:11:06 | [Mutex] isItemNotified: received:node:d41e837f-0d66-425a-9372-32057a180085:localhost:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:Node 60e3ed97-7ad5-4715-a327-1d53a8f88b60 :: false 2022-08-12 23:11:06 | [Mutex] waiting for: [received:nodes:2ea908bb-68f1-4d60-9695-20d405fc0d5d:localhost] 2022-08-12 23:11:06 | [Mutex] received everything. 2022-08-12 23:11:06 | [Mutex] isItemNotified: received:node:2ea908bb-68f1-4d60-9695-20d405fc0d5d:localhost:node-60e3ed97-7ad5-4715-a327-1d53a8f88b60:Node 60e3ed97-7ad5-4715-a327-1d53a8f88b60 :: false |
publishItemsToNodes | 0.066s |
2022-08-12 23:11:03 |
2022-08-12 23:11:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:03 | ------------------------------------ 2022-08-12 23:11:03 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "entry": "<test>item-8f79508c-dbe4-43c2-a2c7-be43bf291317</test>", "item-id": "item-8f79508c-dbe4-43c2-a2c7-be43bf291317" } 2022-08-12 23:11:03 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8f79508c-dbe4-43c2-a2c7-be43bf291317" } 2022-08-12 23:11:03 | [Mutex] waiting for: [published:item:notifieditem-8f79508c-dbe4-43c2-a2c7-be43bf291317:admin@test-domain.com] 2022-08-12 23:11:03 | [Mutex] received everything. 2022-08-12 23:11:03 | [Mutex] isItemNotified: published:item:notifieditem-8f79508c-dbe4-43c2-a2c7-be43bf291317:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-08-12 23:11:04 |
2022-08-12 23:11:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:04 | ------------------------------------ 2022-08-12 23:11:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "item-id": "item-8f79508c-dbe4-43c2-a2c7-be43bf291317" } 2022-08-12 23:11:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-8f79508c-dbe4-43c2-a2c7-be43bf291317" } 2022-08-12 23:11:04 | [Mutex] waiting for: [retracted:item:notifieditem-8f79508c-dbe4-43c2-a2c7-be43bf291317:admin@test-domain.com] 2022-08-12 23:11:04 | [Mutex] received everything. 2022-08-12 23:11:04 | [Mutex] isItemNotified: retracted:item:notifieditem-8f79508c-dbe4-43c2-a2c7-be43bf291317:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.054s |
2022-08-12 23:11:03 |
2022-08-12 23:11:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:03 | ------------------------------------ 2022-08-12 23:11:03 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "item-id": "item-8f79508c-dbe4-43c2-a2c7-be43bf291317" } 2022-08-12 23:11:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "item-id": "item-8f79508c-dbe4-43c2-a2c7-be43bf291317", "item": [ "<item id=\"item-8f79508c-dbe4-43c2-a2c7-be43bf291317\"><test>item-8f79508c-dbe4-43c2-a2c7-be43bf291317</test></item>" ] } 2022-08-12 23:11:04 | [Mutex] notify: [retrieved:item:item-8f79508c-dbe4-43c2-a2c7-be43bf291317:payload-matches:true:localhost] 2022-08-12 23:11:04 | [Mutex] received everything. 2022-08-12 23:11:04 | [Mutex] isItemNotified: retrieved:item:item-8f79508c-dbe4-43c2-a2c7-be43bf291317:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2022-08-12 23:11:04 |
2022-08-12 23:11:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:04 | ------------------------------------ 2022-08-12 23:11:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-12 23:11:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c9409153-3b68-443b-b207-22fec449ddee", "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-12 23:11:04 |
2022-08-12 23:11:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:04 | ------------------------------------ 2022-08-12 23:11:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-60e3ed97-7ad5-4715-a327-1d53a8f88b60)" } 2022-08-12 23:11:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-08-12 23:11:02 |
2022-08-12 23:11:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:02 | ------------------------------------ 2022-08-12 23:11:02 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "jids": [ "admin@test-domain.com" ] } 2022-08-12 23:11:02 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2022-08-12 23:11:04 |
2022-08-12 23:11:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 23:11:04 | ------------------------------------ 2022-08-12 23:11:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-60e3ed97-7ad5-4715-a327-1d53a8f88b60", "jids": [ "admin@test-domain.com" ] } 2022-08-12 23:11:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |