Test duration : 9.144s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.124s |
2021-10-06 22:58:00 |
2021-10-06 22:58:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:00 | ------------------------------------ 2021-10-06 22:58:00 | [Mutex] waiting for: [configured:node:node-81807273-ca73-4293-aa35-c47e9b44e4eb:node-70efce60-9f87-43d6-a7c6-08d6195b6f17] 2021-10-06 22:58:00 | [Mutex] received everything. 2021-10-06 22:58:00 | [Mutex] isItemNotified: configured:node:node-81807273-ca73-4293-aa35-c47e9b44e4eb:node-70efce60-9f87-43d6-a7c6-08d6195b6f17 :: true 2021-10-06 22:58:01 | [Mutex] waiting for: [received:nodes:ffdb6c67-6d0b-42ba-bf97-c8a6fa717b0c:localhost] 2021-10-06 22:58:01 | [Mutex] waiting for: [received:nodes:ffdb6c67-6d0b-42ba-bf97-c8a6fa717b0c:localhost] 2021-10-06 22:58:01 | [Mutex] received everything. 2021-10-06 22:58:01 | [Mutex] isItemNotified: received:node:ffdb6c67-6d0b-42ba-bf97-c8a6fa717b0c:localhost:node-81807273-ca73-4293-aa35-c47e9b44e4eb:Node 81807273-ca73-4293-aa35-c47e9b44e4eb :: true 2021-10-06 22:58:01 | [Mutex] waiting for: [received:nodes:8c5bc8d3-5933-415f-96b4-7201ebb8029f:localhost] 2021-10-06 22:58:01 | [Mutex] received everything. 2021-10-06 22:58:01 | [Mutex] isItemNotified: received:node:8c5bc8d3-5933-415f-96b4-7201ebb8029f:localhost:node-81807273-ca73-4293-aa35-c47e9b44e4eb:Node 81807273-ca73-4293-aa35-c47e9b44e4eb :: false |
createNodes | 1.866s |
2021-10-06 22:57:57 |
2021-10-06 22:57:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:57:57 | ------------------------------------ 2021-10-06 22:57:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "pubsub#title": "Node 81807273-ca73-4293-aa35-c47e9b44e4eb" } 2021-10-06 22:57:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 22:57:59 | [Mutex] waiting for: [received:nodes:51c47053-2c08-45fb-b734-ca773e249ad6:localhost] 2021-10-06 22:57:59 | [Mutex] waiting for: [received:nodes:51c47053-2c08-45fb-b734-ca773e249ad6:localhost] 2021-10-06 22:57:59 | [Mutex] received everything. 2021-10-06 22:57:59 | [Mutex] isItemNotified: received:node:51c47053-2c08-45fb-b734-ca773e249ad6:localhost:node-81807273-ca73-4293-aa35-c47e9b44e4eb:Node 81807273-ca73-4293-aa35-c47e9b44e4eb :: true |
createSubnodes | 1.045s |
2021-10-06 22:57:59 |
2021-10-06 22:57:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:57:59 | ------------------------------------ 2021-10-06 22:57: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-70efce60-9f87-43d6-a7c6-08d6195b6f17", "pubsub#title": "Node 70efce60-9f87-43d6-a7c6-08d6195b6f17" } 2021-10-06 22:57:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 22:58:00 | [Mutex] waiting for: [received:nodes:73429745-265d-400b-9f94-7f0af06b3986:localhost] 2021-10-06 22:58:00 | [Mutex] received everything. 2021-10-06 22:58:00 | [Mutex] isItemNotified: received:node:73429745-265d-400b-9f94-7f0af06b3986:localhost:node-70efce60-9f87-43d6-a7c6-08d6195b6f17:Node 70efce60-9f87-43d6-a7c6-08d6195b6f17 :: true |
deleteNodes | 1.025s |
2021-10-06 22:58:05 |
2021-10-06 22:58:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:05 | ------------------------------------ 2021-10-06 22:58:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-70efce60-9f87-43d6-a7c6-08d6195b6f17" } 2021-10-06 22:58:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 22:58:06 | [Mutex] waiting for: [received:nodes:09f2617d-841b-45b6-8c59-953b1e90961e:localhost] 2021-10-06 22:58:06 | [Mutex] received everything. 2021-10-06 22:58:06 | [Mutex] isItemNotified: received:node:09f2617d-841b-45b6-8c59-953b1e90961e:localhost:node-70efce60-9f87-43d6-a7c6-08d6195b6f17:Node 70efce60-9f87-43d6-a7c6-08d6195b6f17 :: false |
deleteSubnodes | 1.031s |
2021-10-06 22:58:04 |
2021-10-06 22:58:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:04 | ------------------------------------ 2021-10-06 22:58:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb" } 2021-10-06 22:58:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-06 22:58:05 | [Mutex] waiting for: [received:nodes:6a64285b-7606-4152-afa8-e467972757ec:localhost] 2021-10-06 22:58:05 | [Mutex] waiting for: [received:nodes:6a64285b-7606-4152-afa8-e467972757ec:localhost] 2021-10-06 22:58:05 | [Mutex] received everything. 2021-10-06 22:58:05 | [Mutex] isItemNotified: received:node:6a64285b-7606-4152-afa8-e467972757ec:localhost:node-81807273-ca73-4293-aa35-c47e9b44e4eb:Node 81807273-ca73-4293-aa35-c47e9b44e4eb :: false 2021-10-06 22:58:05 | [Mutex] waiting for: [received:nodes:0e1e9ef7-96fe-4e56-8639-d9c881825aaf:localhost] 2021-10-06 22:58:05 | [Mutex] received everything. 2021-10-06 22:58:05 | [Mutex] isItemNotified: received:node:0e1e9ef7-96fe-4e56-8639-d9c881825aaf:localhost:node-81807273-ca73-4293-aa35-c47e9b44e4eb:Node 81807273-ca73-4293-aa35-c47e9b44e4eb :: false |
publishItemsToNodes | 0.055s |
2021-10-06 22:58:02 |
2021-10-06 22:58:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:02 | ------------------------------------ 2021-10-06 22:58:02 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "entry": "<test>item-5ece71eb-e681-4fa3-9412-78e745112984</test>", "item-id": "item-5ece71eb-e681-4fa3-9412-78e745112984" } 2021-10-06 22:58:02 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5ece71eb-e681-4fa3-9412-78e745112984" } 2021-10-06 22:58:02 | [Mutex] waiting for: [published:item:notifieditem-5ece71eb-e681-4fa3-9412-78e745112984:admin@test-domain.com] 2021-10-06 22:58:02 | [Mutex] received everything. 2021-10-06 22:58:02 | [Mutex] isItemNotified: published:item:notifieditem-5ece71eb-e681-4fa3-9412-78e745112984:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2021-10-06 22:58:03 |
2021-10-06 22:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:03 | ------------------------------------ 2021-10-06 22:58:03 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "item-id": "item-5ece71eb-e681-4fa3-9412-78e745112984" } 2021-10-06 22:58:03 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5ece71eb-e681-4fa3-9412-78e745112984" } 2021-10-06 22:58:03 | [Mutex] waiting for: [retracted:item:notifieditem-5ece71eb-e681-4fa3-9412-78e745112984:admin@test-domain.com] 2021-10-06 22:58:03 | [Mutex] received everything. 2021-10-06 22:58:03 | [Mutex] isItemNotified: retracted:item:notifieditem-5ece71eb-e681-4fa3-9412-78e745112984:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.021s |
2021-10-06 22:58:02 |
2021-10-06 22:58:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:02 | ------------------------------------ 2021-10-06 22:58:02 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "item-id": "item-5ece71eb-e681-4fa3-9412-78e745112984" } 2021-10-06 22:58:03 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "item-id": "item-5ece71eb-e681-4fa3-9412-78e745112984", "item": [ "<item id=\"item-5ece71eb-e681-4fa3-9412-78e745112984\"><test>item-5ece71eb-e681-4fa3-9412-78e745112984</test></item>" ] } 2021-10-06 22:58:03 | [Mutex] notify: [retrieved:item:item-5ece71eb-e681-4fa3-9412-78e745112984:payload-matches:true:localhost] 2021-10-06 22:58:03 | [Mutex] received everything. 2021-10-06 22:58:03 | [Mutex] isItemNotified: retrieved:item:item-5ece71eb-e681-4fa3-9412-78e745112984:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.068s |
2021-10-06 22:58:03 |
2021-10-06 22:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:03 | ------------------------------------ 2021-10-06 22:58:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-06 22:58:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-70efce60-9f87-43d6-a7c6-08d6195b6f17", "node-81807273-ca73-4293-aa35-c47e9b44e4eb" ] } |
retrieveUserSubscriptionsWithRegex | 0.128s |
2021-10-06 22:58:03 |
2021-10-06 22:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:03 | ------------------------------------ 2021-10-06 22:58:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-81807273-ca73-4293-aa35-c47e9b44e4eb)" } 2021-10-06 22:58:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-10-06 22:58:01 |
2021-10-06 22:58:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:01 | ------------------------------------ 2021-10-06 22:58:01 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "jids": [ "admin@test-domain.com" ] } 2021-10-06 22:58:01 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2021-10-06 22:58:03 |
2021-10-06 22:58:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-06 22:58:03 | ------------------------------------ 2021-10-06 22:58:03 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-81807273-ca73-4293-aa35-c47e9b44e4eb", "jids": [ "admin@test-domain.com" ] } 2021-10-06 22:58:03 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |