Generated by TestNG with ReportNG at 21:18 PST on Wednesday 16 November 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (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.761s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2022-11-16 21:33:14 |

2022-11-16 21:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:14 | ------------------------------------

2022-11-16 21:33:14 | [Mutex] waiting for: [configured:node:node-05209fd6-1419-468d-9849-7a8fcc442ffb:node-b071641d-2dbc-470e-b07c-f7fe16412b28]

2022-11-16 21:33:14 | [Mutex] received everything.

2022-11-16 21:33:14 | [Mutex] isItemNotified: configured:node:node-05209fd6-1419-468d-9849-7a8fcc442ffb:node-b071641d-2dbc-470e-b07c-f7fe16412b28 :: true

2022-11-16 21:33:15 | [Mutex] waiting for: [received:nodes:4eef3dd2-b5c0-45d5-824c-2ad7eb99ec3f:localhost]

2022-11-16 21:33:15 | [Mutex] received everything.

2022-11-16 21:33:15 | [Mutex] isItemNotified: received:node:4eef3dd2-b5c0-45d5-824c-2ad7eb99ec3f:localhost:node-05209fd6-1419-468d-9849-7a8fcc442ffb:Node 05209fd6-1419-468d-9849-7a8fcc442ffb :: true

2022-11-16 21:33:15 | [Mutex] waiting for: [received:nodes:f8f6bee6-a7a4-4b78-b6f9-db49e1c5a88f:localhost]

2022-11-16 21:33:15 | [Mutex] waiting for: [received:nodes:f8f6bee6-a7a4-4b78-b6f9-db49e1c5a88f:localhost]

2022-11-16 21:33:15 | [Mutex] received everything.

2022-11-16 21:33:15 | [Mutex] isItemNotified: received:node:f8f6bee6-a7a4-4b78-b6f9-db49e1c5a88f:localhost:node-05209fd6-1419-468d-9849-7a8fcc442ffb:Node 05209fd6-1419-468d-9849-7a8fcc442ffb :: false

createNodes 1.693s
2022-11-16 21:33:11 |

2022-11-16 21:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:11 | ------------------------------------

2022-11-16 21:33:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "pubsub#title": "Node 05209fd6-1419-468d-9849-7a8fcc442ffb"
}

2022-11-16 21:33:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 21:33:13 | [Mutex] waiting for: [received:nodes:c503fcd0-bcf8-4276-91d8-9891e9088309:localhost]

2022-11-16 21:33:13 | [Mutex] waiting for: [received:nodes:c503fcd0-bcf8-4276-91d8-9891e9088309:localhost]

2022-11-16 21:33:13 | [Mutex] received everything.

2022-11-16 21:33:13 | [Mutex] isItemNotified: received:node:c503fcd0-bcf8-4276-91d8-9891e9088309:localhost:node-05209fd6-1419-468d-9849-7a8fcc442ffb:Node 05209fd6-1419-468d-9849-7a8fcc442ffb :: true

createSubnodes 1.023s
2022-11-16 21:33:13 |

2022-11-16 21:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:13 | ------------------------------------

2022-11-16 21:33:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b071641d-2dbc-470e-b07c-f7fe16412b28",
    "pubsub#title": "Node b071641d-2dbc-470e-b07c-f7fe16412b28"
}

2022-11-16 21:33:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 21:33:14 | [Mutex] waiting for: [received:nodes:3506d597-6065-47fc-8cfc-fe7be8e6ab76:localhost]

2022-11-16 21:33:14 | [Mutex] received everything.

2022-11-16 21:33:14 | [Mutex] isItemNotified: received:node:3506d597-6065-47fc-8cfc-fe7be8e6ab76:localhost:node-b071641d-2dbc-470e-b07c-f7fe16412b28:Node b071641d-2dbc-470e-b07c-f7fe16412b28 :: true

deleteNodes 1.020s
2022-11-16 21:33:18 |

2022-11-16 21:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:18 | ------------------------------------

2022-11-16 21:33:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b071641d-2dbc-470e-b07c-f7fe16412b28"
}

2022-11-16 21:33:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 21:33:19 | [Mutex] waiting for: [received:nodes:583d2a80-8319-41f3-8d33-9e44bec46dbc:localhost]

2022-11-16 21:33:19 | [Mutex] waiting for: [received:nodes:583d2a80-8319-41f3-8d33-9e44bec46dbc:localhost]

2022-11-16 21:33:19 | [Mutex] received everything.

2022-11-16 21:33:19 | [Mutex] isItemNotified: received:node:583d2a80-8319-41f3-8d33-9e44bec46dbc:localhost:node-b071641d-2dbc-470e-b07c-f7fe16412b28:Node b071641d-2dbc-470e-b07c-f7fe16412b28 :: false

deleteSubnodes 1.031s
2022-11-16 21:33:17 |

2022-11-16 21:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:17 | ------------------------------------

2022-11-16 21:33:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb"
}

2022-11-16 21:33:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-11-16 21:33:18 | [Mutex] waiting for: [received:nodes:7fdea9d3-6bfa-472e-8e4a-aa26a0573824:localhost]

2022-11-16 21:33:18 | [Mutex] received everything.

2022-11-16 21:33:18 | [Mutex] isItemNotified: received:node:7fdea9d3-6bfa-472e-8e4a-aa26a0573824:localhost:node-05209fd6-1419-468d-9849-7a8fcc442ffb:Node 05209fd6-1419-468d-9849-7a8fcc442ffb :: false

2022-11-16 21:33:18 | [Mutex] waiting for: [received:nodes:e42d9b0e-ca24-446d-aa34-13f900195f23:localhost]

2022-11-16 21:33:18 | [Mutex] received everything.

2022-11-16 21:33:18 | [Mutex] isItemNotified: received:node:e42d9b0e-ca24-446d-aa34-13f900195f23:localhost:node-05209fd6-1419-468d-9849-7a8fcc442ffb:Node 05209fd6-1419-468d-9849-7a8fcc442ffb :: false

publishItemsToNodes 0.053s
2022-11-16 21:33:16 |

2022-11-16 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:16 | ------------------------------------

2022-11-16 21:33:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "entry": "<test>item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6</test>",
    "item-id": "item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6"
}

2022-11-16 21:33:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6"
}

2022-11-16 21:33:16 | [Mutex] waiting for: [published:item:notifieditem-450f573b-c934-46ac-a31a-b3f8d9ef6ed6:admin@test-domain.com]

2022-11-16 21:33:16 | [Mutex] received everything.

2022-11-16 21:33:16 | [Mutex] isItemNotified: published:item:notifieditem-450f573b-c934-46ac-a31a-b3f8d9ef6ed6:admin@test-domain.com :: true

retractItemsFromNodes 0.077s
2022-11-16 21:33:16 |

2022-11-16 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:16 | ------------------------------------

2022-11-16 21:33:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "item-id": "item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6"
}

2022-11-16 21:33:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6"
}

2022-11-16 21:33:16 | [Mutex] waiting for: [retracted:item:notifieditem-450f573b-c934-46ac-a31a-b3f8d9ef6ed6:admin@test-domain.com]

2022-11-16 21:33:16 | [Mutex] received everything.

2022-11-16 21:33:16 | [Mutex] isItemNotified: retracted:item:notifieditem-450f573b-c934-46ac-a31a-b3f8d9ef6ed6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-11-16 21:33:16 |

2022-11-16 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:16 | ------------------------------------

2022-11-16 21:33:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "item-id": "item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6"
}

2022-11-16 21:33:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "item-id": "item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6",
    "item": [
        "<item id=\"item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6\"><test>item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6</test></item>"
    ]
}

2022-11-16 21:33:16 | [Mutex] notify: [retrieved:item:item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6:payload-matches:true:localhost]

2022-11-16 21:33:16 | [Mutex] received everything.

2022-11-16 21:33:16 | [Mutex] isItemNotified: retrieved:item:item-450f573b-c934-46ac-a31a-b3f8d9ef6ed6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2022-11-16 21:33:16 |

2022-11-16 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:16 | ------------------------------------

2022-11-16 21:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-11-16 21:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b071641d-2dbc-470e-b07c-f7fe16412b28",
        "test",
        "node-05209fd6-1419-468d-9849-7a8fcc442ffb"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-11-16 21:33:16 |

2022-11-16 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:16 | ------------------------------------

2022-11-16 21:33:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-05209fd6-1419-468d-9849-7a8fcc442ffb)"
}

2022-11-16 21:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-11-16 21:33:15 |

2022-11-16 21:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:15 | ------------------------------------

2022-11-16 21:33:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-16 21:33:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.058s
2022-11-16 21:33:16 |

2022-11-16 21:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-11-16 21:33:16 | ------------------------------------

2022-11-16 21:33:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-05209fd6-1419-468d-9849-7a8fcc442ffb",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-11-16 21:33:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}