Test duration : 8.904s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2022-07-06 23:05:17 |
2022-07-06 23:05:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:17 | ------------------------------------ 2022-07-06 23:05:17 | [Mutex] waiting for: [configured:node:node-3ef44761-e221-4766-b94b-c62bec9b8862:node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99] 2022-07-06 23:05:17 | [Mutex] received everything. 2022-07-06 23:05:17 | [Mutex] isItemNotified: configured:node:node-3ef44761-e221-4766-b94b-c62bec9b8862:node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99 :: true 2022-07-06 23:05:18 | [Mutex] waiting for: [received:nodes:95abbd83-f3c2-4af9-963d-c0ad7c70a4ee:localhost] 2022-07-06 23:05:18 | [Mutex] received everything. 2022-07-06 23:05:18 | [Mutex] isItemNotified: received:node:95abbd83-f3c2-4af9-963d-c0ad7c70a4ee:localhost:node-3ef44761-e221-4766-b94b-c62bec9b8862:Node 3ef44761-e221-4766-b94b-c62bec9b8862 :: true 2022-07-06 23:05:18 | [Mutex] waiting for: [received:nodes:8a63c820-a43f-4e95-84e9-a3155b9c8353:localhost] 2022-07-06 23:05:18 | [Mutex] waiting for: [received:nodes:8a63c820-a43f-4e95-84e9-a3155b9c8353:localhost] 2022-07-06 23:05:18 | [Mutex] received everything. 2022-07-06 23:05:18 | [Mutex] isItemNotified: received:node:8a63c820-a43f-4e95-84e9-a3155b9c8353:localhost:node-3ef44761-e221-4766-b94b-c62bec9b8862:Node 3ef44761-e221-4766-b94b-c62bec9b8862 :: false |
createNodes | 1.707s |
2022-07-06 23:05:14 |
2022-07-06 23:05:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:14 | ------------------------------------ 2022-07-06 23:05:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "pubsub#title": "Node 3ef44761-e221-4766-b94b-c62bec9b8862" } 2022-07-06 23:05:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 23:05:16 | [Mutex] waiting for: [received:nodes:b6172a90-0008-43c5-aab6-8c51721849ee:localhost] 2022-07-06 23:05:16 | [Mutex] received everything. 2022-07-06 23:05:16 | [Mutex] isItemNotified: received:node:b6172a90-0008-43c5-aab6-8c51721849ee:localhost:node-3ef44761-e221-4766-b94b-c62bec9b8862:Node 3ef44761-e221-4766-b94b-c62bec9b8862 :: true |
createSubnodes | 1.022s |
2022-07-06 23:05:16 |
2022-07-06 23:05:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:16 | ------------------------------------ 2022-07-06 23:05:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99", "pubsub#title": "Node 2bde7b6b-20b1-4822-bcbc-5bb61ed92a99" } 2022-07-06 23:05:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 23:05:17 | [Mutex] waiting for: [received:nodes:caadad67-56f2-442d-a879-692d36586913:localhost] 2022-07-06 23:05:17 | [Mutex] received everything. 2022-07-06 23:05:17 | [Mutex] isItemNotified: received:node:caadad67-56f2-442d-a879-692d36586913:localhost:node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99:Node 2bde7b6b-20b1-4822-bcbc-5bb61ed92a99 :: true |
deleteNodes | 1.024s |
2022-07-06 23:05:21 |
2022-07-06 23:05:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:21 | ------------------------------------ 2022-07-06 23:05:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99" } 2022-07-06 23:05:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 23:05:23 | [Mutex] waiting for: [received:nodes:fdc12eed-7187-4520-b77c-a43f771321ce:localhost] 2022-07-06 23:05:23 | [Mutex] received everything. 2022-07-06 23:05:23 | [Mutex] isItemNotified: received:node:fdc12eed-7187-4520-b77c-a43f771321ce:localhost:node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99:Node 2bde7b6b-20b1-4822-bcbc-5bb61ed92a99 :: false |
deleteSubnodes | 1.068s |
2022-07-06 23:05:20 |
2022-07-06 23:05:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:20 | ------------------------------------ 2022-07-06 23:05:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862" } 2022-07-06 23:05:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-06 23:05:21 | [Mutex] waiting for: [received:nodes:3dc514b1-2f6f-4855-a7d2-f2af1b7a5757:localhost] 2022-07-06 23:05:21 | [Mutex] waiting for: [received:nodes:3dc514b1-2f6f-4855-a7d2-f2af1b7a5757:localhost] 2022-07-06 23:05:21 | [Mutex] waiting for: [received:nodes:3dc514b1-2f6f-4855-a7d2-f2af1b7a5757:localhost] 2022-07-06 23:05:21 | [Mutex] received everything. 2022-07-06 23:05:21 | [Mutex] isItemNotified: received:node:3dc514b1-2f6f-4855-a7d2-f2af1b7a5757:localhost:node-3ef44761-e221-4766-b94b-c62bec9b8862:Node 3ef44761-e221-4766-b94b-c62bec9b8862 :: false 2022-07-06 23:05:21 | [Mutex] waiting for: [received:nodes:5f67693d-2edb-4e1f-9d2f-9bd4e3c424af:localhost] 2022-07-06 23:05:21 | [Mutex] received everything. 2022-07-06 23:05:21 | [Mutex] isItemNotified: received:node:5f67693d-2edb-4e1f-9d2f-9bd4e3c424af:localhost:node-3ef44761-e221-4766-b94b-c62bec9b8862:Node 3ef44761-e221-4766-b94b-c62bec9b8862 :: false |
publishItemsToNodes | 0.074s |
2022-07-06 23:05:19 |
2022-07-06 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:19 | ------------------------------------ 2022-07-06 23:05:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "entry": "<test>item-d9e78c82-69d4-4e0d-971b-9982291486dd</test>", "item-id": "item-d9e78c82-69d4-4e0d-971b-9982291486dd" } 2022-07-06 23:05:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d9e78c82-69d4-4e0d-971b-9982291486dd" } 2022-07-06 23:05:19 | [Mutex] waiting for: [published:item:notifieditem-d9e78c82-69d4-4e0d-971b-9982291486dd:admin@test-domain.com] 2022-07-06 23:05:19 | [Mutex] received everything. 2022-07-06 23:05:19 | [Mutex] isItemNotified: published:item:notifieditem-d9e78c82-69d4-4e0d-971b-9982291486dd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2022-07-06 23:05:19 |
2022-07-06 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:19 | ------------------------------------ 2022-07-06 23:05:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "item-id": "item-d9e78c82-69d4-4e0d-971b-9982291486dd" } 2022-07-06 23:05:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d9e78c82-69d4-4e0d-971b-9982291486dd" } 2022-07-06 23:05:19 | [Mutex] waiting for: [retracted:item:notifieditem-d9e78c82-69d4-4e0d-971b-9982291486dd:admin@test-domain.com] 2022-07-06 23:05:19 | [Mutex] received everything. 2022-07-06 23:05:19 | [Mutex] isItemNotified: retracted:item:notifieditem-d9e78c82-69d4-4e0d-971b-9982291486dd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.079s |
2022-07-06 23:05:19 |
2022-07-06 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:19 | ------------------------------------ 2022-07-06 23:05:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "item-id": "item-d9e78c82-69d4-4e0d-971b-9982291486dd" } 2022-07-06 23:05:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "item-id": "item-d9e78c82-69d4-4e0d-971b-9982291486dd", "item": [ "<item id=\"item-d9e78c82-69d4-4e0d-971b-9982291486dd\"><test>item-d9e78c82-69d4-4e0d-971b-9982291486dd</test></item>" ] } 2022-07-06 23:05:19 | [Mutex] notify: [retrieved:item:item-d9e78c82-69d4-4e0d-971b-9982291486dd:payload-matches:true:localhost] 2022-07-06 23:05:19 | [Mutex] received everything. 2022-07-06 23:05:19 | [Mutex] isItemNotified: retrieved:item:item-d9e78c82-69d4-4e0d-971b-9982291486dd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-06 23:05:19 |
2022-07-06 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:19 | ------------------------------------ 2022-07-06 23:05:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-06 23:05:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2bde7b6b-20b1-4822-bcbc-5bb61ed92a99", "node-3ef44761-e221-4766-b94b-c62bec9b8862", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-06 23:05:19 |
2022-07-06 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:19 | ------------------------------------ 2022-07-06 23:05:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3ef44761-e221-4766-b94b-c62bec9b8862)" } 2022-07-06 23:05:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-07-06 23:05:18 |
2022-07-06 23:05:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:18 | ------------------------------------ 2022-07-06 23:05:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "jids": [ "admin@test-domain.com" ] } 2022-07-06 23:05:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.050s |
2022-07-06 23:05:19 |
2022-07-06 23:05:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-06 23:05:19 | ------------------------------------ 2022-07-06 23:05:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3ef44761-e221-4766-b94b-c62bec9b8862", "jids": [ "admin@test-domain.com" ] } 2022-07-06 23:05:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |