Generated by TestNG with ReportNG at 22:58 PDT on Thursday 06 October 2022
root@7c41cec37518 / 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.579s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.081s
2022-10-06 23:13:40 |

2022-10-06 23:13:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:40 | ------------------------------------

2022-10-06 23:13:40 | [Mutex] waiting for: [configured:node:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:node-bf9d61cc-2807-449e-a005-a143280b86de]

2022-10-06 23:13:40 | [Mutex] received everything.

2022-10-06 23:13:40 | [Mutex] isItemNotified: configured:node:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:node-bf9d61cc-2807-449e-a005-a143280b86de :: true

2022-10-06 23:13:41 | [Mutex] waiting for: [received:nodes:7f931347-e45b-4efd-b62c-2f303c83d73e:localhost]

2022-10-06 23:13:41 | [Mutex] received everything.

2022-10-06 23:13:41 | [Mutex] isItemNotified: received:node:7f931347-e45b-4efd-b62c-2f303c83d73e:localhost:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:Node 31fc64a3-2c00-4b00-bfad-6730f1e648d2 :: true

2022-10-06 23:13:41 | [Mutex] waiting for: [received:nodes:130d587e-47e4-4d3d-9990-b81f4b73dfb7:localhost]

2022-10-06 23:13:41 | [Mutex] received everything.

2022-10-06 23:13:41 | [Mutex] isItemNotified: received:node:130d587e-47e4-4d3d-9990-b81f4b73dfb7:localhost:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:Node 31fc64a3-2c00-4b00-bfad-6730f1e648d2 :: false

createNodes 1.624s
2022-10-06 23:13:37 |

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

2022-10-06 23:13:37 | ------------------------------------

2022-10-06 23:13:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "pubsub#title": "Node 31fc64a3-2c00-4b00-bfad-6730f1e648d2"
}

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

2022-10-06 23:13:39 | [Mutex] waiting for: [received:nodes:ea6b9021-27a1-4000-828a-64678d388cb2:localhost]

2022-10-06 23:13:39 | [Mutex] received everything.

2022-10-06 23:13:39 | [Mutex] isItemNotified: received:node:ea6b9021-27a1-4000-828a-64678d388cb2:localhost:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:Node 31fc64a3-2c00-4b00-bfad-6730f1e648d2 :: true

createSubnodes 1.022s
2022-10-06 23:13:39 |

2022-10-06 23:13:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:39 | ------------------------------------

2022-10-06 23:13:39 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bf9d61cc-2807-449e-a005-a143280b86de",
    "pubsub#title": "Node bf9d61cc-2807-449e-a005-a143280b86de"
}

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

2022-10-06 23:13:40 | [Mutex] waiting for: [received:nodes:d6a70ccc-56ec-4b1f-acb2-b9c89df3c43a:localhost]

2022-10-06 23:13:40 | [Mutex] received everything.

2022-10-06 23:13:40 | [Mutex] isItemNotified: received:node:d6a70ccc-56ec-4b1f-acb2-b9c89df3c43a:localhost:node-bf9d61cc-2807-449e-a005-a143280b86de:Node bf9d61cc-2807-449e-a005-a143280b86de :: true

deleteNodes 1.017s
2022-10-06 23:13:44 |

2022-10-06 23:13:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:44 | ------------------------------------

2022-10-06 23:13:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bf9d61cc-2807-449e-a005-a143280b86de"
}

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

2022-10-06 23:13:45 | [Mutex] waiting for: [received:nodes:f8c42917-0115-4acd-ba8a-175edb3cd43e:localhost]

2022-10-06 23:13:45 | [Mutex] waiting for: [received:nodes:f8c42917-0115-4acd-ba8a-175edb3cd43e:localhost]

2022-10-06 23:13:45 | [Mutex] received everything.

2022-10-06 23:13:45 | [Mutex] isItemNotified: received:node:f8c42917-0115-4acd-ba8a-175edb3cd43e:localhost:node-bf9d61cc-2807-449e-a005-a143280b86de:Node bf9d61cc-2807-449e-a005-a143280b86de :: false

deleteSubnodes 1.024s
2022-10-06 23:13:43 |

2022-10-06 23:13:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:43 | ------------------------------------

2022-10-06 23:13:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2"
}

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

2022-10-06 23:13:44 | [Mutex] waiting for: [received:nodes:9a25f49b-8cb6-4947-b1b1-4816e389b80c:localhost]

2022-10-06 23:13:44 | [Mutex] waiting for: [received:nodes:9a25f49b-8cb6-4947-b1b1-4816e389b80c:localhost]

2022-10-06 23:13:44 | [Mutex] received everything.

2022-10-06 23:13:44 | [Mutex] isItemNotified: received:node:9a25f49b-8cb6-4947-b1b1-4816e389b80c:localhost:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:Node 31fc64a3-2c00-4b00-bfad-6730f1e648d2 :: false

2022-10-06 23:13:44 | [Mutex] waiting for: [received:nodes:76c254fd-0d3e-4d2a-bd92-b0086f92f334:localhost]

2022-10-06 23:13:44 | [Mutex] received everything.

2022-10-06 23:13:44 | [Mutex] isItemNotified: received:node:76c254fd-0d3e-4d2a-bd92-b0086f92f334:localhost:node-31fc64a3-2c00-4b00-bfad-6730f1e648d2:Node 31fc64a3-2c00-4b00-bfad-6730f1e648d2 :: false

publishItemsToNodes 0.048s
2022-10-06 23:13:42 |

2022-10-06 23:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:42 | ------------------------------------

2022-10-06 23:13:42 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "entry": "<test>item-1ec04766-0cbd-4370-b91e-9666d00dd14f</test>",
    "item-id": "item-1ec04766-0cbd-4370-b91e-9666d00dd14f"
}

2022-10-06 23:13:42 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1ec04766-0cbd-4370-b91e-9666d00dd14f"
}

2022-10-06 23:13:42 | [Mutex] waiting for: [published:item:notifieditem-1ec04766-0cbd-4370-b91e-9666d00dd14f:admin@test-domain.com]

2022-10-06 23:13:42 | [Mutex] received everything.

2022-10-06 23:13:42 | [Mutex] isItemNotified: published:item:notifieditem-1ec04766-0cbd-4370-b91e-9666d00dd14f:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2022-10-06 23:13:42 |

2022-10-06 23:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:42 | ------------------------------------

2022-10-06 23:13:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "item-id": "item-1ec04766-0cbd-4370-b91e-9666d00dd14f"
}

2022-10-06 23:13:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1ec04766-0cbd-4370-b91e-9666d00dd14f"
}

2022-10-06 23:13:42 | [Mutex] waiting for: [retracted:item:notifieditem-1ec04766-0cbd-4370-b91e-9666d00dd14f:admin@test-domain.com]

2022-10-06 23:13:42 | [Mutex] received everything.

2022-10-06 23:13:42 | [Mutex] isItemNotified: retracted:item:notifieditem-1ec04766-0cbd-4370-b91e-9666d00dd14f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.023s
2022-10-06 23:13:42 |

2022-10-06 23:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:42 | ------------------------------------

2022-10-06 23:13:42 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "item-id": "item-1ec04766-0cbd-4370-b91e-9666d00dd14f"
}

2022-10-06 23:13:42 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "item-id": "item-1ec04766-0cbd-4370-b91e-9666d00dd14f",
    "item": [
        "<item id=\"item-1ec04766-0cbd-4370-b91e-9666d00dd14f\"><test>item-1ec04766-0cbd-4370-b91e-9666d00dd14f</test></item>"
    ]
}

2022-10-06 23:13:42 | [Mutex] notify: [retrieved:item:item-1ec04766-0cbd-4370-b91e-9666d00dd14f:payload-matches:true:localhost]

2022-10-06 23:13:42 | [Mutex] received everything.

2022-10-06 23:13:42 | [Mutex] isItemNotified: retrieved:item:item-1ec04766-0cbd-4370-b91e-9666d00dd14f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-10-06 23:13:42 |

2022-10-06 23:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:42 | ------------------------------------

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

2022-10-06 23:13:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
        "node-bf9d61cc-2807-449e-a005-a143280b86de"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-10-06 23:13:42 |

2022-10-06 23:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:42 | ------------------------------------

2022-10-06 23:13:42 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-31fc64a3-2c00-4b00-bfad-6730f1e648d2)"
}

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

subscribeNodes 1.017s
2022-10-06 23:13:41 |

2022-10-06 23:13:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:41 | ------------------------------------

2022-10-06 23:13:41 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.053s
2022-10-06 23:13:42 |

2022-10-06 23:13:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:13:42 | ------------------------------------

2022-10-06 23:13:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-31fc64a3-2c00-4b00-bfad-6730f1e648d2",
    "jids": [
        "admin@test-domain.com"
    ]
}

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