Generated by TestNG with ReportNG at 22:17 PDT on Thursday 13 May 2021
root@785cf647a4ab / 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 : 8.986s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.093s
2021-05-13 22:32:51 |

2021-05-13 22:32:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:51 | ------------------------------------

2021-05-13 22:32:51 | [Mutex] waiting for: [configured:node:node-2a5e8909-551b-4d99-896a-9a5773e6af77:node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159]

2021-05-13 22:32:51 | [Mutex] received everything.

2021-05-13 22:32:51 | [Mutex] isItemNotified: configured:node:node-2a5e8909-551b-4d99-896a-9a5773e6af77:node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159 :: true

2021-05-13 22:32:52 | [Mutex] waiting for: [received:nodes:71ef7f60-38b3-4606-b1e4-a013b4f39e9f:localhost]

2021-05-13 22:32:52 | [Mutex] received everything.

2021-05-13 22:32:52 | [Mutex] isItemNotified: received:node:71ef7f60-38b3-4606-b1e4-a013b4f39e9f:localhost:node-2a5e8909-551b-4d99-896a-9a5773e6af77:Node 2a5e8909-551b-4d99-896a-9a5773e6af77 :: true

2021-05-13 22:32:52 | [Mutex] waiting for: [received:nodes:b906100e-ebde-444c-b378-02b661528df3:localhost]

2021-05-13 22:32:52 | [Mutex] received everything.

2021-05-13 22:32:52 | [Mutex] isItemNotified: received:node:b906100e-ebde-444c-b378-02b661528df3:localhost:node-2a5e8909-551b-4d99-896a-9a5773e6af77:Node 2a5e8909-551b-4d99-896a-9a5773e6af77 :: false

createNodes 1.710s
2021-05-13 22:32:48 |

2021-05-13 22:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:48 | ------------------------------------

2021-05-13 22:32:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "pubsub#title": "Node 2a5e8909-551b-4d99-896a-9a5773e6af77"
}

2021-05-13 22:32:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 22:32:50 | [Mutex] waiting for: [received:nodes:0be68e97-eb65-4123-870f-dd1bd2177ee7:localhost]

2021-05-13 22:32:50 | [Mutex] received everything.

2021-05-13 22:32:50 | [Mutex] isItemNotified: received:node:0be68e97-eb65-4123-870f-dd1bd2177ee7:localhost:node-2a5e8909-551b-4d99-896a-9a5773e6af77:Node 2a5e8909-551b-4d99-896a-9a5773e6af77 :: true

createSubnodes 1.033s
2021-05-13 22:32:50 |

2021-05-13 22:32:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:50 | ------------------------------------

2021-05-13 22:32:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159",
    "pubsub#title": "Node a91b9e7a-66a0-4fd7-8cf6-aebcd3371159"
}

2021-05-13 22:32:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 22:32:51 | [Mutex] waiting for: [received:nodes:d952b054-5068-40e7-8a70-0607d6d5e612:localhost]

2021-05-13 22:32:51 | [Mutex] received everything.

2021-05-13 22:32:51 | [Mutex] isItemNotified: received:node:d952b054-5068-40e7-8a70-0607d6d5e612:localhost:node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159:Node a91b9e7a-66a0-4fd7-8cf6-aebcd3371159 :: true

deleteNodes 1.027s
2021-05-13 22:32:55 |

2021-05-13 22:32:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:55 | ------------------------------------

2021-05-13 22:32:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159"
}

2021-05-13 22:32:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 22:32:56 | [Mutex] waiting for: [received:nodes:081caae7-d7e1-4ceb-85bb-00efb31c8a43:localhost]

2021-05-13 22:32:56 | [Mutex] received everything.

2021-05-13 22:32:56 | [Mutex] isItemNotified: received:node:081caae7-d7e1-4ceb-85bb-00efb31c8a43:localhost:node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159:Node a91b9e7a-66a0-4fd7-8cf6-aebcd3371159 :: false

deleteSubnodes 1.030s
2021-05-13 22:32:54 |

2021-05-13 22:32:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:54 | ------------------------------------

2021-05-13 22:32:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77"
}

2021-05-13 22:32:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-13 22:32:55 | [Mutex] waiting for: [received:nodes:3b298dd3-72f1-40e3-84d2-2385554ff6df:localhost]

2021-05-13 22:32:55 | [Mutex] waiting for: [received:nodes:3b298dd3-72f1-40e3-84d2-2385554ff6df:localhost]

2021-05-13 22:32:55 | [Mutex] received everything.

2021-05-13 22:32:55 | [Mutex] isItemNotified: received:node:3b298dd3-72f1-40e3-84d2-2385554ff6df:localhost:node-2a5e8909-551b-4d99-896a-9a5773e6af77:Node 2a5e8909-551b-4d99-896a-9a5773e6af77 :: false

2021-05-13 22:32:55 | [Mutex] waiting for: [received:nodes:5a1fe2e4-786b-450c-89c9-2025f8a93342:localhost]

2021-05-13 22:32:55 | [Mutex] received everything.

2021-05-13 22:32:55 | [Mutex] isItemNotified: received:node:5a1fe2e4-786b-450c-89c9-2025f8a93342:localhost:node-2a5e8909-551b-4d99-896a-9a5773e6af77:Node 2a5e8909-551b-4d99-896a-9a5773e6af77 :: false

publishItemsToNodes 0.051s
2021-05-13 22:32:53 |

2021-05-13 22:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:53 | ------------------------------------

2021-05-13 22:32:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "entry": "<test>item-a96cc9fc-9303-439d-b965-a4694f1e5da3</test>",
    "item-id": "item-a96cc9fc-9303-439d-b965-a4694f1e5da3"
}

2021-05-13 22:32:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a96cc9fc-9303-439d-b965-a4694f1e5da3"
}

2021-05-13 22:32:53 | [Mutex] waiting for: [published:item:notifieditem-a96cc9fc-9303-439d-b965-a4694f1e5da3:admin@test-domain.com]

2021-05-13 22:32:53 | [Mutex] received everything.

2021-05-13 22:32:53 | [Mutex] isItemNotified: published:item:notifieditem-a96cc9fc-9303-439d-b965-a4694f1e5da3:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-05-13 22:32:53 |

2021-05-13 22:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:53 | ------------------------------------

2021-05-13 22:32:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "item-id": "item-a96cc9fc-9303-439d-b965-a4694f1e5da3"
}

2021-05-13 22:32:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-a96cc9fc-9303-439d-b965-a4694f1e5da3"
}

2021-05-13 22:32:53 | [Mutex] received everything.

2021-05-13 22:32:53 | [Mutex] isItemNotified: retracted:item:notifieditem-a96cc9fc-9303-439d-b965-a4694f1e5da3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.061s
2021-05-13 22:32:53 |

2021-05-13 22:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:53 | ------------------------------------

2021-05-13 22:32:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "item-id": "item-a96cc9fc-9303-439d-b965-a4694f1e5da3"
}

2021-05-13 22:32:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "item-id": "item-a96cc9fc-9303-439d-b965-a4694f1e5da3",
    "item": [
        "<item id=\"item-a96cc9fc-9303-439d-b965-a4694f1e5da3\"><test>item-a96cc9fc-9303-439d-b965-a4694f1e5da3</test></item>"
    ]
}

2021-05-13 22:32:53 | [Mutex] notify: [retrieved:item:item-a96cc9fc-9303-439d-b965-a4694f1e5da3:payload-matches:true:localhost]

2021-05-13 22:32:53 | [Mutex] received everything.

2021-05-13 22:32:53 | [Mutex] isItemNotified: retrieved:item:item-a96cc9fc-9303-439d-b965-a4694f1e5da3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-05-13 22:32:53 |

2021-05-13 22:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:53 | ------------------------------------

2021-05-13 22:32:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-13 22:32:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
        "node-a91b9e7a-66a0-4fd7-8cf6-aebcd3371159",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-13 22:32:53 |

2021-05-13 22:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:53 | ------------------------------------

2021-05-13 22:32:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2a5e8909-551b-4d99-896a-9a5773e6af77)"
}

2021-05-13 22:32:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-05-13 22:32:52 |

2021-05-13 22:32:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:52 | ------------------------------------

2021-05-13 22:32:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-13 22:32:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2021-05-13 22:32:53 |

2021-05-13 22:32:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-13 22:32:53 | ------------------------------------

2021-05-13 22:32:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2a5e8909-551b-4d99-896a-9a5773e6af77",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-13 22:32:53 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}