Generated by TestNG with ReportNG at 22:48 PDT on Monday 25 July 2022
root@ed1b7dd8a1b3 / 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.608s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.100s
2022-07-25 23:03:34 |

2022-07-25 23:03:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:34 | ------------------------------------

2022-07-25 23:03:34 | [Mutex] waiting for: [configured:node:node-97f08728-016a-407d-8692-6f121af5cc85:node-b64fdd3a-3fe7-4f23-932d-c6115189fbef]

2022-07-25 23:03:34 | [Mutex] received everything.

2022-07-25 23:03:34 | [Mutex] isItemNotified: configured:node:node-97f08728-016a-407d-8692-6f121af5cc85:node-b64fdd3a-3fe7-4f23-932d-c6115189fbef :: true

2022-07-25 23:03:35 | [Mutex] waiting for: [received:nodes:9c28b047-6128-49fb-8f49-6f7134974765:localhost]

2022-07-25 23:03:35 | [Mutex] received everything.

2022-07-25 23:03:35 | [Mutex] isItemNotified: received:node:9c28b047-6128-49fb-8f49-6f7134974765:localhost:node-97f08728-016a-407d-8692-6f121af5cc85:Node 97f08728-016a-407d-8692-6f121af5cc85 :: true

2022-07-25 23:03:35 | [Mutex] waiting for: [received:nodes:fa3cd93c-d0ad-4349-8fae-54d6b42d29ac:localhost]

2022-07-25 23:03:35 | [Mutex] received everything.

2022-07-25 23:03:35 | [Mutex] isItemNotified: received:node:fa3cd93c-d0ad-4349-8fae-54d6b42d29ac:localhost:node-97f08728-016a-407d-8692-6f121af5cc85:Node 97f08728-016a-407d-8692-6f121af5cc85 :: false

createNodes 1.528s
2022-07-25 23:03:31 |

2022-07-25 23:03:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:31 | ------------------------------------

2022-07-25 23:03:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "pubsub#title": "Node 97f08728-016a-407d-8692-6f121af5cc85"
}

2022-07-25 23:03:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 23:03:33 | [Mutex] waiting for: [received:nodes:adb02fe9-158b-4c69-a013-7ab234d49091:localhost]

2022-07-25 23:03:33 | [Mutex] waiting for: [received:nodes:adb02fe9-158b-4c69-a013-7ab234d49091:localhost]

2022-07-25 23:03:33 | [Mutex] received everything.

2022-07-25 23:03:33 | [Mutex] isItemNotified: received:node:adb02fe9-158b-4c69-a013-7ab234d49091:localhost:node-97f08728-016a-407d-8692-6f121af5cc85:Node 97f08728-016a-407d-8692-6f121af5cc85 :: true

createSubnodes 1.021s
2022-07-25 23:03:33 |

2022-07-25 23:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:33 | ------------------------------------

2022-07-25 23:03:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b64fdd3a-3fe7-4f23-932d-c6115189fbef",
    "pubsub#title": "Node b64fdd3a-3fe7-4f23-932d-c6115189fbef"
}

2022-07-25 23:03:33 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 23:03:34 | [Mutex] waiting for: [received:nodes:e819570f-13e1-46a0-a2b3-62aa439070b5:localhost]

2022-07-25 23:03:34 | [Mutex] received everything.

2022-07-25 23:03:34 | [Mutex] isItemNotified: received:node:e819570f-13e1-46a0-a2b3-62aa439070b5:localhost:node-b64fdd3a-3fe7-4f23-932d-c6115189fbef:Node b64fdd3a-3fe7-4f23-932d-c6115189fbef :: true

deleteNodes 1.026s
2022-07-25 23:03:38 |

2022-07-25 23:03:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:38 | ------------------------------------

2022-07-25 23:03:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b64fdd3a-3fe7-4f23-932d-c6115189fbef"
}

2022-07-25 23:03:38 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 23:03:39 | [Mutex] waiting for: [received:nodes:0d1dcf2c-b6f3-4c57-85de-e3049cc3ce91:localhost]

2022-07-25 23:03:39 | [Mutex] waiting for: [received:nodes:0d1dcf2c-b6f3-4c57-85de-e3049cc3ce91:localhost]

2022-07-25 23:03:39 | [Mutex] received everything.

2022-07-25 23:03:39 | [Mutex] isItemNotified: received:node:0d1dcf2c-b6f3-4c57-85de-e3049cc3ce91:localhost:node-b64fdd3a-3fe7-4f23-932d-c6115189fbef:Node b64fdd3a-3fe7-4f23-932d-c6115189fbef :: false

deleteSubnodes 1.024s
2022-07-25 23:03:37 |

2022-07-25 23:03:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:37 | ------------------------------------

2022-07-25 23:03:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85"
}

2022-07-25 23:03:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-25 23:03:38 | [Mutex] waiting for: [received:nodes:20919efe-5fe2-472a-adcf-406bc45b015c:localhost]

2022-07-25 23:03:38 | [Mutex] received everything.

2022-07-25 23:03:38 | [Mutex] isItemNotified: received:node:20919efe-5fe2-472a-adcf-406bc45b015c:localhost:node-97f08728-016a-407d-8692-6f121af5cc85:Node 97f08728-016a-407d-8692-6f121af5cc85 :: false

2022-07-25 23:03:38 | [Mutex] waiting for: [received:nodes:cae1d8e3-c4d8-4dfa-99d2-e4db093ae165:localhost]

2022-07-25 23:03:38 | [Mutex] received everything.

2022-07-25 23:03:38 | [Mutex] isItemNotified: received:node:cae1d8e3-c4d8-4dfa-99d2-e4db093ae165:localhost:node-97f08728-016a-407d-8692-6f121af5cc85:Node 97f08728-016a-407d-8692-6f121af5cc85 :: false

publishItemsToNodes 0.058s
2022-07-25 23:03:36 |

2022-07-25 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:36 | ------------------------------------

2022-07-25 23:03:36 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "entry": "<test>item-7050be19-c9cf-46ef-a8d1-417dd8eec044</test>",
    "item-id": "item-7050be19-c9cf-46ef-a8d1-417dd8eec044"
}

2022-07-25 23:03:36 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7050be19-c9cf-46ef-a8d1-417dd8eec044"
}

2022-07-25 23:03:36 | [Mutex] waiting for: [published:item:notifieditem-7050be19-c9cf-46ef-a8d1-417dd8eec044:admin@test-domain.com]

2022-07-25 23:03:36 | [Mutex] received everything.

2022-07-25 23:03:36 | [Mutex] isItemNotified: published:item:notifieditem-7050be19-c9cf-46ef-a8d1-417dd8eec044:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-25 23:03:36 |

2022-07-25 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:36 | ------------------------------------

2022-07-25 23:03:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "item-id": "item-7050be19-c9cf-46ef-a8d1-417dd8eec044"
}

2022-07-25 23:03:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7050be19-c9cf-46ef-a8d1-417dd8eec044"
}

2022-07-25 23:03:36 | [Mutex] received everything.

2022-07-25 23:03:36 | [Mutex] isItemNotified: retracted:item:notifieditem-7050be19-c9cf-46ef-a8d1-417dd8eec044:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2022-07-25 23:03:36 |

2022-07-25 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:36 | ------------------------------------

2022-07-25 23:03:36 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "item-id": "item-7050be19-c9cf-46ef-a8d1-417dd8eec044"
}

2022-07-25 23:03:36 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "item-id": "item-7050be19-c9cf-46ef-a8d1-417dd8eec044",
    "item": [
        "<item id=\"item-7050be19-c9cf-46ef-a8d1-417dd8eec044\"><test>item-7050be19-c9cf-46ef-a8d1-417dd8eec044</test></item>"
    ]
}

2022-07-25 23:03:36 | [Mutex] notify: [retrieved:item:item-7050be19-c9cf-46ef-a8d1-417dd8eec044:payload-matches:true:localhost]

2022-07-25 23:03:36 | [Mutex] received everything.

2022-07-25 23:03:36 | [Mutex] isItemNotified: retrieved:item:item-7050be19-c9cf-46ef-a8d1-417dd8eec044:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.114s
2022-07-25 23:03:36 |

2022-07-25 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:36 | ------------------------------------

2022-07-25 23:03:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-25 23:03:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-97f08728-016a-407d-8692-6f121af5cc85",
        "test",
        "node-b64fdd3a-3fe7-4f23-932d-c6115189fbef"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-25 23:03:36 |

2022-07-25 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:36 | ------------------------------------

2022-07-25 23:03:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-97f08728-016a-407d-8692-6f121af5cc85)"
}

2022-07-25 23:03:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-07-25 23:03:35 |

2022-07-25 23:03:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:35 | ------------------------------------

2022-07-25 23:03:35 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 23:03:35 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2022-07-25 23:03:36 |

2022-07-25 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-25 23:03:36 | ------------------------------------

2022-07-25 23:03:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-97f08728-016a-407d-8692-6f121af5cc85",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-25 23:03:36 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}