Generated by TestNG with ReportNG at 22:16 PDT on Thursday 22 June 2023
root@1512af24e4a5 / Java 17.0.6 (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.497s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2023-06-22 22:30:30 |

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

2023-06-22 22:30:30 | ------------------------------------

2023-06-22 22:30:30 | [Mutex] waiting for: [configured:node:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:node-5bff3d60-a60e-4848-8b05-029f108ad415]

2023-06-22 22:30:30 | [Mutex] received everything.

2023-06-22 22:30:30 | [Mutex] isItemNotified: configured:node:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:node-5bff3d60-a60e-4848-8b05-029f108ad415 :: true

2023-06-22 22:30:31 | [Mutex] waiting for: [received:nodes:10746872-35d7-49e0-a862-12fc12682024:localhost]

2023-06-22 22:30:31 | [Mutex] received everything.

2023-06-22 22:30:31 | [Mutex] isItemNotified: received:node:10746872-35d7-49e0-a862-12fc12682024:localhost:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:Node ac354788-7bf1-4a7b-92a4-9ab838e2464c :: true

2023-06-22 22:30:31 | [Mutex] waiting for: [received:nodes:8f67d7bd-522c-4e58-8cef-913924ce8e99:localhost]

2023-06-22 22:30:31 | [Mutex] waiting for: [received:nodes:8f67d7bd-522c-4e58-8cef-913924ce8e99:localhost]

2023-06-22 22:30:31 | [Mutex] waiting for: [received:nodes:8f67d7bd-522c-4e58-8cef-913924ce8e99:localhost]

2023-06-22 22:30:31 | [Mutex] waiting for: [received:nodes:8f67d7bd-522c-4e58-8cef-913924ce8e99:localhost]

2023-06-22 22:30:31 | [Mutex] received everything.

2023-06-22 22:30:31 | [Mutex] isItemNotified: received:node:8f67d7bd-522c-4e58-8cef-913924ce8e99:localhost:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:Node ac354788-7bf1-4a7b-92a4-9ab838e2464c :: false

createNodes 1.542s
2023-06-22 22:30:27 |

2023-06-22 22:30:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:27 | ------------------------------------

2023-06-22 22:30:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "pubsub#title": "Node ac354788-7bf1-4a7b-92a4-9ab838e2464c"
}

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

2023-06-22 22:30:29 | [Mutex] waiting for: [received:nodes:8761b6a9-cc9b-4798-8029-1276b33eafad:localhost]

2023-06-22 22:30:29 | [Mutex] waiting for: [received:nodes:8761b6a9-cc9b-4798-8029-1276b33eafad:localhost]

2023-06-22 22:30:29 | [Mutex] waiting for: [received:nodes:8761b6a9-cc9b-4798-8029-1276b33eafad:localhost]

2023-06-22 22:30:29 | [Mutex] received everything.

2023-06-22 22:30:29 | [Mutex] isItemNotified: received:node:8761b6a9-cc9b-4798-8029-1276b33eafad:localhost:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:Node ac354788-7bf1-4a7b-92a4-9ab838e2464c :: true

createSubnodes 1.020s
2023-06-22 22:30:29 |

2023-06-22 22:30:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:29 | ------------------------------------

2023-06-22 22:30:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5bff3d60-a60e-4848-8b05-029f108ad415",
    "pubsub#title": "Node 5bff3d60-a60e-4848-8b05-029f108ad415"
}

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

2023-06-22 22:30:30 | [Mutex] waiting for: [received:nodes:1645126b-05e4-4e41-93c0-d24eef65a46c:localhost]

2023-06-22 22:30:30 | [Mutex] waiting for: [received:nodes:1645126b-05e4-4e41-93c0-d24eef65a46c:localhost]

2023-06-22 22:30:30 | [Mutex] waiting for: [received:nodes:1645126b-05e4-4e41-93c0-d24eef65a46c:localhost]

2023-06-22 22:30:30 | [Mutex] waiting for: [received:nodes:1645126b-05e4-4e41-93c0-d24eef65a46c:localhost]

2023-06-22 22:30:30 | [Mutex] waiting for: [received:nodes:1645126b-05e4-4e41-93c0-d24eef65a46c:localhost]

2023-06-22 22:30:30 | [Mutex] received everything.

2023-06-22 22:30:30 | [Mutex] isItemNotified: received:node:1645126b-05e4-4e41-93c0-d24eef65a46c:localhost:node-5bff3d60-a60e-4848-8b05-029f108ad415:Node 5bff3d60-a60e-4848-8b05-029f108ad415 :: true

deleteNodes 1.016s
2023-06-22 22:30:34 |

2023-06-22 22:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:34 | ------------------------------------

2023-06-22 22:30:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5bff3d60-a60e-4848-8b05-029f108ad415"
}

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

2023-06-22 22:30:35 | [Mutex] waiting for: [received:nodes:8d45c804-200c-47d9-90bf-7a11099c24ac:localhost]

2023-06-22 22:30:35 | [Mutex] waiting for: [received:nodes:8d45c804-200c-47d9-90bf-7a11099c24ac:localhost]

2023-06-22 22:30:35 | [Mutex] waiting for: [received:nodes:8d45c804-200c-47d9-90bf-7a11099c24ac:localhost]

2023-06-22 22:30:35 | [Mutex] received everything.

2023-06-22 22:30:35 | [Mutex] isItemNotified: received:node:8d45c804-200c-47d9-90bf-7a11099c24ac:localhost:node-5bff3d60-a60e-4848-8b05-029f108ad415:Node 5bff3d60-a60e-4848-8b05-029f108ad415 :: false

deleteSubnodes 1.022s
2023-06-22 22:30:33 |

2023-06-22 22:30:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:33 | ------------------------------------

2023-06-22 22:30:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c"
}

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

2023-06-22 22:30:34 | [Mutex] waiting for: [received:nodes:0bbc5ce3-991c-4760-84bc-408a0f1d932f:localhost]

2023-06-22 22:30:34 | [Mutex] waiting for: [received:nodes:0bbc5ce3-991c-4760-84bc-408a0f1d932f:localhost]

2023-06-22 22:30:34 | [Mutex] waiting for: [received:nodes:0bbc5ce3-991c-4760-84bc-408a0f1d932f:localhost]

2023-06-22 22:30:34 | [Mutex] received everything.

2023-06-22 22:30:34 | [Mutex] isItemNotified: received:node:0bbc5ce3-991c-4760-84bc-408a0f1d932f:localhost:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:Node ac354788-7bf1-4a7b-92a4-9ab838e2464c :: false

2023-06-22 22:30:34 | [Mutex] waiting for: [received:nodes:94408d72-9ab3-41e4-8689-cbab0f17f242:localhost]

2023-06-22 22:30:34 | [Mutex] received everything.

2023-06-22 22:30:34 | [Mutex] isItemNotified: received:node:94408d72-9ab3-41e4-8689-cbab0f17f242:localhost:node-ac354788-7bf1-4a7b-92a4-9ab838e2464c:Node ac354788-7bf1-4a7b-92a4-9ab838e2464c :: false

publishItemsToNodes 0.046s
2023-06-22 22:30:32 |

2023-06-22 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:32 | ------------------------------------

2023-06-22 22:30:32 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "entry": "<test>item-589d0236-3aed-4181-8a93-d1d5c7ddab68</test>",
    "item-id": "item-589d0236-3aed-4181-8a93-d1d5c7ddab68"
}

2023-06-22 22:30:32 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-589d0236-3aed-4181-8a93-d1d5c7ddab68"
}

2023-06-22 22:30:32 | [Mutex] waiting for: [published:item:notifieditem-589d0236-3aed-4181-8a93-d1d5c7ddab68:admin@test-domain.com]

2023-06-22 22:30:32 | [Mutex] received everything.

2023-06-22 22:30:32 | [Mutex] isItemNotified: published:item:notifieditem-589d0236-3aed-4181-8a93-d1d5c7ddab68:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2023-06-22 22:30:32 |

2023-06-22 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:32 | ------------------------------------

2023-06-22 22:30:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "item-id": "item-589d0236-3aed-4181-8a93-d1d5c7ddab68"
}

2023-06-22 22:30:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-589d0236-3aed-4181-8a93-d1d5c7ddab68"
}

2023-06-22 22:30:32 | [Mutex] waiting for: [retracted:item:notifieditem-589d0236-3aed-4181-8a93-d1d5c7ddab68:admin@test-domain.com]

2023-06-22 22:30:32 | [Mutex] received everything.

2023-06-22 22:30:32 | [Mutex] isItemNotified: retracted:item:notifieditem-589d0236-3aed-4181-8a93-d1d5c7ddab68:admin@test-domain.com :: true

retrieveItemsFromNodes 0.054s
2023-06-22 22:30:32 |

2023-06-22 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:32 | ------------------------------------

2023-06-22 22:30:32 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "item-id": "item-589d0236-3aed-4181-8a93-d1d5c7ddab68"
}

2023-06-22 22:30:32 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "item-id": "item-589d0236-3aed-4181-8a93-d1d5c7ddab68",
    "item": [
        "<item id=\"item-589d0236-3aed-4181-8a93-d1d5c7ddab68\"><test>item-589d0236-3aed-4181-8a93-d1d5c7ddab68</test></item>"
    ]
}

2023-06-22 22:30:32 | [Mutex] notify: [retrieved:item:item-589d0236-3aed-4181-8a93-d1d5c7ddab68:payload-matches:true:localhost]

2023-06-22 22:30:32 | [Mutex] received everything.

2023-06-22 22:30:32 | [Mutex] isItemNotified: retrieved:item:item-589d0236-3aed-4181-8a93-d1d5c7ddab68:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-06-22 22:30:32 |

2023-06-22 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:32 | ------------------------------------

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

2023-06-22 22:30:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
        "test",
        "node-5bff3d60-a60e-4848-8b05-029f108ad415"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-06-22 22:30:32 |

2023-06-22 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:32 | ------------------------------------

2023-06-22 22:30:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ac354788-7bf1-4a7b-92a4-9ab838e2464c)"
}

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

subscribeNodes 1.010s
2023-06-22 22:30:31 |

2023-06-22 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:31 | ------------------------------------

2023-06-22 22:30:31 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.084s
2023-06-22 22:30:32 |

2023-06-22 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-22 22:30:32 | ------------------------------------

2023-06-22 22:30:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ac354788-7bf1-4a7b-92a4-9ab838e2464c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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