Test duration : 8.748s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.136s |
2022-07-08 22:45:08 |
2022-07-08 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:08 | ------------------------------------ 2022-07-08 22:45:08 | [Mutex] waiting for: [configured:node:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:node-25ab8394-1981-4a05-8abd-acee05a9603e] 2022-07-08 22:45:08 | [Mutex] received everything. 2022-07-08 22:45:08 | [Mutex] isItemNotified: configured:node:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:node-25ab8394-1981-4a05-8abd-acee05a9603e :: true 2022-07-08 22:45:09 | [Mutex] waiting for: [received:nodes:f79dfe90-5c0d-41a5-8385-687af7836dfd:localhost] 2022-07-08 22:45:09 | [Mutex] received everything. 2022-07-08 22:45:09 | [Mutex] isItemNotified: received:node:f79dfe90-5c0d-41a5-8385-687af7836dfd:localhost:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:Node 036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea :: true 2022-07-08 22:45:09 | [Mutex] waiting for: [received:nodes:ef37e7ad-ebb4-403c-a032-e03401416f16:localhost] 2022-07-08 22:45:09 | [Mutex] received everything. 2022-07-08 22:45:09 | [Mutex] isItemNotified: received:node:ef37e7ad-ebb4-403c-a032-e03401416f16:localhost:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:Node 036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea :: false |
createNodes | 1.585s |
2022-07-08 22:45:05 |
2022-07-08 22:45:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:05 | ------------------------------------ 2022-07-08 22:45:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "pubsub#title": "Node 036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea" } 2022-07-08 22:45:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-08 22:45:07 | [Mutex] waiting for: [received:nodes:abf5ce18-65ec-4244-ac1a-05769d248143:localhost] 2022-07-08 22:45:07 | [Mutex] received everything. 2022-07-08 22:45:07 | [Mutex] isItemNotified: received:node:abf5ce18-65ec-4244-ac1a-05769d248143:localhost:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:Node 036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea :: true |
createSubnodes | 1.031s |
2022-07-08 22:45:07 |
2022-07-08 22:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:07 | ------------------------------------ 2022-07-08 22:45:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-25ab8394-1981-4a05-8abd-acee05a9603e", "pubsub#title": "Node 25ab8394-1981-4a05-8abd-acee05a9603e" } 2022-07-08 22:45:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-08 22:45:08 | [Mutex] waiting for: [received:nodes:893829cd-e66f-4f74-b3d6-c5af57b21632:localhost] 2022-07-08 22:45:08 | [Mutex] received everything. 2022-07-08 22:45:08 | [Mutex] isItemNotified: received:node:893829cd-e66f-4f74-b3d6-c5af57b21632:localhost:node-25ab8394-1981-4a05-8abd-acee05a9603e:Node 25ab8394-1981-4a05-8abd-acee05a9603e :: true |
deleteNodes | 1.026s |
2022-07-08 22:45:12 |
2022-07-08 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:12 | ------------------------------------ 2022-07-08 22:45:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-25ab8394-1981-4a05-8abd-acee05a9603e" } 2022-07-08 22:45:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-08 22:45:13 | [Mutex] waiting for: [received:nodes:583bec7a-0cb9-4ac2-ac04-aa6c72dfa4aa:localhost] 2022-07-08 22:45:13 | [Mutex] received everything. 2022-07-08 22:45:13 | [Mutex] isItemNotified: received:node:583bec7a-0cb9-4ac2-ac04-aa6c72dfa4aa:localhost:node-25ab8394-1981-4a05-8abd-acee05a9603e:Node 25ab8394-1981-4a05-8abd-acee05a9603e :: false |
deleteSubnodes | 1.031s |
2022-07-08 22:45:11 |
2022-07-08 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:11 | ------------------------------------ 2022-07-08 22:45:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea" } 2022-07-08 22:45:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-08 22:45:12 | [Mutex] waiting for: [received:nodes:3c39e1e1-4f49-40f7-9564-4c885c83831f:localhost] 2022-07-08 22:45:12 | [Mutex] received everything. 2022-07-08 22:45:12 | [Mutex] isItemNotified: received:node:3c39e1e1-4f49-40f7-9564-4c885c83831f:localhost:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:Node 036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea :: false 2022-07-08 22:45:12 | [Mutex] waiting for: [received:nodes:e8e8db5d-4ea3-4a5c-a9ca-e367c10d2f3e:localhost] 2022-07-08 22:45:12 | [Mutex] received everything. 2022-07-08 22:45:12 | [Mutex] isItemNotified: received:node:e8e8db5d-4ea3-4a5c-a9ca-e367c10d2f3e:localhost:node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea:Node 036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea :: false |
publishItemsToNodes | 0.066s |
2022-07-08 22:45:10 |
2022-07-08 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:10 | ------------------------------------ 2022-07-08 22:45:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "entry": "<test>item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577</test>", "item-id": "item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577" } 2022-07-08 22:45:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577" } 2022-07-08 22:45:10 | [Mutex] received everything. 2022-07-08 22:45:10 | [Mutex] isItemNotified: published:item:notifieditem-15d53ec2-4769-42ca-a2fa-f6f1fa68f577:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2022-07-08 22:45:10 |
2022-07-08 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:10 | ------------------------------------ 2022-07-08 22:45:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "item-id": "item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577" } 2022-07-08 22:45:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577" } 2022-07-08 22:45:10 | [Mutex] waiting for: [retracted:item:notifieditem-15d53ec2-4769-42ca-a2fa-f6f1fa68f577:admin@test-domain.com] 2022-07-08 22:45:10 | [Mutex] received everything. 2022-07-08 22:45:10 | [Mutex] isItemNotified: retracted:item:notifieditem-15d53ec2-4769-42ca-a2fa-f6f1fa68f577:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.077s |
2022-07-08 22:45:10 |
2022-07-08 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:10 | ------------------------------------ 2022-07-08 22:45:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "item-id": "item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577" } 2022-07-08 22:45:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "item-id": "item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577", "item": [ "<item id=\"item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577\"><test>item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577</test></item>" ] } 2022-07-08 22:45:10 | [Mutex] notify: [retrieved:item:item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577:payload-matches:true:localhost] 2022-07-08 22:45:10 | [Mutex] received everything. 2022-07-08 22:45:10 | [Mutex] isItemNotified: retrieved:item:item-15d53ec2-4769-42ca-a2fa-f6f1fa68f577:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-08 22:45:10 |
2022-07-08 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:10 | ------------------------------------ 2022-07-08 22:45:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-08 22:45:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-25ab8394-1981-4a05-8abd-acee05a9603e", "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-08 22:45:10 |
2022-07-08 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:10 | ------------------------------------ 2022-07-08 22:45:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea)" } 2022-07-08 22:45:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.025s |
2022-07-08 22:45:09 |
2022-07-08 22:45:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:09 | ------------------------------------ 2022-07-08 22:45:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "jids": [ "admin@test-domain.com" ] } 2022-07-08 22:45:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-07-08 22:45:10 |
2022-07-08 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-08 22:45:10 | ------------------------------------ 2022-07-08 22:45:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-036217d0-0a74-4fb1-a7f5-bd51bfc1c0ea", "jids": [ "admin@test-domain.com" ] } 2022-07-08 22:45:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |