Generated by TestNG with ReportNG at 22:15 PDT on Friday 24 March 2023
root@f9c07ffec79b / 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.594s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.035s
2023-03-24 22:30:11 |

2023-03-24 22:30:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:11 | ------------------------------------

2023-03-24 22:30:11 | [Mutex] waiting for: [configured:node:node-182ab7bd-8761-4cad-a9ff-09682a62e272:node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2]

2023-03-24 22:30:11 | [Mutex] received everything.

2023-03-24 22:30:11 | [Mutex] isItemNotified: configured:node:node-182ab7bd-8761-4cad-a9ff-09682a62e272:node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2 :: true

2023-03-24 22:30:12 | [Mutex] waiting for: [received:nodes:24011e03-b7be-42a3-8a01-803b009e608f:localhost]

2023-03-24 22:30:12 | [Mutex] received everything.

2023-03-24 22:30:12 | [Mutex] isItemNotified: received:node:24011e03-b7be-42a3-8a01-803b009e608f:localhost:node-182ab7bd-8761-4cad-a9ff-09682a62e272:Node 182ab7bd-8761-4cad-a9ff-09682a62e272 :: true

2023-03-24 22:30:12 | [Mutex] waiting for: [received:nodes:3f0e6b7e-380e-4eb5-943f-d3ee30e2e707:localhost]

2023-03-24 22:30:12 | [Mutex] waiting for: [received:nodes:3f0e6b7e-380e-4eb5-943f-d3ee30e2e707:localhost]

2023-03-24 22:30:12 | [Mutex] waiting for: [received:nodes:3f0e6b7e-380e-4eb5-943f-d3ee30e2e707:localhost]

2023-03-24 22:30:12 | [Mutex] waiting for: [received:nodes:3f0e6b7e-380e-4eb5-943f-d3ee30e2e707:localhost]

2023-03-24 22:30:12 | [Mutex] received everything.

2023-03-24 22:30:12 | [Mutex] isItemNotified: received:node:3f0e6b7e-380e-4eb5-943f-d3ee30e2e707:localhost:node-182ab7bd-8761-4cad-a9ff-09682a62e272:Node 182ab7bd-8761-4cad-a9ff-09682a62e272 :: false

createNodes 1.636s
2023-03-24 22:30:08 |

2023-03-24 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:08 | ------------------------------------

2023-03-24 22:30:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "pubsub#title": "Node 182ab7bd-8761-4cad-a9ff-09682a62e272"
}

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

2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:df69197f-1ec5-4722-aaf5-da5ce7b4b78c:localhost]

2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:df69197f-1ec5-4722-aaf5-da5ce7b4b78c:localhost]

2023-03-24 22:30:10 | [Mutex] waiting for: [received:nodes:df69197f-1ec5-4722-aaf5-da5ce7b4b78c:localhost]

2023-03-24 22:30:10 | [Mutex] received everything.

2023-03-24 22:30:10 | [Mutex] isItemNotified: received:node:df69197f-1ec5-4722-aaf5-da5ce7b4b78c:localhost:node-182ab7bd-8761-4cad-a9ff-09682a62e272:Node 182ab7bd-8761-4cad-a9ff-09682a62e272 :: true

createSubnodes 1.026s
2023-03-24 22:30:10 |

2023-03-24 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:10 | ------------------------------------

2023-03-24 22:30:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2",
    "pubsub#title": "Node b16a6628-cac7-448e-80bc-6cdcb0efb7a2"
}

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

2023-03-24 22:30:11 | [Mutex] waiting for: [received:nodes:a4cd8ab7-65a5-453d-9b07-ec60631d85cc:localhost]

2023-03-24 22:30:11 | [Mutex] received everything.

2023-03-24 22:30:11 | [Mutex] isItemNotified: received:node:a4cd8ab7-65a5-453d-9b07-ec60631d85cc:localhost:node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2:Node b16a6628-cac7-448e-80bc-6cdcb0efb7a2 :: true

deleteNodes 1.024s
2023-03-24 22:30:15 |

2023-03-24 22:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:15 | ------------------------------------

2023-03-24 22:30:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2"
}

2023-03-24 22:30:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-24 22:30:16 | [Mutex] waiting for: [received:nodes:48e24f3c-2151-4555-8abf-702bbb395703:localhost]

2023-03-24 22:30:16 | [Mutex] waiting for: [received:nodes:48e24f3c-2151-4555-8abf-702bbb395703:localhost]

2023-03-24 22:30:16 | [Mutex] waiting for: [received:nodes:48e24f3c-2151-4555-8abf-702bbb395703:localhost]

2023-03-24 22:30:16 | [Mutex] received everything.

2023-03-24 22:30:16 | [Mutex] isItemNotified: received:node:48e24f3c-2151-4555-8abf-702bbb395703:localhost:node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2:Node b16a6628-cac7-448e-80bc-6cdcb0efb7a2 :: false

deleteSubnodes 1.029s
2023-03-24 22:30:14 |

2023-03-24 22:30:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:14 | ------------------------------------

2023-03-24 22:30:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272"
}

2023-03-24 22:30:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-24 22:30:15 | [Mutex] waiting for: [received:nodes:97e72d8b-83a2-4676-9e4c-7109503562bf:localhost]

2023-03-24 22:30:15 | [Mutex] waiting for: [received:nodes:97e72d8b-83a2-4676-9e4c-7109503562bf:localhost]

2023-03-24 22:30:15 | [Mutex] received everything.

2023-03-24 22:30:15 | [Mutex] isItemNotified: received:node:97e72d8b-83a2-4676-9e4c-7109503562bf:localhost:node-182ab7bd-8761-4cad-a9ff-09682a62e272:Node 182ab7bd-8761-4cad-a9ff-09682a62e272 :: false

2023-03-24 22:30:15 | [Mutex] waiting for: [received:nodes:e5702ae2-ed96-4bf6-87ab-78680f1996c7:localhost]

2023-03-24 22:30:15 | [Mutex] received everything.

2023-03-24 22:30:15 | [Mutex] isItemNotified: received:node:e5702ae2-ed96-4bf6-87ab-78680f1996c7:localhost:node-182ab7bd-8761-4cad-a9ff-09682a62e272:Node 182ab7bd-8761-4cad-a9ff-09682a62e272 :: false

publishItemsToNodes 0.051s
2023-03-24 22:30:13 |

2023-03-24 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:13 | ------------------------------------

2023-03-24 22:30:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "entry": "<test>item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed</test>",
    "item-id": "item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed"
}

2023-03-24 22:30:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed"
}

2023-03-24 22:30:13 | [Mutex] waiting for: [published:item:notifieditem-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed:admin@test-domain.com]

2023-03-24 22:30:13 | [Mutex] received everything.

2023-03-24 22:30:13 | [Mutex] isItemNotified: published:item:notifieditem-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-03-24 22:30:13 |

2023-03-24 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:13 | ------------------------------------

2023-03-24 22:30:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "item-id": "item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed"
}

2023-03-24 22:30:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed"
}

2023-03-24 22:30:13 | [Mutex] received everything.

2023-03-24 22:30:13 | [Mutex] isItemNotified: retracted:item:notifieditem-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed:admin@test-domain.com :: true

retrieveItemsFromNodes 0.035s
2023-03-24 22:30:13 |

2023-03-24 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:13 | ------------------------------------

2023-03-24 22:30:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "item-id": "item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed"
}

2023-03-24 22:30:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "item-id": "item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed",
    "item": [
        "<item id=\"item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed\"><test>item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed</test></item>"
    ]
}

2023-03-24 22:30:13 | [Mutex] notify: [retrieved:item:item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed:payload-matches:true:localhost]

2023-03-24 22:30:13 | [Mutex] received everything.

2023-03-24 22:30:13 | [Mutex] isItemNotified: retrieved:item:item-c3aa601b-4b9d-4f6b-a01c-db70d5cfdbed:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2023-03-24 22:30:13 |

2023-03-24 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:13 | ------------------------------------

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

2023-03-24 22:30:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
        "node-b16a6628-cac7-448e-80bc-6cdcb0efb7a2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.046s
2023-03-24 22:30:13 |

2023-03-24 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:13 | ------------------------------------

2023-03-24 22:30:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-182ab7bd-8761-4cad-a9ff-09682a62e272)"
}

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

subscribeNodes 1.012s
2023-03-24 22:30:12 |

2023-03-24 22:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:12 | ------------------------------------

2023-03-24 22:30:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-24 22:30:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2023-03-24 22:30:13 |

2023-03-24 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-24 22:30:13 | ------------------------------------

2023-03-24 22:30:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-182ab7bd-8761-4cad-a9ff-09682a62e272",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-24 22:30:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}