Generated by TestNG with ReportNG at 22:19 PDT on Wednesday 24 August 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.603s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2022-08-24 22:34:19 |

2022-08-24 22:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:19 | ------------------------------------

2022-08-24 22:34:19 | [Mutex] waiting for: [configured:node:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91]

2022-08-24 22:34:19 | [Mutex] received everything.

2022-08-24 22:34:19 | [Mutex] isItemNotified: configured:node:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91 :: true

2022-08-24 22:34:20 | [Mutex] waiting for: [received:nodes:4d0bdea0-cd2a-40d9-a02d-e8ed2f01570d:localhost]

2022-08-24 22:34:20 | [Mutex] received everything.

2022-08-24 22:34:20 | [Mutex] isItemNotified: received:node:4d0bdea0-cd2a-40d9-a02d-e8ed2f01570d:localhost:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:Node 431eb8f5-9023-4d4c-ac93-e400ded9a9e5 :: true

2022-08-24 22:34:20 | [Mutex] waiting for: [received:nodes:7fb95cfa-c588-4a07-8221-10bfb7113a4f:localhost]

2022-08-24 22:34:20 | [Mutex] received everything.

2022-08-24 22:34:20 | [Mutex] isItemNotified: received:node:7fb95cfa-c588-4a07-8221-10bfb7113a4f:localhost:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:Node 431eb8f5-9023-4d4c-ac93-e400ded9a9e5 :: false

createNodes 1.530s
2022-08-24 22:34:16 |

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

2022-08-24 22:34:16 | ------------------------------------

2022-08-24 22:34:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "pubsub#title": "Node 431eb8f5-9023-4d4c-ac93-e400ded9a9e5"
}

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

2022-08-24 22:34:18 | [Mutex] waiting for: [received:nodes:40c9543f-3559-4d8f-bf4a-bfcaeb2b9e60:localhost]

2022-08-24 22:34:18 | [Mutex] received everything.

2022-08-24 22:34:18 | [Mutex] isItemNotified: received:node:40c9543f-3559-4d8f-bf4a-bfcaeb2b9e60:localhost:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:Node 431eb8f5-9023-4d4c-ac93-e400ded9a9e5 :: true

createSubnodes 1.023s
2022-08-24 22:34:18 |

2022-08-24 22:34:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:18 | ------------------------------------

2022-08-24 22:34:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91",
    "pubsub#title": "Node 6fccc6ef-8a93-4e5e-9d23-eecbe9691a91"
}

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

2022-08-24 22:34:19 | [Mutex] waiting for: [received:nodes:67ae2417-435b-440a-8e62-db262865e8f5:localhost]

2022-08-24 22:34:19 | [Mutex] waiting for: [received:nodes:67ae2417-435b-440a-8e62-db262865e8f5:localhost]

2022-08-24 22:34:19 | [Mutex] received everything.

2022-08-24 22:34:19 | [Mutex] isItemNotified: received:node:67ae2417-435b-440a-8e62-db262865e8f5:localhost:node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91:Node 6fccc6ef-8a93-4e5e-9d23-eecbe9691a91 :: true

deleteNodes 1.021s
2022-08-24 22:34:23 |

2022-08-24 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:23 | ------------------------------------

2022-08-24 22:34:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91"
}

2022-08-24 22:34:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-24 22:34:24 | [Mutex] waiting for: [received:nodes:b2109636-1f40-4948-aad8-8dcd18d0bdf8:localhost]

2022-08-24 22:34:24 | [Mutex] received everything.

2022-08-24 22:34:24 | [Mutex] isItemNotified: received:node:b2109636-1f40-4948-aad8-8dcd18d0bdf8:localhost:node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91:Node 6fccc6ef-8a93-4e5e-9d23-eecbe9691a91 :: false

deleteSubnodes 1.025s
2022-08-24 22:34:22 |

2022-08-24 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:22 | ------------------------------------

2022-08-24 22:34:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5"
}

2022-08-24 22:34:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-24 22:34:23 | [Mutex] waiting for: [received:nodes:c6daaf63-cb71-4c5c-8dc6-39734021ae54:localhost]

2022-08-24 22:34:23 | [Mutex] waiting for: [received:nodes:c6daaf63-cb71-4c5c-8dc6-39734021ae54:localhost]

2022-08-24 22:34:23 | [Mutex] received everything.

2022-08-24 22:34:23 | [Mutex] isItemNotified: received:node:c6daaf63-cb71-4c5c-8dc6-39734021ae54:localhost:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:Node 431eb8f5-9023-4d4c-ac93-e400ded9a9e5 :: false

2022-08-24 22:34:23 | [Mutex] waiting for: [received:nodes:a13bc50e-b8f3-457f-af39-291230d3ed10:localhost]

2022-08-24 22:34:23 | [Mutex] received everything.

2022-08-24 22:34:23 | [Mutex] isItemNotified: received:node:a13bc50e-b8f3-457f-af39-291230d3ed10:localhost:node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5:Node 431eb8f5-9023-4d4c-ac93-e400ded9a9e5 :: false

publishItemsToNodes 0.038s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "entry": "<test>item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964</test>",
    "item-id": "item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964"
}

2022-08-24 22:34:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964"
}

2022-08-24 22:34:21 | [Mutex] waiting for: [published:item:notifieditem-8c30d8b9-dc20-4ac1-8986-7c07b46f6964:admin@test-domain.com]

2022-08-24 22:34:21 | [Mutex] received everything.

2022-08-24 22:34:21 | [Mutex] isItemNotified: published:item:notifieditem-8c30d8b9-dc20-4ac1-8986-7c07b46f6964:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "item-id": "item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964"
}

2022-08-24 22:34:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964"
}

2022-08-24 22:34:21 | [Mutex] received everything.

2022-08-24 22:34:21 | [Mutex] isItemNotified: retracted:item:notifieditem-8c30d8b9-dc20-4ac1-8986-7c07b46f6964:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "item-id": "item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964"
}

2022-08-24 22:34:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "item-id": "item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964",
    "item": [
        "<item id=\"item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964\"><test>item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964</test></item>"
    ]
}

2022-08-24 22:34:21 | [Mutex] notify: [retrieved:item:item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964:payload-matches:true:localhost]

2022-08-24 22:34:21 | [Mutex] received everything.

2022-08-24 22:34:21 | [Mutex] isItemNotified: retrieved:item:item-8c30d8b9-dc20-4ac1-8986-7c07b46f6964:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-08-24 22:34:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6fccc6ef-8a93-4e5e-9d23-eecbe9691a91",
        "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5)"
}

2022-08-24 22:34:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-08-24 22:34:20 |

2022-08-24 22:34:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:20 | ------------------------------------

2022-08-24 22:34:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-24 22:34:20 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.135s
2022-08-24 22:34:21 |

2022-08-24 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 22:34:21 | ------------------------------------

2022-08-24 22:34:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-431eb8f5-9023-4d4c-ac93-e400ded9a9e5",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-24 22:34:21 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}