Test duration : 9.046s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.116s |
2022-02-16 22:02:00 |
2022-02-16 22:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:00 | ------------------------------------ 2022-02-16 22:02:00 | [Mutex] waiting for: [configured:node:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:node-5f71d658-6686-409c-974e-056459115927] 2022-02-16 22:02:00 | [Mutex] received everything. 2022-02-16 22:02:00 | [Mutex] isItemNotified: configured:node:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:node-5f71d658-6686-409c-974e-056459115927 :: true 2022-02-16 22:02:01 | [Mutex] waiting for: [received:nodes:31167f5b-e5af-4455-a4f0-2032cd2ed35c:localhost] 2022-02-16 22:02:01 | [Mutex] received everything. 2022-02-16 22:02:01 | [Mutex] isItemNotified: received:node:31167f5b-e5af-4455-a4f0-2032cd2ed35c:localhost:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:Node ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea :: true 2022-02-16 22:02:01 | [Mutex] waiting for: [received:nodes:8408163b-2920-4981-9388-c9b45fa6350b:localhost] 2022-02-16 22:02:01 | [Mutex] received everything. 2022-02-16 22:02:01 | [Mutex] isItemNotified: received:node:8408163b-2920-4981-9388-c9b45fa6350b:localhost:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:Node ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea :: false |
createNodes | 1.597s |
2022-02-16 22:01:57 |
2022-02-16 22:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:01:57 | ------------------------------------ 2022-02-16 22:01:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "pubsub#title": "Node ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea" } 2022-02-16 22:01:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:01:59 | [Mutex] waiting for: [received:nodes:d7d56459-fb46-446d-a8a1-e8a0b5db944d:localhost] 2022-02-16 22:01:59 | [Mutex] waiting for: [received:nodes:d7d56459-fb46-446d-a8a1-e8a0b5db944d:localhost] 2022-02-16 22:01:59 | [Mutex] received everything. 2022-02-16 22:01:59 | [Mutex] isItemNotified: received:node:d7d56459-fb46-446d-a8a1-e8a0b5db944d:localhost:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:Node ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea :: true |
createSubnodes | 1.034s |
2022-02-16 22:01:59 |
2022-02-16 22:01:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:01:59 | ------------------------------------ 2022-02-16 22:01:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5f71d658-6686-409c-974e-056459115927", "pubsub#title": "Node 5f71d658-6686-409c-974e-056459115927" } 2022-02-16 22:01:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:02:00 | [Mutex] waiting for: [received:nodes:4dad40e7-ada5-4ec0-8d86-d41f3ec2ce59:localhost] 2022-02-16 22:02:00 | [Mutex] received everything. 2022-02-16 22:02:00 | [Mutex] isItemNotified: received:node:4dad40e7-ada5-4ec0-8d86-d41f3ec2ce59:localhost:node-5f71d658-6686-409c-974e-056459115927:Node 5f71d658-6686-409c-974e-056459115927 :: true |
deleteNodes | 1.021s |
2022-02-16 22:02:04 |
2022-02-16 22:02:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:04 | ------------------------------------ 2022-02-16 22:02:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5f71d658-6686-409c-974e-056459115927" } 2022-02-16 22:02:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:02:05 | [Mutex] waiting for: [received:nodes:2a83a57b-867e-4d79-b66c-1f1cf22c09c4:localhost] 2022-02-16 22:02:05 | [Mutex] waiting for: [received:nodes:2a83a57b-867e-4d79-b66c-1f1cf22c09c4:localhost] 2022-02-16 22:02:05 | [Mutex] received everything. 2022-02-16 22:02:05 | [Mutex] isItemNotified: received:node:2a83a57b-867e-4d79-b66c-1f1cf22c09c4:localhost:node-5f71d658-6686-409c-974e-056459115927:Node 5f71d658-6686-409c-974e-056459115927 :: false |
deleteSubnodes | 1.032s |
2022-02-16 22:02:03 |
2022-02-16 22:02:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:03 | ------------------------------------ 2022-02-16 22:02:03 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea" } 2022-02-16 22:02:03 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:02:04 | [Mutex] waiting for: [received:nodes:97883806-e905-46e3-8e30-a81389e4576f:localhost] 2022-02-16 22:02:04 | [Mutex] received everything. 2022-02-16 22:02:04 | [Mutex] isItemNotified: received:node:97883806-e905-46e3-8e30-a81389e4576f:localhost:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:Node ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea :: false 2022-02-16 22:02:04 | [Mutex] waiting for: [received:nodes:85eac3e4-e3f5-4300-9c56-be648b7b385c:localhost] 2022-02-16 22:02:04 | [Mutex] received everything. 2022-02-16 22:02:04 | [Mutex] isItemNotified: received:node:85eac3e4-e3f5-4300-9c56-be648b7b385c:localhost:node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea:Node ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea :: false |
publishItemsToNodes | 0.065s |
2022-02-16 22:02:02 |
2022-02-16 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:02 | ------------------------------------ 2022-02-16 22:02:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "entry": "<test>item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1</test>", "item-id": "item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1" } 2022-02-16 22:02:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1" } 2022-02-16 22:02:02 | [Mutex] waiting for: [published:item:notifieditem-f4187c0e-b9e4-4e70-835b-36a97d38bbb1:admin@test-domain.com] 2022-02-16 22:02:02 | [Mutex] received everything. 2022-02-16 22:02:02 | [Mutex] isItemNotified: published:item:notifieditem-f4187c0e-b9e4-4e70-835b-36a97d38bbb1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-02-16 22:02:02 |
2022-02-16 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:02 | ------------------------------------ 2022-02-16 22:02:02 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "item-id": "item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1" } 2022-02-16 22:02:02 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1" } 2022-02-16 22:02:02 | [Mutex] received everything. 2022-02-16 22:02:02 | [Mutex] isItemNotified: retracted:item:notifieditem-f4187c0e-b9e4-4e70-835b-36a97d38bbb1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.020s |
2022-02-16 22:02:02 |
2022-02-16 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:02 | ------------------------------------ 2022-02-16 22:02:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "item-id": "item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1" } 2022-02-16 22:02:02 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "item-id": "item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1", "item": [ "<item id=\"item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1\"><test>item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1</test></item>" ] } 2022-02-16 22:02:02 | [Mutex] notify: [retrieved:item:item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1:payload-matches:true:localhost] 2022-02-16 22:02:02 | [Mutex] received everything. 2022-02-16 22:02:02 | [Mutex] isItemNotified: retrieved:item:item-f4187c0e-b9e4-4e70-835b-36a97d38bbb1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.070s |
2022-02-16 22:02:02 |
2022-02-16 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:02 | ------------------------------------ 2022-02-16 22:02:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-16 22:02:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-5f71d658-6686-409c-974e-056459115927", "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.111s |
2022-02-16 22:02:02 |
2022-02-16 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:02 | ------------------------------------ 2022-02-16 22:02:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea)" } 2022-02-16 22:02:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2022-02-16 22:02:01 |
2022-02-16 22:02:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:01 | ------------------------------------ 2022-02-16 22:02:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "jids": [ "admin@test-domain.com" ] } 2022-02-16 22:02:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-02-16 22:02:02 |
2022-02-16 22:02:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:02:02 | ------------------------------------ 2022-02-16 22:02:02 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ad4f4aee-5fcb-4cbf-bafc-a689c034a9ea", "jids": [ "admin@test-domain.com" ] } 2022-02-16 22:02:02 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |