Generated by TestNG with ReportNG at 22:30 PDT on Saturday 19 September 2020
root@f123032b650e / 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.101s
2020-09-19 22:46:29 |

2020-09-19 22:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:29 | ------------------------------------

2020-09-19 22:46:29 | [Mutex] waiting for: [configured:node:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:node-c61cc045-1d4e-478f-a193-b4722e0a466c]

2020-09-19 22:46:29 | [Mutex] received everything.

2020-09-19 22:46:29 | [Mutex] isItemNotified: configured:node:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:node-c61cc045-1d4e-478f-a193-b4722e0a466c :: true

2020-09-19 22:46:30 | [Mutex] waiting for: [received:nodes:f32e3602-67fb-42e4-82cf-50f5b6cc0dc2:localhost]

2020-09-19 22:46:30 | [Mutex] received everything.

2020-09-19 22:46:30 | [Mutex] isItemNotified: received:node:f32e3602-67fb-42e4-82cf-50f5b6cc0dc2:localhost:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:Node 564a17a4-f0e6-4495-8afe-e5432ccb1ba2 :: true

2020-09-19 22:46:30 | [Mutex] waiting for: [received:nodes:e7cc6f0b-068a-41f4-a60d-14ba1985d159:localhost]

2020-09-19 22:46:30 | [Mutex] received everything.

2020-09-19 22:46:30 | [Mutex] isItemNotified: received:node:e7cc6f0b-068a-41f4-a60d-14ba1985d159:localhost:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:Node 564a17a4-f0e6-4495-8afe-e5432ccb1ba2 :: false

createNodes 1.652s
2020-09-19 22:46:26 |

2020-09-19 22:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:26 | ------------------------------------

2020-09-19 22:46:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "pubsub#title": "Node 564a17a4-f0e6-4495-8afe-e5432ccb1ba2"
}

2020-09-19 22:46:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 22:46:28 | [Mutex] waiting for: [received:nodes:16689720-0520-4b83-a57b-7ac03677e90a:localhost]

2020-09-19 22:46:28 | [Mutex] received everything.

2020-09-19 22:46:28 | [Mutex] isItemNotified: received:node:16689720-0520-4b83-a57b-7ac03677e90a:localhost:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:Node 564a17a4-f0e6-4495-8afe-e5432ccb1ba2 :: true

createSubnodes 1.023s
2020-09-19 22:46:28 |

2020-09-19 22:46:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:28 | ------------------------------------

2020-09-19 22:46:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c61cc045-1d4e-478f-a193-b4722e0a466c",
    "pubsub#title": "Node c61cc045-1d4e-478f-a193-b4722e0a466c"
}

2020-09-19 22:46:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 22:46:29 | [Mutex] waiting for: [received:nodes:25d9552d-d696-4223-8d8a-346c3b5dea36:localhost]

2020-09-19 22:46:29 | [Mutex] received everything.

2020-09-19 22:46:29 | [Mutex] isItemNotified: received:node:25d9552d-d696-4223-8d8a-346c3b5dea36:localhost:node-c61cc045-1d4e-478f-a193-b4722e0a466c:Node c61cc045-1d4e-478f-a193-b4722e0a466c :: true

deleteNodes 1.043s
2020-09-19 22:46:33 |

2020-09-19 22:46:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:33 | ------------------------------------

2020-09-19 22:46:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c61cc045-1d4e-478f-a193-b4722e0a466c"
}

2020-09-19 22:46:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 22:46:34 | [Mutex] waiting for: [received:nodes:0440af7e-d79a-47f0-89d1-d406bec42b61:localhost]

2020-09-19 22:46:34 | [Mutex] received everything.

2020-09-19 22:46:34 | [Mutex] isItemNotified: received:node:0440af7e-d79a-47f0-89d1-d406bec42b61:localhost:node-c61cc045-1d4e-478f-a193-b4722e0a466c:Node c61cc045-1d4e-478f-a193-b4722e0a466c :: false

deleteSubnodes 1.027s
2020-09-19 22:46:32 |

2020-09-19 22:46:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:32 | ------------------------------------

2020-09-19 22:46:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2"
}

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

2020-09-19 22:46:33 | [Mutex] waiting for: [received:nodes:5ec4f5c0-e4cf-4c86-80f2-265ba6dc5cc0:localhost]

2020-09-19 22:46:33 | [Mutex] waiting for: [received:nodes:5ec4f5c0-e4cf-4c86-80f2-265ba6dc5cc0:localhost]

2020-09-19 22:46:33 | [Mutex] received everything.

2020-09-19 22:46:33 | [Mutex] isItemNotified: received:node:5ec4f5c0-e4cf-4c86-80f2-265ba6dc5cc0:localhost:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:Node 564a17a4-f0e6-4495-8afe-e5432ccb1ba2 :: false

2020-09-19 22:46:33 | [Mutex] waiting for: [received:nodes:a901d38d-2c5c-4fbc-87da-e372fea6ee77:localhost]

2020-09-19 22:46:33 | [Mutex] received everything.

2020-09-19 22:46:33 | [Mutex] isItemNotified: received:node:a901d38d-2c5c-4fbc-87da-e372fea6ee77:localhost:node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2:Node 564a17a4-f0e6-4495-8afe-e5432ccb1ba2 :: false

publishItemsToNodes 0.046s
2020-09-19 22:46:31 |

2020-09-19 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:31 | ------------------------------------

2020-09-19 22:46:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "entry": "<test>item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50</test>",
    "item-id": "item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50"
}

2020-09-19 22:46:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50"
}

2020-09-19 22:46:31 | [Mutex] waiting for: [published:item:notifieditem-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50:admin@test-domain.com]

2020-09-19 22:46:31 | [Mutex] received everything.

2020-09-19 22:46:31 | [Mutex] isItemNotified: published:item:notifieditem-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2020-09-19 22:46:31 |

2020-09-19 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:31 | ------------------------------------

2020-09-19 22:46:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "item-id": "item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50"
}

2020-09-19 22:46:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50"
}

2020-09-19 22:46:31 | [Mutex] received everything.

2020-09-19 22:46:31 | [Mutex] isItemNotified: retracted:item:notifieditem-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2020-09-19 22:46:31 |

2020-09-19 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:31 | ------------------------------------

2020-09-19 22:46:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "item-id": "item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50"
}

2020-09-19 22:46:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "item-id": "item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50",
    "item": [
        "<item id=\"item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50\"><test>item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50</test></item>"
    ]
}

2020-09-19 22:46:31 | [Mutex] notify: [retrieved:item:item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50:payload-matches:true:localhost]

2020-09-19 22:46:31 | [Mutex] received everything.

2020-09-19 22:46:31 | [Mutex] isItemNotified: retrieved:item:item-99662b1b-e61c-4ae1-bdf4-7aa1fc933a50:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-19 22:46:31 |

2020-09-19 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:31 | ------------------------------------

2020-09-19 22:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-19 22:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c61cc045-1d4e-478f-a193-b4722e0a466c",
        "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-19 22:46:31 |

2020-09-19 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:31 | ------------------------------------

2020-09-19 22:46:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2)"
}

2020-09-19 22:46:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-09-19 22:46:30 |

2020-09-19 22:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:30 | ------------------------------------

2020-09-19 22:46:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-19 22:46:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-19 22:46:31 |

2020-09-19 22:46:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 22:46:31 | ------------------------------------

2020-09-19 22:46:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-564a17a4-f0e6-4495-8afe-e5432ccb1ba2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-19 22:46:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}