Generated by TestNG with ReportNG at 22:31 PDT on Saturday 26 September 2020
root@acb1a7e1250f / 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.122s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.103s
2020-09-26 22:47:21 |

2020-09-26 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:21 | ------------------------------------

2020-09-26 22:47:21 | [Mutex] waiting for: [configured:node:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:node-978b07a6-d6c4-4505-aa49-4da8276ca06d]

2020-09-26 22:47:21 | [Mutex] received everything.

2020-09-26 22:47:21 | [Mutex] isItemNotified: configured:node:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:node-978b07a6-d6c4-4505-aa49-4da8276ca06d :: true

2020-09-26 22:47:22 | [Mutex] waiting for: [received:nodes:2fb8fb17-26b9-433d-80f0-424531d83150:localhost]

2020-09-26 22:47:22 | [Mutex] received everything.

2020-09-26 22:47:22 | [Mutex] isItemNotified: received:node:2fb8fb17-26b9-433d-80f0-424531d83150:localhost:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:Node 3c05619b-b741-44ed-95a0-ce83dcd906d3 :: true

2020-09-26 22:47:22 | [Mutex] waiting for: [received:nodes:511b2a94-3cf4-4e0d-9aff-a37af7d7d738:localhost]

2020-09-26 22:47:22 | [Mutex] received everything.

2020-09-26 22:47:22 | [Mutex] isItemNotified: received:node:511b2a94-3cf4-4e0d-9aff-a37af7d7d738:localhost:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:Node 3c05619b-b741-44ed-95a0-ce83dcd906d3 :: false

createNodes 1.812s
2020-09-26 22:47:18 |

2020-09-26 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:18 | ------------------------------------

2020-09-26 22:47:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "pubsub#title": "Node 3c05619b-b741-44ed-95a0-ce83dcd906d3"
}

2020-09-26 22:47:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 22:47:20 | [Mutex] waiting for: [received:nodes:bf432357-eabc-45b2-a7ba-537e713fdba6:localhost]

2020-09-26 22:47:20 | [Mutex] received everything.

2020-09-26 22:47:20 | [Mutex] isItemNotified: received:node:bf432357-eabc-45b2-a7ba-537e713fdba6:localhost:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:Node 3c05619b-b741-44ed-95a0-ce83dcd906d3 :: true

createSubnodes 1.035s
2020-09-26 22:47:20 |

2020-09-26 22:47:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:20 | ------------------------------------

2020-09-26 22:47:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-978b07a6-d6c4-4505-aa49-4da8276ca06d",
    "pubsub#title": "Node 978b07a6-d6c4-4505-aa49-4da8276ca06d"
}

2020-09-26 22:47:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 22:47:21 | [Mutex] waiting for: [received:nodes:98054c04-b08a-405a-b710-94fcfba6db92:localhost]

2020-09-26 22:47:21 | [Mutex] waiting for: [received:nodes:98054c04-b08a-405a-b710-94fcfba6db92:localhost]

2020-09-26 22:47:21 | [Mutex] received everything.

2020-09-26 22:47:21 | [Mutex] isItemNotified: received:node:98054c04-b08a-405a-b710-94fcfba6db92:localhost:node-978b07a6-d6c4-4505-aa49-4da8276ca06d:Node 978b07a6-d6c4-4505-aa49-4da8276ca06d :: true

deleteNodes 1.020s
2020-09-26 22:47:25 |

2020-09-26 22:47:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:25 | ------------------------------------

2020-09-26 22:47:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-978b07a6-d6c4-4505-aa49-4da8276ca06d"
}

2020-09-26 22:47:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 22:47:26 | [Mutex] waiting for: [received:nodes:aac99589-913d-48a8-ad1a-264ded87b207:localhost]

2020-09-26 22:47:26 | [Mutex] received everything.

2020-09-26 22:47:26 | [Mutex] isItemNotified: received:node:aac99589-913d-48a8-ad1a-264ded87b207:localhost:node-978b07a6-d6c4-4505-aa49-4da8276ca06d:Node 978b07a6-d6c4-4505-aa49-4da8276ca06d :: false

deleteSubnodes 1.024s
2020-09-26 22:47:24 |

2020-09-26 22:47:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:24 | ------------------------------------

2020-09-26 22:47:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3"
}

2020-09-26 22:47:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-26 22:47:25 | [Mutex] waiting for: [received:nodes:c28c5290-0e84-4e34-b490-76d29754ed35:localhost]

2020-09-26 22:47:25 | [Mutex] received everything.

2020-09-26 22:47:25 | [Mutex] isItemNotified: received:node:c28c5290-0e84-4e34-b490-76d29754ed35:localhost:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:Node 3c05619b-b741-44ed-95a0-ce83dcd906d3 :: false

2020-09-26 22:47:25 | [Mutex] waiting for: [received:nodes:1cb585d9-9c01-4642-b4b0-b12c1adfe403:localhost]

2020-09-26 22:47:25 | [Mutex] received everything.

2020-09-26 22:47:25 | [Mutex] isItemNotified: received:node:1cb585d9-9c01-4642-b4b0-b12c1adfe403:localhost:node-3c05619b-b741-44ed-95a0-ce83dcd906d3:Node 3c05619b-b741-44ed-95a0-ce83dcd906d3 :: false

publishItemsToNodes 0.039s
2020-09-26 22:47:23 |

2020-09-26 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:23 | ------------------------------------

2020-09-26 22:47:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "entry": "<test>item-4eda70ef-0e8e-4486-be48-ae32b3faae40</test>",
    "item-id": "item-4eda70ef-0e8e-4486-be48-ae32b3faae40"
}

2020-09-26 22:47:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4eda70ef-0e8e-4486-be48-ae32b3faae40"
}

2020-09-26 22:47:23 | [Mutex] waiting for: [published:item:notifieditem-4eda70ef-0e8e-4486-be48-ae32b3faae40:admin@test-domain.com]

2020-09-26 22:47:23 | [Mutex] received everything.

2020-09-26 22:47:23 | [Mutex] isItemNotified: published:item:notifieditem-4eda70ef-0e8e-4486-be48-ae32b3faae40:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-09-26 22:47:23 |

2020-09-26 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:23 | ------------------------------------

2020-09-26 22:47:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "item-id": "item-4eda70ef-0e8e-4486-be48-ae32b3faae40"
}

2020-09-26 22:47:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-4eda70ef-0e8e-4486-be48-ae32b3faae40"
}

2020-09-26 22:47:23 | [Mutex] received everything.

2020-09-26 22:47:23 | [Mutex] isItemNotified: retracted:item:notifieditem-4eda70ef-0e8e-4486-be48-ae32b3faae40:admin@test-domain.com :: true

retrieveItemsFromNodes 0.079s
2020-09-26 22:47:23 |

2020-09-26 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:23 | ------------------------------------

2020-09-26 22:47:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "item-id": "item-4eda70ef-0e8e-4486-be48-ae32b3faae40"
}

2020-09-26 22:47:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "item-id": "item-4eda70ef-0e8e-4486-be48-ae32b3faae40",
    "item": [
        "<item id=\"item-4eda70ef-0e8e-4486-be48-ae32b3faae40\"><test>item-4eda70ef-0e8e-4486-be48-ae32b3faae40</test></item>"
    ]
}

2020-09-26 22:47:23 | [Mutex] notify: [retrieved:item:item-4eda70ef-0e8e-4486-be48-ae32b3faae40:payload-matches:true:localhost]

2020-09-26 22:47:23 | [Mutex] received everything.

2020-09-26 22:47:23 | [Mutex] isItemNotified: retrieved:item:item-4eda70ef-0e8e-4486-be48-ae32b3faae40:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-26 22:47:23 |

2020-09-26 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:23 | ------------------------------------

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

2020-09-26 22:47:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
        "node-978b07a6-d6c4-4505-aa49-4da8276ca06d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-26 22:47:23 |

2020-09-26 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:23 | ------------------------------------

2020-09-26 22:47:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3c05619b-b741-44ed-95a0-ce83dcd906d3)"
}

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

subscribeNodes 1.010s
2020-09-26 22:47:22 |

2020-09-26 22:47:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:22 | ------------------------------------

2020-09-26 22:47:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-26 22:47:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2020-09-26 22:47:23 |

2020-09-26 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-26 22:47:23 | ------------------------------------

2020-09-26 22:47:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3c05619b-b741-44ed-95a0-ce83dcd906d3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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