Generated by TestNG with ReportNG at 22:16 PDT on Tuesday 11 July 2023
root@1512af24e4a5 / Java 17.0.6 (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.662s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.083s
2023-07-11 22:31:05 |

2023-07-11 22:31:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:05 | ------------------------------------

2023-07-11 22:31:05 | [Mutex] waiting for: [configured:node:node-6b487b8e-9389-4641-b31b-5569753c0861:node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32]

2023-07-11 22:31:05 | [Mutex] received everything.

2023-07-11 22:31:05 | [Mutex] isItemNotified: configured:node:node-6b487b8e-9389-4641-b31b-5569753c0861:node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32 :: true

2023-07-11 22:31:06 | [Mutex] waiting for: [received:nodes:2d4072a7-15d4-494f-805d-680a2f250e0c:localhost]

2023-07-11 22:31:06 | [Mutex] received everything.

2023-07-11 22:31:06 | [Mutex] isItemNotified: received:node:2d4072a7-15d4-494f-805d-680a2f250e0c:localhost:node-6b487b8e-9389-4641-b31b-5569753c0861:Node 6b487b8e-9389-4641-b31b-5569753c0861 :: true

2023-07-11 22:31:06 | [Mutex] waiting for: [received:nodes:d8954320-cdc0-495f-a73d-0e3cf8c1a607:localhost]

2023-07-11 22:31:06 | [Mutex] waiting for: [received:nodes:d8954320-cdc0-495f-a73d-0e3cf8c1a607:localhost]

2023-07-11 22:31:06 | [Mutex] waiting for: [received:nodes:d8954320-cdc0-495f-a73d-0e3cf8c1a607:localhost]

2023-07-11 22:31:06 | [Mutex] received everything.

2023-07-11 22:31:06 | [Mutex] isItemNotified: received:node:d8954320-cdc0-495f-a73d-0e3cf8c1a607:localhost:node-6b487b8e-9389-4641-b31b-5569753c0861:Node 6b487b8e-9389-4641-b31b-5569753c0861 :: false

createNodes 1.689s
2023-07-11 22:31:02 |

2023-07-11 22:31:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:02 | ------------------------------------

2023-07-11 22:31:03 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "pubsub#title": "Node 6b487b8e-9389-4641-b31b-5569753c0861"
}

2023-07-11 22:31:03 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:04 | [Mutex] waiting for: [received:nodes:56df57c6-af09-4672-97da-6e651785d8db:localhost]

2023-07-11 22:31:04 | [Mutex] waiting for: [received:nodes:56df57c6-af09-4672-97da-6e651785d8db:localhost]

2023-07-11 22:31:04 | [Mutex] waiting for: [received:nodes:56df57c6-af09-4672-97da-6e651785d8db:localhost]

2023-07-11 22:31:04 | [Mutex] waiting for: [received:nodes:56df57c6-af09-4672-97da-6e651785d8db:localhost]

2023-07-11 22:31:04 | [Mutex] received everything.

2023-07-11 22:31:04 | [Mutex] isItemNotified: received:node:56df57c6-af09-4672-97da-6e651785d8db:localhost:node-6b487b8e-9389-4641-b31b-5569753c0861:Node 6b487b8e-9389-4641-b31b-5569753c0861 :: true

createSubnodes 1.027s
2023-07-11 22:31:04 |

2023-07-11 22:31:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:04 | ------------------------------------

2023-07-11 22:31:04 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32",
    "pubsub#title": "Node 69e518d4-a4dd-4d1b-beb0-19f9595c6d32"
}

2023-07-11 22:31:04 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:05 | [Mutex] waiting for: [received:nodes:795acbc5-b221-42e7-9b90-327bd4f44169:localhost]

2023-07-11 22:31:05 | [Mutex] waiting for: [received:nodes:795acbc5-b221-42e7-9b90-327bd4f44169:localhost]

2023-07-11 22:31:05 | [Mutex] waiting for: [received:nodes:795acbc5-b221-42e7-9b90-327bd4f44169:localhost]

2023-07-11 22:31:05 | [Mutex] received everything.

2023-07-11 22:31:05 | [Mutex] isItemNotified: received:node:795acbc5-b221-42e7-9b90-327bd4f44169:localhost:node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32:Node 69e518d4-a4dd-4d1b-beb0-19f9595c6d32 :: true

deleteNodes 1.016s
2023-07-11 22:31:09 |

2023-07-11 22:31:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:09 | ------------------------------------

2023-07-11 22:31:09 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32"
}

2023-07-11 22:31:09 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:10 | [Mutex] waiting for: [received:nodes:f2ad5d1e-d243-4646-8c45-244b081ed0ab:localhost]

2023-07-11 22:31:10 | [Mutex] waiting for: [received:nodes:f2ad5d1e-d243-4646-8c45-244b081ed0ab:localhost]

2023-07-11 22:31:10 | [Mutex] waiting for: [received:nodes:f2ad5d1e-d243-4646-8c45-244b081ed0ab:localhost]

2023-07-11 22:31:10 | [Mutex] received everything.

2023-07-11 22:31:10 | [Mutex] isItemNotified: received:node:f2ad5d1e-d243-4646-8c45-244b081ed0ab:localhost:node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32:Node 69e518d4-a4dd-4d1b-beb0-19f9595c6d32 :: false

deleteSubnodes 1.023s
2023-07-11 22:31:08 |

2023-07-11 22:31:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:08 | ------------------------------------

2023-07-11 22:31:08 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861"
}

2023-07-11 22:31:08 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-07-11 22:31:09 | [Mutex] waiting for: [received:nodes:4e0732e6-de3d-4a2c-8f26-903b814cd0ed:localhost]

2023-07-11 22:31:09 | [Mutex] waiting for: [received:nodes:4e0732e6-de3d-4a2c-8f26-903b814cd0ed:localhost]

2023-07-11 22:31:09 | [Mutex] waiting for: [received:nodes:4e0732e6-de3d-4a2c-8f26-903b814cd0ed:localhost]

2023-07-11 22:31:09 | [Mutex] received everything.

2023-07-11 22:31:09 | [Mutex] isItemNotified: received:node:4e0732e6-de3d-4a2c-8f26-903b814cd0ed:localhost:node-6b487b8e-9389-4641-b31b-5569753c0861:Node 6b487b8e-9389-4641-b31b-5569753c0861 :: false

2023-07-11 22:31:09 | [Mutex] waiting for: [received:nodes:47046d1f-d8f6-41e9-9739-38dbb7a7e494:localhost]

2023-07-11 22:31:09 | [Mutex] received everything.

2023-07-11 22:31:09 | [Mutex] isItemNotified: received:node:47046d1f-d8f6-41e9-9739-38dbb7a7e494:localhost:node-6b487b8e-9389-4641-b31b-5569753c0861:Node 6b487b8e-9389-4641-b31b-5569753c0861 :: false

publishItemsToNodes 0.032s
2023-07-11 22:31:07 |

2023-07-11 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:07 | ------------------------------------

2023-07-11 22:31:07 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "entry": "<test>item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2</test>",
    "item-id": "item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2"
}

2023-07-11 22:31:07 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2"
}

2023-07-11 22:31:07 | [Mutex] waiting for: [published:item:notifieditem-c65eff23-3710-4d68-b6bd-8ff17ae02cd2:admin@test-domain.com]

2023-07-11 22:31:07 | [Mutex] received everything.

2023-07-11 22:31:07 | [Mutex] isItemNotified: published:item:notifieditem-c65eff23-3710-4d68-b6bd-8ff17ae02cd2:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-07-11 22:31:07 |

2023-07-11 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:07 | ------------------------------------

2023-07-11 22:31:07 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "item-id": "item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2"
}

2023-07-11 22:31:07 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2"
}

2023-07-11 22:31:07 | [Mutex] received everything.

2023-07-11 22:31:07 | [Mutex] isItemNotified: retracted:item:notifieditem-c65eff23-3710-4d68-b6bd-8ff17ae02cd2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2023-07-11 22:31:07 |

2023-07-11 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:07 | ------------------------------------

2023-07-11 22:31:07 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "item-id": "item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2"
}

2023-07-11 22:31:07 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "item-id": "item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2",
    "item": [
        "<item id=\"item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2\"><test>item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2</test></item>"
    ]
}

2023-07-11 22:31:07 | [Mutex] notify: [retrieved:item:item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2:payload-matches:true:localhost]

2023-07-11 22:31:07 | [Mutex] received everything.

2023-07-11 22:31:07 | [Mutex] isItemNotified: retrieved:item:item-c65eff23-3710-4d68-b6bd-8ff17ae02cd2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2023-07-11 22:31:07 |

2023-07-11 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:07 | ------------------------------------

2023-07-11 22:31:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-07-11 22:31:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6b487b8e-9389-4641-b31b-5569753c0861",
        "node-69e518d4-a4dd-4d1b-beb0-19f9595c6d32"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-07-11 22:31:07 |

2023-07-11 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:07 | ------------------------------------

2023-07-11 22:31:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6b487b8e-9389-4641-b31b-5569753c0861)"
}

2023-07-11 22:31:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-07-11 22:31:06 |

2023-07-11 22:31:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:06 | ------------------------------------

2023-07-11 22:31:06 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-11 22:31:06 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.071s
2023-07-11 22:31:07 |

2023-07-11 22:31:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-07-11 22:31:07 | ------------------------------------

2023-07-11 22:31:07 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6b487b8e-9389-4641-b31b-5569753c0861",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-07-11 22:31:07 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}