Generated by TestNG with ReportNG at 22:36 PDT on Wednesday 27 April 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / 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.946s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-04-27 22:51:53 |

2022-04-27 22:51:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:53 | ------------------------------------

2022-04-27 22:51:53 | [Mutex] waiting for: [configured:node:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:node-335075f4-a833-4222-bd5b-dace64db1429]

2022-04-27 22:51:53 | [Mutex] received everything.

2022-04-27 22:51:53 | [Mutex] isItemNotified: configured:node:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:node-335075f4-a833-4222-bd5b-dace64db1429 :: true

2022-04-27 22:51:54 | [Mutex] waiting for: [received:nodes:fc07df52-4f72-4af8-a25b-28896e34354c:localhost]

2022-04-27 22:51:54 | [Mutex] received everything.

2022-04-27 22:51:54 | [Mutex] isItemNotified: received:node:fc07df52-4f72-4af8-a25b-28896e34354c:localhost:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:Node eecf19d6-5efb-44a5-8d89-4fc6aa8c152f :: true

2022-04-27 22:51:54 | [Mutex] waiting for: [received:nodes:f4bca515-41f6-4039-95b2-43f7d4a562ba:localhost]

2022-04-27 22:51:54 | [Mutex] received everything.

2022-04-27 22:51:54 | [Mutex] isItemNotified: received:node:f4bca515-41f6-4039-95b2-43f7d4a562ba:localhost:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:Node eecf19d6-5efb-44a5-8d89-4fc6aa8c152f :: false

createNodes 1.639s
2022-04-27 22:51:50 |

2022-04-27 22:51:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:50 | ------------------------------------

2022-04-27 22:51:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "pubsub#title": "Node eecf19d6-5efb-44a5-8d89-4fc6aa8c152f"
}

2022-04-27 22:51:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:51:52 | [Mutex] waiting for: [received:nodes:83b4849a-8871-4791-87b1-4cd92a240d51:localhost]

2022-04-27 22:51:52 | [Mutex] received everything.

2022-04-27 22:51:52 | [Mutex] isItemNotified: received:node:83b4849a-8871-4791-87b1-4cd92a240d51:localhost:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:Node eecf19d6-5efb-44a5-8d89-4fc6aa8c152f :: true

createSubnodes 1.030s
2022-04-27 22:51:52 |

2022-04-27 22:51:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:52 | ------------------------------------

2022-04-27 22:51:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-335075f4-a833-4222-bd5b-dace64db1429",
    "pubsub#title": "Node 335075f4-a833-4222-bd5b-dace64db1429"
}

2022-04-27 22:51:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:51:53 | [Mutex] waiting for: [received:nodes:431b3a30-ff8d-4464-8770-aae960fe4d52:localhost]

2022-04-27 22:51:53 | [Mutex] received everything.

2022-04-27 22:51:53 | [Mutex] isItemNotified: received:node:431b3a30-ff8d-4464-8770-aae960fe4d52:localhost:node-335075f4-a833-4222-bd5b-dace64db1429:Node 335075f4-a833-4222-bd5b-dace64db1429 :: true

deleteNodes 1.113s
2022-04-27 22:51:57 |

2022-04-27 22:51:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:57 | ------------------------------------

2022-04-27 22:51:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-335075f4-a833-4222-bd5b-dace64db1429"
}

2022-04-27 22:51:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:51:59 | [Mutex] waiting for: [received:nodes:77a191db-ff74-4f25-88f4-9b3891630a34:localhost]

2022-04-27 22:51:59 | [Mutex] waiting for: [received:nodes:77a191db-ff74-4f25-88f4-9b3891630a34:localhost]

2022-04-27 22:51:59 | [Mutex] received everything.

2022-04-27 22:51:59 | [Mutex] isItemNotified: received:node:77a191db-ff74-4f25-88f4-9b3891630a34:localhost:node-335075f4-a833-4222-bd5b-dace64db1429:Node 335075f4-a833-4222-bd5b-dace64db1429 :: false

deleteSubnodes 1.068s
2022-04-27 22:51:56 |

2022-04-27 22:51:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:56 | ------------------------------------

2022-04-27 22:51:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f"
}

2022-04-27 22:51:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:51:57 | [Mutex] waiting for: [received:nodes:58ab0469-7e30-4bab-97fc-552305c68056:localhost]

2022-04-27 22:51:57 | [Mutex] waiting for: [received:nodes:58ab0469-7e30-4bab-97fc-552305c68056:localhost]

2022-04-27 22:51:57 | [Mutex] received everything.

2022-04-27 22:51:57 | [Mutex] isItemNotified: received:node:58ab0469-7e30-4bab-97fc-552305c68056:localhost:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:Node eecf19d6-5efb-44a5-8d89-4fc6aa8c152f :: false

2022-04-27 22:51:57 | [Mutex] waiting for: [received:nodes:fe49b463-0f1a-4aa9-968d-65c97cd89f0a:localhost]

2022-04-27 22:51:57 | [Mutex] received everything.

2022-04-27 22:51:57 | [Mutex] isItemNotified: received:node:fe49b463-0f1a-4aa9-968d-65c97cd89f0a:localhost:node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f:Node eecf19d6-5efb-44a5-8d89-4fc6aa8c152f :: false

publishItemsToNodes 0.061s
2022-04-27 22:51:55 |

2022-04-27 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:55 | ------------------------------------

2022-04-27 22:51:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "entry": "<test>item-33d1992a-4a24-4578-bef7-b5048a6b9f94</test>",
    "item-id": "item-33d1992a-4a24-4578-bef7-b5048a6b9f94"
}

2022-04-27 22:51:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-33d1992a-4a24-4578-bef7-b5048a6b9f94"
}

2022-04-27 22:51:55 | [Mutex] received everything.

2022-04-27 22:51:55 | [Mutex] isItemNotified: published:item:notifieditem-33d1992a-4a24-4578-bef7-b5048a6b9f94:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-04-27 22:51:55 |

2022-04-27 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:55 | ------------------------------------

2022-04-27 22:51:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "item-id": "item-33d1992a-4a24-4578-bef7-b5048a6b9f94"
}

2022-04-27 22:51:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-33d1992a-4a24-4578-bef7-b5048a6b9f94"
}

2022-04-27 22:51:55 | [Mutex] received everything.

2022-04-27 22:51:55 | [Mutex] isItemNotified: retracted:item:notifieditem-33d1992a-4a24-4578-bef7-b5048a6b9f94:admin@test-domain.com :: true

retrieveItemsFromNodes 0.080s
2022-04-27 22:51:55 |

2022-04-27 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:55 | ------------------------------------

2022-04-27 22:51:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "item-id": "item-33d1992a-4a24-4578-bef7-b5048a6b9f94"
}

2022-04-27 22:51:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "item-id": "item-33d1992a-4a24-4578-bef7-b5048a6b9f94",
    "item": [
        "<item id=\"item-33d1992a-4a24-4578-bef7-b5048a6b9f94\"><test>item-33d1992a-4a24-4578-bef7-b5048a6b9f94</test></item>"
    ]
}

2022-04-27 22:51:55 | [Mutex] notify: [retrieved:item:item-33d1992a-4a24-4578-bef7-b5048a6b9f94:payload-matches:true:localhost]

2022-04-27 22:51:55 | [Mutex] received everything.

2022-04-27 22:51:55 | [Mutex] isItemNotified: retrieved:item:item-33d1992a-4a24-4578-bef7-b5048a6b9f94:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-04-27 22:51:55 |

2022-04-27 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:55 | ------------------------------------

2022-04-27 22:51:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-04-27 22:51:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
        "node-335075f4-a833-4222-bd5b-dace64db1429"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-04-27 22:51:55 |

2022-04-27 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:55 | ------------------------------------

2022-04-27 22:51:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f)"
}

2022-04-27 22:51:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.019s
2022-04-27 22:51:54 |

2022-04-27 22:51:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:54 | ------------------------------------

2022-04-27 22:51:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 22:51:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-04-27 22:51:55 |

2022-04-27 22:51:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:51:55 | ------------------------------------

2022-04-27 22:51:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-eecf19d6-5efb-44a5-8d89-4fc6aa8c152f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 22:51:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}