Test duration : 8.666s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2022-08-02 22:34:03 |
2022-08-02 22:34:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:03 | ------------------------------------ 2022-08-02 22:34:03 | [Mutex] waiting for: [configured:node:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:node-0c98695b-17f3-4964-aef4-71d00f9e9da3] 2022-08-02 22:34:03 | [Mutex] received everything. 2022-08-02 22:34:03 | [Mutex] isItemNotified: configured:node:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:node-0c98695b-17f3-4964-aef4-71d00f9e9da3 :: true 2022-08-02 22:34:04 | [Mutex] waiting for: [received:nodes:96cf8e02-4ae6-485f-ac12-bf28fa849ce3:localhost] 2022-08-02 22:34:04 | [Mutex] received everything. 2022-08-02 22:34:04 | [Mutex] isItemNotified: received:node:96cf8e02-4ae6-485f-ac12-bf28fa849ce3:localhost:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:Node 7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b :: true 2022-08-02 22:34:04 | [Mutex] waiting for: [received:nodes:2ea8cc89-ed3c-425b-9e1a-6648397fecf0:localhost] 2022-08-02 22:34:04 | [Mutex] waiting for: [received:nodes:2ea8cc89-ed3c-425b-9e1a-6648397fecf0:localhost] 2022-08-02 22:34:04 | [Mutex] waiting for: [received:nodes:2ea8cc89-ed3c-425b-9e1a-6648397fecf0:localhost] 2022-08-02 22:34:04 | [Mutex] received everything. 2022-08-02 22:34:04 | [Mutex] isItemNotified: received:node:2ea8cc89-ed3c-425b-9e1a-6648397fecf0:localhost:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:Node 7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b :: false |
createNodes | 1.663s |
2022-08-02 22:34:00 |
2022-08-02 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:00 | ------------------------------------ 2022-08-02 22:34:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "pubsub#title": "Node 7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b" } 2022-08-02 22:34:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:01 | [Mutex] waiting for: [received:nodes:2403e173-cb3e-4c3e-aada-c7fc6793d0cd:localhost] 2022-08-02 22:34:02 | [Mutex] waiting for: [received:nodes:2403e173-cb3e-4c3e-aada-c7fc6793d0cd:localhost] 2022-08-02 22:34:02 | [Mutex] received everything. 2022-08-02 22:34:02 | [Mutex] isItemNotified: received:node:2403e173-cb3e-4c3e-aada-c7fc6793d0cd:localhost:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:Node 7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b :: true |
createSubnodes | 1.022s |
2022-08-02 22:34:02 |
2022-08-02 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:02 | ------------------------------------ 2022-08-02 22:34:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0c98695b-17f3-4964-aef4-71d00f9e9da3", "pubsub#title": "Node 0c98695b-17f3-4964-aef4-71d00f9e9da3" } 2022-08-02 22:34:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:03 | [Mutex] waiting for: [received:nodes:9c0b2fed-e211-464b-bcdf-e5c1da00d703:localhost] 2022-08-02 22:34:03 | [Mutex] received everything. 2022-08-02 22:34:03 | [Mutex] isItemNotified: received:node:9c0b2fed-e211-464b-bcdf-e5c1da00d703:localhost:node-0c98695b-17f3-4964-aef4-71d00f9e9da3:Node 0c98695b-17f3-4964-aef4-71d00f9e9da3 :: true |
deleteNodes | 1.024s |
2022-08-02 22:34:07 |
2022-08-02 22:34:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:07 | ------------------------------------ 2022-08-02 22:34:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0c98695b-17f3-4964-aef4-71d00f9e9da3" } 2022-08-02 22:34:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:08 | [Mutex] waiting for: [received:nodes:18c7baea-4d0c-48cd-a1e9-9ca34bf569d4:localhost] 2022-08-02 22:34:08 | [Mutex] received everything. 2022-08-02 22:34:08 | [Mutex] isItemNotified: received:node:18c7baea-4d0c-48cd-a1e9-9ca34bf569d4:localhost:node-0c98695b-17f3-4964-aef4-71d00f9e9da3:Node 0c98695b-17f3-4964-aef4-71d00f9e9da3 :: false |
deleteSubnodes | 1.028s |
2022-08-02 22:34:06 |
2022-08-02 22:34:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:06 | ------------------------------------ 2022-08-02 22:34:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b" } 2022-08-02 22:34:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:07 | [Mutex] waiting for: [received:nodes:0356028c-dfb1-4843-9a16-2759c923977f:localhost] 2022-08-02 22:34:07 | [Mutex] waiting for: [received:nodes:0356028c-dfb1-4843-9a16-2759c923977f:localhost] 2022-08-02 22:34:07 | [Mutex] waiting for: [received:nodes:0356028c-dfb1-4843-9a16-2759c923977f:localhost] 2022-08-02 22:34:07 | [Mutex] received everything. 2022-08-02 22:34:07 | [Mutex] isItemNotified: received:node:0356028c-dfb1-4843-9a16-2759c923977f:localhost:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:Node 7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b :: false 2022-08-02 22:34:07 | [Mutex] waiting for: [received:nodes:7a84e3a3-b715-46b2-a5e3-f571da0f17c3:localhost] 2022-08-02 22:34:07 | [Mutex] received everything. 2022-08-02 22:34:07 | [Mutex] isItemNotified: received:node:7a84e3a3-b715-46b2-a5e3-f571da0f17c3:localhost:node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b:Node 7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b :: false |
publishItemsToNodes | 0.051s |
2022-08-02 22:34:05 |
2022-08-02 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:05 | ------------------------------------ 2022-08-02 22:34:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "entry": "<test>item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e</test>", "item-id": "item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e" } 2022-08-02 22:34:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e" } 2022-08-02 22:34:05 | [Mutex] waiting for: [published:item:notifieditem-cac24bf4-a6fb-405d-9fb9-6dadddfec75e:admin@test-domain.com] 2022-08-02 22:34:05 | [Mutex] received everything. 2022-08-02 22:34:05 | [Mutex] isItemNotified: published:item:notifieditem-cac24bf4-a6fb-405d-9fb9-6dadddfec75e:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-08-02 22:34:05 |
2022-08-02 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:05 | ------------------------------------ 2022-08-02 22:34:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "item-id": "item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e" } 2022-08-02 22:34:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e" } 2022-08-02 22:34:05 | [Mutex] received everything. 2022-08-02 22:34:05 | [Mutex] isItemNotified: retracted:item:notifieditem-cac24bf4-a6fb-405d-9fb9-6dadddfec75e:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2022-08-02 22:34:05 |
2022-08-02 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:05 | ------------------------------------ 2022-08-02 22:34:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "item-id": "item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e" } 2022-08-02 22:34:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "item-id": "item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e", "item": [ "<item id=\"item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e\"><test>item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e</test></item>" ] } 2022-08-02 22:34:05 | [Mutex] notify: [retrieved:item:item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e:payload-matches:true:localhost] 2022-08-02 22:34:05 | [Mutex] received everything. 2022-08-02 22:34:05 | [Mutex] isItemNotified: retrieved:item:item-cac24bf4-a6fb-405d-9fb9-6dadddfec75e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.046s |
2022-08-02 22:34:05 |
2022-08-02 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:05 | ------------------------------------ 2022-08-02 22:34:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-02 22:34:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0c98695b-17f3-4964-aef4-71d00f9e9da3", "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-02 22:34:05 |
2022-08-02 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:05 | ------------------------------------ 2022-08-02 22:34:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b)" } 2022-08-02 22:34:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-02 22:34:04 |
2022-08-02 22:34:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:04 | ------------------------------------ 2022-08-02 22:34:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "jids": [ "admin@test-domain.com" ] } 2022-08-02 22:34:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.088s |
2022-08-02 22:34:05 |
2022-08-02 22:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:05 | ------------------------------------ 2022-08-02 22:34:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7e4e72d5-e3d8-415d-8fae-efdc4c1a6e7b", "jids": [ "admin@test-domain.com" ] } 2022-08-02 22:34:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |