Generated by TestNG with ReportNG at 21:21 PST on Monday 30 November 2020
root@43fec6d4badf / 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.102s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2020-11-30 21:37:51 |

2020-11-30 21:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:51 | ------------------------------------

2020-11-30 21:37:51 | [Mutex] waiting for: [configured:node:node-c3354c45-b22d-472c-bcdb-e0de89e862be:node-95c1b059-cc4a-4ddd-b234-9bbb41bdada6]

2020-11-30 21:37:51 | [Mutex] received everything.

2020-11-30 21:37:51 | [Mutex] isItemNotified: configured:node:node-c3354c45-b22d-472c-bcdb-e0de89e862be:node-95c1b059-cc4a-4ddd-b234-9bbb41bdada6 :: true

2020-11-30 21:37:52 | [Mutex] waiting for: [received:nodes:e99dd26f-f580-48a2-bf22-55f666be7f3b:localhost]

2020-11-30 21:37:52 | [Mutex] received everything.

2020-11-30 21:37:52 | [Mutex] isItemNotified: received:node:e99dd26f-f580-48a2-bf22-55f666be7f3b:localhost:node-c3354c45-b22d-472c-bcdb-e0de89e862be:Node c3354c45-b22d-472c-bcdb-e0de89e862be :: true

2020-11-30 21:37:52 | [Mutex] waiting for: [received:nodes:838962fe-212b-4961-a4d8-3461024c5ffd:localhost]

2020-11-30 21:37:52 | [Mutex] received everything.

2020-11-30 21:37:52 | [Mutex] isItemNotified: received:node:838962fe-212b-4961-a4d8-3461024c5ffd:localhost:node-c3354c45-b22d-472c-bcdb-e0de89e862be:Node c3354c45-b22d-472c-bcdb-e0de89e862be :: false

createNodes 1.726s
2020-11-30 21:37:49 |

2020-11-30 21:37:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:49 | ------------------------------------

2020-11-30 21:37: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-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "pubsub#title": "Node c3354c45-b22d-472c-bcdb-e0de89e862be"
}

2020-11-30 21:37:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:37:50 | [Mutex] waiting for: [received:nodes:0cbd42e5-97ba-4227-b28f-e4b4c9a39db6:localhost]

2020-11-30 21:37:50 | [Mutex] received everything.

2020-11-30 21:37:50 | [Mutex] isItemNotified: received:node:0cbd42e5-97ba-4227-b28f-e4b4c9a39db6:localhost:node-c3354c45-b22d-472c-bcdb-e0de89e862be:Node c3354c45-b22d-472c-bcdb-e0de89e862be :: true

createSubnodes 1.024s
2020-11-30 21:37:50 |

2020-11-30 21:37:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:50 | ------------------------------------

2020-11-30 21:37: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-95c1b059-cc4a-4ddd-b234-9bbb41bdada6",
    "pubsub#title": "Node 95c1b059-cc4a-4ddd-b234-9bbb41bdada6"
}

2020-11-30 21:37:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:37:51 | [Mutex] waiting for: [received:nodes:6c15d263-3e0f-448f-9f25-f56887f8255c:localhost]

2020-11-30 21:37:51 | [Mutex] received everything.

2020-11-30 21:37:51 | [Mutex] isItemNotified: received:node:6c15d263-3e0f-448f-9f25-f56887f8255c:localhost:node-95c1b059-cc4a-4ddd-b234-9bbb41bdada6:Node 95c1b059-cc4a-4ddd-b234-9bbb41bdada6 :: true

deleteNodes 1.027s
2020-11-30 21:37:56 |

2020-11-30 21:37:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:56 | ------------------------------------

2020-11-30 21:37:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-95c1b059-cc4a-4ddd-b234-9bbb41bdada6"
}

2020-11-30 21:37:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:37:57 | [Mutex] waiting for: [received:nodes:f184490d-a8e8-4370-ae9e-3a22e14d1c88:localhost]

2020-11-30 21:37:57 | [Mutex] received everything.

2020-11-30 21:37:57 | [Mutex] isItemNotified: received:node:f184490d-a8e8-4370-ae9e-3a22e14d1c88:localhost:node-95c1b059-cc4a-4ddd-b234-9bbb41bdada6:Node 95c1b059-cc4a-4ddd-b234-9bbb41bdada6 :: false

deleteSubnodes 1.029s
2020-11-30 21:37:55 |

2020-11-30 21:37:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:55 | ------------------------------------

2020-11-30 21:37:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be"
}

2020-11-30 21:37:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-30 21:37:56 | [Mutex] waiting for: [received:nodes:53e96669-3150-410f-a323-f2990bc3cafe:localhost]

2020-11-30 21:37:56 | [Mutex] received everything.

2020-11-30 21:37:56 | [Mutex] isItemNotified: received:node:53e96669-3150-410f-a323-f2990bc3cafe:localhost:node-c3354c45-b22d-472c-bcdb-e0de89e862be:Node c3354c45-b22d-472c-bcdb-e0de89e862be :: false

2020-11-30 21:37:56 | [Mutex] waiting for: [received:nodes:319943db-cbbf-4e4c-a229-8e8260773a74:localhost]

2020-11-30 21:37:56 | [Mutex] received everything.

2020-11-30 21:37:56 | [Mutex] isItemNotified: received:node:319943db-cbbf-4e4c-a229-8e8260773a74:localhost:node-c3354c45-b22d-472c-bcdb-e0de89e862be:Node c3354c45-b22d-472c-bcdb-e0de89e862be :: false

publishItemsToNodes 0.059s
2020-11-30 21:37:53 |

2020-11-30 21:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:53 | ------------------------------------

2020-11-30 21:37:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "entry": "<test>item-941b19ef-4243-4283-b5e8-9660b3fce29d</test>",
    "item-id": "item-941b19ef-4243-4283-b5e8-9660b3fce29d"
}

2020-11-30 21:37:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-941b19ef-4243-4283-b5e8-9660b3fce29d"
}

2020-11-30 21:37:53 | [Mutex] waiting for: [published:item:notifieditem-941b19ef-4243-4283-b5e8-9660b3fce29d:admin@test-domain.com]

2020-11-30 21:37:53 | [Mutex] received everything.

2020-11-30 21:37:53 | [Mutex] isItemNotified: published:item:notifieditem-941b19ef-4243-4283-b5e8-9660b3fce29d:admin@test-domain.com :: true

retractItemsFromNodes 0.077s
2020-11-30 21:37:54 |

2020-11-30 21:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:54 | ------------------------------------

2020-11-30 21:37:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "item-id": "item-941b19ef-4243-4283-b5e8-9660b3fce29d"
}

2020-11-30 21:37:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-941b19ef-4243-4283-b5e8-9660b3fce29d"
}

2020-11-30 21:37:54 | [Mutex] waiting for: [retracted:item:notifieditem-941b19ef-4243-4283-b5e8-9660b3fce29d:admin@test-domain.com]

2020-11-30 21:37:54 | [Mutex] received everything.

2020-11-30 21:37:54 | [Mutex] isItemNotified: retracted:item:notifieditem-941b19ef-4243-4283-b5e8-9660b3fce29d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.086s
2020-11-30 21:37:53 |

2020-11-30 21:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:53 | ------------------------------------

2020-11-30 21:37:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "item-id": "item-941b19ef-4243-4283-b5e8-9660b3fce29d"
}

2020-11-30 21:37:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "item-id": "item-941b19ef-4243-4283-b5e8-9660b3fce29d",
    "item": [
        "<item id=\"item-941b19ef-4243-4283-b5e8-9660b3fce29d\"><test>item-941b19ef-4243-4283-b5e8-9660b3fce29d</test></item>"
    ]
}

2020-11-30 21:37:54 | [Mutex] notify: [retrieved:item:item-941b19ef-4243-4283-b5e8-9660b3fce29d:payload-matches:true:localhost]

2020-11-30 21:37:54 | [Mutex] received everything.

2020-11-30 21:37:54 | [Mutex] isItemNotified: retrieved:item:item-941b19ef-4243-4283-b5e8-9660b3fce29d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-11-30 21:37:54 |

2020-11-30 21:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:54 | ------------------------------------

2020-11-30 21:37:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-30 21:37:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-95c1b059-cc4a-4ddd-b234-9bbb41bdada6",
        "node-c3354c45-b22d-472c-bcdb-e0de89e862be"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-30 21:37:54 |

2020-11-30 21:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:54 | ------------------------------------

2020-11-30 21:37:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c3354c45-b22d-472c-bcdb-e0de89e862be)"
}

2020-11-30 21:37:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-11-30 21:37:52 |

2020-11-30 21:37:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:52 | ------------------------------------

2020-11-30 21:37:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-30 21:37:52 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.077s
2020-11-30 21:37:54 |

2020-11-30 21:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-30 21:37:54 | ------------------------------------

2020-11-30 21:37:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c3354c45-b22d-472c-bcdb-e0de89e862be",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-30 21:37:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}