Generated by TestNG with ReportNG at 22:45 PDT on Sunday 06 August 2023
root@a4d66e74f1de / Java 17.0.8 (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.546s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2023-08-06 23:00:06 |

2023-08-06 23:00:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:06 | ------------------------------------

2023-08-06 23:00:06 | [Mutex] waiting for: [configured:node:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:node-32110410-52c9-4534-9ee2-467032be6350]

2023-08-06 23:00:06 | [Mutex] received everything.

2023-08-06 23:00:06 | [Mutex] isItemNotified: configured:node:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:node-32110410-52c9-4534-9ee2-467032be6350 :: true

2023-08-06 23:00:07 | [Mutex] waiting for: [received:nodes:72eaeb2c-307a-4a9c-8f0e-7e957578a1b6:localhost]

2023-08-06 23:00:07 | [Mutex] waiting for: [received:nodes:72eaeb2c-307a-4a9c-8f0e-7e957578a1b6:localhost]

2023-08-06 23:00:07 | [Mutex] received everything.

2023-08-06 23:00:07 | [Mutex] isItemNotified: received:node:72eaeb2c-307a-4a9c-8f0e-7e957578a1b6:localhost:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:Node c86baeb1-c726-47d9-8ded-2ae312c73a9a :: true

2023-08-06 23:00:07 | [Mutex] waiting for: [received:nodes:6ab8bcb5-05e1-4688-9b18-0a1d8f5ff43f:localhost]

2023-08-06 23:00:07 | [Mutex] received everything.

2023-08-06 23:00:07 | [Mutex] isItemNotified: received:node:6ab8bcb5-05e1-4688-9b18-0a1d8f5ff43f:localhost:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:Node c86baeb1-c726-47d9-8ded-2ae312c73a9a :: false

createNodes 1.616s
2023-08-06 23:00:03 |

2023-08-06 23:00:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:03 | ------------------------------------

2023-08-06 23:00:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "pubsub#title": "Node c86baeb1-c726-47d9-8ded-2ae312c73a9a"
}

2023-08-06 23:00:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 23:00:05 | [Mutex] waiting for: [received:nodes:7d0b7586-3db7-4b2d-bfd3-c1587676ffa5:localhost]

2023-08-06 23:00:05 | [Mutex] waiting for: [received:nodes:7d0b7586-3db7-4b2d-bfd3-c1587676ffa5:localhost]

2023-08-06 23:00:05 | [Mutex] waiting for: [received:nodes:7d0b7586-3db7-4b2d-bfd3-c1587676ffa5:localhost]

2023-08-06 23:00:05 | [Mutex] received everything.

2023-08-06 23:00:05 | [Mutex] isItemNotified: received:node:7d0b7586-3db7-4b2d-bfd3-c1587676ffa5:localhost:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:Node c86baeb1-c726-47d9-8ded-2ae312c73a9a :: true

createSubnodes 1.023s
2023-08-06 23:00:05 |

2023-08-06 23:00:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:05 | ------------------------------------

2023-08-06 23:00:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-32110410-52c9-4534-9ee2-467032be6350",
    "pubsub#title": "Node 32110410-52c9-4534-9ee2-467032be6350"
}

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

2023-08-06 23:00:06 | [Mutex] waiting for: [received:nodes:3db298dd-689c-489e-83ee-59982dadd405:localhost]

2023-08-06 23:00:06 | [Mutex] waiting for: [received:nodes:3db298dd-689c-489e-83ee-59982dadd405:localhost]

2023-08-06 23:00:06 | [Mutex] waiting for: [received:nodes:3db298dd-689c-489e-83ee-59982dadd405:localhost]

2023-08-06 23:00:06 | [Mutex] waiting for: [received:nodes:3db298dd-689c-489e-83ee-59982dadd405:localhost]

2023-08-06 23:00:06 | [Mutex] received everything.

2023-08-06 23:00:06 | [Mutex] isItemNotified: received:node:3db298dd-689c-489e-83ee-59982dadd405:localhost:node-32110410-52c9-4534-9ee2-467032be6350:Node 32110410-52c9-4534-9ee2-467032be6350 :: true

deleteNodes 1.023s
2023-08-06 23:00:10 |

2023-08-06 23:00:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:10 | ------------------------------------

2023-08-06 23:00:10 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-32110410-52c9-4534-9ee2-467032be6350"
}

2023-08-06 23:00:10 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 23:00:11 | [Mutex] waiting for: [received:nodes:7e2e97b9-254c-4701-8fe0-72c8769ee5bc:localhost]

2023-08-06 23:00:11 | [Mutex] waiting for: [received:nodes:7e2e97b9-254c-4701-8fe0-72c8769ee5bc:localhost]

2023-08-06 23:00:11 | [Mutex] waiting for: [received:nodes:7e2e97b9-254c-4701-8fe0-72c8769ee5bc:localhost]

2023-08-06 23:00:11 | [Mutex] received everything.

2023-08-06 23:00:11 | [Mutex] isItemNotified: received:node:7e2e97b9-254c-4701-8fe0-72c8769ee5bc:localhost:node-32110410-52c9-4534-9ee2-467032be6350:Node 32110410-52c9-4534-9ee2-467032be6350 :: false

deleteSubnodes 1.022s
2023-08-06 23:00:09 |

2023-08-06 23:00:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:09 | ------------------------------------

2023-08-06 23:00:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a"
}

2023-08-06 23:00:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-08-06 23:00:10 | [Mutex] waiting for: [received:nodes:3a7158c9-ab86-42c2-886e-3891e3f620f8:localhost]

2023-08-06 23:00:10 | [Mutex] waiting for: [received:nodes:3a7158c9-ab86-42c2-886e-3891e3f620f8:localhost]

2023-08-06 23:00:10 | [Mutex] waiting for: [received:nodes:3a7158c9-ab86-42c2-886e-3891e3f620f8:localhost]

2023-08-06 23:00:10 | [Mutex] received everything.

2023-08-06 23:00:10 | [Mutex] isItemNotified: received:node:3a7158c9-ab86-42c2-886e-3891e3f620f8:localhost:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:Node c86baeb1-c726-47d9-8ded-2ae312c73a9a :: false

2023-08-06 23:00:10 | [Mutex] waiting for: [received:nodes:6763a3ae-1e5c-4cfc-8ba7-05cb237240c3:localhost]

2023-08-06 23:00:10 | [Mutex] received everything.

2023-08-06 23:00:10 | [Mutex] isItemNotified: received:node:6763a3ae-1e5c-4cfc-8ba7-05cb237240c3:localhost:node-c86baeb1-c726-47d9-8ded-2ae312c73a9a:Node c86baeb1-c726-47d9-8ded-2ae312c73a9a :: false

publishItemsToNodes 0.026s
2023-08-06 23:00:08 |

2023-08-06 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:08 | ------------------------------------

2023-08-06 23:00:08 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "entry": "<test>item-628993a7-af3d-4874-919b-0e2434fec3d3</test>",
    "item-id": "item-628993a7-af3d-4874-919b-0e2434fec3d3"
}

2023-08-06 23:00:08 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-628993a7-af3d-4874-919b-0e2434fec3d3"
}

2023-08-06 23:00:08 | [Mutex] received everything.

2023-08-06 23:00:08 | [Mutex] isItemNotified: published:item:notifieditem-628993a7-af3d-4874-919b-0e2434fec3d3:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2023-08-06 23:00:08 |

2023-08-06 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:08 | ------------------------------------

2023-08-06 23:00:08 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "item-id": "item-628993a7-af3d-4874-919b-0e2434fec3d3"
}

2023-08-06 23:00:08 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-628993a7-af3d-4874-919b-0e2434fec3d3"
}

2023-08-06 23:00:08 | [Mutex] received everything.

2023-08-06 23:00:08 | [Mutex] isItemNotified: retracted:item:notifieditem-628993a7-af3d-4874-919b-0e2434fec3d3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2023-08-06 23:00:08 |

2023-08-06 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:08 | ------------------------------------

2023-08-06 23:00:08 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "item-id": "item-628993a7-af3d-4874-919b-0e2434fec3d3"
}

2023-08-06 23:00:08 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "item-id": "item-628993a7-af3d-4874-919b-0e2434fec3d3",
    "item": [
        "<item id=\"item-628993a7-af3d-4874-919b-0e2434fec3d3\"><test>item-628993a7-af3d-4874-919b-0e2434fec3d3</test></item>"
    ]
}

2023-08-06 23:00:08 | [Mutex] notify: [retrieved:item:item-628993a7-af3d-4874-919b-0e2434fec3d3:payload-matches:true:localhost]

2023-08-06 23:00:08 | [Mutex] received everything.

2023-08-06 23:00:08 | [Mutex] isItemNotified: retrieved:item:item-628993a7-af3d-4874-919b-0e2434fec3d3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-08-06 23:00:08 |

2023-08-06 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:08 | ------------------------------------

2023-08-06 23:00:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-08-06 23:00:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
        "node-32110410-52c9-4534-9ee2-467032be6350",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-08-06 23:00:08 |

2023-08-06 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:08 | ------------------------------------

2023-08-06 23:00:08 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c86baeb1-c726-47d9-8ded-2ae312c73a9a)"
}

2023-08-06 23:00:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-08-06 23:00:07 |

2023-08-06 23:00:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:07 | ------------------------------------

2023-08-06 23:00:07 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-06 23:00:07 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-08-06 23:00:08 |

2023-08-06 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-08-06 23:00:08 | ------------------------------------

2023-08-06 23:00:08 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c86baeb1-c726-47d9-8ded-2ae312c73a9a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-08-06 23:00:08 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}