Test duration : 8.618s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-07-26 23:02:54 |
2022-07-26 23:02:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:54 | ------------------------------------ 2022-07-26 23:02:54 | [Mutex] waiting for: [configured:node:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:node-3996af7e-c895-47de-a063-090a7fe69095] 2022-07-26 23:02:54 | [Mutex] received everything. 2022-07-26 23:02:54 | [Mutex] isItemNotified: configured:node:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:node-3996af7e-c895-47de-a063-090a7fe69095 :: true 2022-07-26 23:02:55 | [Mutex] waiting for: [received:nodes:e0d59300-1fa5-4781-912c-246e3818fed3:localhost] 2022-07-26 23:02:55 | [Mutex] received everything. 2022-07-26 23:02:55 | [Mutex] isItemNotified: received:node:e0d59300-1fa5-4781-912c-246e3818fed3:localhost:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:Node 0613d5bf-b1ba-4302-a3be-eee878207e3a :: true 2022-07-26 23:02:55 | [Mutex] waiting for: [received:nodes:16bf5da5-8aea-450e-b14a-66b41cf3f5c1:localhost] 2022-07-26 23:02:55 | [Mutex] received everything. 2022-07-26 23:02:55 | [Mutex] isItemNotified: received:node:16bf5da5-8aea-450e-b14a-66b41cf3f5c1:localhost:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:Node 0613d5bf-b1ba-4302-a3be-eee878207e3a :: false |
createNodes | 1.539s |
2022-07-26 23:02:52 |
2022-07-26 23:02:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:52 | ------------------------------------ 2022-07-26 23:02:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "pubsub#title": "Node 0613d5bf-b1ba-4302-a3be-eee878207e3a" } 2022-07-26 23:02:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:02:53 | [Mutex] waiting for: [received:nodes:2970f14c-9747-4ba1-a25f-067c3a2364a4:localhost] 2022-07-26 23:02:53 | [Mutex] received everything. 2022-07-26 23:02:53 | [Mutex] isItemNotified: received:node:2970f14c-9747-4ba1-a25f-067c3a2364a4:localhost:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:Node 0613d5bf-b1ba-4302-a3be-eee878207e3a :: true |
createSubnodes | 1.021s |
2022-07-26 23:02:53 |
2022-07-26 23:02:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:53 | ------------------------------------ 2022-07-26 23:02:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3996af7e-c895-47de-a063-090a7fe69095", "pubsub#title": "Node 3996af7e-c895-47de-a063-090a7fe69095" } 2022-07-26 23:02:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:02:54 | [Mutex] waiting for: [received:nodes:08a52ffb-4148-4991-ab1d-5e49ab6608ea:localhost] 2022-07-26 23:02:54 | [Mutex] received everything. 2022-07-26 23:02:54 | [Mutex] isItemNotified: received:node:08a52ffb-4148-4991-ab1d-5e49ab6608ea:localhost:node-3996af7e-c895-47de-a063-090a7fe69095:Node 3996af7e-c895-47de-a063-090a7fe69095 :: true |
deleteNodes | 1.023s |
2022-07-26 23:02:59 |
2022-07-26 23:02:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:59 | ------------------------------------ 2022-07-26 23:02:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3996af7e-c895-47de-a063-090a7fe69095" } 2022-07-26 23:02:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:03:00 | [Mutex] waiting for: [received:nodes:044eaca6-ba15-47d4-a5e7-7240fb0a39aa:localhost] 2022-07-26 23:03:00 | [Mutex] waiting for: [received:nodes:044eaca6-ba15-47d4-a5e7-7240fb0a39aa:localhost] 2022-07-26 23:03:00 | [Mutex] received everything. 2022-07-26 23:03:00 | [Mutex] isItemNotified: received:node:044eaca6-ba15-47d4-a5e7-7240fb0a39aa:localhost:node-3996af7e-c895-47de-a063-090a7fe69095:Node 3996af7e-c895-47de-a063-090a7fe69095 :: false |
deleteSubnodes | 1.028s |
2022-07-26 23:02:58 |
2022-07-26 23:02:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:58 | ------------------------------------ 2022-07-26 23:02:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a" } 2022-07-26 23:02:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 23:02:59 | [Mutex] waiting for: [received:nodes:992b0ed2-a46d-44a7-ae5e-7db124ce3fbe:localhost] 2022-07-26 23:02:59 | [Mutex] waiting for: [received:nodes:992b0ed2-a46d-44a7-ae5e-7db124ce3fbe:localhost] 2022-07-26 23:02:59 | [Mutex] waiting for: [received:nodes:992b0ed2-a46d-44a7-ae5e-7db124ce3fbe:localhost] 2022-07-26 23:02:59 | [Mutex] received everything. 2022-07-26 23:02:59 | [Mutex] isItemNotified: received:node:992b0ed2-a46d-44a7-ae5e-7db124ce3fbe:localhost:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:Node 0613d5bf-b1ba-4302-a3be-eee878207e3a :: false 2022-07-26 23:02:59 | [Mutex] waiting for: [received:nodes:a6c25236-0ff7-40d0-8837-b639582da6b2:localhost] 2022-07-26 23:02:59 | [Mutex] received everything. 2022-07-26 23:02:59 | [Mutex] isItemNotified: received:node:a6c25236-0ff7-40d0-8837-b639582da6b2:localhost:node-0613d5bf-b1ba-4302-a3be-eee878207e3a:Node 0613d5bf-b1ba-4302-a3be-eee878207e3a :: false |
publishItemsToNodes | 0.079s |
2022-07-26 23:02:56 |
2022-07-26 23:02:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:56 | ------------------------------------ 2022-07-26 23:02:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "entry": "<test>item-573eb7c5-c251-4efb-8d6b-0a912b4158ba</test>", "item-id": "item-573eb7c5-c251-4efb-8d6b-0a912b4158ba" } 2022-07-26 23:02:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-573eb7c5-c251-4efb-8d6b-0a912b4158ba" } 2022-07-26 23:02:56 | [Mutex] waiting for: [published:item:notifieditem-573eb7c5-c251-4efb-8d6b-0a912b4158ba:admin@test-domain.com] 2022-07-26 23:02:56 | [Mutex] received everything. 2022-07-26 23:02:56 | [Mutex] isItemNotified: published:item:notifieditem-573eb7c5-c251-4efb-8d6b-0a912b4158ba:admin@test-domain.com :: true |
retractItemsFromNodes | 0.061s |
2022-07-26 23:02:57 |
2022-07-26 23:02:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:57 | ------------------------------------ 2022-07-26 23:02:57 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "item-id": "item-573eb7c5-c251-4efb-8d6b-0a912b4158ba" } 2022-07-26 23:02:57 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-573eb7c5-c251-4efb-8d6b-0a912b4158ba" } 2022-07-26 23:02:57 | [Mutex] waiting for: [retracted:item:notifieditem-573eb7c5-c251-4efb-8d6b-0a912b4158ba:admin@test-domain.com] 2022-07-26 23:02:57 | [Mutex] received everything. 2022-07-26 23:02:57 | [Mutex] isItemNotified: retracted:item:notifieditem-573eb7c5-c251-4efb-8d6b-0a912b4158ba:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.089s |
2022-07-26 23:02:56 |
2022-07-26 23:02:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:56 | ------------------------------------ 2022-07-26 23:02:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "item-id": "item-573eb7c5-c251-4efb-8d6b-0a912b4158ba" } 2022-07-26 23:02:57 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "item-id": "item-573eb7c5-c251-4efb-8d6b-0a912b4158ba", "item": [ "<item id=\"item-573eb7c5-c251-4efb-8d6b-0a912b4158ba\"><test>item-573eb7c5-c251-4efb-8d6b-0a912b4158ba</test></item>" ] } 2022-07-26 23:02:57 | [Mutex] notify: [retrieved:item:item-573eb7c5-c251-4efb-8d6b-0a912b4158ba:payload-matches:true:localhost] 2022-07-26 23:02:57 | [Mutex] received everything. 2022-07-26 23:02:57 | [Mutex] isItemNotified: retrieved:item:item-573eb7c5-c251-4efb-8d6b-0a912b4158ba:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-07-26 23:02:57 |
2022-07-26 23:02:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:57 | ------------------------------------ 2022-07-26 23:02:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-26 23:02:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-3996af7e-c895-47de-a063-090a7fe69095", "node-0613d5bf-b1ba-4302-a3be-eee878207e3a" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-26 23:02:57 |
2022-07-26 23:02:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:57 | ------------------------------------ 2022-07-26 23:02:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0613d5bf-b1ba-4302-a3be-eee878207e3a)" } 2022-07-26 23:02:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-07-26 23:02:55 |
2022-07-26 23:02:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:55 | ------------------------------------ 2022-07-26 23:02:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "jids": [ "admin@test-domain.com" ] } 2022-07-26 23:02:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.049s |
2022-07-26 23:02:57 |
2022-07-26 23:02:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 23:02:57 | ------------------------------------ 2022-07-26 23:02:57 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0613d5bf-b1ba-4302-a3be-eee878207e3a", "jids": [ "admin@test-domain.com" ] } 2022-07-26 23:02:57 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |