Generated by TestNG with ReportNG at 22:28 PDT on Wednesday 26 May 2021
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 : 8.974s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.128s
2021-05-26 22:43:51 |

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

2021-05-26 22:43:51 | ------------------------------------

2021-05-26 22:43:51 | [Mutex] waiting for: [configured:node:node-deb41039-5eef-451a-8092-57668ec70172:node-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4]

2021-05-26 22:43:51 | [Mutex] received everything.

2021-05-26 22:43:51 | [Mutex] isItemNotified: configured:node:node-deb41039-5eef-451a-8092-57668ec70172:node-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4 :: true

2021-05-26 22:43:53 | [Mutex] waiting for: [received:nodes:c598fc3f-e285-452e-a285-d82c664125ff:localhost]

2021-05-26 22:43:53 | [Mutex] received everything.

2021-05-26 22:43:53 | [Mutex] isItemNotified: received:node:c598fc3f-e285-452e-a285-d82c664125ff:localhost:node-deb41039-5eef-451a-8092-57668ec70172:Node deb41039-5eef-451a-8092-57668ec70172 :: true

2021-05-26 22:43:53 | [Mutex] waiting for: [received:nodes:f80efab1-c71c-4c56-8286-89dc844a3057:localhost]

2021-05-26 22:43:53 | [Mutex] received everything.

2021-05-26 22:43:53 | [Mutex] isItemNotified: received:node:f80efab1-c71c-4c56-8286-89dc844a3057:localhost:node-deb41039-5eef-451a-8092-57668ec70172:Node deb41039-5eef-451a-8092-57668ec70172 :: false

createNodes 1.518s
2021-05-26 22:43:49 |

2021-05-26 22:43:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:43:49 | ------------------------------------

2021-05-26 22:43: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-deb41039-5eef-451a-8092-57668ec70172",
    "pubsub#title": "Node deb41039-5eef-451a-8092-57668ec70172"
}

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

2021-05-26 22:43:50 | [Mutex] waiting for: [received:nodes:21f493a0-729d-4705-8646-420f9c108bcf:localhost]

2021-05-26 22:43:50 | [Mutex] received everything.

2021-05-26 22:43:50 | [Mutex] isItemNotified: received:node:21f493a0-729d-4705-8646-420f9c108bcf:localhost:node-deb41039-5eef-451a-8092-57668ec70172:Node deb41039-5eef-451a-8092-57668ec70172 :: true

createSubnodes 1.029s
2021-05-26 22:43:50 |

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

2021-05-26 22:43:50 | ------------------------------------

2021-05-26 22:43: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-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4",
    "pubsub#title": "Node ce5e34fc-ad82-438f-b5fc-eb92c5432fc4"
}

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

2021-05-26 22:43:51 | [Mutex] waiting for: [received:nodes:d0baea7f-4679-4bcf-9c61-af93b7e5b6d4:localhost]

2021-05-26 22:43:51 | [Mutex] received everything.

2021-05-26 22:43:51 | [Mutex] isItemNotified: received:node:d0baea7f-4679-4bcf-9c61-af93b7e5b6d4:localhost:node-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4:Node ce5e34fc-ad82-438f-b5fc-eb92c5432fc4 :: true

deleteNodes 1.024s
2021-05-26 22:43:56 |

2021-05-26 22:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-26 22:43:56 | ------------------------------------

2021-05-26 22:43:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4"
}

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

2021-05-26 22:43:57 | [Mutex] waiting for: [received:nodes:4357d517-f3d5-499b-8831-0232c1ef0333:localhost]

2021-05-26 22:43:57 | [Mutex] received everything.

2021-05-26 22:43:57 | [Mutex] isItemNotified: received:node:4357d517-f3d5-499b-8831-0232c1ef0333:localhost:node-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4:Node ce5e34fc-ad82-438f-b5fc-eb92c5432fc4 :: false

deleteSubnodes 1.028s
2021-05-26 22:43:55 |

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

2021-05-26 22:43:55 | ------------------------------------

2021-05-26 22:43:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-deb41039-5eef-451a-8092-57668ec70172"
}

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

2021-05-26 22:43:56 | [Mutex] waiting for: [received:nodes:9499ef75-4b55-4714-8d7e-dea77a45d20e:localhost]

2021-05-26 22:43:56 | [Mutex] received everything.

2021-05-26 22:43:56 | [Mutex] isItemNotified: received:node:9499ef75-4b55-4714-8d7e-dea77a45d20e:localhost:node-deb41039-5eef-451a-8092-57668ec70172:Node deb41039-5eef-451a-8092-57668ec70172 :: false

2021-05-26 22:43:56 | [Mutex] waiting for: [received:nodes:e9b06845-d07a-4b36-aa45-dab15249747b:localhost]

2021-05-26 22:43:56 | [Mutex] received everything.

2021-05-26 22:43:56 | [Mutex] isItemNotified: received:node:e9b06845-d07a-4b36-aa45-dab15249747b:localhost:node-deb41039-5eef-451a-8092-57668ec70172:Node deb41039-5eef-451a-8092-57668ec70172 :: false

publishItemsToNodes 0.039s
2021-05-26 22:43:54 |

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

2021-05-26 22:43:54 | ------------------------------------

2021-05-26 22:43:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-deb41039-5eef-451a-8092-57668ec70172",
    "entry": "<test>item-340344bc-6de2-40c9-9edf-4794131933c2</test>",
    "item-id": "item-340344bc-6de2-40c9-9edf-4794131933c2"
}

2021-05-26 22:43:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-340344bc-6de2-40c9-9edf-4794131933c2"
}

2021-05-26 22:43:54 | [Mutex] waiting for: [published:item:notifieditem-340344bc-6de2-40c9-9edf-4794131933c2:admin@test-domain.com]

2021-05-26 22:43:54 | [Mutex] received everything.

2021-05-26 22:43:54 | [Mutex] isItemNotified: published:item:notifieditem-340344bc-6de2-40c9-9edf-4794131933c2:admin@test-domain.com :: true

retractItemsFromNodes 0.111s
2021-05-26 22:43:54 |

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

2021-05-26 22:43:54 | ------------------------------------

2021-05-26 22:43:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-deb41039-5eef-451a-8092-57668ec70172",
    "item-id": "item-340344bc-6de2-40c9-9edf-4794131933c2"
}

2021-05-26 22:43:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-340344bc-6de2-40c9-9edf-4794131933c2"
}

2021-05-26 22:43:54 | [Mutex] waiting for: [retracted:item:notifieditem-340344bc-6de2-40c9-9edf-4794131933c2:admin@test-domain.com]

2021-05-26 22:43:54 | [Mutex] received everything.

2021-05-26 22:43:54 | [Mutex] isItemNotified: retracted:item:notifieditem-340344bc-6de2-40c9-9edf-4794131933c2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2021-05-26 22:43:54 |

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

2021-05-26 22:43:54 | ------------------------------------

2021-05-26 22:43:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-deb41039-5eef-451a-8092-57668ec70172",
    "item-id": "item-340344bc-6de2-40c9-9edf-4794131933c2"
}

2021-05-26 22:43:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-deb41039-5eef-451a-8092-57668ec70172",
    "item-id": "item-340344bc-6de2-40c9-9edf-4794131933c2",
    "item": [
        "<item id=\"item-340344bc-6de2-40c9-9edf-4794131933c2\"><test>item-340344bc-6de2-40c9-9edf-4794131933c2</test></item>"
    ]
}

2021-05-26 22:43:54 | [Mutex] notify: [retrieved:item:item-340344bc-6de2-40c9-9edf-4794131933c2:payload-matches:true:localhost]

2021-05-26 22:43:54 | [Mutex] received everything.

2021-05-26 22:43:54 | [Mutex] isItemNotified: retrieved:item:item-340344bc-6de2-40c9-9edf-4794131933c2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2021-05-26 22:43:54 |

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

2021-05-26 22:43:54 | ------------------------------------

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

2021-05-26 22:43:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ce5e34fc-ad82-438f-b5fc-eb92c5432fc4",
        "test",
        "node-deb41039-5eef-451a-8092-57668ec70172"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-26 22:43:54 |

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

2021-05-26 22:43:54 | ------------------------------------

2021-05-26 22:43:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-deb41039-5eef-451a-8092-57668ec70172)"
}

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

subscribeNodes 1.010s
2021-05-26 22:43:53 |

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

2021-05-26 22:43:53 | ------------------------------------

2021-05-26 22:43:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-deb41039-5eef-451a-8092-57668ec70172",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.015s
2021-05-26 22:43:54 |

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

2021-05-26 22:43:54 | ------------------------------------

2021-05-26 22:43:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-deb41039-5eef-451a-8092-57668ec70172",
    "jids": [
        "admin@test-domain.com"
    ]
}

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