Generated by TestNG with ReportNG at 06:25 PDT on Friday 14 May 2021
root@785cf647a4ab / 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.108s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.113s
2021-05-14 06:40:29 |

2021-05-14 06:40:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:29 | ------------------------------------

2021-05-14 06:40:29 | [Mutex] waiting for: [configured:node:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:node-8f0602d6-f47d-494d-9618-401d2a7dc7aa]

2021-05-14 06:40:29 | [Mutex] received everything.

2021-05-14 06:40:29 | [Mutex] isItemNotified: configured:node:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:node-8f0602d6-f47d-494d-9618-401d2a7dc7aa :: true

2021-05-14 06:40:30 | [Mutex] waiting for: [received:nodes:c2b768d9-934d-4bc0-8033-7132d36fb618:localhost]

2021-05-14 06:40:30 | [Mutex] received everything.

2021-05-14 06:40:30 | [Mutex] isItemNotified: received:node:c2b768d9-934d-4bc0-8033-7132d36fb618:localhost:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:Node 5a9edeac-3a3f-459a-abd2-41da61657ad0 :: true

2021-05-14 06:40:30 | [Mutex] waiting for: [received:nodes:d855abbf-417f-4010-957d-26d84915b061:localhost]

2021-05-14 06:40:30 | [Mutex] received everything.

2021-05-14 06:40:30 | [Mutex] isItemNotified: received:node:d855abbf-417f-4010-957d-26d84915b061:localhost:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:Node 5a9edeac-3a3f-459a-abd2-41da61657ad0 :: false

createNodes 1.715s
2021-05-14 06:40:27 |

2021-05-14 06:40:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:27 | ------------------------------------

2021-05-14 06:40:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "pubsub#title": "Node 5a9edeac-3a3f-459a-abd2-41da61657ad0"
}

2021-05-14 06:40:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 06:40:28 | [Mutex] waiting for: [received:nodes:6a4af3bf-0c8e-41b4-a38c-01be96b355d0:localhost]

2021-05-14 06:40:28 | [Mutex] received everything.

2021-05-14 06:40:28 | [Mutex] isItemNotified: received:node:6a4af3bf-0c8e-41b4-a38c-01be96b355d0:localhost:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:Node 5a9edeac-3a3f-459a-abd2-41da61657ad0 :: true

createSubnodes 1.023s
2021-05-14 06:40:28 |

2021-05-14 06:40:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:28 | ------------------------------------

2021-05-14 06:40:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8f0602d6-f47d-494d-9618-401d2a7dc7aa",
    "pubsub#title": "Node 8f0602d6-f47d-494d-9618-401d2a7dc7aa"
}

2021-05-14 06:40:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 06:40:29 | [Mutex] waiting for: [received:nodes:fc89f74a-b530-4cd7-9d13-cb4368f5b247:localhost]

2021-05-14 06:40:29 | [Mutex] received everything.

2021-05-14 06:40:29 | [Mutex] isItemNotified: received:node:fc89f74a-b530-4cd7-9d13-cb4368f5b247:localhost:node-8f0602d6-f47d-494d-9618-401d2a7dc7aa:Node 8f0602d6-f47d-494d-9618-401d2a7dc7aa :: true

deleteNodes 1.029s
2021-05-14 06:40:34 |

2021-05-14 06:40:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:34 | ------------------------------------

2021-05-14 06:40:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8f0602d6-f47d-494d-9618-401d2a7dc7aa"
}

2021-05-14 06:40:34 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 06:40:35 | [Mutex] waiting for: [received:nodes:62e7ab1a-e1fd-4110-a39d-6529dc45bd86:localhost]

2021-05-14 06:40:35 | [Mutex] received everything.

2021-05-14 06:40:35 | [Mutex] isItemNotified: received:node:62e7ab1a-e1fd-4110-a39d-6529dc45bd86:localhost:node-8f0602d6-f47d-494d-9618-401d2a7dc7aa:Node 8f0602d6-f47d-494d-9618-401d2a7dc7aa :: false

deleteSubnodes 1.044s
2021-05-14 06:40:33 |

2021-05-14 06:40:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:33 | ------------------------------------

2021-05-14 06:40:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0"
}

2021-05-14 06:40:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-14 06:40:34 | [Mutex] waiting for: [received:nodes:09f2a754-61b5-4b8b-97eb-1dfa2cba8b88:localhost]

2021-05-14 06:40:34 | [Mutex] received everything.

2021-05-14 06:40:34 | [Mutex] isItemNotified: received:node:09f2a754-61b5-4b8b-97eb-1dfa2cba8b88:localhost:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:Node 5a9edeac-3a3f-459a-abd2-41da61657ad0 :: false

2021-05-14 06:40:34 | [Mutex] waiting for: [received:nodes:de6de468-b27e-4085-b96e-ee0513194f1b:localhost]

2021-05-14 06:40:34 | [Mutex] received everything.

2021-05-14 06:40:34 | [Mutex] isItemNotified: received:node:de6de468-b27e-4085-b96e-ee0513194f1b:localhost:node-5a9edeac-3a3f-459a-abd2-41da61657ad0:Node 5a9edeac-3a3f-459a-abd2-41da61657ad0 :: false

publishItemsToNodes 0.057s
2021-05-14 06:40:31 |

2021-05-14 06:40:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:31 | ------------------------------------

2021-05-14 06:40:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "entry": "<test>item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88</test>",
    "item-id": "item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88"
}

2021-05-14 06:40:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88"
}

2021-05-14 06:40:31 | [Mutex] waiting for: [published:item:notifieditem-3a288d44-34bb-4f5e-9604-2da0bf4cbf88:admin@test-domain.com]

2021-05-14 06:40:31 | [Mutex] received everything.

2021-05-14 06:40:31 | [Mutex] isItemNotified: published:item:notifieditem-3a288d44-34bb-4f5e-9604-2da0bf4cbf88:admin@test-domain.com :: true

retractItemsFromNodes 0.069s
2021-05-14 06:40:32 |

2021-05-14 06:40:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:32 | ------------------------------------

2021-05-14 06:40:32 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "item-id": "item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88"
}

2021-05-14 06:40:32 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88"
}

2021-05-14 06:40:32 | [Mutex] waiting for: [retracted:item:notifieditem-3a288d44-34bb-4f5e-9604-2da0bf4cbf88:admin@test-domain.com]

2021-05-14 06:40:32 | [Mutex] received everything.

2021-05-14 06:40:32 | [Mutex] isItemNotified: retracted:item:notifieditem-3a288d44-34bb-4f5e-9604-2da0bf4cbf88:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2021-05-14 06:40:31 |

2021-05-14 06:40:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:31 | ------------------------------------

2021-05-14 06:40:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "item-id": "item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88"
}

2021-05-14 06:40:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "item-id": "item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88",
    "item": [
        "<item id=\"item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88\"><test>item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88</test></item>"
    ]
}

2021-05-14 06:40:31 | [Mutex] notify: [retrieved:item:item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88:payload-matches:true:localhost]

2021-05-14 06:40:31 | [Mutex] received everything.

2021-05-14 06:40:31 | [Mutex] isItemNotified: retrieved:item:item-3a288d44-34bb-4f5e-9604-2da0bf4cbf88:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.061s
2021-05-14 06:40:31 |

2021-05-14 06:40:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:31 | ------------------------------------

2021-05-14 06:40:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-14 06:40:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
        "node-8f0602d6-f47d-494d-9618-401d2a7dc7aa"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2021-05-14 06:40:32 |

2021-05-14 06:40:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:32 | ------------------------------------

2021-05-14 06:40:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5a9edeac-3a3f-459a-abd2-41da61657ad0)"
}

2021-05-14 06:40:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-05-14 06:40:30 |

2021-05-14 06:40:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:30 | ------------------------------------

2021-05-14 06:40:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-14 06:40:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.065s
2021-05-14 06:40:32 |

2021-05-14 06:40:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-14 06:40:32 | ------------------------------------

2021-05-14 06:40:32 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5a9edeac-3a3f-459a-abd2-41da61657ad0",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-14 06:40:32 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}