Generated by TestNG with ReportNG at 23:15 PDT on Friday 27 October 2023
root@8dfa9d99ff97 / 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.512s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2023-10-27 23:30:13 |

2023-10-27 23:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:13 | ------------------------------------

2023-10-27 23:30:13 | [Mutex] waiting for: [configured:node:node-728cf62b-039e-4b0a-801b-80608ab40a3d:node-55aa5a79-cb00-4977-a5bb-35b5a87e7885]

2023-10-27 23:30:14 | [Mutex] received everything.

2023-10-27 23:30:14 | [Mutex] isItemNotified: configured:node:node-728cf62b-039e-4b0a-801b-80608ab40a3d:node-55aa5a79-cb00-4977-a5bb-35b5a87e7885 :: true

2023-10-27 23:30:15 | [Mutex] waiting for: [received:nodes:ff14109e-c184-4874-b78e-2f280b1c561d:localhost]

2023-10-27 23:30:15 | [Mutex] received everything.

2023-10-27 23:30:15 | [Mutex] isItemNotified: received:node:ff14109e-c184-4874-b78e-2f280b1c561d:localhost:node-728cf62b-039e-4b0a-801b-80608ab40a3d:Node 728cf62b-039e-4b0a-801b-80608ab40a3d :: true

2023-10-27 23:30:15 | [Mutex] waiting for: [received:nodes:3268f4b5-1b8e-42be-8112-cb7236724fe7:localhost]

2023-10-27 23:30:15 | [Mutex] waiting for: [received:nodes:3268f4b5-1b8e-42be-8112-cb7236724fe7:localhost]

2023-10-27 23:30:15 | [Mutex] waiting for: [received:nodes:3268f4b5-1b8e-42be-8112-cb7236724fe7:localhost]

2023-10-27 23:30:15 | [Mutex] waiting for: [received:nodes:3268f4b5-1b8e-42be-8112-cb7236724fe7:localhost]

2023-10-27 23:30:15 | [Mutex] received everything.

2023-10-27 23:30:15 | [Mutex] isItemNotified: received:node:3268f4b5-1b8e-42be-8112-cb7236724fe7:localhost:node-728cf62b-039e-4b0a-801b-80608ab40a3d:Node 728cf62b-039e-4b0a-801b-80608ab40a3d :: false

createNodes 1.541s
2023-10-27 23:30:11 |

2023-10-27 23:30:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:11 | ------------------------------------

2023-10-27 23:30:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "pubsub#title": "Node 728cf62b-039e-4b0a-801b-80608ab40a3d"
}

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

2023-10-27 23:30:12 | [Mutex] waiting for: [received:nodes:fe625a54-9890-4ccc-a0e2-e5e3255e7752:localhost]

2023-10-27 23:30:12 | [Mutex] waiting for: [received:nodes:fe625a54-9890-4ccc-a0e2-e5e3255e7752:localhost]

2023-10-27 23:30:12 | [Mutex] waiting for: [received:nodes:fe625a54-9890-4ccc-a0e2-e5e3255e7752:localhost]

2023-10-27 23:30:12 | [Mutex] received everything.

2023-10-27 23:30:12 | [Mutex] isItemNotified: received:node:fe625a54-9890-4ccc-a0e2-e5e3255e7752:localhost:node-728cf62b-039e-4b0a-801b-80608ab40a3d:Node 728cf62b-039e-4b0a-801b-80608ab40a3d :: true

createSubnodes 1.028s
2023-10-27 23:30:12 |

2023-10-27 23:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:12 | ------------------------------------

2023-10-27 23:30:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-55aa5a79-cb00-4977-a5bb-35b5a87e7885",
    "pubsub#title": "Node 55aa5a79-cb00-4977-a5bb-35b5a87e7885"
}

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

2023-10-27 23:30:13 | [Mutex] waiting for: [received:nodes:9f96a0c9-f199-4093-bf52-8689266a686c:localhost]

2023-10-27 23:30:13 | [Mutex] waiting for: [received:nodes:9f96a0c9-f199-4093-bf52-8689266a686c:localhost]

2023-10-27 23:30:13 | [Mutex] waiting for: [received:nodes:9f96a0c9-f199-4093-bf52-8689266a686c:localhost]

2023-10-27 23:30:13 | [Mutex] waiting for: [received:nodes:9f96a0c9-f199-4093-bf52-8689266a686c:localhost]

2023-10-27 23:30:13 | [Mutex] received everything.

2023-10-27 23:30:13 | [Mutex] isItemNotified: received:node:9f96a0c9-f199-4093-bf52-8689266a686c:localhost:node-55aa5a79-cb00-4977-a5bb-35b5a87e7885:Node 55aa5a79-cb00-4977-a5bb-35b5a87e7885 :: true

deleteNodes 1.018s
2023-10-27 23:30:18 |

2023-10-27 23:30:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:18 | ------------------------------------

2023-10-27 23:30:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-55aa5a79-cb00-4977-a5bb-35b5a87e7885"
}

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

2023-10-27 23:30:19 | [Mutex] waiting for: [received:nodes:c4af49e3-d605-4014-841a-8cbd826611cc:localhost]

2023-10-27 23:30:19 | [Mutex] waiting for: [received:nodes:c4af49e3-d605-4014-841a-8cbd826611cc:localhost]

2023-10-27 23:30:19 | [Mutex] waiting for: [received:nodes:c4af49e3-d605-4014-841a-8cbd826611cc:localhost]

2023-10-27 23:30:19 | [Mutex] received everything.

2023-10-27 23:30:19 | [Mutex] isItemNotified: received:node:c4af49e3-d605-4014-841a-8cbd826611cc:localhost:node-55aa5a79-cb00-4977-a5bb-35b5a87e7885:Node 55aa5a79-cb00-4977-a5bb-35b5a87e7885 :: false

deleteSubnodes 1.024s
2023-10-27 23:30:17 |

2023-10-27 23:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:17 | ------------------------------------

2023-10-27 23:30:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d"
}

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

2023-10-27 23:30:18 | [Mutex] waiting for: [received:nodes:c2648ec0-a620-40c9-a0d3-6cd8fc969ef5:localhost]

2023-10-27 23:30:18 | [Mutex] waiting for: [received:nodes:c2648ec0-a620-40c9-a0d3-6cd8fc969ef5:localhost]

2023-10-27 23:30:18 | [Mutex] waiting for: [received:nodes:c2648ec0-a620-40c9-a0d3-6cd8fc969ef5:localhost]

2023-10-27 23:30:18 | [Mutex] waiting for: [received:nodes:c2648ec0-a620-40c9-a0d3-6cd8fc969ef5:localhost]

2023-10-27 23:30:18 | [Mutex] received everything.

2023-10-27 23:30:18 | [Mutex] isItemNotified: received:node:c2648ec0-a620-40c9-a0d3-6cd8fc969ef5:localhost:node-728cf62b-039e-4b0a-801b-80608ab40a3d:Node 728cf62b-039e-4b0a-801b-80608ab40a3d :: false

2023-10-27 23:30:18 | [Mutex] waiting for: [received:nodes:9e568f87-3cdb-4f4f-9546-57a416c25538:localhost]

2023-10-27 23:30:18 | [Mutex] received everything.

2023-10-27 23:30:18 | [Mutex] isItemNotified: received:node:9e568f87-3cdb-4f4f-9546-57a416c25538:localhost:node-728cf62b-039e-4b0a-801b-80608ab40a3d:Node 728cf62b-039e-4b0a-801b-80608ab40a3d :: false

publishItemsToNodes 0.031s
2023-10-27 23:30:16 |

2023-10-27 23:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:16 | ------------------------------------

2023-10-27 23:30:16 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "entry": "<test>item-4ce6b8e9-a629-4558-be7c-01e36d0436b6</test>",
    "item-id": "item-4ce6b8e9-a629-4558-be7c-01e36d0436b6"
}

2023-10-27 23:30:16 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4ce6b8e9-a629-4558-be7c-01e36d0436b6"
}

2023-10-27 23:30:16 | [Mutex] waiting for: [published:item:notifieditem-4ce6b8e9-a629-4558-be7c-01e36d0436b6:admin@test-domain.com]

2023-10-27 23:30:16 | [Mutex] received everything.

2023-10-27 23:30:16 | [Mutex] isItemNotified: published:item:notifieditem-4ce6b8e9-a629-4558-be7c-01e36d0436b6:admin@test-domain.com :: true

retractItemsFromNodes 0.091s
2023-10-27 23:30:16 |

2023-10-27 23:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:16 | ------------------------------------

2023-10-27 23:30:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "item-id": "item-4ce6b8e9-a629-4558-be7c-01e36d0436b6"
}

2023-10-27 23:30:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4ce6b8e9-a629-4558-be7c-01e36d0436b6"
}

2023-10-27 23:30:16 | [Mutex] received everything.

2023-10-27 23:30:16 | [Mutex] isItemNotified: retracted:item:notifieditem-4ce6b8e9-a629-4558-be7c-01e36d0436b6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2023-10-27 23:30:16 |

2023-10-27 23:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:16 | ------------------------------------

2023-10-27 23:30:16 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "item-id": "item-4ce6b8e9-a629-4558-be7c-01e36d0436b6"
}

2023-10-27 23:30:16 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "item-id": "item-4ce6b8e9-a629-4558-be7c-01e36d0436b6",
    "item": [
        "<item id=\"item-4ce6b8e9-a629-4558-be7c-01e36d0436b6\"><test>item-4ce6b8e9-a629-4558-be7c-01e36d0436b6</test></item>"
    ]
}

2023-10-27 23:30:16 | [Mutex] notify: [retrieved:item:item-4ce6b8e9-a629-4558-be7c-01e36d0436b6:payload-matches:true:localhost]

2023-10-27 23:30:16 | [Mutex] received everything.

2023-10-27 23:30:16 | [Mutex] isItemNotified: retrieved:item:item-4ce6b8e9-a629-4558-be7c-01e36d0436b6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-10-27 23:30:16 |

2023-10-27 23:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:16 | ------------------------------------

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

2023-10-27 23:30:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-55aa5a79-cb00-4977-a5bb-35b5a87e7885",
        "node-728cf62b-039e-4b0a-801b-80608ab40a3d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-10-27 23:30:16 |

2023-10-27 23:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:16 | ------------------------------------

2023-10-27 23:30:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-728cf62b-039e-4b0a-801b-80608ab40a3d)"
}

2023-10-27 23:30:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2023-10-27 23:30:15 |

2023-10-27 23:30:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:15 | ------------------------------------

2023-10-27 23:30:15 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-27 23:30:15 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2023-10-27 23:30:16 |

2023-10-27 23:30:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:30:16 | ------------------------------------

2023-10-27 23:30:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-728cf62b-039e-4b0a-801b-80608ab40a3d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-27 23:30:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}