Test duration : 8.653s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.146s |
2022-10-02 23:09:12 |
2022-10-02 23:09:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:12 | ------------------------------------ 2022-10-02 23:09:12 | [Mutex] waiting for: [configured:node:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:node-346fc798-f1e6-48d5-be2c-d288430858fe] 2022-10-02 23:09:12 | [Mutex] received everything. 2022-10-02 23:09:12 | [Mutex] isItemNotified: configured:node:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:node-346fc798-f1e6-48d5-be2c-d288430858fe :: true 2022-10-02 23:09:13 | [Mutex] waiting for: [received:nodes:59914776-1a8c-4b63-9cea-b3c6a464cb6a:localhost] 2022-10-02 23:09:13 | [Mutex] received everything. 2022-10-02 23:09:13 | [Mutex] isItemNotified: received:node:59914776-1a8c-4b63-9cea-b3c6a464cb6a:localhost:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:Node 93de0cd8-cd0b-4c88-86ed-6f6db916b468 :: true 2022-10-02 23:09:13 | [Mutex] waiting for: [received:nodes:3712eab9-da32-4c9e-bedf-ba6a11e81479:localhost] 2022-10-02 23:09:13 | [Mutex] received everything. 2022-10-02 23:09:13 | [Mutex] isItemNotified: received:node:3712eab9-da32-4c9e-bedf-ba6a11e81479:localhost:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:Node 93de0cd8-cd0b-4c88-86ed-6f6db916b468 :: false |
createNodes | 1.645s |
2022-10-02 23:09:10 |
2022-10-02 23:09:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:10 | ------------------------------------ 2022-10-02 23:09: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-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "pubsub#title": "Node 93de0cd8-cd0b-4c88-86ed-6f6db916b468" } 2022-10-02 23:09:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 23:09:11 | [Mutex] waiting for: [received:nodes:c108fba4-257e-40fa-beba-2a2dc4257b6d:localhost] 2022-10-02 23:09:11 | [Mutex] waiting for: [received:nodes:c108fba4-257e-40fa-beba-2a2dc4257b6d:localhost] 2022-10-02 23:09:11 | [Mutex] received everything. 2022-10-02 23:09:11 | [Mutex] isItemNotified: received:node:c108fba4-257e-40fa-beba-2a2dc4257b6d:localhost:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:Node 93de0cd8-cd0b-4c88-86ed-6f6db916b468 :: true |
createSubnodes | 1.023s |
2022-10-02 23:09:11 |
2022-10-02 23:09:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:11 | ------------------------------------ 2022-10-02 23:09: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-346fc798-f1e6-48d5-be2c-d288430858fe", "pubsub#title": "Node 346fc798-f1e6-48d5-be2c-d288430858fe" } 2022-10-02 23:09:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 23:09:12 | [Mutex] waiting for: [received:nodes:a2b4b450-3015-47ea-9dce-46501aeddd19:localhost] 2022-10-02 23:09:12 | [Mutex] waiting for: [received:nodes:a2b4b450-3015-47ea-9dce-46501aeddd19:localhost] 2022-10-02 23:09:12 | [Mutex] received everything. 2022-10-02 23:09:12 | [Mutex] isItemNotified: received:node:a2b4b450-3015-47ea-9dce-46501aeddd19:localhost:node-346fc798-f1e6-48d5-be2c-d288430858fe:Node 346fc798-f1e6-48d5-be2c-d288430858fe :: true |
deleteNodes | 1.028s |
2022-10-02 23:09:17 |
2022-10-02 23:09:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:17 | ------------------------------------ 2022-10-02 23:09:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-346fc798-f1e6-48d5-be2c-d288430858fe" } 2022-10-02 23:09:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 23:09:18 | [Mutex] waiting for: [received:nodes:d775f450-c629-468e-9493-05886cab787b:localhost] 2022-10-02 23:09:18 | [Mutex] waiting for: [received:nodes:d775f450-c629-468e-9493-05886cab787b:localhost] 2022-10-02 23:09:18 | [Mutex] received everything. 2022-10-02 23:09:18 | [Mutex] isItemNotified: received:node:d775f450-c629-468e-9493-05886cab787b:localhost:node-346fc798-f1e6-48d5-be2c-d288430858fe:Node 346fc798-f1e6-48d5-be2c-d288430858fe :: false |
deleteSubnodes | 1.022s |
2022-10-02 23:09:16 |
2022-10-02 23:09:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:16 | ------------------------------------ 2022-10-02 23:09:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468" } 2022-10-02 23:09:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-02 23:09:17 | [Mutex] waiting for: [received:nodes:e766547a-0030-4f03-96ff-0ab5839d48ec:localhost] 2022-10-02 23:09:17 | [Mutex] received everything. 2022-10-02 23:09:17 | [Mutex] isItemNotified: received:node:e766547a-0030-4f03-96ff-0ab5839d48ec:localhost:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:Node 93de0cd8-cd0b-4c88-86ed-6f6db916b468 :: false 2022-10-02 23:09:17 | [Mutex] waiting for: [received:nodes:2cfaac09-0c91-4505-99b2-3deae3c0dc7b:localhost] 2022-10-02 23:09:17 | [Mutex] received everything. 2022-10-02 23:09:17 | [Mutex] isItemNotified: received:node:2cfaac09-0c91-4505-99b2-3deae3c0dc7b:localhost:node-93de0cd8-cd0b-4c88-86ed-6f6db916b468:Node 93de0cd8-cd0b-4c88-86ed-6f6db916b468 :: false |
publishItemsToNodes | 0.055s |
2022-10-02 23:09:14 |
2022-10-02 23:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:14 | ------------------------------------ 2022-10-02 23:09:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "entry": "<test>item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6</test>", "item-id": "item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6" } 2022-10-02 23:09:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6" } 2022-10-02 23:09:14 | [Mutex] waiting for: [published:item:notifieditem-97c24dcc-8e4c-44d8-b597-f2c60514a2c6:admin@test-domain.com] 2022-10-02 23:09:14 | [Mutex] received everything. 2022-10-02 23:09:14 | [Mutex] isItemNotified: published:item:notifieditem-97c24dcc-8e4c-44d8-b597-f2c60514a2c6:admin@test-domain.com :: true |
retractItemsFromNodes | 0.069s |
2022-10-02 23:09:15 |
2022-10-02 23:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:15 | ------------------------------------ 2022-10-02 23:09:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "item-id": "item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6" } 2022-10-02 23:09:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6" } 2022-10-02 23:09:15 | [Mutex] waiting for: [retracted:item:notifieditem-97c24dcc-8e4c-44d8-b597-f2c60514a2c6:admin@test-domain.com] 2022-10-02 23:09:15 | [Mutex] received everything. 2022-10-02 23:09:15 | [Mutex] isItemNotified: retracted:item:notifieditem-97c24dcc-8e4c-44d8-b597-f2c60514a2c6:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.014s |
2022-10-02 23:09:14 |
2022-10-02 23:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:14 | ------------------------------------ 2022-10-02 23:09:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "item-id": "item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6" } 2022-10-02 23:09:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "item-id": "item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6", "item": [ "<item id=\"item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6\"><test>item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6</test></item>" ] } 2022-10-02 23:09:14 | [Mutex] notify: [retrieved:item:item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6:payload-matches:true:localhost] 2022-10-02 23:09:14 | [Mutex] received everything. 2022-10-02 23:09:14 | [Mutex] isItemNotified: retrieved:item:item-97c24dcc-8e4c-44d8-b597-f2c60514a2c6:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2022-10-02 23:09:14 |
2022-10-02 23:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:14 | ------------------------------------ 2022-10-02 23:09:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-02 23:09:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "node-346fc798-f1e6-48d5-be2c-d288430858fe" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-10-02 23:09:14 |
2022-10-02 23:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:14 | ------------------------------------ 2022-10-02 23:09:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-93de0cd8-cd0b-4c88-86ed-6f6db916b468)" } 2022-10-02 23:09:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-10-02 23:09:13 |
2022-10-02 23:09:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:13 | ------------------------------------ 2022-10-02 23:09:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "jids": [ "admin@test-domain.com" ] } 2022-10-02 23:09:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.053s |
2022-10-02 23:09:15 |
2022-10-02 23:09:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-02 23:09:15 | ------------------------------------ 2022-10-02 23:09:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-93de0cd8-cd0b-4c88-86ed-6f6db916b468", "jids": [ "admin@test-domain.com" ] } 2022-10-02 23:09:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |