Test duration : 9.235s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2020-10-23 22:41:02 |
2020-10-23 22:41:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:02 | ------------------------------------ 2020-10-23 22:41:02 | [Mutex] waiting for: [configured:node:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:node-67787efa-eb34-48fd-a3b7-1b1fab939a0a] 2020-10-23 22:41:02 | [Mutex] received everything. 2020-10-23 22:41:02 | [Mutex] isItemNotified: configured:node:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:node-67787efa-eb34-48fd-a3b7-1b1fab939a0a :: true 2020-10-23 22:41:03 | [Mutex] waiting for: [received:nodes:fed2c582-6a41-4575-9d9e-02070f3053f5:localhost] 2020-10-23 22:41:03 | [Mutex] received everything. 2020-10-23 22:41:03 | [Mutex] isItemNotified: received:node:fed2c582-6a41-4575-9d9e-02070f3053f5:localhost:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:Node e9516a66-6e5b-43f3-9a2b-fbc0a459de39 :: true 2020-10-23 22:41:03 | [Mutex] waiting for: [received:nodes:a7580577-d83a-41fa-976f-6197b4b0b04d:localhost] 2020-10-23 22:41:03 | [Mutex] waiting for: [received:nodes:a7580577-d83a-41fa-976f-6197b4b0b04d:localhost] 2020-10-23 22:41:03 | [Mutex] received everything. 2020-10-23 22:41:03 | [Mutex] isItemNotified: received:node:a7580577-d83a-41fa-976f-6197b4b0b04d:localhost:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:Node e9516a66-6e5b-43f3-9a2b-fbc0a459de39 :: false |
createNodes | 1.755s |
2020-10-23 22:40:59 |
2020-10-23 22:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:40:59 | ------------------------------------ 2020-10-23 22:41:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "pubsub#title": "Node e9516a66-6e5b-43f3-9a2b-fbc0a459de39" } 2020-10-23 22:41:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:41:01 | [Mutex] waiting for: [received:nodes:08377361-8d46-4fc8-9ae1-8f815b011bf0:localhost] 2020-10-23 22:41:01 | [Mutex] received everything. 2020-10-23 22:41:01 | [Mutex] isItemNotified: received:node:08377361-8d46-4fc8-9ae1-8f815b011bf0:localhost:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:Node e9516a66-6e5b-43f3-9a2b-fbc0a459de39 :: true |
createSubnodes | 1.027s |
2020-10-23 22:41:01 |
2020-10-23 22:41:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:01 | ------------------------------------ 2020-10-23 22:41:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-67787efa-eb34-48fd-a3b7-1b1fab939a0a", "pubsub#title": "Node 67787efa-eb34-48fd-a3b7-1b1fab939a0a" } 2020-10-23 22:41:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:41:02 | [Mutex] waiting for: [received:nodes:55ce0512-08a2-4e7c-b138-b4f738e9d5b7:localhost] 2020-10-23 22:41:02 | [Mutex] waiting for: [received:nodes:55ce0512-08a2-4e7c-b138-b4f738e9d5b7:localhost] 2020-10-23 22:41:02 | [Mutex] waiting for: [received:nodes:55ce0512-08a2-4e7c-b138-b4f738e9d5b7:localhost] 2020-10-23 22:41:02 | [Mutex] received everything. 2020-10-23 22:41:02 | [Mutex] isItemNotified: received:node:55ce0512-08a2-4e7c-b138-b4f738e9d5b7:localhost:node-67787efa-eb34-48fd-a3b7-1b1fab939a0a:Node 67787efa-eb34-48fd-a3b7-1b1fab939a0a :: true |
deleteNodes | 1.022s |
2020-10-23 22:41:06 |
2020-10-23 22:41:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:06 | ------------------------------------ 2020-10-23 22:41:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-67787efa-eb34-48fd-a3b7-1b1fab939a0a" } 2020-10-23 22:41:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:41:08 | [Mutex] waiting for: [received:nodes:86daca9f-54f3-468b-86e2-e5d36d5eac3b:localhost] 2020-10-23 22:41:08 | [Mutex] waiting for: [received:nodes:86daca9f-54f3-468b-86e2-e5d36d5eac3b:localhost] 2020-10-23 22:41:08 | [Mutex] received everything. 2020-10-23 22:41:08 | [Mutex] isItemNotified: received:node:86daca9f-54f3-468b-86e2-e5d36d5eac3b:localhost:node-67787efa-eb34-48fd-a3b7-1b1fab939a0a:Node 67787efa-eb34-48fd-a3b7-1b1fab939a0a :: false |
deleteSubnodes | 1.031s |
2020-10-23 22:41:05 |
2020-10-23 22:41:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:05 | ------------------------------------ 2020-10-23 22:41:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39" } 2020-10-23 22:41:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-23 22:41:06 | [Mutex] waiting for: [received:nodes:62673561-86fe-46a9-94fd-4e500d39c5b6:localhost] 2020-10-23 22:41:06 | [Mutex] received everything. 2020-10-23 22:41:06 | [Mutex] isItemNotified: received:node:62673561-86fe-46a9-94fd-4e500d39c5b6:localhost:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:Node e9516a66-6e5b-43f3-9a2b-fbc0a459de39 :: false 2020-10-23 22:41:06 | [Mutex] waiting for: [received:nodes:0f90e0b3-73ef-4987-95b4-95504f019e82:localhost] 2020-10-23 22:41:06 | [Mutex] received everything. 2020-10-23 22:41:06 | [Mutex] isItemNotified: received:node:0f90e0b3-73ef-4987-95b4-95504f019e82:localhost:node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39:Node e9516a66-6e5b-43f3-9a2b-fbc0a459de39 :: false |
publishItemsToNodes | 0.072s |
2020-10-23 22:41:04 |
2020-10-23 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:04 | ------------------------------------ 2020-10-23 22:41:04 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "entry": "<test>item-40e5833a-af7c-40e8-bdc3-7535a024fc2e</test>", "item-id": "item-40e5833a-af7c-40e8-bdc3-7535a024fc2e" } 2020-10-23 22:41:04 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40e5833a-af7c-40e8-bdc3-7535a024fc2e" } 2020-10-23 22:41:04 | [Mutex] waiting for: [published:item:notifieditem-40e5833a-af7c-40e8-bdc3-7535a024fc2e:admin@test-domain.com] 2020-10-23 22:41:04 | [Mutex] received everything. 2020-10-23 22:41:04 | [Mutex] isItemNotified: published:item:notifieditem-40e5833a-af7c-40e8-bdc3-7535a024fc2e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.062s |
2020-10-23 22:41:04 |
2020-10-23 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:04 | ------------------------------------ 2020-10-23 22:41:04 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "item-id": "item-40e5833a-af7c-40e8-bdc3-7535a024fc2e" } 2020-10-23 22:41:04 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40e5833a-af7c-40e8-bdc3-7535a024fc2e" } 2020-10-23 22:41:04 | [Mutex] waiting for: [retracted:item:notifieditem-40e5833a-af7c-40e8-bdc3-7535a024fc2e:admin@test-domain.com] 2020-10-23 22:41:04 | [Mutex] received everything. 2020-10-23 22:41:04 | [Mutex] isItemNotified: retracted:item:notifieditem-40e5833a-af7c-40e8-bdc3-7535a024fc2e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.046s |
2020-10-23 22:41:04 |
2020-10-23 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:04 | ------------------------------------ 2020-10-23 22:41:04 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "item-id": "item-40e5833a-af7c-40e8-bdc3-7535a024fc2e" } 2020-10-23 22:41:04 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "item-id": "item-40e5833a-af7c-40e8-bdc3-7535a024fc2e", "item": [ "<item id=\"item-40e5833a-af7c-40e8-bdc3-7535a024fc2e\"><test>item-40e5833a-af7c-40e8-bdc3-7535a024fc2e</test></item>" ] } 2020-10-23 22:41:04 | [Mutex] notify: [retrieved:item:item-40e5833a-af7c-40e8-bdc3-7535a024fc2e:payload-matches:true:localhost] 2020-10-23 22:41:04 | [Mutex] received everything. 2020-10-23 22:41:04 | [Mutex] isItemNotified: retrieved:item:item-40e5833a-af7c-40e8-bdc3-7535a024fc2e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-10-23 22:41:04 |
2020-10-23 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:04 | ------------------------------------ 2020-10-23 22:41:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-23 22:41:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "test", "node-67787efa-eb34-48fd-a3b7-1b1fab939a0a" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-10-23 22:41:04 |
2020-10-23 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:04 | ------------------------------------ 2020-10-23 22:41:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39)" } 2020-10-23 22:41:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-10-23 22:41:03 |
2020-10-23 22:41:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:03 | ------------------------------------ 2020-10-23 22:41:03 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "jids": [ "admin@test-domain.com" ] } 2020-10-23 22:41:03 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.097s |
2020-10-23 22:41:04 |
2020-10-23 22:41:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-23 22:41:04 | ------------------------------------ 2020-10-23 22:41:04 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e9516a66-6e5b-43f3-9a2b-fbc0a459de39", "jids": [ "admin@test-domain.com" ] } 2020-10-23 22:41:04 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |