Test duration : 8.856s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2022-06-19 22:36:14 |
2022-06-19 22:36:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:14 | ------------------------------------ 2022-06-19 22:36:14 | [Mutex] waiting for: [configured:node:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:node-af7af06b-c295-4869-be91-fbf17c455306] 2022-06-19 22:36:14 | [Mutex] received everything. 2022-06-19 22:36:14 | [Mutex] isItemNotified: configured:node:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:node-af7af06b-c295-4869-be91-fbf17c455306 :: true 2022-06-19 22:36:15 | [Mutex] waiting for: [received:nodes:21ca5a8c-2184-4f66-a230-67395eb7a6a9:localhost] 2022-06-19 22:36:15 | [Mutex] waiting for: [received:nodes:21ca5a8c-2184-4f66-a230-67395eb7a6a9:localhost] 2022-06-19 22:36:15 | [Mutex] received everything. 2022-06-19 22:36:15 | [Mutex] isItemNotified: received:node:21ca5a8c-2184-4f66-a230-67395eb7a6a9:localhost:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:Node 55fcdc9d-0850-45f5-8933-7d4c64890bee :: true 2022-06-19 22:36:15 | [Mutex] waiting for: [received:nodes:b107c8cd-5c8d-44e8-847b-e08b5b3339ab:localhost] 2022-06-19 22:36:15 | [Mutex] waiting for: [received:nodes:b107c8cd-5c8d-44e8-847b-e08b5b3339ab:localhost] 2022-06-19 22:36:15 | [Mutex] waiting for: [received:nodes:b107c8cd-5c8d-44e8-847b-e08b5b3339ab:localhost] 2022-06-19 22:36:15 | [Mutex] received everything. 2022-06-19 22:36:15 | [Mutex] isItemNotified: received:node:b107c8cd-5c8d-44e8-847b-e08b5b3339ab:localhost:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:Node 55fcdc9d-0850-45f5-8933-7d4c64890bee :: false |
createNodes | 1.661s |
2022-06-19 22:36:11 |
2022-06-19 22:36:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:11 | ------------------------------------ 2022-06-19 22:36:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "pubsub#title": "Node 55fcdc9d-0850-45f5-8933-7d4c64890bee" } 2022-06-19 22:36:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-19 22:36:13 | [Mutex] waiting for: [received:nodes:518ae1fd-7feb-4e8d-a749-5cd9180282d9:localhost] 2022-06-19 22:36:13 | [Mutex] received everything. 2022-06-19 22:36:13 | [Mutex] isItemNotified: received:node:518ae1fd-7feb-4e8d-a749-5cd9180282d9:localhost:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:Node 55fcdc9d-0850-45f5-8933-7d4c64890bee :: true |
createSubnodes | 1.023s |
2022-06-19 22:36:13 |
2022-06-19 22:36:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:13 | ------------------------------------ 2022-06-19 22:36:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-af7af06b-c295-4869-be91-fbf17c455306", "pubsub#title": "Node af7af06b-c295-4869-be91-fbf17c455306" } 2022-06-19 22:36:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-19 22:36:14 | [Mutex] waiting for: [received:nodes:e67a155f-0e6c-4358-9e64-c73351f17ae9:localhost] 2022-06-19 22:36:14 | [Mutex] waiting for: [received:nodes:e67a155f-0e6c-4358-9e64-c73351f17ae9:localhost] 2022-06-19 22:36:14 | [Mutex] received everything. 2022-06-19 22:36:14 | [Mutex] isItemNotified: received:node:e67a155f-0e6c-4358-9e64-c73351f17ae9:localhost:node-af7af06b-c295-4869-be91-fbf17c455306:Node af7af06b-c295-4869-be91-fbf17c455306 :: true |
deleteNodes | 1.018s |
2022-06-19 22:36:19 |
2022-06-19 22:36:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:19 | ------------------------------------ 2022-06-19 22:36:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-af7af06b-c295-4869-be91-fbf17c455306" } 2022-06-19 22:36:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-19 22:36:20 | [Mutex] waiting for: [received:nodes:b3d8a566-d49f-4492-8f07-ff9681d128ff:localhost] 2022-06-19 22:36:20 | [Mutex] waiting for: [received:nodes:b3d8a566-d49f-4492-8f07-ff9681d128ff:localhost] 2022-06-19 22:36:20 | [Mutex] waiting for: [received:nodes:b3d8a566-d49f-4492-8f07-ff9681d128ff:localhost] 2022-06-19 22:36:20 | [Mutex] received everything. 2022-06-19 22:36:20 | [Mutex] isItemNotified: received:node:b3d8a566-d49f-4492-8f07-ff9681d128ff:localhost:node-af7af06b-c295-4869-be91-fbf17c455306:Node af7af06b-c295-4869-be91-fbf17c455306 :: false |
deleteSubnodes | 1.026s |
2022-06-19 22:36:18 |
2022-06-19 22:36:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:18 | ------------------------------------ 2022-06-19 22:36:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee" } 2022-06-19 22:36:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-19 22:36:19 | [Mutex] waiting for: [received:nodes:47347c84-54de-4f4b-9128-260dc9f3fd4a:localhost] 2022-06-19 22:36:19 | [Mutex] received everything. 2022-06-19 22:36:19 | [Mutex] isItemNotified: received:node:47347c84-54de-4f4b-9128-260dc9f3fd4a:localhost:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:Node 55fcdc9d-0850-45f5-8933-7d4c64890bee :: false 2022-06-19 22:36:19 | [Mutex] waiting for: [received:nodes:246e3642-56b1-4a24-9d3f-879f7afe213a:localhost] 2022-06-19 22:36:19 | [Mutex] received everything. 2022-06-19 22:36:19 | [Mutex] isItemNotified: received:node:246e3642-56b1-4a24-9d3f-879f7afe213a:localhost:node-55fcdc9d-0850-45f5-8933-7d4c64890bee:Node 55fcdc9d-0850-45f5-8933-7d4c64890bee :: false |
publishItemsToNodes | 0.067s |
2022-06-19 22:36:16 |
2022-06-19 22:36:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:16 | ------------------------------------ 2022-06-19 22:36:16 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "entry": "<test>item-25bd5e2b-5c80-4929-a8bb-ee479986ac40</test>", "item-id": "item-25bd5e2b-5c80-4929-a8bb-ee479986ac40" } 2022-06-19 22:36:16 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-25bd5e2b-5c80-4929-a8bb-ee479986ac40" } 2022-06-19 22:36:16 | [Mutex] waiting for: [published:item:notifieditem-25bd5e2b-5c80-4929-a8bb-ee479986ac40:admin@test-domain.com] 2022-06-19 22:36:16 | [Mutex] received everything. 2022-06-19 22:36:16 | [Mutex] isItemNotified: published:item:notifieditem-25bd5e2b-5c80-4929-a8bb-ee479986ac40:admin@test-domain.com :: true |
retractItemsFromNodes | 0.090s |
2022-06-19 22:36:17 |
2022-06-19 22:36:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:17 | ------------------------------------ 2022-06-19 22:36:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "item-id": "item-25bd5e2b-5c80-4929-a8bb-ee479986ac40" } 2022-06-19 22:36:17 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-25bd5e2b-5c80-4929-a8bb-ee479986ac40" } 2022-06-19 22:36:17 | [Mutex] waiting for: [retracted:item:notifieditem-25bd5e2b-5c80-4929-a8bb-ee479986ac40:admin@test-domain.com] 2022-06-19 22:36:17 | [Mutex] received everything. 2022-06-19 22:36:17 | [Mutex] isItemNotified: retracted:item:notifieditem-25bd5e2b-5c80-4929-a8bb-ee479986ac40:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.101s |
2022-06-19 22:36:16 |
2022-06-19 22:36:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:16 | ------------------------------------ 2022-06-19 22:36:16 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "item-id": "item-25bd5e2b-5c80-4929-a8bb-ee479986ac40" } 2022-06-19 22:36:16 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "item-id": "item-25bd5e2b-5c80-4929-a8bb-ee479986ac40", "item": [ "<item id=\"item-25bd5e2b-5c80-4929-a8bb-ee479986ac40\"><test>item-25bd5e2b-5c80-4929-a8bb-ee479986ac40</test></item>" ] } 2022-06-19 22:36:16 | [Mutex] notify: [retrieved:item:item-25bd5e2b-5c80-4929-a8bb-ee479986ac40:payload-matches:true:localhost] 2022-06-19 22:36:16 | [Mutex] received everything. 2022-06-19 22:36:16 | [Mutex] isItemNotified: retrieved:item:item-25bd5e2b-5c80-4929-a8bb-ee479986ac40:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-06-19 22:36:16 |
2022-06-19 22:36:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:16 | ------------------------------------ 2022-06-19 22:36:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-19 22:36:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-af7af06b-c295-4869-be91-fbf17c455306", "test", "node-55fcdc9d-0850-45f5-8933-7d4c64890bee" ] } |
retrieveUserSubscriptionsWithRegex | 0.046s |
2022-06-19 22:36:17 |
2022-06-19 22:36:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:17 | ------------------------------------ 2022-06-19 22:36:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-55fcdc9d-0850-45f5-8933-7d4c64890bee)" } 2022-06-19 22:36:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-06-19 22:36:15 |
2022-06-19 22:36:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:15 | ------------------------------------ 2022-06-19 22:36:15 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "jids": [ "admin@test-domain.com" ] } 2022-06-19 22:36:15 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.048s |
2022-06-19 22:36:17 |
2022-06-19 22:36:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-19 22:36:17 | ------------------------------------ 2022-06-19 22:36:17 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-55fcdc9d-0850-45f5-8933-7d4c64890bee", "jids": [ "admin@test-domain.com" ] } 2022-06-19 22:36:17 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |