Generated by TestNG with ReportNG at 22:18 PDT on Saturday 25 June 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.621s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.030s
2022-06-25 22:32:21 |

2022-06-25 22:32:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-25 22:32:21 | ------------------------------------

2022-06-25 22:32:21 | [Mutex] waiting for: [configured:node:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:node-867c9db8-9ec0-41aa-8f67-050fdd4f267a]

2022-06-25 22:32:21 | [Mutex] received everything.

2022-06-25 22:32:21 | [Mutex] isItemNotified: configured:node:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:node-867c9db8-9ec0-41aa-8f67-050fdd4f267a :: true

2022-06-25 22:32:22 | [Mutex] waiting for: [received:nodes:f7d5687d-b05e-48aa-b222-7d91de2a162b:localhost]

2022-06-25 22:32:22 | [Mutex] received everything.

2022-06-25 22:32:22 | [Mutex] isItemNotified: received:node:f7d5687d-b05e-48aa-b222-7d91de2a162b:localhost:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:Node 85505d1c-66a8-4d49-a75a-0fe0811c10ff :: true

2022-06-25 22:32:22 | [Mutex] waiting for: [received:nodes:9dce089e-18f7-44ff-a507-bbcfb3bbd94b:localhost]

2022-06-25 22:32:22 | [Mutex] waiting for: [received:nodes:9dce089e-18f7-44ff-a507-bbcfb3bbd94b:localhost]

2022-06-25 22:32:22 | [Mutex] received everything.

2022-06-25 22:32:22 | [Mutex] isItemNotified: received:node:9dce089e-18f7-44ff-a507-bbcfb3bbd94b:localhost:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:Node 85505d1c-66a8-4d49-a75a-0fe0811c10ff :: false

createNodes 1.604s
2022-06-25 22:32:18 |

2022-06-25 22:32:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-25 22:32:18 | ------------------------------------

2022-06-25 22:32:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "pubsub#title": "Node 85505d1c-66a8-4d49-a75a-0fe0811c10ff"
}

2022-06-25 22:32:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-25 22:32:20 | [Mutex] waiting for: [received:nodes:a6a701c2-cf25-4595-9aed-352132ca020e:localhost]

2022-06-25 22:32:20 | [Mutex] waiting for: [received:nodes:a6a701c2-cf25-4595-9aed-352132ca020e:localhost]

2022-06-25 22:32:20 | [Mutex] received everything.

2022-06-25 22:32:20 | [Mutex] isItemNotified: received:node:a6a701c2-cf25-4595-9aed-352132ca020e:localhost:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:Node 85505d1c-66a8-4d49-a75a-0fe0811c10ff :: true

createSubnodes 1.069s
2022-06-25 22:32:20 |

2022-06-25 22:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-25 22:32:20 | ------------------------------------

2022-06-25 22:32:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-867c9db8-9ec0-41aa-8f67-050fdd4f267a",
    "pubsub#title": "Node 867c9db8-9ec0-41aa-8f67-050fdd4f267a"
}

2022-06-25 22:32:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-25 22:32:21 | [Mutex] waiting for: [received:nodes:cd6aa432-d68f-4302-bfe4-481c39d8eab0:localhost]

2022-06-25 22:32:21 | [Mutex] waiting for: [received:nodes:cd6aa432-d68f-4302-bfe4-481c39d8eab0:localhost]

2022-06-25 22:32:21 | [Mutex] received everything.

2022-06-25 22:32:21 | [Mutex] isItemNotified: received:node:cd6aa432-d68f-4302-bfe4-481c39d8eab0:localhost:node-867c9db8-9ec0-41aa-8f67-050fdd4f267a:Node 867c9db8-9ec0-41aa-8f67-050fdd4f267a :: true

deleteNodes 1.027s
2022-06-25 22:32:25 |

2022-06-25 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-25 22:32:25 | ------------------------------------

2022-06-25 22:32:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-867c9db8-9ec0-41aa-8f67-050fdd4f267a"
}

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

2022-06-25 22:32:26 | [Mutex] waiting for: [received:nodes:bab7af96-8170-4ecb-9bc3-e68b1c771cbf:localhost]

2022-06-25 22:32:26 | [Mutex] received everything.

2022-06-25 22:32:26 | [Mutex] isItemNotified: received:node:bab7af96-8170-4ecb-9bc3-e68b1c771cbf:localhost:node-867c9db8-9ec0-41aa-8f67-050fdd4f267a:Node 867c9db8-9ec0-41aa-8f67-050fdd4f267a :: false

deleteSubnodes 1.028s
2022-06-25 22:32:24 |

2022-06-25 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-25 22:32:24 | ------------------------------------

2022-06-25 22:32:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff"
}

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

2022-06-25 22:32:25 | [Mutex] waiting for: [received:nodes:96fd83f1-f7d9-453e-98ab-b053b13dbbe6:localhost]

2022-06-25 22:32:25 | [Mutex] waiting for: [received:nodes:96fd83f1-f7d9-453e-98ab-b053b13dbbe6:localhost]

2022-06-25 22:32:25 | [Mutex] waiting for: [received:nodes:96fd83f1-f7d9-453e-98ab-b053b13dbbe6:localhost]

2022-06-25 22:32:25 | [Mutex] waiting for: [received:nodes:96fd83f1-f7d9-453e-98ab-b053b13dbbe6:localhost]

2022-06-25 22:32:25 | [Mutex] received everything.

2022-06-25 22:32:25 | [Mutex] isItemNotified: received:node:96fd83f1-f7d9-453e-98ab-b053b13dbbe6:localhost:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:Node 85505d1c-66a8-4d49-a75a-0fe0811c10ff :: false

2022-06-25 22:32:25 | [Mutex] waiting for: [received:nodes:f88c4f77-1131-425a-9230-58edaf583404:localhost]

2022-06-25 22:32:25 | [Mutex] received everything.

2022-06-25 22:32:25 | [Mutex] isItemNotified: received:node:f88c4f77-1131-425a-9230-58edaf583404:localhost:node-85505d1c-66a8-4d49-a75a-0fe0811c10ff:Node 85505d1c-66a8-4d49-a75a-0fe0811c10ff :: false

publishItemsToNodes 0.039s
2022-06-25 22:32:23 |

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

2022-06-25 22:32:23 | ------------------------------------

2022-06-25 22:32:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "entry": "<test>item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc</test>",
    "item-id": "item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc"
}

2022-06-25 22:32:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc"
}

2022-06-25 22:32:23 | [Mutex] waiting for: [published:item:notifieditem-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc:admin@test-domain.com]

2022-06-25 22:32:23 | [Mutex] received everything.

2022-06-25 22:32:23 | [Mutex] isItemNotified: published:item:notifieditem-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-25 22:32:23 |

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

2022-06-25 22:32:23 | ------------------------------------

2022-06-25 22:32:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "item-id": "item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc"
}

2022-06-25 22:32:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc"
}

2022-06-25 22:32:23 | [Mutex] received everything.

2022-06-25 22:32:23 | [Mutex] isItemNotified: retracted:item:notifieditem-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2022-06-25 22:32:23 |

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

2022-06-25 22:32:23 | ------------------------------------

2022-06-25 22:32:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "item-id": "item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc"
}

2022-06-25 22:32:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "item-id": "item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc",
    "item": [
        "<item id=\"item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc\"><test>item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc</test></item>"
    ]
}

2022-06-25 22:32:23 | [Mutex] notify: [retrieved:item:item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc:payload-matches:true:localhost]

2022-06-25 22:32:23 | [Mutex] received everything.

2022-06-25 22:32:23 | [Mutex] isItemNotified: retrieved:item:item-71dfd49a-6c19-4c4b-8e73-6f9b3a7742fc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-25 22:32:23 |

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

2022-06-25 22:32:23 | ------------------------------------

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

2022-06-25 22:32:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
        "node-867c9db8-9ec0-41aa-8f67-050fdd4f267a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-25 22:32:23 |

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

2022-06-25 22:32:23 | ------------------------------------

2022-06-25 22:32:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-85505d1c-66a8-4d49-a75a-0fe0811c10ff)"
}

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

subscribeNodes 1.011s
2022-06-25 22:32:22 |

2022-06-25 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-25 22:32:22 | ------------------------------------

2022-06-25 22:32:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-25 22:32:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2022-06-25 22:32:23 |

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

2022-06-25 22:32:23 | ------------------------------------

2022-06-25 22:32:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-85505d1c-66a8-4d49-a75a-0fe0811c10ff",
    "jids": [
        "admin@test-domain.com"
    ]
}

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