Test duration : 9.074s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.110s |
2021-04-28 22:29:07 |
2021-04-28 22:29:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:07 | ------------------------------------ 2021-04-28 22:29:07 | [Mutex] waiting for: [configured:node:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:node-0c70512d-e52a-4460-b178-545b49cf79f7] 2021-04-28 22:29:07 | [Mutex] received everything. 2021-04-28 22:29:07 | [Mutex] isItemNotified: configured:node:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:node-0c70512d-e52a-4460-b178-545b49cf79f7 :: true 2021-04-28 22:29:08 | [Mutex] waiting for: [received:nodes:7089a6fb-acf3-440b-80ef-1d6495a325e3:localhost] 2021-04-28 22:29:08 | [Mutex] received everything. 2021-04-28 22:29:08 | [Mutex] isItemNotified: received:node:7089a6fb-acf3-440b-80ef-1d6495a325e3:localhost:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:Node 9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d :: true 2021-04-28 22:29:08 | [Mutex] waiting for: [received:nodes:c3c779bd-8fe8-421a-9d8a-494fd9c98e9f:localhost] 2021-04-28 22:29:08 | [Mutex] received everything. 2021-04-28 22:29:08 | [Mutex] isItemNotified: received:node:c3c779bd-8fe8-421a-9d8a-494fd9c98e9f:localhost:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:Node 9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d :: false |
createNodes | 1.717s |
2021-04-28 22:29:05 |
2021-04-28 22:29:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:05 | ------------------------------------ 2021-04-28 22:29:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "pubsub#title": "Node 9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d" } 2021-04-28 22:29:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 22:29:06 | [Mutex] waiting for: [received:nodes:e162f5a5-7acc-4f91-9f0e-8297d06413fb:localhost] 2021-04-28 22:29:06 | [Mutex] received everything. 2021-04-28 22:29:06 | [Mutex] isItemNotified: received:node:e162f5a5-7acc-4f91-9f0e-8297d06413fb:localhost:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:Node 9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d :: true |
createSubnodes | 1.023s |
2021-04-28 22:29:06 |
2021-04-28 22:29:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:06 | ------------------------------------ 2021-04-28 22:29:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0c70512d-e52a-4460-b178-545b49cf79f7", "pubsub#title": "Node 0c70512d-e52a-4460-b178-545b49cf79f7" } 2021-04-28 22:29:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 22:29:07 | [Mutex] waiting for: [received:nodes:5489137c-a535-40ac-9505-f066eacac28c:localhost] 2021-04-28 22:29:07 | [Mutex] received everything. 2021-04-28 22:29:07 | [Mutex] isItemNotified: received:node:5489137c-a535-40ac-9505-f066eacac28c:localhost:node-0c70512d-e52a-4460-b178-545b49cf79f7:Node 0c70512d-e52a-4460-b178-545b49cf79f7 :: true |
deleteNodes | 1.023s |
2021-04-28 22:29:12 |
2021-04-28 22:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:12 | ------------------------------------ 2021-04-28 22:29:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0c70512d-e52a-4460-b178-545b49cf79f7" } 2021-04-28 22:29:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 22:29:13 | [Mutex] waiting for: [received:nodes:b4fbff5b-1e2f-4642-9cda-504a527c29d7:localhost] 2021-04-28 22:29:13 | [Mutex] waiting for: [received:nodes:b4fbff5b-1e2f-4642-9cda-504a527c29d7:localhost] 2021-04-28 22:29:13 | [Mutex] received everything. 2021-04-28 22:29:13 | [Mutex] isItemNotified: received:node:b4fbff5b-1e2f-4642-9cda-504a527c29d7:localhost:node-0c70512d-e52a-4460-b178-545b49cf79f7:Node 0c70512d-e52a-4460-b178-545b49cf79f7 :: false |
deleteSubnodes | 1.032s |
2021-04-28 22:29:11 |
2021-04-28 22:29:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:11 | ------------------------------------ 2021-04-28 22:29:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d" } 2021-04-28 22:29:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-28 22:29:12 | [Mutex] waiting for: [received:nodes:8374f7f5-6e07-4cce-8686-744b5ba7027e:localhost] 2021-04-28 22:29:12 | [Mutex] received everything. 2021-04-28 22:29:12 | [Mutex] isItemNotified: received:node:8374f7f5-6e07-4cce-8686-744b5ba7027e:localhost:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:Node 9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d :: false 2021-04-28 22:29:12 | [Mutex] waiting for: [received:nodes:003bcecc-95c3-4286-a38c-50e10ab3fdd7:localhost] 2021-04-28 22:29:12 | [Mutex] received everything. 2021-04-28 22:29:12 | [Mutex] isItemNotified: received:node:003bcecc-95c3-4286-a38c-50e10ab3fdd7:localhost:node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d:Node 9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d :: false |
publishItemsToNodes | 0.049s |
2021-04-28 22:29:09 |
2021-04-28 22:29:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:09 | ------------------------------------ 2021-04-28 22:29:09 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "entry": "<test>item-23bfa414-cb15-47eb-8688-6f269bcd40aa</test>", "item-id": "item-23bfa414-cb15-47eb-8688-6f269bcd40aa" } 2021-04-28 22:29:09 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-23bfa414-cb15-47eb-8688-6f269bcd40aa" } 2021-04-28 22:29:09 | [Mutex] waiting for: [published:item:notifieditem-23bfa414-cb15-47eb-8688-6f269bcd40aa:admin@test-domain.com] 2021-04-28 22:29:10 | [Mutex] received everything. 2021-04-28 22:29:10 | [Mutex] isItemNotified: published:item:notifieditem-23bfa414-cb15-47eb-8688-6f269bcd40aa:admin@test-domain.com :: true |
retractItemsFromNodes | 0.061s |
2021-04-28 22:29:10 |
2021-04-28 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:10 | ------------------------------------ 2021-04-28 22:29:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "item-id": "item-23bfa414-cb15-47eb-8688-6f269bcd40aa" } 2021-04-28 22:29:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-23bfa414-cb15-47eb-8688-6f269bcd40aa" } 2021-04-28 22:29:10 | [Mutex] waiting for: [retracted:item:notifieditem-23bfa414-cb15-47eb-8688-6f269bcd40aa:admin@test-domain.com] 2021-04-28 22:29:10 | [Mutex] received everything. 2021-04-28 22:29:10 | [Mutex] isItemNotified: retracted:item:notifieditem-23bfa414-cb15-47eb-8688-6f269bcd40aa:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.070s |
2021-04-28 22:29:10 |
2021-04-28 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:10 | ------------------------------------ 2021-04-28 22:29:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "item-id": "item-23bfa414-cb15-47eb-8688-6f269bcd40aa" } 2021-04-28 22:29:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "item-id": "item-23bfa414-cb15-47eb-8688-6f269bcd40aa", "item": [ "<item id=\"item-23bfa414-cb15-47eb-8688-6f269bcd40aa\"><test>item-23bfa414-cb15-47eb-8688-6f269bcd40aa</test></item>" ] } 2021-04-28 22:29:10 | [Mutex] notify: [retrieved:item:item-23bfa414-cb15-47eb-8688-6f269bcd40aa:payload-matches:true:localhost] 2021-04-28 22:29:10 | [Mutex] received everything. 2021-04-28 22:29:10 | [Mutex] isItemNotified: retrieved:item:item-23bfa414-cb15-47eb-8688-6f269bcd40aa:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-04-28 22:29:10 |
2021-04-28 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:10 | ------------------------------------ 2021-04-28 22:29:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-28 22:29:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "test", "node-0c70512d-e52a-4460-b178-545b49cf79f7" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-04-28 22:29:10 |
2021-04-28 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:10 | ------------------------------------ 2021-04-28 22:29:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d)" } 2021-04-28 22:29:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2021-04-28 22:29:08 |
2021-04-28 22:29:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:08 | ------------------------------------ 2021-04-28 22:29:08 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "jids": [ "admin@test-domain.com" ] } 2021-04-28 22:29:08 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.062s |
2021-04-28 22:29:10 |
2021-04-28 22:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-28 22:29:10 | ------------------------------------ 2021-04-28 22:29:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9dc3ab13-6e12-4247-b1c1-daf4a7cafc6d", "jids": [ "admin@test-domain.com" ] } 2021-04-28 22:29:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |