Generated by TestNG with ReportNG at 22:35 PDT on Monday 20 September 2021
root@f29ef40080b5 / 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 : 8.928s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2021-09-20 22:52:24 |

2021-09-20 22:52:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:24 | ------------------------------------

2021-09-20 22:52:24 | [Mutex] waiting for: [configured:node:node-5d85621e-df6d-44bf-ab04-bbce446ed959:node-6969178d-6b95-4a42-972a-e9477d5888bb]

2021-09-20 22:52:24 | [Mutex] received everything.

2021-09-20 22:52:24 | [Mutex] isItemNotified: configured:node:node-5d85621e-df6d-44bf-ab04-bbce446ed959:node-6969178d-6b95-4a42-972a-e9477d5888bb :: true

2021-09-20 22:52:25 | [Mutex] waiting for: [received:nodes:0f98ea4c-24ca-4160-9133-d7dd65469f5c:localhost]

2021-09-20 22:52:25 | [Mutex] received everything.

2021-09-20 22:52:25 | [Mutex] isItemNotified: received:node:0f98ea4c-24ca-4160-9133-d7dd65469f5c:localhost:node-5d85621e-df6d-44bf-ab04-bbce446ed959:Node 5d85621e-df6d-44bf-ab04-bbce446ed959 :: true

2021-09-20 22:52:25 | [Mutex] waiting for: [received:nodes:d3ada761-ea5c-410b-93e7-36f62f039093:localhost]

2021-09-20 22:52:25 | [Mutex] waiting for: [received:nodes:d3ada761-ea5c-410b-93e7-36f62f039093:localhost]

2021-09-20 22:52:25 | [Mutex] waiting for: [received:nodes:d3ada761-ea5c-410b-93e7-36f62f039093:localhost]

2021-09-20 22:52:25 | [Mutex] received everything.

2021-09-20 22:52:25 | [Mutex] isItemNotified: received:node:d3ada761-ea5c-410b-93e7-36f62f039093:localhost:node-5d85621e-df6d-44bf-ab04-bbce446ed959:Node 5d85621e-df6d-44bf-ab04-bbce446ed959 :: false

createNodes 1.679s
2021-09-20 22:52:21 |

2021-09-20 22:52:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:21 | ------------------------------------

2021-09-20 22:52:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "pubsub#title": "Node 5d85621e-df6d-44bf-ab04-bbce446ed959"
}

2021-09-20 22:52:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:52:23 | [Mutex] waiting for: [received:nodes:d24fb3c6-0a5f-4b40-8ab9-88f5029b34c4:localhost]

2021-09-20 22:52:23 | [Mutex] received everything.

2021-09-20 22:52:23 | [Mutex] isItemNotified: received:node:d24fb3c6-0a5f-4b40-8ab9-88f5029b34c4:localhost:node-5d85621e-df6d-44bf-ab04-bbce446ed959:Node 5d85621e-df6d-44bf-ab04-bbce446ed959 :: true

createSubnodes 1.027s
2021-09-20 22:52:23 |

2021-09-20 22:52:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:23 | ------------------------------------

2021-09-20 22:52:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6969178d-6b95-4a42-972a-e9477d5888bb",
    "pubsub#title": "Node 6969178d-6b95-4a42-972a-e9477d5888bb"
}

2021-09-20 22:52:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:52:24 | [Mutex] waiting for: [received:nodes:d7f1194a-2398-4da5-8d77-968e8ee80e3d:localhost]

2021-09-20 22:52:24 | [Mutex] received everything.

2021-09-20 22:52:24 | [Mutex] isItemNotified: received:node:d7f1194a-2398-4da5-8d77-968e8ee80e3d:localhost:node-6969178d-6b95-4a42-972a-e9477d5888bb:Node 6969178d-6b95-4a42-972a-e9477d5888bb :: true

deleteNodes 1.029s
2021-09-20 22:52:28 |

2021-09-20 22:52:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:28 | ------------------------------------

2021-09-20 22:52:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6969178d-6b95-4a42-972a-e9477d5888bb"
}

2021-09-20 22:52:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:52:29 | [Mutex] waiting for: [received:nodes:8eef7032-dea6-420a-83a6-24874918655a:localhost]

2021-09-20 22:52:29 | [Mutex] received everything.

2021-09-20 22:52:29 | [Mutex] isItemNotified: received:node:8eef7032-dea6-420a-83a6-24874918655a:localhost:node-6969178d-6b95-4a42-972a-e9477d5888bb:Node 6969178d-6b95-4a42-972a-e9477d5888bb :: false

deleteSubnodes 1.033s
2021-09-20 22:52:27 |

2021-09-20 22:52:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:27 | ------------------------------------

2021-09-20 22:52:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959"
}

2021-09-20 22:52:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-20 22:52:28 | [Mutex] waiting for: [received:nodes:453d4e2d-f720-476c-8372-f3fbd21a787b:localhost]

2021-09-20 22:52:28 | [Mutex] received everything.

2021-09-20 22:52:28 | [Mutex] isItemNotified: received:node:453d4e2d-f720-476c-8372-f3fbd21a787b:localhost:node-5d85621e-df6d-44bf-ab04-bbce446ed959:Node 5d85621e-df6d-44bf-ab04-bbce446ed959 :: false

2021-09-20 22:52:28 | [Mutex] waiting for: [received:nodes:1a3a0983-53b2-40f3-bdbe-4c949f4ea591:localhost]

2021-09-20 22:52:28 | [Mutex] received everything.

2021-09-20 22:52:28 | [Mutex] isItemNotified: received:node:1a3a0983-53b2-40f3-bdbe-4c949f4ea591:localhost:node-5d85621e-df6d-44bf-ab04-bbce446ed959:Node 5d85621e-df6d-44bf-ab04-bbce446ed959 :: false

publishItemsToNodes 0.069s
2021-09-20 22:52:26 |

2021-09-20 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:26 | ------------------------------------

2021-09-20 22:52:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "entry": "<test>item-d44cd261-d75b-43df-8d90-bd27dd51adb7</test>",
    "item-id": "item-d44cd261-d75b-43df-8d90-bd27dd51adb7"
}

2021-09-20 22:52:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d44cd261-d75b-43df-8d90-bd27dd51adb7"
}

2021-09-20 22:52:26 | [Mutex] waiting for: [published:item:notifieditem-d44cd261-d75b-43df-8d90-bd27dd51adb7:admin@test-domain.com]

2021-09-20 22:52:26 | [Mutex] received everything.

2021-09-20 22:52:26 | [Mutex] isItemNotified: published:item:notifieditem-d44cd261-d75b-43df-8d90-bd27dd51adb7:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2021-09-20 22:52:26 |

2021-09-20 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:26 | ------------------------------------

2021-09-20 22:52:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "item-id": "item-d44cd261-d75b-43df-8d90-bd27dd51adb7"
}

2021-09-20 22:52:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d44cd261-d75b-43df-8d90-bd27dd51adb7"
}

2021-09-20 22:52:26 | [Mutex] waiting for: [retracted:item:notifieditem-d44cd261-d75b-43df-8d90-bd27dd51adb7:admin@test-domain.com]

2021-09-20 22:52:26 | [Mutex] received everything.

2021-09-20 22:52:26 | [Mutex] isItemNotified: retracted:item:notifieditem-d44cd261-d75b-43df-8d90-bd27dd51adb7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2021-09-20 22:52:26 |

2021-09-20 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:26 | ------------------------------------

2021-09-20 22:52:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "item-id": "item-d44cd261-d75b-43df-8d90-bd27dd51adb7"
}

2021-09-20 22:52:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "item-id": "item-d44cd261-d75b-43df-8d90-bd27dd51adb7",
    "item": [
        "<item id=\"item-d44cd261-d75b-43df-8d90-bd27dd51adb7\"><test>item-d44cd261-d75b-43df-8d90-bd27dd51adb7</test></item>"
    ]
}

2021-09-20 22:52:26 | [Mutex] notify: [retrieved:item:item-d44cd261-d75b-43df-8d90-bd27dd51adb7:payload-matches:true:localhost]

2021-09-20 22:52:26 | [Mutex] received everything.

2021-09-20 22:52:26 | [Mutex] isItemNotified: retrieved:item:item-d44cd261-d75b-43df-8d90-bd27dd51adb7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.065s
2021-09-20 22:52:26 |

2021-09-20 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:26 | ------------------------------------

2021-09-20 22:52:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-20 22:52:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6969178d-6b95-4a42-972a-e9477d5888bb",
        "node-5d85621e-df6d-44bf-ab04-bbce446ed959"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-09-20 22:52:26 |

2021-09-20 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:26 | ------------------------------------

2021-09-20 22:52:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5d85621e-df6d-44bf-ab04-bbce446ed959)"
}

2021-09-20 22:52:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-09-20 22:52:25 |

2021-09-20 22:52:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:25 | ------------------------------------

2021-09-20 22:52:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 22:52:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.020s
2021-09-20 22:52:26 |

2021-09-20 22:52:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-20 22:52:26 | ------------------------------------

2021-09-20 22:52:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5d85621e-df6d-44bf-ab04-bbce446ed959",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-20 22:52:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}