Generated by TestNG with ReportNG at 22:00 PST on Thursday 17 February 2022
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.833s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-02-17 22:16:36 |

2022-02-17 22:16:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:36 | ------------------------------------

2022-02-17 22:16:36 | [Mutex] waiting for: [configured:node:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:node-5aa812f0-5089-4af7-90b0-0c1352c8326a]

2022-02-17 22:16:36 | [Mutex] received everything.

2022-02-17 22:16:36 | [Mutex] isItemNotified: configured:node:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:node-5aa812f0-5089-4af7-90b0-0c1352c8326a :: true

2022-02-17 22:16:37 | [Mutex] waiting for: [received:nodes:9b59ef7a-ad3a-469d-882d-e738541be521:localhost]

2022-02-17 22:16:37 | [Mutex] received everything.

2022-02-17 22:16:37 | [Mutex] isItemNotified: received:node:9b59ef7a-ad3a-469d-882d-e738541be521:localhost:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:Node bce8bdaf-9f0c-4468-a2a3-97b674f65b1f :: true

2022-02-17 22:16:37 | [Mutex] waiting for: [received:nodes:74bdaf50-d04a-4ad3-b2aa-540efbe7b919:localhost]

2022-02-17 22:16:37 | [Mutex] waiting for: [received:nodes:74bdaf50-d04a-4ad3-b2aa-540efbe7b919:localhost]

2022-02-17 22:16:37 | [Mutex] received everything.

2022-02-17 22:16:37 | [Mutex] isItemNotified: received:node:74bdaf50-d04a-4ad3-b2aa-540efbe7b919:localhost:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:Node bce8bdaf-9f0c-4468-a2a3-97b674f65b1f :: false

createNodes 1.496s
2022-02-17 22:16:34 |

2022-02-17 22:16:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:34 | ------------------------------------

2022-02-17 22:16:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "pubsub#title": "Node bce8bdaf-9f0c-4468-a2a3-97b674f65b1f"
}

2022-02-17 22:16:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 22:16:35 | [Mutex] waiting for: [received:nodes:6ef013e1-ee4a-4ca0-ba42-605c3dcf547d:localhost]

2022-02-17 22:16:35 | [Mutex] waiting for: [received:nodes:6ef013e1-ee4a-4ca0-ba42-605c3dcf547d:localhost]

2022-02-17 22:16:35 | [Mutex] waiting for: [received:nodes:6ef013e1-ee4a-4ca0-ba42-605c3dcf547d:localhost]

2022-02-17 22:16:35 | [Mutex] received everything.

2022-02-17 22:16:35 | [Mutex] isItemNotified: received:node:6ef013e1-ee4a-4ca0-ba42-605c3dcf547d:localhost:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:Node bce8bdaf-9f0c-4468-a2a3-97b674f65b1f :: true

createSubnodes 1.030s
2022-02-17 22:16:35 |

2022-02-17 22:16:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:35 | ------------------------------------

2022-02-17 22:16:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5aa812f0-5089-4af7-90b0-0c1352c8326a",
    "pubsub#title": "Node 5aa812f0-5089-4af7-90b0-0c1352c8326a"
}

2022-02-17 22:16:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-17 22:16:36 | [Mutex] waiting for: [received:nodes:df9ebe25-4b84-4a3b-b4a9-a08f9beafc8e:localhost]

2022-02-17 22:16:36 | [Mutex] waiting for: [received:nodes:df9ebe25-4b84-4a3b-b4a9-a08f9beafc8e:localhost]

2022-02-17 22:16:36 | [Mutex] received everything.

2022-02-17 22:16:36 | [Mutex] isItemNotified: received:node:df9ebe25-4b84-4a3b-b4a9-a08f9beafc8e:localhost:node-5aa812f0-5089-4af7-90b0-0c1352c8326a:Node 5aa812f0-5089-4af7-90b0-0c1352c8326a :: true

deleteNodes 1.027s
2022-02-17 22:16:41 |

2022-02-17 22:16:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:41 | ------------------------------------

2022-02-17 22:16:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5aa812f0-5089-4af7-90b0-0c1352c8326a"
}

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

2022-02-17 22:16:42 | [Mutex] waiting for: [received:nodes:1e643742-3492-4db1-ba48-227657efc5b4:localhost]

2022-02-17 22:16:42 | [Mutex] received everything.

2022-02-17 22:16:42 | [Mutex] isItemNotified: received:node:1e643742-3492-4db1-ba48-227657efc5b4:localhost:node-5aa812f0-5089-4af7-90b0-0c1352c8326a:Node 5aa812f0-5089-4af7-90b0-0c1352c8326a :: false

deleteSubnodes 1.031s
2022-02-17 22:16:40 |

2022-02-17 22:16:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:40 | ------------------------------------

2022-02-17 22:16:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f"
}

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

2022-02-17 22:16:41 | [Mutex] waiting for: [received:nodes:5d0fcf76-6d28-4361-840e-5c82f3799eb3:localhost]

2022-02-17 22:16:41 | [Mutex] received everything.

2022-02-17 22:16:41 | [Mutex] isItemNotified: received:node:5d0fcf76-6d28-4361-840e-5c82f3799eb3:localhost:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:Node bce8bdaf-9f0c-4468-a2a3-97b674f65b1f :: false

2022-02-17 22:16:41 | [Mutex] waiting for: [received:nodes:3869c6d8-707d-4dfc-b2f0-9ef8939e49cc:localhost]

2022-02-17 22:16:41 | [Mutex] received everything.

2022-02-17 22:16:41 | [Mutex] isItemNotified: received:node:3869c6d8-707d-4dfc-b2f0-9ef8939e49cc:localhost:node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f:Node bce8bdaf-9f0c-4468-a2a3-97b674f65b1f :: false

publishItemsToNodes 0.050s
2022-02-17 22:16:38 |

2022-02-17 22:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:38 | ------------------------------------

2022-02-17 22:16:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "entry": "<test>item-78dd7de3-1d47-4411-9453-9bbcf8f68afd</test>",
    "item-id": "item-78dd7de3-1d47-4411-9453-9bbcf8f68afd"
}

2022-02-17 22:16:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78dd7de3-1d47-4411-9453-9bbcf8f68afd"
}

2022-02-17 22:16:38 | [Mutex] waiting for: [published:item:notifieditem-78dd7de3-1d47-4411-9453-9bbcf8f68afd:admin@test-domain.com]

2022-02-17 22:16:38 | [Mutex] received everything.

2022-02-17 22:16:38 | [Mutex] isItemNotified: published:item:notifieditem-78dd7de3-1d47-4411-9453-9bbcf8f68afd:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-02-17 22:16:38 |

2022-02-17 22:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:38 | ------------------------------------

2022-02-17 22:16:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "item-id": "item-78dd7de3-1d47-4411-9453-9bbcf8f68afd"
}

2022-02-17 22:16:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-78dd7de3-1d47-4411-9453-9bbcf8f68afd"
}

2022-02-17 22:16:38 | [Mutex] received everything.

2022-02-17 22:16:38 | [Mutex] isItemNotified: retracted:item:notifieditem-78dd7de3-1d47-4411-9453-9bbcf8f68afd:admin@test-domain.com :: true

retrieveItemsFromNodes 0.025s
2022-02-17 22:16:38 |

2022-02-17 22:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:38 | ------------------------------------

2022-02-17 22:16:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "item-id": "item-78dd7de3-1d47-4411-9453-9bbcf8f68afd"
}

2022-02-17 22:16:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "item-id": "item-78dd7de3-1d47-4411-9453-9bbcf8f68afd",
    "item": [
        "<item id=\"item-78dd7de3-1d47-4411-9453-9bbcf8f68afd\"><test>item-78dd7de3-1d47-4411-9453-9bbcf8f68afd</test></item>"
    ]
}

2022-02-17 22:16:38 | [Mutex] notify: [retrieved:item:item-78dd7de3-1d47-4411-9453-9bbcf8f68afd:payload-matches:true:localhost]

2022-02-17 22:16:38 | [Mutex] received everything.

2022-02-17 22:16:38 | [Mutex] isItemNotified: retrieved:item:item-78dd7de3-1d47-4411-9453-9bbcf8f68afd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-02-17 22:16:38 |

2022-02-17 22:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:38 | ------------------------------------

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

2022-02-17 22:16:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5aa812f0-5089-4af7-90b0-0c1352c8326a",
        "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-17 22:16:38 |

2022-02-17 22:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:38 | ------------------------------------

2022-02-17 22:16:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f)"
}

2022-02-17 22:16:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-02-17 22:16:37 |

2022-02-17 22:16:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:37 | ------------------------------------

2022-02-17 22:16:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 22:16:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-02-17 22:16:38 |

2022-02-17 22:16:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-17 22:16:38 | ------------------------------------

2022-02-17 22:16:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bce8bdaf-9f0c-4468-a2a3-97b674f65b1f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-17 22:16:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}