Test duration : 8.626s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2022-12-28 22:03:05 |
2022-12-28 22:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:05 | ------------------------------------ 2022-12-28 22:03:05 | [Mutex] waiting for: [configured:node:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:node-364e0a74-a526-40ab-8fe9-37c3f294eeed] 2022-12-28 22:03:05 | [Mutex] received everything. 2022-12-28 22:03:05 | [Mutex] isItemNotified: configured:node:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:node-364e0a74-a526-40ab-8fe9-37c3f294eeed :: true 2022-12-28 22:03:06 | [Mutex] waiting for: [received:nodes:facb49c7-382e-4275-998d-5221af6c96a7:localhost] 2022-12-28 22:03:06 | [Mutex] received everything. 2022-12-28 22:03:06 | [Mutex] isItemNotified: received:node:facb49c7-382e-4275-998d-5221af6c96a7:localhost:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:Node a1ed7c58-0d1b-4726-9694-c01c0ca55ab5 :: true 2022-12-28 22:03:06 | [Mutex] waiting for: [received:nodes:8b7d0191-bb18-45f4-98c2-6bfc3cfa597d:localhost] 2022-12-28 22:03:06 | [Mutex] waiting for: [received:nodes:8b7d0191-bb18-45f4-98c2-6bfc3cfa597d:localhost] 2022-12-28 22:03:06 | [Mutex] waiting for: [received:nodes:8b7d0191-bb18-45f4-98c2-6bfc3cfa597d:localhost] 2022-12-28 22:03:06 | [Mutex] received everything. 2022-12-28 22:03:06 | [Mutex] isItemNotified: received:node:8b7d0191-bb18-45f4-98c2-6bfc3cfa597d:localhost:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:Node a1ed7c58-0d1b-4726-9694-c01c0ca55ab5 :: false |
createNodes | 1.669s |
2022-12-28 22:03:02 |
2022-12-28 22:03:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:02 | ------------------------------------ 2022-12-28 22:03:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "pubsub#title": "Node a1ed7c58-0d1b-4726-9694-c01c0ca55ab5" } 2022-12-28 22:03:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 22:03:04 | [Mutex] waiting for: [received:nodes:f4587aac-0f64-4e10-87a5-677e872041b3:localhost] 2022-12-28 22:03:04 | [Mutex] waiting for: [received:nodes:f4587aac-0f64-4e10-87a5-677e872041b3:localhost] 2022-12-28 22:03:04 | [Mutex] waiting for: [received:nodes:f4587aac-0f64-4e10-87a5-677e872041b3:localhost] 2022-12-28 22:03:04 | [Mutex] waiting for: [received:nodes:f4587aac-0f64-4e10-87a5-677e872041b3:localhost] 2022-12-28 22:03:04 | [Mutex] received everything. 2022-12-28 22:03:04 | [Mutex] isItemNotified: received:node:f4587aac-0f64-4e10-87a5-677e872041b3:localhost:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:Node a1ed7c58-0d1b-4726-9694-c01c0ca55ab5 :: true |
createSubnodes | 1.018s |
2022-12-28 22:03:04 |
2022-12-28 22:03:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:04 | ------------------------------------ 2022-12-28 22:03:04 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-364e0a74-a526-40ab-8fe9-37c3f294eeed", "pubsub#title": "Node 364e0a74-a526-40ab-8fe9-37c3f294eeed" } 2022-12-28 22:03:04 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 22:03:05 | [Mutex] waiting for: [received:nodes:a7a5ce5b-abeb-4ac3-9061-e98b0822f5f4:localhost] 2022-12-28 22:03:05 | [Mutex] waiting for: [received:nodes:a7a5ce5b-abeb-4ac3-9061-e98b0822f5f4:localhost] 2022-12-28 22:03:05 | [Mutex] waiting for: [received:nodes:a7a5ce5b-abeb-4ac3-9061-e98b0822f5f4:localhost] 2022-12-28 22:03:05 | [Mutex] waiting for: [received:nodes:a7a5ce5b-abeb-4ac3-9061-e98b0822f5f4:localhost] 2022-12-28 22:03:05 | [Mutex] received everything. 2022-12-28 22:03:05 | [Mutex] isItemNotified: received:node:a7a5ce5b-abeb-4ac3-9061-e98b0822f5f4:localhost:node-364e0a74-a526-40ab-8fe9-37c3f294eeed:Node 364e0a74-a526-40ab-8fe9-37c3f294eeed :: true |
deleteNodes | 1.016s |
2022-12-28 22:03:09 |
2022-12-28 22:03:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:09 | ------------------------------------ 2022-12-28 22:03:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-364e0a74-a526-40ab-8fe9-37c3f294eeed" } 2022-12-28 22:03:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 22:03:10 | [Mutex] waiting for: [received:nodes:0c68e102-1cf1-4b44-82e2-461e460e0f9f:localhost] 2022-12-28 22:03:10 | [Mutex] waiting for: [received:nodes:0c68e102-1cf1-4b44-82e2-461e460e0f9f:localhost] 2022-12-28 22:03:10 | [Mutex] waiting for: [received:nodes:0c68e102-1cf1-4b44-82e2-461e460e0f9f:localhost] 2022-12-28 22:03:10 | [Mutex] received everything. 2022-12-28 22:03:10 | [Mutex] isItemNotified: received:node:0c68e102-1cf1-4b44-82e2-461e460e0f9f:localhost:node-364e0a74-a526-40ab-8fe9-37c3f294eeed:Node 364e0a74-a526-40ab-8fe9-37c3f294eeed :: false |
deleteSubnodes | 1.022s |
2022-12-28 22:03:08 |
2022-12-28 22:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:08 | ------------------------------------ 2022-12-28 22:03:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5" } 2022-12-28 22:03:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-28 22:03:09 | [Mutex] waiting for: [received:nodes:b4aebe25-e6db-478b-8bdc-ff11ea205e0a:localhost] 2022-12-28 22:03:09 | [Mutex] waiting for: [received:nodes:b4aebe25-e6db-478b-8bdc-ff11ea205e0a:localhost] 2022-12-28 22:03:09 | [Mutex] received everything. 2022-12-28 22:03:09 | [Mutex] isItemNotified: received:node:b4aebe25-e6db-478b-8bdc-ff11ea205e0a:localhost:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:Node a1ed7c58-0d1b-4726-9694-c01c0ca55ab5 :: false 2022-12-28 22:03:09 | [Mutex] waiting for: [received:nodes:1b9e022d-f6dc-4c5d-9db2-d6ba0385dfbc:localhost] 2022-12-28 22:03:09 | [Mutex] received everything. 2022-12-28 22:03:09 | [Mutex] isItemNotified: received:node:1b9e022d-f6dc-4c5d-9db2-d6ba0385dfbc:localhost:node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5:Node a1ed7c58-0d1b-4726-9694-c01c0ca55ab5 :: false |
publishItemsToNodes | 0.050s |
2022-12-28 22:03:07 |
2022-12-28 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:07 | ------------------------------------ 2022-12-28 22:03:07 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "entry": "<test>item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c</test>", "item-id": "item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c" } 2022-12-28 22:03:07 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c" } 2022-12-28 22:03:07 | [Mutex] waiting for: [published:item:notifieditem-1ac23fa8-168a-4e3d-a745-a368bb4ae37c:admin@test-domain.com] 2022-12-28 22:03:07 | [Mutex] received everything. 2022-12-28 22:03:07 | [Mutex] isItemNotified: published:item:notifieditem-1ac23fa8-168a-4e3d-a745-a368bb4ae37c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-12-28 22:03:07 |
2022-12-28 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:07 | ------------------------------------ 2022-12-28 22:03:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "item-id": "item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c" } 2022-12-28 22:03:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c" } 2022-12-28 22:03:07 | [Mutex] received everything. 2022-12-28 22:03:07 | [Mutex] isItemNotified: retracted:item:notifieditem-1ac23fa8-168a-4e3d-a745-a368bb4ae37c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.022s |
2022-12-28 22:03:07 |
2022-12-28 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:07 | ------------------------------------ 2022-12-28 22:03:07 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "item-id": "item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c" } 2022-12-28 22:03:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "item-id": "item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c", "item": [ "<item id=\"item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c\"><test>item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c</test></item>" ] } 2022-12-28 22:03:07 | [Mutex] notify: [retrieved:item:item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c:payload-matches:true:localhost] 2022-12-28 22:03:07 | [Mutex] received everything. 2022-12-28 22:03:07 | [Mutex] isItemNotified: retrieved:item:item-1ac23fa8-168a-4e3d-a745-a368bb4ae37c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-12-28 22:03:07 |
2022-12-28 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:07 | ------------------------------------ 2022-12-28 22:03:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-28 22:03:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "node-364e0a74-a526-40ab-8fe9-37c3f294eeed" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-12-28 22:03:07 |
2022-12-28 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:07 | ------------------------------------ 2022-12-28 22:03:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5)" } 2022-12-28 22:03:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2022-12-28 22:03:06 |
2022-12-28 22:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:06 | ------------------------------------ 2022-12-28 22:03:06 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "jids": [ "admin@test-domain.com" ] } 2022-12-28 22:03:06 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-12-28 22:03:07 |
2022-12-28 22:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-28 22:03:07 | ------------------------------------ 2022-12-28 22:03:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a1ed7c58-0d1b-4726-9694-c01c0ca55ab5", "jids": [ "admin@test-domain.com" ] } 2022-12-28 22:03:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |