Generated by TestNG with ReportNG at 23:00 PDT on Wednesday 26 August 2020
root@18d694fe8e0a / 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.310s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2020-08-26 23:15:28 |

2020-08-26 23:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:28 | ------------------------------------

2020-08-26 23:15:28 | [Mutex] waiting for: [configured:node:node-a66b15aa-279c-4c01-86e4-96429cfb7767:node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066]

2020-08-26 23:15:28 | [Mutex] received everything.

2020-08-26 23:15:28 | [Mutex] isItemNotified: configured:node:node-a66b15aa-279c-4c01-86e4-96429cfb7767:node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066 :: true

2020-08-26 23:15:29 | [Mutex] waiting for: [received:nodes:46835dc0-a2f2-41b8-9845-e252c338d234:localhost]

2020-08-26 23:15:29 | [Mutex] received everything.

2020-08-26 23:15:29 | [Mutex] isItemNotified: received:node:46835dc0-a2f2-41b8-9845-e252c338d234:localhost:node-a66b15aa-279c-4c01-86e4-96429cfb7767:Node a66b15aa-279c-4c01-86e4-96429cfb7767 :: true

2020-08-26 23:15:29 | [Mutex] waiting for: [received:nodes:10c28e8b-15e0-4eae-8a53-d380c9aeb0a2:localhost]

2020-08-26 23:15:29 | [Mutex] waiting for: [received:nodes:10c28e8b-15e0-4eae-8a53-d380c9aeb0a2:localhost]

2020-08-26 23:15:29 | [Mutex] waiting for: [received:nodes:10c28e8b-15e0-4eae-8a53-d380c9aeb0a2:localhost]

2020-08-26 23:15:29 | [Mutex] received everything.

2020-08-26 23:15:29 | [Mutex] isItemNotified: received:node:10c28e8b-15e0-4eae-8a53-d380c9aeb0a2:localhost:node-a66b15aa-279c-4c01-86e4-96429cfb7767:Node a66b15aa-279c-4c01-86e4-96429cfb7767 :: false

createNodes 1.736s
2020-08-26 23:15:26 |

2020-08-26 23:15:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:26 | ------------------------------------

2020-08-26 23:15:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "pubsub#title": "Node a66b15aa-279c-4c01-86e4-96429cfb7767"
}

2020-08-26 23:15:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 23:15:27 | [Mutex] waiting for: [received:nodes:afa37830-8b48-4854-8886-4bb0b606f2fd:localhost]

2020-08-26 23:15:27 | [Mutex] received everything.

2020-08-26 23:15:27 | [Mutex] isItemNotified: received:node:afa37830-8b48-4854-8886-4bb0b606f2fd:localhost:node-a66b15aa-279c-4c01-86e4-96429cfb7767:Node a66b15aa-279c-4c01-86e4-96429cfb7767 :: true

createSubnodes 1.034s
2020-08-26 23:15:27 |

2020-08-26 23:15:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:27 | ------------------------------------

2020-08-26 23:15:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066",
    "pubsub#title": "Node c4f651ef-5b9d-4737-a4b8-06fdbb3fd066"
}

2020-08-26 23:15:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 23:15:28 | [Mutex] waiting for: [received:nodes:eb5f95c2-3414-4794-9df2-443829783b61:localhost]

2020-08-26 23:15:28 | [Mutex] received everything.

2020-08-26 23:15:28 | [Mutex] isItemNotified: received:node:eb5f95c2-3414-4794-9df2-443829783b61:localhost:node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066:Node c4f651ef-5b9d-4737-a4b8-06fdbb3fd066 :: true

deleteNodes 1.055s
2020-08-26 23:15:33 |

2020-08-26 23:15:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:33 | ------------------------------------

2020-08-26 23:15:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066"
}

2020-08-26 23:15:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 23:15:34 | [Mutex] waiting for: [received:nodes:32dd050f-ab4d-44d5-8143-aef650923403:localhost]

2020-08-26 23:15:34 | [Mutex] received everything.

2020-08-26 23:15:34 | [Mutex] isItemNotified: received:node:32dd050f-ab4d-44d5-8143-aef650923403:localhost:node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066:Node c4f651ef-5b9d-4737-a4b8-06fdbb3fd066 :: false

deleteSubnodes 1.027s
2020-08-26 23:15:32 |

2020-08-26 23:15:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:32 | ------------------------------------

2020-08-26 23:15:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767"
}

2020-08-26 23:15:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-08-26 23:15:33 | [Mutex] waiting for: [received:nodes:7fe46445-ceb7-4307-b134-24f48c16cff5:localhost]

2020-08-26 23:15:33 | [Mutex] received everything.

2020-08-26 23:15:33 | [Mutex] isItemNotified: received:node:7fe46445-ceb7-4307-b134-24f48c16cff5:localhost:node-a66b15aa-279c-4c01-86e4-96429cfb7767:Node a66b15aa-279c-4c01-86e4-96429cfb7767 :: false

2020-08-26 23:15:33 | [Mutex] waiting for: [received:nodes:3f9f0a7f-e9cd-4ff5-a2df-41c9cd7f3f7d:localhost]

2020-08-26 23:15:33 | [Mutex] received everything.

2020-08-26 23:15:33 | [Mutex] isItemNotified: received:node:3f9f0a7f-e9cd-4ff5-a2df-41c9cd7f3f7d:localhost:node-a66b15aa-279c-4c01-86e4-96429cfb7767:Node a66b15aa-279c-4c01-86e4-96429cfb7767 :: false

publishItemsToNodes 0.046s
2020-08-26 23:15:30 |

2020-08-26 23:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:30 | ------------------------------------

2020-08-26 23:15:30 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "entry": "<test>item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8</test>",
    "item-id": "item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8"
}

2020-08-26 23:15:30 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8"
}

2020-08-26 23:15:30 | [Mutex] waiting for: [published:item:notifieditem-08e2d17a-b71e-4ab3-871f-106c07ec7fb8:admin@test-domain.com]

2020-08-26 23:15:30 | [Mutex] received everything.

2020-08-26 23:15:30 | [Mutex] isItemNotified: published:item:notifieditem-08e2d17a-b71e-4ab3-871f-106c07ec7fb8:admin@test-domain.com :: true

retractItemsFromNodes 0.077s
2020-08-26 23:15:31 |

2020-08-26 23:15:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:31 | ------------------------------------

2020-08-26 23:15:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "item-id": "item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8"
}

2020-08-26 23:15:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8"
}

2020-08-26 23:15:31 | [Mutex] received everything.

2020-08-26 23:15:31 | [Mutex] isItemNotified: retracted:item:notifieditem-08e2d17a-b71e-4ab3-871f-106c07ec7fb8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-08-26 23:15:30 |

2020-08-26 23:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:30 | ------------------------------------

2020-08-26 23:15:30 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "item-id": "item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8"
}

2020-08-26 23:15:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "item-id": "item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8",
    "item": [
        "<item id=\"item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8\"><test>item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8</test></item>"
    ]
}

2020-08-26 23:15:31 | [Mutex] notify: [retrieved:item:item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8:payload-matches:true:localhost]

2020-08-26 23:15:31 | [Mutex] received everything.

2020-08-26 23:15:31 | [Mutex] isItemNotified: retrieved:item:item-08e2d17a-b71e-4ab3-871f-106c07ec7fb8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-08-26 23:15:31 |

2020-08-26 23:15:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:31 | ------------------------------------

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

2020-08-26 23:15:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
        "node-c4f651ef-5b9d-4737-a4b8-06fdbb3fd066"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-08-26 23:15:31 |

2020-08-26 23:15:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:31 | ------------------------------------

2020-08-26 23:15:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a66b15aa-279c-4c01-86e4-96429cfb7767)"
}

2020-08-26 23:15:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2020-08-26 23:15:29 |

2020-08-26 23:15:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:29 | ------------------------------------

2020-08-26 23:15:29 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 23:15:29 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.069s
2020-08-26 23:15:31 |

2020-08-26 23:15:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-08-26 23:15:31 | ------------------------------------

2020-08-26 23:15:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a66b15aa-279c-4c01-86e4-96429cfb7767",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-08-26 23:15:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}