Generated by TestNG with ReportNG at 21:14 PST on Friday 05 February 2021
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.400s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.110s
2021-02-05 21:30:37 |

2021-02-05 21:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:37 | ------------------------------------

2021-02-05 21:30:37 | [Mutex] waiting for: [configured:node:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:node-090703e6-d471-4a58-abde-ff4819148da8]

2021-02-05 21:30:37 | [Mutex] received everything.

2021-02-05 21:30:37 | [Mutex] isItemNotified: configured:node:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:node-090703e6-d471-4a58-abde-ff4819148da8 :: true

2021-02-05 21:30:38 | [Mutex] waiting for: [received:nodes:85e6f70e-f615-4360-8bb6-6657a5407332:localhost]

2021-02-05 21:30:38 | [Mutex] received everything.

2021-02-05 21:30:38 | [Mutex] isItemNotified: received:node:85e6f70e-f615-4360-8bb6-6657a5407332:localhost:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:Node a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d :: true

2021-02-05 21:30:38 | [Mutex] waiting for: [received:nodes:801167bc-1a49-468c-972f-b780eb80feb5:localhost]

2021-02-05 21:30:38 | [Mutex] received everything.

2021-02-05 21:30:38 | [Mutex] isItemNotified: received:node:801167bc-1a49-468c-972f-b780eb80feb5:localhost:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:Node a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d :: false

createNodes 1.849s
2021-02-05 21:30:34 |

2021-02-05 21:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:34 | ------------------------------------

2021-02-05 21:30:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "pubsub#title": "Node a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d"
}

2021-02-05 21:30:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:30:36 | [Mutex] waiting for: [received:nodes:1f0e8413-8106-449e-a19e-cdaa00a26c21:localhost]

2021-02-05 21:30:36 | [Mutex] received everything.

2021-02-05 21:30:36 | [Mutex] isItemNotified: received:node:1f0e8413-8106-449e-a19e-cdaa00a26c21:localhost:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:Node a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d :: true

createSubnodes 1.030s
2021-02-05 21:30:36 |

2021-02-05 21:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:36 | ------------------------------------

2021-02-05 21:30:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-090703e6-d471-4a58-abde-ff4819148da8",
    "pubsub#title": "Node 090703e6-d471-4a58-abde-ff4819148da8"
}

2021-02-05 21:30:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:30:37 | [Mutex] waiting for: [received:nodes:103c2dc9-6e01-4b21-9073-fc56a5c3574e:localhost]

2021-02-05 21:30:37 | [Mutex] received everything.

2021-02-05 21:30:37 | [Mutex] isItemNotified: received:node:103c2dc9-6e01-4b21-9073-fc56a5c3574e:localhost:node-090703e6-d471-4a58-abde-ff4819148da8:Node 090703e6-d471-4a58-abde-ff4819148da8 :: true

deleteNodes 1.025s
2021-02-05 21:30:41 |

2021-02-05 21:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:41 | ------------------------------------

2021-02-05 21:30:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-090703e6-d471-4a58-abde-ff4819148da8"
}

2021-02-05 21:30:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-05 21:30:42 | [Mutex] waiting for: [received:nodes:6b10efac-3109-4f0c-a895-0a89ebb9db84:localhost]

2021-02-05 21:30:42 | [Mutex] waiting for: [received:nodes:6b10efac-3109-4f0c-a895-0a89ebb9db84:localhost]

2021-02-05 21:30:42 | [Mutex] received everything.

2021-02-05 21:30:42 | [Mutex] isItemNotified: received:node:6b10efac-3109-4f0c-a895-0a89ebb9db84:localhost:node-090703e6-d471-4a58-abde-ff4819148da8:Node 090703e6-d471-4a58-abde-ff4819148da8 :: false

deleteSubnodes 1.035s
2021-02-05 21:30:40 |

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

2021-02-05 21:30:40 | ------------------------------------

2021-02-05 21:30:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d"
}

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

2021-02-05 21:30:41 | [Mutex] waiting for: [received:nodes:8f0ba99b-bd6a-4655-86b7-646d769ee129:localhost]

2021-02-05 21:30:41 | [Mutex] received everything.

2021-02-05 21:30:41 | [Mutex] isItemNotified: received:node:8f0ba99b-bd6a-4655-86b7-646d769ee129:localhost:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:Node a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d :: false

2021-02-05 21:30:41 | [Mutex] waiting for: [received:nodes:01a9b0aa-2d5a-42c5-85ef-bb6fbb266e01:localhost]

2021-02-05 21:30:41 | [Mutex] received everything.

2021-02-05 21:30:41 | [Mutex] isItemNotified: received:node:01a9b0aa-2d5a-42c5-85ef-bb6fbb266e01:localhost:node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d:Node a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d :: false

publishItemsToNodes 0.049s
2021-02-05 21:30:39 |

2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:39 | ------------------------------------

2021-02-05 21:30:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "entry": "<test>item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9</test>",
    "item-id": "item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9"
}

2021-02-05 21:30:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9"
}

2021-02-05 21:30:39 | [Mutex] waiting for: [published:item:notifieditem-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9:admin@test-domain.com]

2021-02-05 21:30:39 | [Mutex] received everything.

2021-02-05 21:30:39 | [Mutex] isItemNotified: published:item:notifieditem-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9:admin@test-domain.com :: true

retractItemsFromNodes 0.081s
2021-02-05 21:30:39 |

2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:39 | ------------------------------------

2021-02-05 21:30:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "item-id": "item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9"
}

2021-02-05 21:30:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9"
}

2021-02-05 21:30:39 | [Mutex] waiting for: [retracted:item:notifieditem-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9:admin@test-domain.com]

2021-02-05 21:30:39 | [Mutex] received everything.

2021-02-05 21:30:39 | [Mutex] isItemNotified: retracted:item:notifieditem-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.082s
2021-02-05 21:30:39 |

2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:39 | ------------------------------------

2021-02-05 21:30:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "item-id": "item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9"
}

2021-02-05 21:30:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "item-id": "item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9",
    "item": [
        "<item id=\"item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9\"><test>item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9</test></item>"
    ]
}

2021-02-05 21:30:39 | [Mutex] notify: [retrieved:item:item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9:payload-matches:true:localhost]

2021-02-05 21:30:39 | [Mutex] received everything.

2021-02-05 21:30:39 | [Mutex] isItemNotified: retrieved:item:item-cb056e41-fbfb-4d9f-afd8-4d92722f0ce9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.062s
2021-02-05 21:30:39 |

2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:39 | ------------------------------------

2021-02-05 21:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-05 21:30:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-090703e6-d471-4a58-abde-ff4819148da8",
        "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-02-05 21:30:39 |

2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:39 | ------------------------------------

2021-02-05 21:30:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d)"
}

2021-02-05 21:30:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-02-05 21:30:38 |

2021-02-05 21:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:38 | ------------------------------------

2021-02-05 21:30:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.065s
2021-02-05 21:30:39 |

2021-02-05 21:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-05 21:30:39 | ------------------------------------

2021-02-05 21:30:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a8ea0b5e-36e9-47dd-a830-3f38f8e4ca8d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-05 21:30:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}