Generated by TestNG with ReportNG at 22:46 PDT on Thursday 30 June 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.639s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.035s
2022-06-30 23:02:10 |

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

2022-06-30 23:02:10 | ------------------------------------

2022-06-30 23:02:10 | [Mutex] waiting for: [configured:node:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:node-c883fe1f-e498-4c8a-8467-69f47f824023]

2022-06-30 23:02:10 | [Mutex] received everything.

2022-06-30 23:02:10 | [Mutex] isItemNotified: configured:node:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:node-c883fe1f-e498-4c8a-8467-69f47f824023 :: true

2022-06-30 23:02:11 | [Mutex] waiting for: [received:nodes:93cf5229-e42e-4a7f-abd2-f62bbded186b:localhost]

2022-06-30 23:02:11 | [Mutex] received everything.

2022-06-30 23:02:11 | [Mutex] isItemNotified: received:node:93cf5229-e42e-4a7f-abd2-f62bbded186b:localhost:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:Node 2fccdbaa-bbaa-4163-a9ea-a4b6c1854657 :: true

2022-06-30 23:02:11 | [Mutex] waiting for: [received:nodes:f7561a73-00c0-4527-b24b-810607b87f1c:localhost]

2022-06-30 23:02:11 | [Mutex] received everything.

2022-06-30 23:02:11 | [Mutex] isItemNotified: received:node:f7561a73-00c0-4527-b24b-810607b87f1c:localhost:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:Node 2fccdbaa-bbaa-4163-a9ea-a4b6c1854657 :: false

createNodes 1.583s
2022-06-30 23:02:08 |

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

2022-06-30 23:02:08 | ------------------------------------

2022-06-30 23:02:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "pubsub#title": "Node 2fccdbaa-bbaa-4163-a9ea-a4b6c1854657"
}

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

2022-06-30 23:02:09 | [Mutex] waiting for: [received:nodes:4d0da305-6a2a-4509-9818-f510931ca922:localhost]

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

2022-06-30 23:02:09 | [Mutex] isItemNotified: received:node:4d0da305-6a2a-4509-9818-f510931ca922:localhost:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:Node 2fccdbaa-bbaa-4163-a9ea-a4b6c1854657 :: true

createSubnodes 1.029s
2022-06-30 23:02:09 |

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

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

2022-06-30 23:02:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c883fe1f-e498-4c8a-8467-69f47f824023",
    "pubsub#title": "Node c883fe1f-e498-4c8a-8467-69f47f824023"
}

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

2022-06-30 23:02:10 | [Mutex] waiting for: [received:nodes:8c9d9ccb-2549-46a6-bbf9-d20a19b4d3c9:localhost]

2022-06-30 23:02:10 | [Mutex] received everything.

2022-06-30 23:02:10 | [Mutex] isItemNotified: received:node:8c9d9ccb-2549-46a6-bbf9-d20a19b4d3c9:localhost:node-c883fe1f-e498-4c8a-8467-69f47f824023:Node c883fe1f-e498-4c8a-8467-69f47f824023 :: true

deleteNodes 1.024s
2022-06-30 23:02:15 |

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

2022-06-30 23:02:15 | ------------------------------------

2022-06-30 23:02:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c883fe1f-e498-4c8a-8467-69f47f824023"
}

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

2022-06-30 23:02:16 | [Mutex] waiting for: [received:nodes:62f5ad90-a720-403f-81cd-47bfbd95a102:localhost]

2022-06-30 23:02:16 | [Mutex] waiting for: [received:nodes:62f5ad90-a720-403f-81cd-47bfbd95a102:localhost]

2022-06-30 23:02:16 | [Mutex] received everything.

2022-06-30 23:02:16 | [Mutex] isItemNotified: received:node:62f5ad90-a720-403f-81cd-47bfbd95a102:localhost:node-c883fe1f-e498-4c8a-8467-69f47f824023:Node c883fe1f-e498-4c8a-8467-69f47f824023 :: false

deleteSubnodes 1.067s
2022-06-30 23:02:14 |

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

2022-06-30 23:02:14 | ------------------------------------

2022-06-30 23:02:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657"
}

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

2022-06-30 23:02:15 | [Mutex] waiting for: [received:nodes:4483e44f-2b04-435d-bf53-b1bbd387daa4:localhost]

2022-06-30 23:02:15 | [Mutex] waiting for: [received:nodes:4483e44f-2b04-435d-bf53-b1bbd387daa4:localhost]

2022-06-30 23:02:15 | [Mutex] received everything.

2022-06-30 23:02:15 | [Mutex] isItemNotified: received:node:4483e44f-2b04-435d-bf53-b1bbd387daa4:localhost:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:Node 2fccdbaa-bbaa-4163-a9ea-a4b6c1854657 :: false

2022-06-30 23:02:15 | [Mutex] waiting for: [received:nodes:fa93aa07-9a14-41e8-bb79-547a89dd0111:localhost]

2022-06-30 23:02:15 | [Mutex] received everything.

2022-06-30 23:02:15 | [Mutex] isItemNotified: received:node:fa93aa07-9a14-41e8-bb79-547a89dd0111:localhost:node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657:Node 2fccdbaa-bbaa-4163-a9ea-a4b6c1854657 :: false

publishItemsToNodes 0.066s
2022-06-30 23:02:12 |

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

2022-06-30 23:02:12 | ------------------------------------

2022-06-30 23:02:12 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "entry": "<test>item-879691ef-040a-436b-b86b-74007ccdb2fb</test>",
    "item-id": "item-879691ef-040a-436b-b86b-74007ccdb2fb"
}

2022-06-30 23:02:12 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-879691ef-040a-436b-b86b-74007ccdb2fb"
}

2022-06-30 23:02:12 | [Mutex] waiting for: [published:item:notifieditem-879691ef-040a-436b-b86b-74007ccdb2fb:admin@test-domain.com]

2022-06-30 23:02:12 | [Mutex] received everything.

2022-06-30 23:02:12 | [Mutex] isItemNotified: published:item:notifieditem-879691ef-040a-436b-b86b-74007ccdb2fb:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-06-30 23:02:12 |

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

2022-06-30 23:02:12 | ------------------------------------

2022-06-30 23:02:12 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "item-id": "item-879691ef-040a-436b-b86b-74007ccdb2fb"
}

2022-06-30 23:02:12 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-879691ef-040a-436b-b86b-74007ccdb2fb"
}

2022-06-30 23:02:12 | [Mutex] received everything.

2022-06-30 23:02:12 | [Mutex] isItemNotified: retracted:item:notifieditem-879691ef-040a-436b-b86b-74007ccdb2fb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.046s
2022-06-30 23:02:12 |

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

2022-06-30 23:02:12 | ------------------------------------

2022-06-30 23:02:12 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "item-id": "item-879691ef-040a-436b-b86b-74007ccdb2fb"
}

2022-06-30 23:02:12 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "item-id": "item-879691ef-040a-436b-b86b-74007ccdb2fb",
    "item": [
        "<item id=\"item-879691ef-040a-436b-b86b-74007ccdb2fb\"><test>item-879691ef-040a-436b-b86b-74007ccdb2fb</test></item>"
    ]
}

2022-06-30 23:02:12 | [Mutex] notify: [retrieved:item:item-879691ef-040a-436b-b86b-74007ccdb2fb:payload-matches:true:localhost]

2022-06-30 23:02:12 | [Mutex] received everything.

2022-06-30 23:02:12 | [Mutex] isItemNotified: retrieved:item:item-879691ef-040a-436b-b86b-74007ccdb2fb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-06-30 23:02:12 |

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

2022-06-30 23:02:12 | ------------------------------------

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

2022-06-30 23:02:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-c883fe1f-e498-4c8a-8467-69f47f824023",
        "test",
        "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-06-30 23:02:12 |

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

2022-06-30 23:02:12 | ------------------------------------

2022-06-30 23:02:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657)"
}

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

subscribeNodes 1.010s
2022-06-30 23:02:11 |

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

2022-06-30 23:02:11 | ------------------------------------

2022-06-30 23:02:11 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.080s
2022-06-30 23:02:12 |

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

2022-06-30 23:02:12 | ------------------------------------

2022-06-30 23:02:12 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2fccdbaa-bbaa-4163-a9ea-a4b6c1854657",
    "jids": [
        "admin@test-domain.com"
    ]
}

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