Generated by TestNG with ReportNG at 06:23 PDT on Friday 23 September 2022
root@f9c07ffec79b / 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.722s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.147s
2022-09-23 06:37:26 |

2022-09-23 06:37:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:26 | ------------------------------------

2022-09-23 06:37:26 | [Mutex] waiting for: [configured:node:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:node-924786b9-5c0e-4236-869c-7d8f29d73e9f]

2022-09-23 06:37:26 | [Mutex] received everything.

2022-09-23 06:37:26 | [Mutex] isItemNotified: configured:node:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:node-924786b9-5c0e-4236-869c-7d8f29d73e9f :: true

2022-09-23 06:37:27 | [Mutex] waiting for: [received:nodes:04ad81fd-1f6e-4633-ad5d-8ec3ff90535a:localhost]

2022-09-23 06:37:27 | [Mutex] received everything.

2022-09-23 06:37:27 | [Mutex] isItemNotified: received:node:04ad81fd-1f6e-4633-ad5d-8ec3ff90535a:localhost:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:Node 20ebe657-c5c5-44f7-afa9-68485030b7ca :: true

2022-09-23 06:37:27 | [Mutex] waiting for: [received:nodes:f534603e-1eef-46d5-b9c2-b1e55d043441:localhost]

2022-09-23 06:37:27 | [Mutex] received everything.

2022-09-23 06:37:27 | [Mutex] isItemNotified: received:node:f534603e-1eef-46d5-b9c2-b1e55d043441:localhost:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:Node 20ebe657-c5c5-44f7-afa9-68485030b7ca :: false

createNodes 1.584s
2022-09-23 06:37:23 |

2022-09-23 06:37:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:23 | ------------------------------------

2022-09-23 06:37:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "pubsub#title": "Node 20ebe657-c5c5-44f7-afa9-68485030b7ca"
}

2022-09-23 06:37:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-23 06:37:25 | [Mutex] waiting for: [received:nodes:ae43441e-1f26-4c85-b009-552e3386bd34:localhost]

2022-09-23 06:37:25 | [Mutex] waiting for: [received:nodes:ae43441e-1f26-4c85-b009-552e3386bd34:localhost]

2022-09-23 06:37:25 | [Mutex] received everything.

2022-09-23 06:37:25 | [Mutex] isItemNotified: received:node:ae43441e-1f26-4c85-b009-552e3386bd34:localhost:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:Node 20ebe657-c5c5-44f7-afa9-68485030b7ca :: true

createSubnodes 1.022s
2022-09-23 06:37:25 |

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

2022-09-23 06:37:25 | ------------------------------------

2022-09-23 06:37:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-924786b9-5c0e-4236-869c-7d8f29d73e9f",
    "pubsub#title": "Node 924786b9-5c0e-4236-869c-7d8f29d73e9f"
}

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

2022-09-23 06:37:26 | [Mutex] waiting for: [received:nodes:35a594ab-3682-4226-baad-52bc3269ecae:localhost]

2022-09-23 06:37:26 | [Mutex] received everything.

2022-09-23 06:37:26 | [Mutex] isItemNotified: received:node:35a594ab-3682-4226-baad-52bc3269ecae:localhost:node-924786b9-5c0e-4236-869c-7d8f29d73e9f:Node 924786b9-5c0e-4236-869c-7d8f29d73e9f :: true

deleteNodes 1.026s
2022-09-23 06:37:30 |

2022-09-23 06:37:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:30 | ------------------------------------

2022-09-23 06:37:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-924786b9-5c0e-4236-869c-7d8f29d73e9f"
}

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

2022-09-23 06:37:31 | [Mutex] waiting for: [received:nodes:558d133f-f0ad-4a77-86dc-1442fdaf5782:localhost]

2022-09-23 06:37:31 | [Mutex] waiting for: [received:nodes:558d133f-f0ad-4a77-86dc-1442fdaf5782:localhost]

2022-09-23 06:37:31 | [Mutex] waiting for: [received:nodes:558d133f-f0ad-4a77-86dc-1442fdaf5782:localhost]

2022-09-23 06:37:31 | [Mutex] received everything.

2022-09-23 06:37:31 | [Mutex] isItemNotified: received:node:558d133f-f0ad-4a77-86dc-1442fdaf5782:localhost:node-924786b9-5c0e-4236-869c-7d8f29d73e9f:Node 924786b9-5c0e-4236-869c-7d8f29d73e9f :: false

deleteSubnodes 1.026s
2022-09-23 06:37:29 |

2022-09-23 06:37:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:29 | ------------------------------------

2022-09-23 06:37:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca"
}

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

2022-09-23 06:37:30 | [Mutex] waiting for: [received:nodes:5c9e4caf-917f-4db7-9c92-153e0c14c78f:localhost]

2022-09-23 06:37:30 | [Mutex] received everything.

2022-09-23 06:37:30 | [Mutex] isItemNotified: received:node:5c9e4caf-917f-4db7-9c92-153e0c14c78f:localhost:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:Node 20ebe657-c5c5-44f7-afa9-68485030b7ca :: false

2022-09-23 06:37:30 | [Mutex] waiting for: [received:nodes:25b05819-8e04-4cf0-9b5f-533c9025e293:localhost]

2022-09-23 06:37:30 | [Mutex] received everything.

2022-09-23 06:37:30 | [Mutex] isItemNotified: received:node:25b05819-8e04-4cf0-9b5f-533c9025e293:localhost:node-20ebe657-c5c5-44f7-afa9-68485030b7ca:Node 20ebe657-c5c5-44f7-afa9-68485030b7ca :: false

publishItemsToNodes 0.042s
2022-09-23 06:37:28 |

2022-09-23 06:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:28 | ------------------------------------

2022-09-23 06:37:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "entry": "<test>item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5</test>",
    "item-id": "item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5"
}

2022-09-23 06:37:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5"
}

2022-09-23 06:37:28 | [Mutex] waiting for: [published:item:notifieditem-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5:admin@test-domain.com]

2022-09-23 06:37:28 | [Mutex] received everything.

2022-09-23 06:37:28 | [Mutex] isItemNotified: published:item:notifieditem-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-09-23 06:37:28 |

2022-09-23 06:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:28 | ------------------------------------

2022-09-23 06:37:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "item-id": "item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5"
}

2022-09-23 06:37:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5"
}

2022-09-23 06:37:28 | [Mutex] waiting for: [retracted:item:notifieditem-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5:admin@test-domain.com]

2022-09-23 06:37:28 | [Mutex] received everything.

2022-09-23 06:37:28 | [Mutex] isItemNotified: retracted:item:notifieditem-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-09-23 06:37:28 |

2022-09-23 06:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:28 | ------------------------------------

2022-09-23 06:37:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "item-id": "item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5"
}

2022-09-23 06:37:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "item-id": "item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5",
    "item": [
        "<item id=\"item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5\"><test>item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5</test></item>"
    ]
}

2022-09-23 06:37:28 | [Mutex] notify: [retrieved:item:item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5:payload-matches:true:localhost]

2022-09-23 06:37:28 | [Mutex] received everything.

2022-09-23 06:37:28 | [Mutex] isItemNotified: retrieved:item:item-cc43b38d-85a0-4bf3-9ed9-dd9d03000ca5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-09-23 06:37:28 |

2022-09-23 06:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:28 | ------------------------------------

2022-09-23 06:37:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-09-23 06:37:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-924786b9-5c0e-4236-869c-7d8f29d73e9f",
        "test",
        "node-20ebe657-c5c5-44f7-afa9-68485030b7ca"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-09-23 06:37:28 |

2022-09-23 06:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:28 | ------------------------------------

2022-09-23 06:37:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20ebe657-c5c5-44f7-afa9-68485030b7ca)"
}

2022-09-23 06:37:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-09-23 06:37:27 |

2022-09-23 06:37:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:27 | ------------------------------------

2022-09-23 06:37:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-23 06:37:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2022-09-23 06:37:28 |

2022-09-23 06:37:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-23 06:37:28 | ------------------------------------

2022-09-23 06:37:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20ebe657-c5c5-44f7-afa9-68485030b7ca",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-23 06:37:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}