Generated by TestNG with ReportNG at 21:29 PST on Friday 17 February 2023
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.602s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2023-02-17 21:43:36 |

2023-02-17 21:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:36 | ------------------------------------

2023-02-17 21:43:36 | [Mutex] waiting for: [configured:node:node-26336a04-4db1-4da9-9b6e-146145c4917d:node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2]

2023-02-17 21:43:36 | [Mutex] received everything.

2023-02-17 21:43:36 | [Mutex] isItemNotified: configured:node:node-26336a04-4db1-4da9-9b6e-146145c4917d:node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2 :: true

2023-02-17 21:43:37 | [Mutex] waiting for: [received:nodes:3d2c4765-a1bb-465b-9f78-0601b100ac57:localhost]

2023-02-17 21:43:37 | [Mutex] received everything.

2023-02-17 21:43:37 | [Mutex] isItemNotified: received:node:3d2c4765-a1bb-465b-9f78-0601b100ac57:localhost:node-26336a04-4db1-4da9-9b6e-146145c4917d:Node 26336a04-4db1-4da9-9b6e-146145c4917d :: true

2023-02-17 21:43:37 | [Mutex] waiting for: [received:nodes:9e05d315-4eeb-4ef6-8ca0-8d1789059321:localhost]

2023-02-17 21:43:37 | [Mutex] waiting for: [received:nodes:9e05d315-4eeb-4ef6-8ca0-8d1789059321:localhost]

2023-02-17 21:43:37 | [Mutex] received everything.

2023-02-17 21:43:37 | [Mutex] isItemNotified: received:node:9e05d315-4eeb-4ef6-8ca0-8d1789059321:localhost:node-26336a04-4db1-4da9-9b6e-146145c4917d:Node 26336a04-4db1-4da9-9b6e-146145c4917d :: false

createNodes 1.589s
2023-02-17 21:43:33 |

2023-02-17 21:43:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:33 | ------------------------------------

2023-02-17 21:43:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "pubsub#title": "Node 26336a04-4db1-4da9-9b6e-146145c4917d"
}

2023-02-17 21:43:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:43:35 | [Mutex] waiting for: [received:nodes:84a4b02d-b680-4262-8aab-4f14007fb8df:localhost]

2023-02-17 21:43:35 | [Mutex] waiting for: [received:nodes:84a4b02d-b680-4262-8aab-4f14007fb8df:localhost]

2023-02-17 21:43:35 | [Mutex] waiting for: [received:nodes:84a4b02d-b680-4262-8aab-4f14007fb8df:localhost]

2023-02-17 21:43:35 | [Mutex] waiting for: [received:nodes:84a4b02d-b680-4262-8aab-4f14007fb8df:localhost]

2023-02-17 21:43:35 | [Mutex] received everything.

2023-02-17 21:43:35 | [Mutex] isItemNotified: received:node:84a4b02d-b680-4262-8aab-4f14007fb8df:localhost:node-26336a04-4db1-4da9-9b6e-146145c4917d:Node 26336a04-4db1-4da9-9b6e-146145c4917d :: true

createSubnodes 1.028s
2023-02-17 21:43:35 |

2023-02-17 21:43:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:35 | ------------------------------------

2023-02-17 21:43:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2",
    "pubsub#title": "Node 118e5b1b-19a0-4f88-b4a9-3868e2cad0f2"
}

2023-02-17 21:43:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:43:36 | [Mutex] waiting for: [received:nodes:9003d0d2-ff67-44b6-94c4-bc5d37e54344:localhost]

2023-02-17 21:43:36 | [Mutex] waiting for: [received:nodes:9003d0d2-ff67-44b6-94c4-bc5d37e54344:localhost]

2023-02-17 21:43:36 | [Mutex] waiting for: [received:nodes:9003d0d2-ff67-44b6-94c4-bc5d37e54344:localhost]

2023-02-17 21:43:36 | [Mutex] waiting for: [received:nodes:9003d0d2-ff67-44b6-94c4-bc5d37e54344:localhost]

2023-02-17 21:43:36 | [Mutex] waiting for: [received:nodes:9003d0d2-ff67-44b6-94c4-bc5d37e54344:localhost]

2023-02-17 21:43:36 | [Mutex] received everything.

2023-02-17 21:43:36 | [Mutex] isItemNotified: received:node:9003d0d2-ff67-44b6-94c4-bc5d37e54344:localhost:node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2:Node 118e5b1b-19a0-4f88-b4a9-3868e2cad0f2 :: true

deleteNodes 1.024s
2023-02-17 21:43:40 |

2023-02-17 21:43:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:40 | ------------------------------------

2023-02-17 21:43:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2"
}

2023-02-17 21:43:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:43:41 | [Mutex] waiting for: [received:nodes:484972ae-f086-4c36-b70c-80e47d698404:localhost]

2023-02-17 21:43:41 | [Mutex] waiting for: [received:nodes:484972ae-f086-4c36-b70c-80e47d698404:localhost]

2023-02-17 21:43:41 | [Mutex] waiting for: [received:nodes:484972ae-f086-4c36-b70c-80e47d698404:localhost]

2023-02-17 21:43:41 | [Mutex] received everything.

2023-02-17 21:43:41 | [Mutex] isItemNotified: received:node:484972ae-f086-4c36-b70c-80e47d698404:localhost:node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2:Node 118e5b1b-19a0-4f88-b4a9-3868e2cad0f2 :: false

deleteSubnodes 1.027s
2023-02-17 21:43:39 |

2023-02-17 21:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:39 | ------------------------------------

2023-02-17 21:43:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d"
}

2023-02-17 21:43:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-17 21:43:40 | [Mutex] waiting for: [received:nodes:c3a7da3a-7563-46e4-8215-37070dfda925:localhost]

2023-02-17 21:43:40 | [Mutex] received everything.

2023-02-17 21:43:40 | [Mutex] isItemNotified: received:node:c3a7da3a-7563-46e4-8215-37070dfda925:localhost:node-26336a04-4db1-4da9-9b6e-146145c4917d:Node 26336a04-4db1-4da9-9b6e-146145c4917d :: false

2023-02-17 21:43:40 | [Mutex] waiting for: [received:nodes:e8aee5b6-8244-4fe3-93fe-9dce9187d0c4:localhost]

2023-02-17 21:43:40 | [Mutex] received everything.

2023-02-17 21:43:40 | [Mutex] isItemNotified: received:node:e8aee5b6-8244-4fe3-93fe-9dce9187d0c4:localhost:node-26336a04-4db1-4da9-9b6e-146145c4917d:Node 26336a04-4db1-4da9-9b6e-146145c4917d :: false

publishItemsToNodes 0.045s
2023-02-17 21:43:38 |

2023-02-17 21:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:38 | ------------------------------------

2023-02-17 21:43:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "entry": "<test>item-19908f88-7f50-4008-9762-4066d188adbf</test>",
    "item-id": "item-19908f88-7f50-4008-9762-4066d188adbf"
}

2023-02-17 21:43:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19908f88-7f50-4008-9762-4066d188adbf"
}

2023-02-17 21:43:38 | [Mutex] waiting for: [published:item:notifieditem-19908f88-7f50-4008-9762-4066d188adbf:admin@test-domain.com]

2023-02-17 21:43:38 | [Mutex] received everything.

2023-02-17 21:43:38 | [Mutex] isItemNotified: published:item:notifieditem-19908f88-7f50-4008-9762-4066d188adbf:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-02-17 21:43:38 |

2023-02-17 21:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:38 | ------------------------------------

2023-02-17 21:43:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "item-id": "item-19908f88-7f50-4008-9762-4066d188adbf"
}

2023-02-17 21:43:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-19908f88-7f50-4008-9762-4066d188adbf"
}

2023-02-17 21:43:38 | [Mutex] received everything.

2023-02-17 21:43:38 | [Mutex] isItemNotified: retracted:item:notifieditem-19908f88-7f50-4008-9762-4066d188adbf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2023-02-17 21:43:38 |

2023-02-17 21:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:38 | ------------------------------------

2023-02-17 21:43:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "item-id": "item-19908f88-7f50-4008-9762-4066d188adbf"
}

2023-02-17 21:43:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "item-id": "item-19908f88-7f50-4008-9762-4066d188adbf",
    "item": [
        "<item id=\"item-19908f88-7f50-4008-9762-4066d188adbf\"><test>item-19908f88-7f50-4008-9762-4066d188adbf</test></item>"
    ]
}

2023-02-17 21:43:38 | [Mutex] notify: [retrieved:item:item-19908f88-7f50-4008-9762-4066d188adbf:payload-matches:true:localhost]

2023-02-17 21:43:38 | [Mutex] received everything.

2023-02-17 21:43:38 | [Mutex] isItemNotified: retrieved:item:item-19908f88-7f50-4008-9762-4066d188adbf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-02-17 21:43:38 |

2023-02-17 21:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:38 | ------------------------------------

2023-02-17 21:43:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-02-17 21:43:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-26336a04-4db1-4da9-9b6e-146145c4917d",
        "test",
        "node-118e5b1b-19a0-4f88-b4a9-3868e2cad0f2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2023-02-17 21:43:38 |

2023-02-17 21:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:38 | ------------------------------------

2023-02-17 21:43:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-26336a04-4db1-4da9-9b6e-146145c4917d)"
}

2023-02-17 21:43:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-02-17 21:43:37 |

2023-02-17 21:43:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:37 | ------------------------------------

2023-02-17 21:43:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 21:43:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2023-02-17 21:43:38 |

2023-02-17 21:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-17 21:43:38 | ------------------------------------

2023-02-17 21:43:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-26336a04-4db1-4da9-9b6e-146145c4917d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-17 21:43:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}