Test duration : 8.994s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2022-02-09 22:20:11 |
2022-02-09 22:20:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:11 | ------------------------------------ 2022-02-09 22:20:11 | [Mutex] waiting for: [configured:node:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2] 2022-02-09 22:20:11 | [Mutex] received everything. 2022-02-09 22:20:11 | [Mutex] isItemNotified: configured:node:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2 :: true 2022-02-09 22:20:12 | [Mutex] waiting for: [received:nodes:5c3dc81f-16f5-41d8-b34f-ccbf3832eb04:localhost] 2022-02-09 22:20:12 | [Mutex] waiting for: [received:nodes:5c3dc81f-16f5-41d8-b34f-ccbf3832eb04:localhost] 2022-02-09 22:20:12 | [Mutex] received everything. 2022-02-09 22:20:12 | [Mutex] isItemNotified: received:node:5c3dc81f-16f5-41d8-b34f-ccbf3832eb04:localhost:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:Node 8789f90f-3815-4e3a-a349-cdb36acad2e9 :: true 2022-02-09 22:20:12 | [Mutex] waiting for: [received:nodes:f5ec2766-c9d2-4fd7-ab8a-5521c63a2ab5:localhost] 2022-02-09 22:20:12 | [Mutex] waiting for: [received:nodes:f5ec2766-c9d2-4fd7-ab8a-5521c63a2ab5:localhost] 2022-02-09 22:20:12 | [Mutex] received everything. 2022-02-09 22:20:12 | [Mutex] isItemNotified: received:node:f5ec2766-c9d2-4fd7-ab8a-5521c63a2ab5:localhost:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:Node 8789f90f-3815-4e3a-a349-cdb36acad2e9 :: false |
createNodes | 1.658s |
2022-02-09 22:20:08 |
2022-02-09 22:20:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:08 | ------------------------------------ 2022-02-09 22:20:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "pubsub#title": "Node 8789f90f-3815-4e3a-a349-cdb36acad2e9" } 2022-02-09 22:20:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-09 22:20:10 | [Mutex] waiting for: [received:nodes:eae7d3a1-36f9-45f9-b032-e8c7e71e5aa6:localhost] 2022-02-09 22:20:10 | [Mutex] received everything. 2022-02-09 22:20:10 | [Mutex] isItemNotified: received:node:eae7d3a1-36f9-45f9-b032-e8c7e71e5aa6:localhost:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:Node 8789f90f-3815-4e3a-a349-cdb36acad2e9 :: true |
createSubnodes | 1.025s |
2022-02-09 22:20:10 |
2022-02-09 22:20:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:10 | ------------------------------------ 2022-02-09 22:20:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2", "pubsub#title": "Node 405f5af5-47a4-48ec-a2f6-2c74fd816cd2" } 2022-02-09 22:20:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-09 22:20:11 | [Mutex] waiting for: [received:nodes:c40f3820-6d76-41e0-972e-4294723c078d:localhost] 2022-02-09 22:20:11 | [Mutex] received everything. 2022-02-09 22:20:11 | [Mutex] isItemNotified: received:node:c40f3820-6d76-41e0-972e-4294723c078d:localhost:node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2:Node 405f5af5-47a4-48ec-a2f6-2c74fd816cd2 :: true |
deleteNodes | 1.024s |
2022-02-09 22:20:15 |
2022-02-09 22:20:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:15 | ------------------------------------ 2022-02-09 22:20:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2" } 2022-02-09 22:20:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-09 22:20:16 | [Mutex] waiting for: [received:nodes:488585ea-f373-49a9-8950-12a2ceff348f:localhost] 2022-02-09 22:20:16 | [Mutex] received everything. 2022-02-09 22:20:16 | [Mutex] isItemNotified: received:node:488585ea-f373-49a9-8950-12a2ceff348f:localhost:node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2:Node 405f5af5-47a4-48ec-a2f6-2c74fd816cd2 :: false |
deleteSubnodes | 1.033s |
2022-02-09 22:20:14 |
2022-02-09 22:20:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:14 | ------------------------------------ 2022-02-09 22:20:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9" } 2022-02-09 22:20:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-09 22:20:15 | [Mutex] waiting for: [received:nodes:859e520f-4950-42cd-8384-3d5da1d045bd:localhost] 2022-02-09 22:20:15 | [Mutex] waiting for: [received:nodes:859e520f-4950-42cd-8384-3d5da1d045bd:localhost] 2022-02-09 22:20:15 | [Mutex] waiting for: [received:nodes:859e520f-4950-42cd-8384-3d5da1d045bd:localhost] 2022-02-09 22:20:15 | [Mutex] received everything. 2022-02-09 22:20:15 | [Mutex] isItemNotified: received:node:859e520f-4950-42cd-8384-3d5da1d045bd:localhost:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:Node 8789f90f-3815-4e3a-a349-cdb36acad2e9 :: false 2022-02-09 22:20:15 | [Mutex] waiting for: [received:nodes:f20cdff2-bb44-46c0-aac4-e5255b0b1d74:localhost] 2022-02-09 22:20:15 | [Mutex] received everything. 2022-02-09 22:20:15 | [Mutex] isItemNotified: received:node:f20cdff2-bb44-46c0-aac4-e5255b0b1d74:localhost:node-8789f90f-3815-4e3a-a349-cdb36acad2e9:Node 8789f90f-3815-4e3a-a349-cdb36acad2e9 :: false |
publishItemsToNodes | 0.063s |
2022-02-09 22:20:13 |
2022-02-09 22:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:13 | ------------------------------------ 2022-02-09 22:20:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "entry": "<test>item-bd052469-e037-43ea-9f18-5bd907a44789</test>", "item-id": "item-bd052469-e037-43ea-9f18-5bd907a44789" } 2022-02-09 22:20:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bd052469-e037-43ea-9f18-5bd907a44789" } 2022-02-09 22:20:13 | [Mutex] waiting for: [published:item:notifieditem-bd052469-e037-43ea-9f18-5bd907a44789:admin@test-domain.com] 2022-02-09 22:20:13 | [Mutex] received everything. 2022-02-09 22:20:13 | [Mutex] isItemNotified: published:item:notifieditem-bd052469-e037-43ea-9f18-5bd907a44789:admin@test-domain.com :: true |
retractItemsFromNodes | 0.102s |
2022-02-09 22:20:13 |
2022-02-09 22:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:13 | ------------------------------------ 2022-02-09 22:20:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "item-id": "item-bd052469-e037-43ea-9f18-5bd907a44789" } 2022-02-09 22:20:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bd052469-e037-43ea-9f18-5bd907a44789" } 2022-02-09 22:20:13 | [Mutex] waiting for: [retracted:item:notifieditem-bd052469-e037-43ea-9f18-5bd907a44789:admin@test-domain.com] 2022-02-09 22:20:13 | [Mutex] received everything. 2022-02-09 22:20:13 | [Mutex] isItemNotified: retracted:item:notifieditem-bd052469-e037-43ea-9f18-5bd907a44789:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.042s |
2022-02-09 22:20:13 |
2022-02-09 22:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:13 | ------------------------------------ 2022-02-09 22:20:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "item-id": "item-bd052469-e037-43ea-9f18-5bd907a44789" } 2022-02-09 22:20:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "item-id": "item-bd052469-e037-43ea-9f18-5bd907a44789", "item": [ "<item id=\"item-bd052469-e037-43ea-9f18-5bd907a44789\"><test>item-bd052469-e037-43ea-9f18-5bd907a44789</test></item>" ] } 2022-02-09 22:20:13 | [Mutex] notify: [retrieved:item:item-bd052469-e037-43ea-9f18-5bd907a44789:payload-matches:true:localhost] 2022-02-09 22:20:13 | [Mutex] received everything. 2022-02-09 22:20:13 | [Mutex] isItemNotified: retrieved:item:item-bd052469-e037-43ea-9f18-5bd907a44789:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2022-02-09 22:20:13 |
2022-02-09 22:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:13 | ------------------------------------ 2022-02-09 22:20:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-09 22:20:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-405f5af5-47a4-48ec-a2f6-2c74fd816cd2", "test", "node-8789f90f-3815-4e3a-a349-cdb36acad2e9" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-02-09 22:20:13 |
2022-02-09 22:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:13 | ------------------------------------ 2022-02-09 22:20:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8789f90f-3815-4e3a-a349-cdb36acad2e9)" } 2022-02-09 22:20:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-09 22:20:12 |
2022-02-09 22:20:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:12 | ------------------------------------ 2022-02-09 22:20:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "jids": [ "admin@test-domain.com" ] } 2022-02-09 22:20:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.069s |
2022-02-09 22:20:13 |
2022-02-09 22:20:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-09 22:20:13 | ------------------------------------ 2022-02-09 22:20:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8789f90f-3815-4e3a-a349-cdb36acad2e9", "jids": [ "admin@test-domain.com" ] } 2022-02-09 22:20:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |