Test duration : 9.126s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.128s |
2021-02-02 21:31:28 |
2021-02-02 21:31:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:28 | ------------------------------------ 2021-02-02 21:31:28 | [Mutex] waiting for: [configured:node:node-a7c9d302-0f59-4003-84a2-68954646b4a8:node-f40e1610-b5cf-443a-9952-871c227e3c5e] 2021-02-02 21:31:28 | [Mutex] received everything. 2021-02-02 21:31:28 | [Mutex] isItemNotified: configured:node:node-a7c9d302-0f59-4003-84a2-68954646b4a8:node-f40e1610-b5cf-443a-9952-871c227e3c5e :: true 2021-02-02 21:31:29 | [Mutex] waiting for: [received:nodes:e3eeeb37-3901-442e-8cd8-77a8b022a145:localhost] 2021-02-02 21:31:29 | [Mutex] received everything. 2021-02-02 21:31:29 | [Mutex] isItemNotified: received:node:e3eeeb37-3901-442e-8cd8-77a8b022a145:localhost:node-a7c9d302-0f59-4003-84a2-68954646b4a8:Node a7c9d302-0f59-4003-84a2-68954646b4a8 :: true 2021-02-02 21:31:29 | [Mutex] waiting for: [received:nodes:5d5cb28a-b7b1-4c07-837e-b8d3a56b2785:localhost] 2021-02-02 21:31:29 | [Mutex] received everything. 2021-02-02 21:31:29 | [Mutex] isItemNotified: received:node:5d5cb28a-b7b1-4c07-837e-b8d3a56b2785:localhost:node-a7c9d302-0f59-4003-84a2-68954646b4a8:Node a7c9d302-0f59-4003-84a2-68954646b4a8 :: false |
createNodes | 1.680s |
2021-02-02 21:31:25 |
2021-02-02 21:31:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:25 | ------------------------------------ 2021-02-02 21:31:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "pubsub#title": "Node a7c9d302-0f59-4003-84a2-68954646b4a8" } 2021-02-02 21:31:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:31:26 | [Mutex] waiting for: [received:nodes:907b0d87-9472-4b24-99dc-7d71513429ac:localhost] 2021-02-02 21:31:26 | [Mutex] received everything. 2021-02-02 21:31:26 | [Mutex] isItemNotified: received:node:907b0d87-9472-4b24-99dc-7d71513429ac:localhost:node-a7c9d302-0f59-4003-84a2-68954646b4a8:Node a7c9d302-0f59-4003-84a2-68954646b4a8 :: true |
createSubnodes | 1.029s |
2021-02-02 21:31:26 |
2021-02-02 21:31:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:26 | ------------------------------------ 2021-02-02 21:31:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f40e1610-b5cf-443a-9952-871c227e3c5e", "pubsub#title": "Node f40e1610-b5cf-443a-9952-871c227e3c5e" } 2021-02-02 21:31:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:31:27 | [Mutex] waiting for: [received:nodes:72900c66-94a6-425c-8eed-d0c2a7808106:localhost] 2021-02-02 21:31:27 | [Mutex] waiting for: [received:nodes:72900c66-94a6-425c-8eed-d0c2a7808106:localhost] 2021-02-02 21:31:27 | [Mutex] received everything. 2021-02-02 21:31:27 | [Mutex] isItemNotified: received:node:72900c66-94a6-425c-8eed-d0c2a7808106:localhost:node-f40e1610-b5cf-443a-9952-871c227e3c5e:Node f40e1610-b5cf-443a-9952-871c227e3c5e :: true |
deleteNodes | 1.028s |
2021-02-02 21:31:32 |
2021-02-02 21:31:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:32 | ------------------------------------ 2021-02-02 21:31:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f40e1610-b5cf-443a-9952-871c227e3c5e" } 2021-02-02 21:31:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:31:33 | [Mutex] waiting for: [received:nodes:fc8476fb-ae83-488a-a83a-7b1d3d49b534:localhost] 2021-02-02 21:31:33 | [Mutex] waiting for: [received:nodes:fc8476fb-ae83-488a-a83a-7b1d3d49b534:localhost] 2021-02-02 21:31:33 | [Mutex] received everything. 2021-02-02 21:31:33 | [Mutex] isItemNotified: received:node:fc8476fb-ae83-488a-a83a-7b1d3d49b534:localhost:node-f40e1610-b5cf-443a-9952-871c227e3c5e:Node f40e1610-b5cf-443a-9952-871c227e3c5e :: false |
deleteSubnodes | 1.030s |
2021-02-02 21:31:31 |
2021-02-02 21:31:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:31 | ------------------------------------ 2021-02-02 21:31:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8" } 2021-02-02 21:31:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-02 21:31:32 | [Mutex] waiting for: [received:nodes:7aad5deb-d529-4896-acd1-5123918efd0a:localhost] 2021-02-02 21:31:32 | [Mutex] received everything. 2021-02-02 21:31:32 | [Mutex] isItemNotified: received:node:7aad5deb-d529-4896-acd1-5123918efd0a:localhost:node-a7c9d302-0f59-4003-84a2-68954646b4a8:Node a7c9d302-0f59-4003-84a2-68954646b4a8 :: false 2021-02-02 21:31:32 | [Mutex] waiting for: [received:nodes:4fbcd50f-8869-48ab-aad1-6ce9a399e2e2:localhost] 2021-02-02 21:31:32 | [Mutex] received everything. 2021-02-02 21:31:32 | [Mutex] isItemNotified: received:node:4fbcd50f-8869-48ab-aad1-6ce9a399e2e2:localhost:node-a7c9d302-0f59-4003-84a2-68954646b4a8:Node a7c9d302-0f59-4003-84a2-68954646b4a8 :: false |
publishItemsToNodes | 0.112s |
2021-02-02 21:31:30 |
2021-02-02 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:30 | ------------------------------------ 2021-02-02 21:31:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "entry": "<test>item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66</test>", "item-id": "item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66" } 2021-02-02 21:31:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66" } 2021-02-02 21:31:30 | [Mutex] waiting for: [published:item:notifieditem-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66:admin@test-domain.com] 2021-02-02 21:31:30 | [Mutex] received everything. 2021-02-02 21:31:30 | [Mutex] isItemNotified: published:item:notifieditem-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2021-02-02 21:31:30 |
2021-02-02 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:30 | ------------------------------------ 2021-02-02 21:31:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "item-id": "item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66" } 2021-02-02 21:31:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66" } 2021-02-02 21:31:30 | [Mutex] waiting for: [retracted:item:notifieditem-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66:admin@test-domain.com] 2021-02-02 21:31:30 | [Mutex] received everything. 2021-02-02 21:31:30 | [Mutex] isItemNotified: retracted:item:notifieditem-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.030s |
2021-02-02 21:31:30 |
2021-02-02 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:30 | ------------------------------------ 2021-02-02 21:31:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "item-id": "item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66" } 2021-02-02 21:31:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "item-id": "item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66", "item": [ "<item id=\"item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66\"><test>item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66</test></item>" ] } 2021-02-02 21:31:30 | [Mutex] notify: [retrieved:item:item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66:payload-matches:true:localhost] 2021-02-02 21:31:30 | [Mutex] received everything. 2021-02-02 21:31:30 | [Mutex] isItemNotified: retrieved:item:item-4c97a5ac-94ca-4975-a74e-7ec73f9f6e66:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-02-02 21:31:30 |
2021-02-02 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:30 | ------------------------------------ 2021-02-02 21:31:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-02 21:31:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "node-f40e1610-b5cf-443a-9952-871c227e3c5e" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2021-02-02 21:31:30 |
2021-02-02 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:30 | ------------------------------------ 2021-02-02 21:31:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a7c9d302-0f59-4003-84a2-68954646b4a8)" } 2021-02-02 21:31:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-02-02 21:31:29 |
2021-02-02 21:31:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:29 | ------------------------------------ 2021-02-02 21:31:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "jids": [ "admin@test-domain.com" ] } 2021-02-02 21:31:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2021-02-02 21:31:30 |
2021-02-02 21:31:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-02 21:31:30 | ------------------------------------ 2021-02-02 21:31:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a7c9d302-0f59-4003-84a2-68954646b4a8", "jids": [ "admin@test-domain.com" ] } 2021-02-02 21:31:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |