Generated by TestNG with ReportNG at 22:52 PDT on Monday 09 May 2022
root@1bc69cf4cb94 / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.808s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-05-09 23:06:18 |

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

2022-05-09 23:06:18 | ------------------------------------

2022-05-09 23:06:18 | [Mutex] waiting for: [configured:node:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:node-7dc974db-763d-4eca-8b1f-9a876dcc787b]

2022-05-09 23:06:19 | [Mutex] received everything.

2022-05-09 23:06:19 | [Mutex] isItemNotified: configured:node:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:node-7dc974db-763d-4eca-8b1f-9a876dcc787b :: true

2022-05-09 23:06:20 | [Mutex] waiting for: [received:nodes:4c16b16a-e09b-4ff4-a1ae-99b7eae43555:localhost]

2022-05-09 23:06:20 | [Mutex] received everything.

2022-05-09 23:06:20 | [Mutex] isItemNotified: received:node:4c16b16a-e09b-4ff4-a1ae-99b7eae43555:localhost:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:Node 4db98b80-38dd-4bce-b9b2-ec8ae9a514da :: true

2022-05-09 23:06:20 | [Mutex] waiting for: [received:nodes:e1d7a619-7a8e-4428-a38f-204dc59e4f55:localhost]

2022-05-09 23:06:20 | [Mutex] received everything.

2022-05-09 23:06:20 | [Mutex] isItemNotified: received:node:e1d7a619-7a8e-4428-a38f-204dc59e4f55:localhost:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:Node 4db98b80-38dd-4bce-b9b2-ec8ae9a514da :: false

createNodes 1.580s
2022-05-09 23:06:16 |

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

2022-05-09 23:06:16 | ------------------------------------

2022-05-09 23:06:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "pubsub#title": "Node 4db98b80-38dd-4bce-b9b2-ec8ae9a514da"
}

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

2022-05-09 23:06:17 | [Mutex] waiting for: [received:nodes:adf98c3c-94d8-4742-8e8c-01c47bfa07c0:localhost]

2022-05-09 23:06:17 | [Mutex] waiting for: [received:nodes:adf98c3c-94d8-4742-8e8c-01c47bfa07c0:localhost]

2022-05-09 23:06:17 | [Mutex] received everything.

2022-05-09 23:06:17 | [Mutex] isItemNotified: received:node:adf98c3c-94d8-4742-8e8c-01c47bfa07c0:localhost:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:Node 4db98b80-38dd-4bce-b9b2-ec8ae9a514da :: true

createSubnodes 1.020s
2022-05-09 23:06:17 |

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

2022-05-09 23:06:17 | ------------------------------------

2022-05-09 23:06:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7dc974db-763d-4eca-8b1f-9a876dcc787b",
    "pubsub#title": "Node 7dc974db-763d-4eca-8b1f-9a876dcc787b"
}

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

2022-05-09 23:06:18 | [Mutex] waiting for: [received:nodes:839ff9a7-42ad-4098-8563-0efa2a83b223:localhost]

2022-05-09 23:06:18 | [Mutex] waiting for: [received:nodes:839ff9a7-42ad-4098-8563-0efa2a83b223:localhost]

2022-05-09 23:06:18 | [Mutex] received everything.

2022-05-09 23:06:18 | [Mutex] isItemNotified: received:node:839ff9a7-42ad-4098-8563-0efa2a83b223:localhost:node-7dc974db-763d-4eca-8b1f-9a876dcc787b:Node 7dc974db-763d-4eca-8b1f-9a876dcc787b :: true

deleteNodes 1.024s
2022-05-09 23:06:23 |

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

2022-05-09 23:06:23 | ------------------------------------

2022-05-09 23:06:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7dc974db-763d-4eca-8b1f-9a876dcc787b"
}

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

2022-05-09 23:06:24 | [Mutex] waiting for: [received:nodes:bf841148-0224-4aee-a2e2-4dfcee262d9c:localhost]

2022-05-09 23:06:24 | [Mutex] waiting for: [received:nodes:bf841148-0224-4aee-a2e2-4dfcee262d9c:localhost]

2022-05-09 23:06:24 | [Mutex] received everything.

2022-05-09 23:06:24 | [Mutex] isItemNotified: received:node:bf841148-0224-4aee-a2e2-4dfcee262d9c:localhost:node-7dc974db-763d-4eca-8b1f-9a876dcc787b:Node 7dc974db-763d-4eca-8b1f-9a876dcc787b :: false

deleteSubnodes 1.028s
2022-05-09 23:06:22 |

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

2022-05-09 23:06:22 | ------------------------------------

2022-05-09 23:06:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da"
}

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

2022-05-09 23:06:23 | [Mutex] waiting for: [received:nodes:f6dd5c8e-2799-4a48-a4d7-31efaed83a4b:localhost]

2022-05-09 23:06:23 | [Mutex] waiting for: [received:nodes:f6dd5c8e-2799-4a48-a4d7-31efaed83a4b:localhost]

2022-05-09 23:06:23 | [Mutex] waiting for: [received:nodes:f6dd5c8e-2799-4a48-a4d7-31efaed83a4b:localhost]

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

2022-05-09 23:06:23 | [Mutex] isItemNotified: received:node:f6dd5c8e-2799-4a48-a4d7-31efaed83a4b:localhost:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:Node 4db98b80-38dd-4bce-b9b2-ec8ae9a514da :: false

2022-05-09 23:06:23 | [Mutex] waiting for: [received:nodes:e4b561ac-2462-4209-8645-e693e15081e0:localhost]

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

2022-05-09 23:06:23 | [Mutex] isItemNotified: received:node:e4b561ac-2462-4209-8645-e693e15081e0:localhost:node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da:Node 4db98b80-38dd-4bce-b9b2-ec8ae9a514da :: false

publishItemsToNodes 0.043s
2022-05-09 23:06:21 |

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

2022-05-09 23:06:21 | ------------------------------------

2022-05-09 23:06:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "entry": "<test>item-6eae9de3-0217-4b70-8370-4158aed955ba</test>",
    "item-id": "item-6eae9de3-0217-4b70-8370-4158aed955ba"
}

2022-05-09 23:06:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6eae9de3-0217-4b70-8370-4158aed955ba"
}

2022-05-09 23:06:21 | [Mutex] waiting for: [published:item:notifieditem-6eae9de3-0217-4b70-8370-4158aed955ba:admin@test-domain.com]

2022-05-09 23:06:21 | [Mutex] received everything.

2022-05-09 23:06:21 | [Mutex] isItemNotified: published:item:notifieditem-6eae9de3-0217-4b70-8370-4158aed955ba:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-05-09 23:06:21 |

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

2022-05-09 23:06:21 | ------------------------------------

2022-05-09 23:06:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "item-id": "item-6eae9de3-0217-4b70-8370-4158aed955ba"
}

2022-05-09 23:06:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6eae9de3-0217-4b70-8370-4158aed955ba"
}

2022-05-09 23:06:21 | [Mutex] received everything.

2022-05-09 23:06:21 | [Mutex] isItemNotified: retracted:item:notifieditem-6eae9de3-0217-4b70-8370-4158aed955ba:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2022-05-09 23:06:21 |

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

2022-05-09 23:06:21 | ------------------------------------

2022-05-09 23:06:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "item-id": "item-6eae9de3-0217-4b70-8370-4158aed955ba"
}

2022-05-09 23:06:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "item-id": "item-6eae9de3-0217-4b70-8370-4158aed955ba",
    "item": [
        "<item id=\"item-6eae9de3-0217-4b70-8370-4158aed955ba\"><test>item-6eae9de3-0217-4b70-8370-4158aed955ba</test></item>"
    ]
}

2022-05-09 23:06:21 | [Mutex] notify: [retrieved:item:item-6eae9de3-0217-4b70-8370-4158aed955ba:payload-matches:true:localhost]

2022-05-09 23:06:21 | [Mutex] received everything.

2022-05-09 23:06:21 | [Mutex] isItemNotified: retrieved:item:item-6eae9de3-0217-4b70-8370-4158aed955ba:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-09 23:06:21 |

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

2022-05-09 23:06:21 | ------------------------------------

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

2022-05-09 23:06:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
        "node-7dc974db-763d-4eca-8b1f-9a876dcc787b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-09 23:06:21 |

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

2022-05-09 23:06:21 | ------------------------------------

2022-05-09 23:06:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da)"
}

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

subscribeNodes 1.010s
2022-05-09 23:06:20 |

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

2022-05-09 23:06:20 | ------------------------------------

2022-05-09 23:06:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.067s
2022-05-09 23:06:21 |

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

2022-05-09 23:06:21 | ------------------------------------

2022-05-09 23:06:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4db98b80-38dd-4bce-b9b2-ec8ae9a514da",
    "jids": [
        "admin@test-domain.com"
    ]
}

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