Generated by TestNG with ReportNG at 05:56 PST on Wednesday 27 January 2021
root@87f6aca6b6f2 / 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.224s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2021-01-27 06:11:21 |

2021-01-27 06:11:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:21 | ------------------------------------

2021-01-27 06:11:21 | [Mutex] waiting for: [configured:node:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:node-08b53dd3-82d3-4306-b658-972217a279c4]

2021-01-27 06:11:21 | [Mutex] received everything.

2021-01-27 06:11:21 | [Mutex] isItemNotified: configured:node:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:node-08b53dd3-82d3-4306-b658-972217a279c4 :: true

2021-01-27 06:11:22 | [Mutex] waiting for: [received:nodes:007afa2c-4538-4fac-824d-1e1286caf8ff:localhost]

2021-01-27 06:11:22 | [Mutex] received everything.

2021-01-27 06:11:22 | [Mutex] isItemNotified: received:node:007afa2c-4538-4fac-824d-1e1286caf8ff:localhost:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:Node dbc58cac-ab70-4e0b-9e2a-c06523193d24 :: true

2021-01-27 06:11:22 | [Mutex] waiting for: [received:nodes:fe3c0d6c-76d7-4981-ab3b-bdc6c8fc8ddc:localhost]

2021-01-27 06:11:22 | [Mutex] received everything.

2021-01-27 06:11:22 | [Mutex] isItemNotified: received:node:fe3c0d6c-76d7-4981-ab3b-bdc6c8fc8ddc:localhost:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:Node dbc58cac-ab70-4e0b-9e2a-c06523193d24 :: false

createNodes 1.730s
2021-01-27 06:11:18 |

2021-01-27 06:11:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:18 | ------------------------------------

2021-01-27 06:11:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "pubsub#title": "Node dbc58cac-ab70-4e0b-9e2a-c06523193d24"
}

2021-01-27 06:11:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 06:11:20 | [Mutex] waiting for: [received:nodes:d3d2d55e-2d8c-4c22-8a22-a49608ce46ea:localhost]

2021-01-27 06:11:20 | [Mutex] waiting for: [received:nodes:d3d2d55e-2d8c-4c22-8a22-a49608ce46ea:localhost]

2021-01-27 06:11:20 | [Mutex] received everything.

2021-01-27 06:11:20 | [Mutex] isItemNotified: received:node:d3d2d55e-2d8c-4c22-8a22-a49608ce46ea:localhost:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:Node dbc58cac-ab70-4e0b-9e2a-c06523193d24 :: true

createSubnodes 1.034s
2021-01-27 06:11:20 |

2021-01-27 06:11:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:20 | ------------------------------------

2021-01-27 06:11:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-08b53dd3-82d3-4306-b658-972217a279c4",
    "pubsub#title": "Node 08b53dd3-82d3-4306-b658-972217a279c4"
}

2021-01-27 06:11:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 06:11:21 | [Mutex] waiting for: [received:nodes:ab1db96d-012d-4ed2-b863-aa03c4946ea3:localhost]

2021-01-27 06:11:21 | [Mutex] received everything.

2021-01-27 06:11:21 | [Mutex] isItemNotified: received:node:ab1db96d-012d-4ed2-b863-aa03c4946ea3:localhost:node-08b53dd3-82d3-4306-b658-972217a279c4:Node 08b53dd3-82d3-4306-b658-972217a279c4 :: true

deleteNodes 1.023s
2021-01-27 06:11:26 |

2021-01-27 06:11:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:26 | ------------------------------------

2021-01-27 06:11:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-08b53dd3-82d3-4306-b658-972217a279c4"
}

2021-01-27 06:11:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 06:11:27 | [Mutex] waiting for: [received:nodes:f1a87ba5-87dc-4abf-8416-ac3364b27e6d:localhost]

2021-01-27 06:11:27 | [Mutex] received everything.

2021-01-27 06:11:27 | [Mutex] isItemNotified: received:node:f1a87ba5-87dc-4abf-8416-ac3364b27e6d:localhost:node-08b53dd3-82d3-4306-b658-972217a279c4:Node 08b53dd3-82d3-4306-b658-972217a279c4 :: false

deleteSubnodes 1.031s
2021-01-27 06:11:25 |

2021-01-27 06:11:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:25 | ------------------------------------

2021-01-27 06:11:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24"
}

2021-01-27 06:11:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-27 06:11:26 | [Mutex] waiting for: [received:nodes:6c6e0945-dc16-45fe-b7bc-0dcbcb0ee665:localhost]

2021-01-27 06:11:26 | [Mutex] received everything.

2021-01-27 06:11:26 | [Mutex] isItemNotified: received:node:6c6e0945-dc16-45fe-b7bc-0dcbcb0ee665:localhost:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:Node dbc58cac-ab70-4e0b-9e2a-c06523193d24 :: false

2021-01-27 06:11:26 | [Mutex] waiting for: [received:nodes:e80ea0dd-466b-4dac-bd1b-da6049ac6f9d:localhost]

2021-01-27 06:11:26 | [Mutex] received everything.

2021-01-27 06:11:26 | [Mutex] isItemNotified: received:node:e80ea0dd-466b-4dac-bd1b-da6049ac6f9d:localhost:node-dbc58cac-ab70-4e0b-9e2a-c06523193d24:Node dbc58cac-ab70-4e0b-9e2a-c06523193d24 :: false

publishItemsToNodes 0.032s
2021-01-27 06:11:23 |

2021-01-27 06:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:23 | ------------------------------------

2021-01-27 06:11:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "entry": "<test>item-9dadc7d1-408a-401c-8feb-7348280693ff</test>",
    "item-id": "item-9dadc7d1-408a-401c-8feb-7348280693ff"
}

2021-01-27 06:11:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9dadc7d1-408a-401c-8feb-7348280693ff"
}

2021-01-27 06:11:23 | [Mutex] waiting for: [published:item:notifieditem-9dadc7d1-408a-401c-8feb-7348280693ff:admin@test-domain.com]

2021-01-27 06:11:23 | [Mutex] received everything.

2021-01-27 06:11:23 | [Mutex] isItemNotified: published:item:notifieditem-9dadc7d1-408a-401c-8feb-7348280693ff:admin@test-domain.com :: true

retractItemsFromNodes 0.119s
2021-01-27 06:11:23 |

2021-01-27 06:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:23 | ------------------------------------

2021-01-27 06:11:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "item-id": "item-9dadc7d1-408a-401c-8feb-7348280693ff"
}

2021-01-27 06:11:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-9dadc7d1-408a-401c-8feb-7348280693ff"
}

2021-01-27 06:11:24 | [Mutex] received everything.

2021-01-27 06:11:24 | [Mutex] isItemNotified: retracted:item:notifieditem-9dadc7d1-408a-401c-8feb-7348280693ff:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2021-01-27 06:11:23 |

2021-01-27 06:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:23 | ------------------------------------

2021-01-27 06:11:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "item-id": "item-9dadc7d1-408a-401c-8feb-7348280693ff"
}

2021-01-27 06:11:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "item-id": "item-9dadc7d1-408a-401c-8feb-7348280693ff",
    "item": [
        "<item id=\"item-9dadc7d1-408a-401c-8feb-7348280693ff\"><test>item-9dadc7d1-408a-401c-8feb-7348280693ff</test></item>"
    ]
}

2021-01-27 06:11:23 | [Mutex] notify: [retrieved:item:item-9dadc7d1-408a-401c-8feb-7348280693ff:payload-matches:true:localhost]

2021-01-27 06:11:23 | [Mutex] received everything.

2021-01-27 06:11:23 | [Mutex] isItemNotified: retrieved:item:item-9dadc7d1-408a-401c-8feb-7348280693ff:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-27 06:11:23 |

2021-01-27 06:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:23 | ------------------------------------

2021-01-27 06:11:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-27 06:11:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
        "node-08b53dd3-82d3-4306-b658-972217a279c4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-01-27 06:11:23 |

2021-01-27 06:11:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:23 | ------------------------------------

2021-01-27 06:11:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dbc58cac-ab70-4e0b-9e2a-c06523193d24)"
}

2021-01-27 06:11:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2021-01-27 06:11:22 |

2021-01-27 06:11:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:22 | ------------------------------------

2021-01-27 06:11:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 06:11:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2021-01-27 06:11:24 |

2021-01-27 06:11:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 06:11:24 | ------------------------------------

2021-01-27 06:11:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dbc58cac-ab70-4e0b-9e2a-c06523193d24",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 06:11:24 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}