Generated by TestNG with ReportNG at 23:29 PDT on Tuesday 15 September 2020
root@b111a435ccb0 / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.003s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2020-09-15 23:44:27 |

2020-09-15 23:44:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:27 | ------------------------------------

2020-09-15 23:44:27 | [Mutex] waiting for: [configured:node:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:node-abfa6135-fb55-42d0-9672-2433687343f1]

2020-09-15 23:44:28 | [Mutex] received everything.

2020-09-15 23:44:28 | [Mutex] isItemNotified: configured:node:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:node-abfa6135-fb55-42d0-9672-2433687343f1 :: true

2020-09-15 23:44:29 | [Mutex] waiting for: [received:nodes:3f971bfa-60dd-4bc1-82ed-57a5cc982725:localhost]

2020-09-15 23:44:29 | [Mutex] received everything.

2020-09-15 23:44:29 | [Mutex] isItemNotified: received:node:3f971bfa-60dd-4bc1-82ed-57a5cc982725:localhost:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:Node 03665fc1-f71d-4334-8ad7-ae3776aa91d2 :: true

2020-09-15 23:44:29 | [Mutex] waiting for: [received:nodes:5fbe9586-6067-486d-b2d6-a46b0574261d:localhost]

2020-09-15 23:44:29 | [Mutex] waiting for: [received:nodes:5fbe9586-6067-486d-b2d6-a46b0574261d:localhost]

2020-09-15 23:44:29 | [Mutex] received everything.

2020-09-15 23:44:29 | [Mutex] isItemNotified: received:node:5fbe9586-6067-486d-b2d6-a46b0574261d:localhost:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:Node 03665fc1-f71d-4334-8ad7-ae3776aa91d2 :: false

createNodes 1.742s
2020-09-15 23:44:25 |

2020-09-15 23:44:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:25 | ------------------------------------

2020-09-15 23:44:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "pubsub#title": "Node 03665fc1-f71d-4334-8ad7-ae3776aa91d2"
}

2020-09-15 23:44:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 23:44:26 | [Mutex] waiting for: [received:nodes:391018c8-4ca5-4022-a48d-9fcbc87515d6:localhost]

2020-09-15 23:44:26 | [Mutex] waiting for: [received:nodes:391018c8-4ca5-4022-a48d-9fcbc87515d6:localhost]

2020-09-15 23:44:26 | [Mutex] received everything.

2020-09-15 23:44:26 | [Mutex] isItemNotified: received:node:391018c8-4ca5-4022-a48d-9fcbc87515d6:localhost:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:Node 03665fc1-f71d-4334-8ad7-ae3776aa91d2 :: true

createSubnodes 1.021s
2020-09-15 23:44:26 |

2020-09-15 23:44:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:26 | ------------------------------------

2020-09-15 23:44:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-abfa6135-fb55-42d0-9672-2433687343f1",
    "pubsub#title": "Node abfa6135-fb55-42d0-9672-2433687343f1"
}

2020-09-15 23:44:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 23:44:27 | [Mutex] waiting for: [received:nodes:c2d2748e-2c95-4b10-b5d3-9abb9407cf2b:localhost]

2020-09-15 23:44:27 | [Mutex] waiting for: [received:nodes:c2d2748e-2c95-4b10-b5d3-9abb9407cf2b:localhost]

2020-09-15 23:44:27 | [Mutex] received everything.

2020-09-15 23:44:27 | [Mutex] isItemNotified: received:node:c2d2748e-2c95-4b10-b5d3-9abb9407cf2b:localhost:node-abfa6135-fb55-42d0-9672-2433687343f1:Node abfa6135-fb55-42d0-9672-2433687343f1 :: true

deleteNodes 1.022s
2020-09-15 23:44:32 |

2020-09-15 23:44:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:32 | ------------------------------------

2020-09-15 23:44:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-abfa6135-fb55-42d0-9672-2433687343f1"
}

2020-09-15 23:44:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 23:44:33 | [Mutex] waiting for: [received:nodes:1fc8202a-8742-4fb7-b5c7-21ccd236d7aa:localhost]

2020-09-15 23:44:33 | [Mutex] waiting for: [received:nodes:1fc8202a-8742-4fb7-b5c7-21ccd236d7aa:localhost]

2020-09-15 23:44:33 | [Mutex] received everything.

2020-09-15 23:44:33 | [Mutex] isItemNotified: received:node:1fc8202a-8742-4fb7-b5c7-21ccd236d7aa:localhost:node-abfa6135-fb55-42d0-9672-2433687343f1:Node abfa6135-fb55-42d0-9672-2433687343f1 :: false

deleteSubnodes 1.027s
2020-09-15 23:44:31 |

2020-09-15 23:44:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:31 | ------------------------------------

2020-09-15 23:44:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2"
}

2020-09-15 23:44:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-15 23:44:32 | [Mutex] waiting for: [received:nodes:23598c2d-e3fa-4bfa-a8d9-a345f669e742:localhost]

2020-09-15 23:44:32 | [Mutex] received everything.

2020-09-15 23:44:32 | [Mutex] isItemNotified: received:node:23598c2d-e3fa-4bfa-a8d9-a345f669e742:localhost:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:Node 03665fc1-f71d-4334-8ad7-ae3776aa91d2 :: false

2020-09-15 23:44:32 | [Mutex] waiting for: [received:nodes:6c578728-d733-4316-90f6-efd848368349:localhost]

2020-09-15 23:44:32 | [Mutex] received everything.

2020-09-15 23:44:32 | [Mutex] isItemNotified: received:node:6c578728-d733-4316-90f6-efd848368349:localhost:node-03665fc1-f71d-4334-8ad7-ae3776aa91d2:Node 03665fc1-f71d-4334-8ad7-ae3776aa91d2 :: false

publishItemsToNodes 0.097s
2020-09-15 23:44:30 |

2020-09-15 23:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:30 | ------------------------------------

2020-09-15 23:44:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "entry": "<test>item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103</test>",
    "item-id": "item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103"
}

2020-09-15 23:44:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103"
}

2020-09-15 23:44:30 | [Mutex] waiting for: [published:item:notifieditem-31d9b430-b9ef-4ccd-b9bf-2c8727f61103:admin@test-domain.com]

2020-09-15 23:44:30 | [Mutex] received everything.

2020-09-15 23:44:30 | [Mutex] isItemNotified: published:item:notifieditem-31d9b430-b9ef-4ccd-b9bf-2c8727f61103:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2020-09-15 23:44:30 |

2020-09-15 23:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:30 | ------------------------------------

2020-09-15 23:44:30 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "item-id": "item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103"
}

2020-09-15 23:44:30 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103"
}

2020-09-15 23:44:30 | [Mutex] received everything.

2020-09-15 23:44:30 | [Mutex] isItemNotified: retracted:item:notifieditem-31d9b430-b9ef-4ccd-b9bf-2c8727f61103:admin@test-domain.com :: true

retrieveItemsFromNodes 0.015s
2020-09-15 23:44:30 |

2020-09-15 23:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:30 | ------------------------------------

2020-09-15 23:44:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "item-id": "item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103"
}

2020-09-15 23:44:30 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "item-id": "item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103",
    "item": [
        "<item id=\"item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103\"><test>item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103</test></item>"
    ]
}

2020-09-15 23:44:30 | [Mutex] notify: [retrieved:item:item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103:payload-matches:true:localhost]

2020-09-15 23:44:30 | [Mutex] received everything.

2020-09-15 23:44:30 | [Mutex] isItemNotified: retrieved:item:item-31d9b430-b9ef-4ccd-b9bf-2c8727f61103:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2020-09-15 23:44:30 |

2020-09-15 23:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:30 | ------------------------------------

2020-09-15 23:44:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-15 23:44:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
        "test",
        "node-abfa6135-fb55-42d0-9672-2433687343f1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-15 23:44:30 |

2020-09-15 23:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:30 | ------------------------------------

2020-09-15 23:44:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-03665fc1-f71d-4334-8ad7-ae3776aa91d2)"
}

2020-09-15 23:44:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2020-09-15 23:44:29 |

2020-09-15 23:44:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:29 | ------------------------------------

2020-09-15 23:44:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-15 23:44:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-15 23:44:30 |

2020-09-15 23:44:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-15 23:44:30 | ------------------------------------

2020-09-15 23:44:30 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-03665fc1-f71d-4334-8ad7-ae3776aa91d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-15 23:44:30 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}