Generated by TestNG with ReportNG at 07:40 PST on Wednesday 16 February 2022
root@f29ef40080b5 / Java 11.0.8 (Ubuntu) / 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 : 9.129s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.164s
2022-02-16 07:56:07 |

2022-02-16 07:56:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:07 | ------------------------------------

2022-02-16 07:56:07 | [Mutex] waiting for: [configured:node:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5]

2022-02-16 07:56:07 | [Mutex] received everything.

2022-02-16 07:56:07 | [Mutex] isItemNotified: configured:node:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5 :: true

2022-02-16 07:56:08 | [Mutex] waiting for: [received:nodes:9fdbfe54-b8c2-4ab1-af6c-a151952a89d3:localhost]

2022-02-16 07:56:08 | [Mutex] waiting for: [received:nodes:9fdbfe54-b8c2-4ab1-af6c-a151952a89d3:localhost]

2022-02-16 07:56:08 | [Mutex] received everything.

2022-02-16 07:56:08 | [Mutex] isItemNotified: received:node:9fdbfe54-b8c2-4ab1-af6c-a151952a89d3:localhost:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:Node 1c692690-cebe-4f2d-8d9d-aa89b4319223 :: true

2022-02-16 07:56:08 | [Mutex] waiting for: [received:nodes:3db2db85-95a1-4969-a110-fa6e0a182bc7:localhost]

2022-02-16 07:56:08 | [Mutex] received everything.

2022-02-16 07:56:08 | [Mutex] isItemNotified: received:node:3db2db85-95a1-4969-a110-fa6e0a182bc7:localhost:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:Node 1c692690-cebe-4f2d-8d9d-aa89b4319223 :: false

createNodes 1.713s
2022-02-16 07:56:05 |

2022-02-16 07:56:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:05 | ------------------------------------

2022-02-16 07:56:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "pubsub#title": "Node 1c692690-cebe-4f2d-8d9d-aa89b4319223"
}

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

2022-02-16 07:56:06 | [Mutex] waiting for: [received:nodes:e067d0c7-b268-4930-a5f2-05f8d576e71c:localhost]

2022-02-16 07:56:06 | [Mutex] received everything.

2022-02-16 07:56:06 | [Mutex] isItemNotified: received:node:e067d0c7-b268-4930-a5f2-05f8d576e71c:localhost:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:Node 1c692690-cebe-4f2d-8d9d-aa89b4319223 :: true

createSubnodes 1.032s
2022-02-16 07:56:06 |

2022-02-16 07:56:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:06 | ------------------------------------

2022-02-16 07:56:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5",
    "pubsub#title": "Node fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5"
}

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

2022-02-16 07:56:07 | [Mutex] waiting for: [received:nodes:df78b870-789f-416a-b0da-5e2b025ad901:localhost]

2022-02-16 07:56:07 | [Mutex] received everything.

2022-02-16 07:56:07 | [Mutex] isItemNotified: received:node:df78b870-789f-416a-b0da-5e2b025ad901:localhost:node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5:Node fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5 :: true

deleteNodes 1.028s
2022-02-16 07:56:12 |

2022-02-16 07:56:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:12 | ------------------------------------

2022-02-16 07:56:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5"
}

2022-02-16 07:56:12 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 07:56:13 | [Mutex] waiting for: [received:nodes:df687565-d79e-44db-a48a-fd3c953dd383:localhost]

2022-02-16 07:56:13 | [Mutex] received everything.

2022-02-16 07:56:13 | [Mutex] isItemNotified: received:node:df687565-d79e-44db-a48a-fd3c953dd383:localhost:node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5:Node fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5 :: false

deleteSubnodes 1.031s
2022-02-16 07:56:11 |

2022-02-16 07:56:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:11 | ------------------------------------

2022-02-16 07:56:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223"
}

2022-02-16 07:56:11 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 07:56:12 | [Mutex] waiting for: [received:nodes:4b5458b5-889c-4bb3-8ea1-fb4bfdba31ed:localhost]

2022-02-16 07:56:12 | [Mutex] waiting for: [received:nodes:4b5458b5-889c-4bb3-8ea1-fb4bfdba31ed:localhost]

2022-02-16 07:56:12 | [Mutex] received everything.

2022-02-16 07:56:12 | [Mutex] isItemNotified: received:node:4b5458b5-889c-4bb3-8ea1-fb4bfdba31ed:localhost:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:Node 1c692690-cebe-4f2d-8d9d-aa89b4319223 :: false

2022-02-16 07:56:12 | [Mutex] waiting for: [received:nodes:83d32042-3db3-41e9-b031-26dfc08fc4d8:localhost]

2022-02-16 07:56:12 | [Mutex] received everything.

2022-02-16 07:56:12 | [Mutex] isItemNotified: received:node:83d32042-3db3-41e9-b031-26dfc08fc4d8:localhost:node-1c692690-cebe-4f2d-8d9d-aa89b4319223:Node 1c692690-cebe-4f2d-8d9d-aa89b4319223 :: false

publishItemsToNodes 0.048s
2022-02-16 07:56:09 |

2022-02-16 07:56:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:09 | ------------------------------------

2022-02-16 07:56:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "entry": "<test>item-457a2128-1384-46a1-a39f-3ca9d82c0a41</test>",
    "item-id": "item-457a2128-1384-46a1-a39f-3ca9d82c0a41"
}

2022-02-16 07:56:10 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-457a2128-1384-46a1-a39f-3ca9d82c0a41"
}

2022-02-16 07:56:10 | [Mutex] waiting for: [published:item:notifieditem-457a2128-1384-46a1-a39f-3ca9d82c0a41:admin@test-domain.com]

2022-02-16 07:56:10 | [Mutex] received everything.

2022-02-16 07:56:10 | [Mutex] isItemNotified: published:item:notifieditem-457a2128-1384-46a1-a39f-3ca9d82c0a41:admin@test-domain.com :: true

retractItemsFromNodes 0.094s
2022-02-16 07:56:10 |

2022-02-16 07:56:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:10 | ------------------------------------

2022-02-16 07:56:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "item-id": "item-457a2128-1384-46a1-a39f-3ca9d82c0a41"
}

2022-02-16 07:56:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-457a2128-1384-46a1-a39f-3ca9d82c0a41"
}

2022-02-16 07:56:10 | [Mutex] waiting for: [retracted:item:notifieditem-457a2128-1384-46a1-a39f-3ca9d82c0a41:admin@test-domain.com]

2022-02-16 07:56:10 | [Mutex] received everything.

2022-02-16 07:56:10 | [Mutex] isItemNotified: retracted:item:notifieditem-457a2128-1384-46a1-a39f-3ca9d82c0a41:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2022-02-16 07:56:10 |

2022-02-16 07:56:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:10 | ------------------------------------

2022-02-16 07:56:10 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "item-id": "item-457a2128-1384-46a1-a39f-3ca9d82c0a41"
}

2022-02-16 07:56:10 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "item-id": "item-457a2128-1384-46a1-a39f-3ca9d82c0a41",
    "item": [
        "<item id=\"item-457a2128-1384-46a1-a39f-3ca9d82c0a41\"><test>item-457a2128-1384-46a1-a39f-3ca9d82c0a41</test></item>"
    ]
}

2022-02-16 07:56:10 | [Mutex] notify: [retrieved:item:item-457a2128-1384-46a1-a39f-3ca9d82c0a41:payload-matches:true:localhost]

2022-02-16 07:56:10 | [Mutex] received everything.

2022-02-16 07:56:10 | [Mutex] isItemNotified: retrieved:item:item-457a2128-1384-46a1-a39f-3ca9d82c0a41:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-02-16 07:56:10 |

2022-02-16 07:56:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:10 | ------------------------------------

2022-02-16 07:56:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-16 07:56:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
        "test",
        "node-fdf9f5fc-8a9b-4aed-9e27-d2c9b70d0fa5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-16 07:56:10 |

2022-02-16 07:56:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:10 | ------------------------------------

2022-02-16 07:56:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1c692690-cebe-4f2d-8d9d-aa89b4319223)"
}

2022-02-16 07:56:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-02-16 07:56:08 |

2022-02-16 07:56:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:08 | ------------------------------------

2022-02-16 07:56:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-16 07:56:08 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-02-16 07:56:10 |

2022-02-16 07:56:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 07:56:10 | ------------------------------------

2022-02-16 07:56:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1c692690-cebe-4f2d-8d9d-aa89b4319223",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-16 07:56:10 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}