Test duration : 9.279s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2020-09-02 22:50:06 |
2020-09-02 22:50:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:06 | ------------------------------------ 2020-09-02 22:50:06 | [Mutex] waiting for: [configured:node:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:node-c317cb89-9467-4376-a4d5-a15930e7add9] 2020-09-02 22:50:06 | [Mutex] received everything. 2020-09-02 22:50:06 | [Mutex] isItemNotified: configured:node:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:node-c317cb89-9467-4376-a4d5-a15930e7add9 :: true 2020-09-02 22:50:07 | [Mutex] waiting for: [received:nodes:f71a9411-549f-4b58-a008-6f26ddb9e6c4:localhost] 2020-09-02 22:50:07 | [Mutex] received everything. 2020-09-02 22:50:07 | [Mutex] isItemNotified: received:node:f71a9411-549f-4b58-a008-6f26ddb9e6c4:localhost:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:Node d6b51238-dbdf-4a31-93e9-c8af7043003b :: true 2020-09-02 22:50:07 | [Mutex] waiting for: [received:nodes:016d8091-f643-4738-9790-b94c37c6ce0c:localhost] 2020-09-02 22:50:07 | [Mutex] waiting for: [received:nodes:016d8091-f643-4738-9790-b94c37c6ce0c:localhost] 2020-09-02 22:50:07 | [Mutex] waiting for: [received:nodes:016d8091-f643-4738-9790-b94c37c6ce0c:localhost] 2020-09-02 22:50:07 | [Mutex] received everything. 2020-09-02 22:50:07 | [Mutex] isItemNotified: received:node:016d8091-f643-4738-9790-b94c37c6ce0c:localhost:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:Node d6b51238-dbdf-4a31-93e9-c8af7043003b :: false |
createNodes | 1.839s |
2020-09-02 22:50:03 |
2020-09-02 22:50:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:03 | ------------------------------------ 2020-09-02 22:50:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "pubsub#title": "Node d6b51238-dbdf-4a31-93e9-c8af7043003b" } 2020-09-02 22:50:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:50:05 | [Mutex] waiting for: [received:nodes:30f45a7e-00aa-4bba-9ccd-6ec335dbfe15:localhost] 2020-09-02 22:50:05 | [Mutex] waiting for: [received:nodes:30f45a7e-00aa-4bba-9ccd-6ec335dbfe15:localhost] 2020-09-02 22:50:05 | [Mutex] received everything. 2020-09-02 22:50:05 | [Mutex] isItemNotified: received:node:30f45a7e-00aa-4bba-9ccd-6ec335dbfe15:localhost:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:Node d6b51238-dbdf-4a31-93e9-c8af7043003b :: true |
createSubnodes | 1.026s |
2020-09-02 22:50:05 |
2020-09-02 22:50:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:05 | ------------------------------------ 2020-09-02 22:50:05 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c317cb89-9467-4376-a4d5-a15930e7add9", "pubsub#title": "Node c317cb89-9467-4376-a4d5-a15930e7add9" } 2020-09-02 22:50:05 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:50:06 | [Mutex] waiting for: [received:nodes:7332da00-20ce-47fe-b5ef-28edc00c0ded:localhost] 2020-09-02 22:50:06 | [Mutex] received everything. 2020-09-02 22:50:06 | [Mutex] isItemNotified: received:node:7332da00-20ce-47fe-b5ef-28edc00c0ded:localhost:node-c317cb89-9467-4376-a4d5-a15930e7add9:Node c317cb89-9467-4376-a4d5-a15930e7add9 :: true |
deleteNodes | 1.020s |
2020-09-02 22:50:10 |
2020-09-02 22:50:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:10 | ------------------------------------ 2020-09-02 22:50:10 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c317cb89-9467-4376-a4d5-a15930e7add9" } 2020-09-02 22:50:10 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:50:11 | [Mutex] waiting for: [received:nodes:504ccc66-9c06-470d-b71d-03f41814808d:localhost] 2020-09-02 22:50:11 | [Mutex] received everything. 2020-09-02 22:50:11 | [Mutex] isItemNotified: received:node:504ccc66-9c06-470d-b71d-03f41814808d:localhost:node-c317cb89-9467-4376-a4d5-a15930e7add9:Node c317cb89-9467-4376-a4d5-a15930e7add9 :: false |
deleteSubnodes | 1.036s |
2020-09-02 22:50:09 |
2020-09-02 22:50:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:09 | ------------------------------------ 2020-09-02 22:50:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b" } 2020-09-02 22:50:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 22:50:10 | [Mutex] waiting for: [received:nodes:b76bc9fb-8d60-49a8-bc1d-67df6fd3d877:localhost] 2020-09-02 22:50:10 | [Mutex] waiting for: [received:nodes:b76bc9fb-8d60-49a8-bc1d-67df6fd3d877:localhost] 2020-09-02 22:50:10 | [Mutex] received everything. 2020-09-02 22:50:10 | [Mutex] isItemNotified: received:node:b76bc9fb-8d60-49a8-bc1d-67df6fd3d877:localhost:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:Node d6b51238-dbdf-4a31-93e9-c8af7043003b :: false 2020-09-02 22:50:10 | [Mutex] waiting for: [received:nodes:4325ffb6-2dc2-4b2e-b15e-8d544e909c36:localhost] 2020-09-02 22:50:10 | [Mutex] received everything. 2020-09-02 22:50:10 | [Mutex] isItemNotified: received:node:4325ffb6-2dc2-4b2e-b15e-8d544e909c36:localhost:node-d6b51238-dbdf-4a31-93e9-c8af7043003b:Node d6b51238-dbdf-4a31-93e9-c8af7043003b :: false |
publishItemsToNodes | 0.040s |
2020-09-02 22:50:08 |
2020-09-02 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:08 | ------------------------------------ 2020-09-02 22:50:08 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "entry": "<test>item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5</test>", "item-id": "item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5" } 2020-09-02 22:50:08 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5" } 2020-09-02 22:50:08 | [Mutex] waiting for: [published:item:notifieditem-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5:admin@test-domain.com] 2020-09-02 22:50:08 | [Mutex] received everything. 2020-09-02 22:50:08 | [Mutex] isItemNotified: published:item:notifieditem-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5:admin@test-domain.com :: true |
retractItemsFromNodes | 0.068s |
2020-09-02 22:50:08 |
2020-09-02 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:08 | ------------------------------------ 2020-09-02 22:50:08 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "item-id": "item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5" } 2020-09-02 22:50:08 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5" } 2020-09-02 22:50:08 | [Mutex] received everything. 2020-09-02 22:50:08 | [Mutex] isItemNotified: retracted:item:notifieditem-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.092s |
2020-09-02 22:50:08 |
2020-09-02 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:08 | ------------------------------------ 2020-09-02 22:50:08 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "item-id": "item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5" } 2020-09-02 22:50:08 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "item-id": "item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5", "item": [ "<item id=\"item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5\"><test>item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5</test></item>" ] } 2020-09-02 22:50:08 | [Mutex] notify: [retrieved:item:item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5:payload-matches:true:localhost] 2020-09-02 22:50:08 | [Mutex] received everything. 2020-09-02 22:50:08 | [Mutex] isItemNotified: retrieved:item:item-6eb485d1-b1ac-447d-99a1-0cfb5b9d83d5:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-02 22:50:08 |
2020-09-02 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:08 | ------------------------------------ 2020-09-02 22:50:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-02 22:50:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "node-c317cb89-9467-4376-a4d5-a15930e7add9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-09-02 22:50:08 |
2020-09-02 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:08 | ------------------------------------ 2020-09-02 22:50:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-d6b51238-dbdf-4a31-93e9-c8af7043003b)" } 2020-09-02 22:50:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-02 22:50:07 |
2020-09-02 22:50:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:07 | ------------------------------------ 2020-09-02 22:50:07 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "jids": [ "admin@test-domain.com" ] } 2020-09-02 22:50:07 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2020-09-02 22:50:08 |
2020-09-02 22:50:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 22:50:08 | ------------------------------------ 2020-09-02 22:50:08 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d6b51238-dbdf-4a31-93e9-c8af7043003b", "jids": [ "admin@test-domain.com" ] } 2020-09-02 22:50:08 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |