Generated by TestNG with ReportNG at 21:21 PST on Monday 18 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.063s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.128s
2021-01-18 21:36:45 |

2021-01-18 21:36:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:45 | ------------------------------------

2021-01-18 21:36:45 | [Mutex] waiting for: [configured:node:node-28988427-8e14-4b32-8916-9634a62a44db:node-6483f554-cea1-4833-ab8b-b649552a45a6]

2021-01-18 21:36:45 | [Mutex] received everything.

2021-01-18 21:36:45 | [Mutex] isItemNotified: configured:node:node-28988427-8e14-4b32-8916-9634a62a44db:node-6483f554-cea1-4833-ab8b-b649552a45a6 :: true

2021-01-18 21:36:46 | [Mutex] waiting for: [received:nodes:4194174f-063e-4659-ab8e-3dd7840070ad:localhost]

2021-01-18 21:36:46 | [Mutex] received everything.

2021-01-18 21:36:46 | [Mutex] isItemNotified: received:node:4194174f-063e-4659-ab8e-3dd7840070ad:localhost:node-28988427-8e14-4b32-8916-9634a62a44db:Node 28988427-8e14-4b32-8916-9634a62a44db :: true

2021-01-18 21:36:46 | [Mutex] waiting for: [received:nodes:d596adff-559a-4160-bd10-242b8db0b4fe:localhost]

2021-01-18 21:36:46 | [Mutex] received everything.

2021-01-18 21:36:46 | [Mutex] isItemNotified: received:node:d596adff-559a-4160-bd10-242b8db0b4fe:localhost:node-28988427-8e14-4b32-8916-9634a62a44db:Node 28988427-8e14-4b32-8916-9634a62a44db :: false

createNodes 1.575s
2021-01-18 21:36:43 |

2021-01-18 21:36:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:43 | ------------------------------------

2021-01-18 21:36:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "pubsub#title": "Node 28988427-8e14-4b32-8916-9634a62a44db"
}

2021-01-18 21:36:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-18 21:36:44 | [Mutex] waiting for: [received:nodes:5dce4916-4bbb-4237-a97c-4856e8d5f75a:localhost]

2021-01-18 21:36:44 | [Mutex] received everything.

2021-01-18 21:36:44 | [Mutex] isItemNotified: received:node:5dce4916-4bbb-4237-a97c-4856e8d5f75a:localhost:node-28988427-8e14-4b32-8916-9634a62a44db:Node 28988427-8e14-4b32-8916-9634a62a44db :: true

createSubnodes 1.034s
2021-01-18 21:36:44 |

2021-01-18 21:36:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:44 | ------------------------------------

2021-01-18 21:36:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6483f554-cea1-4833-ab8b-b649552a45a6",
    "pubsub#title": "Node 6483f554-cea1-4833-ab8b-b649552a45a6"
}

2021-01-18 21:36:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-18 21:36:45 | [Mutex] waiting for: [received:nodes:0d738109-0de9-4f7e-b72b-8fda3d5ff70a:localhost]

2021-01-18 21:36:45 | [Mutex] waiting for: [received:nodes:0d738109-0de9-4f7e-b72b-8fda3d5ff70a:localhost]

2021-01-18 21:36:45 | [Mutex] received everything.

2021-01-18 21:36:45 | [Mutex] isItemNotified: received:node:0d738109-0de9-4f7e-b72b-8fda3d5ff70a:localhost:node-6483f554-cea1-4833-ab8b-b649552a45a6:Node 6483f554-cea1-4833-ab8b-b649552a45a6 :: true

deleteNodes 1.027s
2021-01-18 21:36:50 |

2021-01-18 21:36:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:50 | ------------------------------------

2021-01-18 21:36:50 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6483f554-cea1-4833-ab8b-b649552a45a6"
}

2021-01-18 21:36:50 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-18 21:36:51 | [Mutex] waiting for: [received:nodes:358afa0a-4747-4f9e-a59f-ca3bcb3d5b2a:localhost]

2021-01-18 21:36:51 | [Mutex] received everything.

2021-01-18 21:36:51 | [Mutex] isItemNotified: received:node:358afa0a-4747-4f9e-a59f-ca3bcb3d5b2a:localhost:node-6483f554-cea1-4833-ab8b-b649552a45a6:Node 6483f554-cea1-4833-ab8b-b649552a45a6 :: false

deleteSubnodes 1.036s
2021-01-18 21:36:49 |

2021-01-18 21:36:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:49 | ------------------------------------

2021-01-18 21:36:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db"
}

2021-01-18 21:36:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-01-18 21:36:50 | [Mutex] waiting for: [received:nodes:3b09284d-e7ad-4c4e-a1c7-703c2360d1b6:localhost]

2021-01-18 21:36:50 | [Mutex] received everything.

2021-01-18 21:36:50 | [Mutex] isItemNotified: received:node:3b09284d-e7ad-4c4e-a1c7-703c2360d1b6:localhost:node-28988427-8e14-4b32-8916-9634a62a44db:Node 28988427-8e14-4b32-8916-9634a62a44db :: false

2021-01-18 21:36:50 | [Mutex] waiting for: [received:nodes:8a1afb8c-6657-4892-8646-4bc648d1c9f1:localhost]

2021-01-18 21:36:50 | [Mutex] received everything.

2021-01-18 21:36:50 | [Mutex] isItemNotified: received:node:8a1afb8c-6657-4892-8646-4bc648d1c9f1:localhost:node-28988427-8e14-4b32-8916-9634a62a44db:Node 28988427-8e14-4b32-8916-9634a62a44db :: false

publishItemsToNodes 0.059s
2021-01-18 21:36:47 |

2021-01-18 21:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:47 | ------------------------------------

2021-01-18 21:36:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "entry": "<test>item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8</test>",
    "item-id": "item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8"
}

2021-01-18 21:36:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8"
}

2021-01-18 21:36:47 | [Mutex] waiting for: [published:item:notifieditem-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8:admin@test-domain.com]

2021-01-18 21:36:47 | [Mutex] received everything.

2021-01-18 21:36:47 | [Mutex] isItemNotified: published:item:notifieditem-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-01-18 21:36:48 |

2021-01-18 21:36:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:48 | ------------------------------------

2021-01-18 21:36:48 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "item-id": "item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8"
}

2021-01-18 21:36:48 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8"
}

2021-01-18 21:36:48 | [Mutex] received everything.

2021-01-18 21:36:48 | [Mutex] isItemNotified: retracted:item:notifieditem-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.028s
2021-01-18 21:36:47 |

2021-01-18 21:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:47 | ------------------------------------

2021-01-18 21:36:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "item-id": "item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8"
}

2021-01-18 21:36:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "item-id": "item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8",
    "item": [
        "<item id=\"item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8\"><test>item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8</test></item>"
    ]
}

2021-01-18 21:36:47 | [Mutex] notify: [retrieved:item:item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8:payload-matches:true:localhost]

2021-01-18 21:36:47 | [Mutex] received everything.

2021-01-18 21:36:47 | [Mutex] isItemNotified: retrieved:item:item-7ccd9bdf-48ff-4eaf-ba55-7ecd13d6aef8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.073s
2021-01-18 21:36:47 |

2021-01-18 21:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:47 | ------------------------------------

2021-01-18 21:36:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-01-18 21:36:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6483f554-cea1-4833-ab8b-b649552a45a6",
        "node-28988427-8e14-4b32-8916-9634a62a44db"
    ]
}

retrieveUserSubscriptionsWithRegex 0.063s
2021-01-18 21:36:47 |

2021-01-18 21:36:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:47 | ------------------------------------

2021-01-18 21:36:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-28988427-8e14-4b32-8916-9634a62a44db)"
}

2021-01-18 21:36:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-01-18 21:36:46 |

2021-01-18 21:36:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:46 | ------------------------------------

2021-01-18 21:36:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-18 21:36:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2021-01-18 21:36:48 |

2021-01-18 21:36:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-18 21:36:48 | ------------------------------------

2021-01-18 21:36:48 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-28988427-8e14-4b32-8916-9634a62a44db",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-18 21:36:48 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}