Test duration : 9.106s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.163s |
2022-02-17 21:47:49 |
2022-02-17 21:47:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:49 | ------------------------------------ 2022-02-17 21:47:49 | [Mutex] waiting for: [configured:node:node-bd2123cd-82ed-48ef-81ef-0361993446d2:node-3ba917d2-f389-4413-91a0-df52c3bc4262] 2022-02-17 21:47:49 | [Mutex] received everything. 2022-02-17 21:47:49 | [Mutex] isItemNotified: configured:node:node-bd2123cd-82ed-48ef-81ef-0361993446d2:node-3ba917d2-f389-4413-91a0-df52c3bc4262 :: true 2022-02-17 21:47:50 | [Mutex] waiting for: [received:nodes:5f47be92-d40a-4fb7-a7e7-e129354923ac:localhost] 2022-02-17 21:47:50 | [Mutex] received everything. 2022-02-17 21:47:50 | [Mutex] isItemNotified: received:node:5f47be92-d40a-4fb7-a7e7-e129354923ac:localhost:node-bd2123cd-82ed-48ef-81ef-0361993446d2:Node bd2123cd-82ed-48ef-81ef-0361993446d2 :: true 2022-02-17 21:47:50 | [Mutex] waiting for: [received:nodes:f7010996-fdea-4f16-8984-94bbb047bbfe:localhost] 2022-02-17 21:47:50 | [Mutex] waiting for: [received:nodes:f7010996-fdea-4f16-8984-94bbb047bbfe:localhost] 2022-02-17 21:47:50 | [Mutex] received everything. 2022-02-17 21:47:50 | [Mutex] isItemNotified: received:node:f7010996-fdea-4f16-8984-94bbb047bbfe:localhost:node-bd2123cd-82ed-48ef-81ef-0361993446d2:Node bd2123cd-82ed-48ef-81ef-0361993446d2 :: false |
createNodes | 1.704s |
2022-02-17 21:47:46 |
2022-02-17 21:47:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:46 | ------------------------------------ 2022-02-17 21:47:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "pubsub#title": "Node bd2123cd-82ed-48ef-81ef-0361993446d2" } 2022-02-17 21:47:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 21:47:48 | [Mutex] waiting for: [received:nodes:93bb1d93-9a96-4e80-ad9d-6f627ac22c02:localhost] 2022-02-17 21:47:48 | [Mutex] received everything. 2022-02-17 21:47:48 | [Mutex] isItemNotified: received:node:93bb1d93-9a96-4e80-ad9d-6f627ac22c02:localhost:node-bd2123cd-82ed-48ef-81ef-0361993446d2:Node bd2123cd-82ed-48ef-81ef-0361993446d2 :: true |
createSubnodes | 1.032s |
2022-02-17 21:47:48 |
2022-02-17 21:47:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:48 | ------------------------------------ 2022-02-17 21:47:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3ba917d2-f389-4413-91a0-df52c3bc4262", "pubsub#title": "Node 3ba917d2-f389-4413-91a0-df52c3bc4262" } 2022-02-17 21:47:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 21:47:49 | [Mutex] waiting for: [received:nodes:eb5884f1-1cff-4e93-bb8b-245aa9a41800:localhost] 2022-02-17 21:47:49 | [Mutex] received everything. 2022-02-17 21:47:49 | [Mutex] isItemNotified: received:node:eb5884f1-1cff-4e93-bb8b-245aa9a41800:localhost:node-3ba917d2-f389-4413-91a0-df52c3bc4262:Node 3ba917d2-f389-4413-91a0-df52c3bc4262 :: true |
deleteNodes | 1.027s |
2022-02-17 21:47:53 |
2022-02-17 21:47:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:53 | ------------------------------------ 2022-02-17 21:47:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3ba917d2-f389-4413-91a0-df52c3bc4262" } 2022-02-17 21:47:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 21:47:54 | [Mutex] waiting for: [received:nodes:11c22574-72ec-43da-89fd-f6f9057f0393:localhost] 2022-02-17 21:47:54 | [Mutex] received everything. 2022-02-17 21:47:54 | [Mutex] isItemNotified: received:node:11c22574-72ec-43da-89fd-f6f9057f0393:localhost:node-3ba917d2-f389-4413-91a0-df52c3bc4262:Node 3ba917d2-f389-4413-91a0-df52c3bc4262 :: false |
deleteSubnodes | 1.034s |
2022-02-17 21:47:52 |
2022-02-17 21:47:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:52 | ------------------------------------ 2022-02-17 21:47:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2" } 2022-02-17 21:47:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-17 21:47:53 | [Mutex] waiting for: [received:nodes:5fe346cc-89aa-4717-a52d-49ebe71a4a64:localhost] 2022-02-17 21:47:53 | [Mutex] received everything. 2022-02-17 21:47:53 | [Mutex] isItemNotified: received:node:5fe346cc-89aa-4717-a52d-49ebe71a4a64:localhost:node-bd2123cd-82ed-48ef-81ef-0361993446d2:Node bd2123cd-82ed-48ef-81ef-0361993446d2 :: false 2022-02-17 21:47:53 | [Mutex] waiting for: [received:nodes:49e1c32e-1443-4314-bb5e-ee1dc4ecc17d:localhost] 2022-02-17 21:47:53 | [Mutex] received everything. 2022-02-17 21:47:53 | [Mutex] isItemNotified: received:node:49e1c32e-1443-4314-bb5e-ee1dc4ecc17d:localhost:node-bd2123cd-82ed-48ef-81ef-0361993446d2:Node bd2123cd-82ed-48ef-81ef-0361993446d2 :: false |
publishItemsToNodes | 0.048s |
2022-02-17 21:47:51 |
2022-02-17 21:47:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:51 | ------------------------------------ 2022-02-17 21:47:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "entry": "<test>item-c67872a2-e740-494d-a52d-ab6c64cafc4b</test>", "item-id": "item-c67872a2-e740-494d-a52d-ab6c64cafc4b" } 2022-02-17 21:47:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c67872a2-e740-494d-a52d-ab6c64cafc4b" } 2022-02-17 21:47:51 | [Mutex] waiting for: [published:item:notifieditem-c67872a2-e740-494d-a52d-ab6c64cafc4b:admin@test-domain.com] 2022-02-17 21:47:51 | [Mutex] received everything. 2022-02-17 21:47:51 | [Mutex] isItemNotified: published:item:notifieditem-c67872a2-e740-494d-a52d-ab6c64cafc4b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2022-02-17 21:47:51 |
2022-02-17 21:47:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:51 | ------------------------------------ 2022-02-17 21:47:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "item-id": "item-c67872a2-e740-494d-a52d-ab6c64cafc4b" } 2022-02-17 21:47:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c67872a2-e740-494d-a52d-ab6c64cafc4b" } 2022-02-17 21:47:51 | [Mutex] received everything. 2022-02-17 21:47:51 | [Mutex] isItemNotified: retracted:item:notifieditem-c67872a2-e740-494d-a52d-ab6c64cafc4b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2022-02-17 21:47:51 |
2022-02-17 21:47:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:51 | ------------------------------------ 2022-02-17 21:47:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "item-id": "item-c67872a2-e740-494d-a52d-ab6c64cafc4b" } 2022-02-17 21:47:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "item-id": "item-c67872a2-e740-494d-a52d-ab6c64cafc4b", "item": [ "<item id=\"item-c67872a2-e740-494d-a52d-ab6c64cafc4b\"><test>item-c67872a2-e740-494d-a52d-ab6c64cafc4b</test></item>" ] } 2022-02-17 21:47:51 | [Mutex] notify: [retrieved:item:item-c67872a2-e740-494d-a52d-ab6c64cafc4b:payload-matches:true:localhost] 2022-02-17 21:47:51 | [Mutex] received everything. 2022-02-17 21:47:51 | [Mutex] isItemNotified: retrieved:item:item-c67872a2-e740-494d-a52d-ab6c64cafc4b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-02-17 21:47:51 |
2022-02-17 21:47:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:51 | ------------------------------------ 2022-02-17 21:47:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-17 21:47:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "test", "node-3ba917d2-f389-4413-91a0-df52c3bc4262" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-02-17 21:47:51 |
2022-02-17 21:47:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:51 | ------------------------------------ 2022-02-17 21:47:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-bd2123cd-82ed-48ef-81ef-0361993446d2)" } 2022-02-17 21:47:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-02-17 21:47:50 |
2022-02-17 21:47:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:50 | ------------------------------------ 2022-02-17 21:47:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "jids": [ "admin@test-domain.com" ] } 2022-02-17 21:47:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.080s |
2022-02-17 21:47:51 |
2022-02-17 21:47:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-17 21:47:51 | ------------------------------------ 2022-02-17 21:47:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-bd2123cd-82ed-48ef-81ef-0361993446d2", "jids": [ "admin@test-domain.com" ] } 2022-02-17 21:47:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |