Generated by TestNG with ReportNG at 23:01 PDT on Monday 06 June 2022
root@21fb2cc9076b / 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.735s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2022-06-06 23:15:53 |

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

2022-06-06 23:15:53 | ------------------------------------

2022-06-06 23:15:53 | [Mutex] waiting for: [configured:node:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:node-bab7751a-e42d-4191-a448-687e0715f7bc]

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

2022-06-06 23:15:53 | [Mutex] isItemNotified: configured:node:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:node-bab7751a-e42d-4191-a448-687e0715f7bc :: true

2022-06-06 23:15:54 | [Mutex] waiting for: [received:nodes:e00ad2ab-71b7-492c-a6b7-4735ac23dfad:localhost]

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

2022-06-06 23:15:54 | [Mutex] isItemNotified: received:node:e00ad2ab-71b7-492c-a6b7-4735ac23dfad:localhost:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:Node 152bf1c6-04e2-436d-97e8-3b25571f9aff :: true

2022-06-06 23:15:54 | [Mutex] waiting for: [received:nodes:09bac93f-00c7-4690-87ae-d03e432006c7:localhost]

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

2022-06-06 23:15:54 | [Mutex] isItemNotified: received:node:09bac93f-00c7-4690-87ae-d03e432006c7:localhost:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:Node 152bf1c6-04e2-436d-97e8-3b25571f9aff :: false

createNodes 1.684s
2022-06-06 23:15:50 |

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

2022-06-06 23:15:50 | ------------------------------------

2022-06-06 23:15:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "pubsub#title": "Node 152bf1c6-04e2-436d-97e8-3b25571f9aff"
}

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

2022-06-06 23:15:52 | [Mutex] waiting for: [received:nodes:20abef64-ef4f-4c9c-a78b-12d65afa0477:localhost]

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

2022-06-06 23:15:52 | [Mutex] isItemNotified: received:node:20abef64-ef4f-4c9c-a78b-12d65afa0477:localhost:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:Node 152bf1c6-04e2-436d-97e8-3b25571f9aff :: true

createSubnodes 1.024s
2022-06-06 23:15:52 |

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

2022-06-06 23:15:52 | ------------------------------------

2022-06-06 23:15:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-bab7751a-e42d-4191-a448-687e0715f7bc",
    "pubsub#title": "Node bab7751a-e42d-4191-a448-687e0715f7bc"
}

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

2022-06-06 23:15:53 | [Mutex] waiting for: [received:nodes:98f37b7f-448e-4911-9d9f-66f8c8417d7c:localhost]

2022-06-06 23:15:53 | [Mutex] waiting for: [received:nodes:98f37b7f-448e-4911-9d9f-66f8c8417d7c:localhost]

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

2022-06-06 23:15:53 | [Mutex] isItemNotified: received:node:98f37b7f-448e-4911-9d9f-66f8c8417d7c:localhost:node-bab7751a-e42d-4191-a448-687e0715f7bc:Node bab7751a-e42d-4191-a448-687e0715f7bc :: true

deleteNodes 1.024s
2022-06-06 23:15:57 |

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

2022-06-06 23:15:57 | ------------------------------------

2022-06-06 23:15:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bab7751a-e42d-4191-a448-687e0715f7bc"
}

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

2022-06-06 23:15:58 | [Mutex] waiting for: [received:nodes:fa21fade-6178-421c-a55d-985c6af528df:localhost]

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

2022-06-06 23:15:58 | [Mutex] isItemNotified: received:node:fa21fade-6178-421c-a55d-985c6af528df:localhost:node-bab7751a-e42d-4191-a448-687e0715f7bc:Node bab7751a-e42d-4191-a448-687e0715f7bc :: false

deleteSubnodes 1.024s
2022-06-06 23:15:56 |

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

2022-06-06 23:15:56 | ------------------------------------

2022-06-06 23:15:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff"
}

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

2022-06-06 23:15:57 | [Mutex] waiting for: [received:nodes:522cd3de-cb77-46ba-acde-78170c8cb3aa:localhost]

2022-06-06 23:15:57 | [Mutex] waiting for: [received:nodes:522cd3de-cb77-46ba-acde-78170c8cb3aa:localhost]

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

2022-06-06 23:15:57 | [Mutex] isItemNotified: received:node:522cd3de-cb77-46ba-acde-78170c8cb3aa:localhost:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:Node 152bf1c6-04e2-436d-97e8-3b25571f9aff :: false

2022-06-06 23:15:57 | [Mutex] waiting for: [received:nodes:8c61bdaf-2b63-47c4-96f4-31fd86d46d5a:localhost]

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

2022-06-06 23:15:57 | [Mutex] isItemNotified: received:node:8c61bdaf-2b63-47c4-96f4-31fd86d46d5a:localhost:node-152bf1c6-04e2-436d-97e8-3b25571f9aff:Node 152bf1c6-04e2-436d-97e8-3b25571f9aff :: false

publishItemsToNodes 0.026s
2022-06-06 23:15:55 |

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

2022-06-06 23:15:55 | ------------------------------------

2022-06-06 23:15:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "entry": "<test>item-24c7c340-3561-44f6-a844-de3a4dad36cf</test>",
    "item-id": "item-24c7c340-3561-44f6-a844-de3a4dad36cf"
}

2022-06-06 23:15:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-24c7c340-3561-44f6-a844-de3a4dad36cf"
}

2022-06-06 23:15:55 | [Mutex] waiting for: [published:item:notifieditem-24c7c340-3561-44f6-a844-de3a4dad36cf:admin@test-domain.com]

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

2022-06-06 23:15:55 | [Mutex] isItemNotified: published:item:notifieditem-24c7c340-3561-44f6-a844-de3a4dad36cf:admin@test-domain.com :: true

retractItemsFromNodes 0.105s
2022-06-06 23:15:55 |

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

2022-06-06 23:15:55 | ------------------------------------

2022-06-06 23:15:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "item-id": "item-24c7c340-3561-44f6-a844-de3a4dad36cf"
}

2022-06-06 23:15:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-24c7c340-3561-44f6-a844-de3a4dad36cf"
}

2022-06-06 23:15:55 | [Mutex] waiting for: [retracted:item:notifieditem-24c7c340-3561-44f6-a844-de3a4dad36cf:admin@test-domain.com]

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

2022-06-06 23:15:55 | [Mutex] isItemNotified: retracted:item:notifieditem-24c7c340-3561-44f6-a844-de3a4dad36cf:admin@test-domain.com :: true

retrieveItemsFromNodes 0.083s
2022-06-06 23:15:55 |

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

2022-06-06 23:15:55 | ------------------------------------

2022-06-06 23:15:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "item-id": "item-24c7c340-3561-44f6-a844-de3a4dad36cf"
}

2022-06-06 23:15:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "item-id": "item-24c7c340-3561-44f6-a844-de3a4dad36cf",
    "item": [
        "<item id=\"item-24c7c340-3561-44f6-a844-de3a4dad36cf\"><test>item-24c7c340-3561-44f6-a844-de3a4dad36cf</test></item>"
    ]
}

2022-06-06 23:15:55 | [Mutex] notify: [retrieved:item:item-24c7c340-3561-44f6-a844-de3a4dad36cf:payload-matches:true:localhost]

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

2022-06-06 23:15:55 | [Mutex] isItemNotified: retrieved:item:item-24c7c340-3561-44f6-a844-de3a4dad36cf:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-06-06 23:15:55 |

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

2022-06-06 23:15:55 | ------------------------------------

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

2022-06-06 23:15:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
        "node-bab7751a-e42d-4191-a448-687e0715f7bc",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-06 23:15:55 |

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

2022-06-06 23:15:55 | ------------------------------------

2022-06-06 23:15:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-152bf1c6-04e2-436d-97e8-3b25571f9aff)"
}

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

subscribeNodes 1.010s
2022-06-06 23:15:54 |

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

2022-06-06 23:15:54 | ------------------------------------

2022-06-06 23:15:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.010s
2022-06-06 23:15:55 |

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

2022-06-06 23:15:55 | ------------------------------------

2022-06-06 23:15:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-152bf1c6-04e2-436d-97e8-3b25571f9aff",
    "jids": [
        "admin@test-domain.com"
    ]
}

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