Generated by TestNG with ReportNG at 22:16 PDT on Monday 29 May 2023
root@cc7d7fbb25f7 / Java 17.0.6 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.565s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.144s
2023-05-29 22:31:01 |

2023-05-29 22:31:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:01 | ------------------------------------

2023-05-29 22:31:01 | [Mutex] waiting for: [configured:node:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:node-6502d9f1-1873-4322-b476-6a88bfdf0351]

2023-05-29 22:31:01 | [Mutex] received everything.

2023-05-29 22:31:01 | [Mutex] isItemNotified: configured:node:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:node-6502d9f1-1873-4322-b476-6a88bfdf0351 :: true

2023-05-29 22:31:02 | [Mutex] waiting for: [received:nodes:a6447035-bdb0-4968-aa28-f21d9533097a:localhost]

2023-05-29 22:31:02 | [Mutex] received everything.

2023-05-29 22:31:02 | [Mutex] isItemNotified: received:node:a6447035-bdb0-4968-aa28-f21d9533097a:localhost:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:Node a82e0d9a-5bfa-4cdc-bd78-4a22262846b6 :: true

2023-05-29 22:31:02 | [Mutex] waiting for: [received:nodes:5d42cbaa-906d-48e7-bf4f-3746ab9ca87a:localhost]

2023-05-29 22:31:02 | [Mutex] waiting for: [received:nodes:5d42cbaa-906d-48e7-bf4f-3746ab9ca87a:localhost]

2023-05-29 22:31:02 | [Mutex] waiting for: [received:nodes:5d42cbaa-906d-48e7-bf4f-3746ab9ca87a:localhost]

2023-05-29 22:31:02 | [Mutex] received everything.

2023-05-29 22:31:02 | [Mutex] isItemNotified: received:node:5d42cbaa-906d-48e7-bf4f-3746ab9ca87a:localhost:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:Node a82e0d9a-5bfa-4cdc-bd78-4a22262846b6 :: false

createNodes 1.555s
2023-05-29 22:30:59 |

2023-05-29 22:30:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:30:59 | ------------------------------------

2023-05-29 22:30:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "pubsub#title": "Node a82e0d9a-5bfa-4cdc-bd78-4a22262846b6"
}

2023-05-29 22:30:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:31:00 | [Mutex] waiting for: [received:nodes:d94543ec-b675-4be3-9e39-9b3d5b666da1:localhost]

2023-05-29 22:31:00 | [Mutex] waiting for: [received:nodes:d94543ec-b675-4be3-9e39-9b3d5b666da1:localhost]

2023-05-29 22:31:00 | [Mutex] waiting for: [received:nodes:d94543ec-b675-4be3-9e39-9b3d5b666da1:localhost]

2023-05-29 22:31:00 | [Mutex] received everything.

2023-05-29 22:31:00 | [Mutex] isItemNotified: received:node:d94543ec-b675-4be3-9e39-9b3d5b666da1:localhost:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:Node a82e0d9a-5bfa-4cdc-bd78-4a22262846b6 :: true

createSubnodes 1.023s
2023-05-29 22:31:00 |

2023-05-29 22:31:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:00 | ------------------------------------

2023-05-29 22:31:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6502d9f1-1873-4322-b476-6a88bfdf0351",
    "pubsub#title": "Node 6502d9f1-1873-4322-b476-6a88bfdf0351"
}

2023-05-29 22:31:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:31:01 | [Mutex] waiting for: [received:nodes:c72e3fa3-b51e-479d-9cb0-6ddb236bc53e:localhost]

2023-05-29 22:31:01 | [Mutex] waiting for: [received:nodes:c72e3fa3-b51e-479d-9cb0-6ddb236bc53e:localhost]

2023-05-29 22:31:01 | [Mutex] received everything.

2023-05-29 22:31:01 | [Mutex] isItemNotified: received:node:c72e3fa3-b51e-479d-9cb0-6ddb236bc53e:localhost:node-6502d9f1-1873-4322-b476-6a88bfdf0351:Node 6502d9f1-1873-4322-b476-6a88bfdf0351 :: true

deleteNodes 1.024s
2023-05-29 22:31:06 |

2023-05-29 22:31:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:06 | ------------------------------------

2023-05-29 22:31:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6502d9f1-1873-4322-b476-6a88bfdf0351"
}

2023-05-29 22:31:06 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:31:07 | [Mutex] waiting for: [received:nodes:40c27f13-8c59-45f4-ba34-5b86d08cd9f4:localhost]

2023-05-29 22:31:07 | [Mutex] received everything.

2023-05-29 22:31:07 | [Mutex] isItemNotified: received:node:40c27f13-8c59-45f4-ba34-5b86d08cd9f4:localhost:node-6502d9f1-1873-4322-b476-6a88bfdf0351:Node 6502d9f1-1873-4322-b476-6a88bfdf0351 :: false

deleteSubnodes 1.027s
2023-05-29 22:31:05 |

2023-05-29 22:31:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:05 | ------------------------------------

2023-05-29 22:31:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6"
}

2023-05-29 22:31:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-05-29 22:31:06 | [Mutex] waiting for: [received:nodes:a5bfe89a-6fb0-4886-a8be-fd78416b450a:localhost]

2023-05-29 22:31:06 | [Mutex] waiting for: [received:nodes:a5bfe89a-6fb0-4886-a8be-fd78416b450a:localhost]

2023-05-29 22:31:06 | [Mutex] waiting for: [received:nodes:a5bfe89a-6fb0-4886-a8be-fd78416b450a:localhost]

2023-05-29 22:31:06 | [Mutex] waiting for: [received:nodes:a5bfe89a-6fb0-4886-a8be-fd78416b450a:localhost]

2023-05-29 22:31:06 | [Mutex] received everything.

2023-05-29 22:31:06 | [Mutex] isItemNotified: received:node:a5bfe89a-6fb0-4886-a8be-fd78416b450a:localhost:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:Node a82e0d9a-5bfa-4cdc-bd78-4a22262846b6 :: false

2023-05-29 22:31:06 | [Mutex] waiting for: [received:nodes:cbe2a93a-f494-4dbc-a74f-e179465d2949:localhost]

2023-05-29 22:31:06 | [Mutex] received everything.

2023-05-29 22:31:06 | [Mutex] isItemNotified: received:node:cbe2a93a-f494-4dbc-a74f-e179465d2949:localhost:node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6:Node a82e0d9a-5bfa-4cdc-bd78-4a22262846b6 :: false

publishItemsToNodes 0.041s
2023-05-29 22:31:03 |

2023-05-29 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:03 | ------------------------------------

2023-05-29 22:31:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "entry": "<test>item-5ea9e28a-b838-4691-8840-ef290e3d0076</test>",
    "item-id": "item-5ea9e28a-b838-4691-8840-ef290e3d0076"
}

2023-05-29 22:31:03 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ea9e28a-b838-4691-8840-ef290e3d0076"
}

2023-05-29 22:31:03 | [Mutex] waiting for: [published:item:notifieditem-5ea9e28a-b838-4691-8840-ef290e3d0076:admin@test-domain.com]

2023-05-29 22:31:03 | [Mutex] received everything.

2023-05-29 22:31:03 | [Mutex] isItemNotified: published:item:notifieditem-5ea9e28a-b838-4691-8840-ef290e3d0076:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2023-05-29 22:31:03 |

2023-05-29 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:03 | ------------------------------------

2023-05-29 22:31:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "item-id": "item-5ea9e28a-b838-4691-8840-ef290e3d0076"
}

2023-05-29 22:31:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ea9e28a-b838-4691-8840-ef290e3d0076"
}

2023-05-29 22:31:04 | [Mutex] received everything.

2023-05-29 22:31:04 | [Mutex] isItemNotified: retracted:item:notifieditem-5ea9e28a-b838-4691-8840-ef290e3d0076:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2023-05-29 22:31:03 |

2023-05-29 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:03 | ------------------------------------

2023-05-29 22:31:03 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "item-id": "item-5ea9e28a-b838-4691-8840-ef290e3d0076"
}

2023-05-29 22:31:03 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "item-id": "item-5ea9e28a-b838-4691-8840-ef290e3d0076",
    "item": [
        "<item id=\"item-5ea9e28a-b838-4691-8840-ef290e3d0076\"><test>item-5ea9e28a-b838-4691-8840-ef290e3d0076</test></item>"
    ]
}

2023-05-29 22:31:03 | [Mutex] notify: [retrieved:item:item-5ea9e28a-b838-4691-8840-ef290e3d0076:payload-matches:true:localhost]

2023-05-29 22:31:03 | [Mutex] received everything.

2023-05-29 22:31:03 | [Mutex] isItemNotified: retrieved:item:item-5ea9e28a-b838-4691-8840-ef290e3d0076:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-05-29 22:31:03 |

2023-05-29 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:03 | ------------------------------------

2023-05-29 22:31:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-05-29 22:31:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6502d9f1-1873-4322-b476-6a88bfdf0351",
        "test",
        "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2023-05-29 22:31:03 |

2023-05-29 22:31:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:03 | ------------------------------------

2023-05-29 22:31:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6)"
}

2023-05-29 22:31:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2023-05-29 22:31:02 |

2023-05-29 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:02 | ------------------------------------

2023-05-29 22:31:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-29 22:31:02 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2023-05-29 22:31:04 |

2023-05-29 22:31:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-05-29 22:31:04 | ------------------------------------

2023-05-29 22:31:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a82e0d9a-5bfa-4cdc-bd78-4a22262846b6",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-05-29 22:31:04 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}