Test duration : 8.797s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.156s |
2022-07-17 23:03:01 |
2022-07-17 23:03:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:01 | ------------------------------------ 2022-07-17 23:03:01 | [Mutex] waiting for: [configured:node:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:node-c0afa6c2-3d30-49cd-8a3f-405c742cfca3] 2022-07-17 23:03:01 | [Mutex] received everything. 2022-07-17 23:03:01 | [Mutex] isItemNotified: configured:node:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:node-c0afa6c2-3d30-49cd-8a3f-405c742cfca3 :: true 2022-07-17 23:03:02 | [Mutex] waiting for: [received:nodes:b3c9ce3d-f3a7-4791-90be-18d722e4036b:localhost] 2022-07-17 23:03:02 | [Mutex] received everything. 2022-07-17 23:03:02 | [Mutex] isItemNotified: received:node:b3c9ce3d-f3a7-4791-90be-18d722e4036b:localhost:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:Node b2e342b1-7ed9-4612-abae-98ecbe9caf1b :: true 2022-07-17 23:03:02 | [Mutex] waiting for: [received:nodes:cbd80c62-5fdd-4484-89e7-659a6e356408:localhost] 2022-07-17 23:03:02 | [Mutex] received everything. 2022-07-17 23:03:02 | [Mutex] isItemNotified: received:node:cbd80c62-5fdd-4484-89e7-659a6e356408:localhost:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:Node b2e342b1-7ed9-4612-abae-98ecbe9caf1b :: false |
createNodes | 1.731s |
2022-07-17 23:02:58 |
2022-07-17 23:02:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:02:58 | ------------------------------------ 2022-07-17 23:02: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-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "pubsub#title": "Node b2e342b1-7ed9-4612-abae-98ecbe9caf1b" } 2022-07-17 23:02:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-17 23:03:00 | [Mutex] waiting for: [received:nodes:2d70c15d-bce6-4650-acd6-0223a2100199:localhost] 2022-07-17 23:03:00 | [Mutex] received everything. 2022-07-17 23:03:00 | [Mutex] isItemNotified: received:node:2d70c15d-bce6-4650-acd6-0223a2100199:localhost:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:Node b2e342b1-7ed9-4612-abae-98ecbe9caf1b :: true |
createSubnodes | 1.019s |
2022-07-17 23:03:00 |
2022-07-17 23:03:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:00 | ------------------------------------ 2022-07-17 23:03: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-c0afa6c2-3d30-49cd-8a3f-405c742cfca3", "pubsub#title": "Node c0afa6c2-3d30-49cd-8a3f-405c742cfca3" } 2022-07-17 23:03:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-17 23:03:01 | [Mutex] waiting for: [received:nodes:d7d8a125-9f18-48a7-a1e5-9c0a326fce6f:localhost] 2022-07-17 23:03:01 | [Mutex] waiting for: [received:nodes:d7d8a125-9f18-48a7-a1e5-9c0a326fce6f:localhost] 2022-07-17 23:03:01 | [Mutex] received everything. 2022-07-17 23:03:01 | [Mutex] isItemNotified: received:node:d7d8a125-9f18-48a7-a1e5-9c0a326fce6f:localhost:node-c0afa6c2-3d30-49cd-8a3f-405c742cfca3:Node c0afa6c2-3d30-49cd-8a3f-405c742cfca3 :: true |
deleteNodes | 1.020s |
2022-07-17 23:03:05 |
2022-07-17 23:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:05 | ------------------------------------ 2022-07-17 23:03:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c0afa6c2-3d30-49cd-8a3f-405c742cfca3" } 2022-07-17 23:03:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-17 23:03:06 | [Mutex] waiting for: [received:nodes:f3b971a7-e54d-4394-b052-5d6bf0057c40:localhost] 2022-07-17 23:03:06 | [Mutex] waiting for: [received:nodes:f3b971a7-e54d-4394-b052-5d6bf0057c40:localhost] 2022-07-17 23:03:06 | [Mutex] received everything. 2022-07-17 23:03:06 | [Mutex] isItemNotified: received:node:f3b971a7-e54d-4394-b052-5d6bf0057c40:localhost:node-c0afa6c2-3d30-49cd-8a3f-405c742cfca3:Node c0afa6c2-3d30-49cd-8a3f-405c742cfca3 :: false |
deleteSubnodes | 1.022s |
2022-07-17 23:03:04 |
2022-07-17 23:03:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:04 | ------------------------------------ 2022-07-17 23:03:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b" } 2022-07-17 23:03:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-17 23:03:05 | [Mutex] waiting for: [received:nodes:86548b45-a455-4c56-9c81-7eb6db9f22d1:localhost] 2022-07-17 23:03:05 | [Mutex] waiting for: [received:nodes:86548b45-a455-4c56-9c81-7eb6db9f22d1:localhost] 2022-07-17 23:03:05 | [Mutex] waiting for: [received:nodes:86548b45-a455-4c56-9c81-7eb6db9f22d1:localhost] 2022-07-17 23:03:05 | [Mutex] waiting for: [received:nodes:86548b45-a455-4c56-9c81-7eb6db9f22d1:localhost] 2022-07-17 23:03:05 | [Mutex] received everything. 2022-07-17 23:03:05 | [Mutex] isItemNotified: received:node:86548b45-a455-4c56-9c81-7eb6db9f22d1:localhost:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:Node b2e342b1-7ed9-4612-abae-98ecbe9caf1b :: false 2022-07-17 23:03:05 | [Mutex] waiting for: [received:nodes:76ee4496-641b-4128-a106-9d08fc3e372c:localhost] 2022-07-17 23:03:05 | [Mutex] received everything. 2022-07-17 23:03:05 | [Mutex] isItemNotified: received:node:76ee4496-641b-4128-a106-9d08fc3e372c:localhost:node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b:Node b2e342b1-7ed9-4612-abae-98ecbe9caf1b :: false |
publishItemsToNodes | 0.039s |
2022-07-17 23:03:03 |
2022-07-17 23:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:03 | ------------------------------------ 2022-07-17 23:03:03 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "entry": "<test>item-9fc1ce78-e7ab-4b84-a68b-06495922847f</test>", "item-id": "item-9fc1ce78-e7ab-4b84-a68b-06495922847f" } 2022-07-17 23:03:03 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9fc1ce78-e7ab-4b84-a68b-06495922847f" } 2022-07-17 23:03:03 | [Mutex] waiting for: [published:item:notifieditem-9fc1ce78-e7ab-4b84-a68b-06495922847f:admin@test-domain.com] 2022-07-17 23:03:03 | [Mutex] received everything. 2022-07-17 23:03:03 | [Mutex] isItemNotified: published:item:notifieditem-9fc1ce78-e7ab-4b84-a68b-06495922847f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-07-17 23:03:03 |
2022-07-17 23:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:03 | ------------------------------------ 2022-07-17 23:03:03 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "item-id": "item-9fc1ce78-e7ab-4b84-a68b-06495922847f" } 2022-07-17 23:03:03 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9fc1ce78-e7ab-4b84-a68b-06495922847f" } 2022-07-17 23:03:03 | [Mutex] received everything. 2022-07-17 23:03:03 | [Mutex] isItemNotified: retracted:item:notifieditem-9fc1ce78-e7ab-4b84-a68b-06495922847f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2022-07-17 23:03:03 |
2022-07-17 23:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:03 | ------------------------------------ 2022-07-17 23:03:03 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "item-id": "item-9fc1ce78-e7ab-4b84-a68b-06495922847f" } 2022-07-17 23:03:03 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "item-id": "item-9fc1ce78-e7ab-4b84-a68b-06495922847f", "item": [ "<item id=\"item-9fc1ce78-e7ab-4b84-a68b-06495922847f\"><test>item-9fc1ce78-e7ab-4b84-a68b-06495922847f</test></item>" ] } 2022-07-17 23:03:03 | [Mutex] notify: [retrieved:item:item-9fc1ce78-e7ab-4b84-a68b-06495922847f:payload-matches:true:localhost] 2022-07-17 23:03:03 | [Mutex] received everything. 2022-07-17 23:03:03 | [Mutex] isItemNotified: retrieved:item:item-9fc1ce78-e7ab-4b84-a68b-06495922847f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-07-17 23:03:03 |
2022-07-17 23:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:03 | ------------------------------------ 2022-07-17 23:03:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-17 23:03:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-c0afa6c2-3d30-49cd-8a3f-405c742cfca3", "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-17 23:03:03 |
2022-07-17 23:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:03 | ------------------------------------ 2022-07-17 23:03:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b)" } 2022-07-17 23:03:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-07-17 23:03:02 |
2022-07-17 23:03:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:02 | ------------------------------------ 2022-07-17 23:03:02 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "jids": [ "admin@test-domain.com" ] } 2022-07-17 23:03:02 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.047s |
2022-07-17 23:03:03 |
2022-07-17 23:03:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-17 23:03:03 | ------------------------------------ 2022-07-17 23:03:03 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b2e342b1-7ed9-4612-abae-98ecbe9caf1b", "jids": [ "admin@test-domain.com" ] } 2022-07-17 23:03:03 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |