Generated by TestNG with ReportNG at 22:33 PDT on Thursday 17 September 2020
root@f53a97fae7d2 / 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 : 8.981s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2020-09-17 22:50:39 |

2020-09-17 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:39 | ------------------------------------

2020-09-17 22:50:39 | [Mutex] waiting for: [configured:node:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10]

2020-09-17 22:50:39 | [Mutex] received everything.

2020-09-17 22:50:39 | [Mutex] isItemNotified: configured:node:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10 :: true

2020-09-17 22:50:40 | [Mutex] waiting for: [received:nodes:71bb9339-b092-4063-89ee-3f4993ba87f4:localhost]

2020-09-17 22:50:40 | [Mutex] received everything.

2020-09-17 22:50:40 | [Mutex] isItemNotified: received:node:71bb9339-b092-4063-89ee-3f4993ba87f4:localhost:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:Node f98e6706-721e-428d-ab92-6b7ac5f2aa4d :: true

2020-09-17 22:50:40 | [Mutex] waiting for: [received:nodes:5b954d58-9c6f-4037-8004-e9b5c2250b79:localhost]

2020-09-17 22:50:40 | [Mutex] waiting for: [received:nodes:5b954d58-9c6f-4037-8004-e9b5c2250b79:localhost]

2020-09-17 22:50:40 | [Mutex] waiting for: [received:nodes:5b954d58-9c6f-4037-8004-e9b5c2250b79:localhost]

2020-09-17 22:50:40 | [Mutex] received everything.

2020-09-17 22:50:40 | [Mutex] isItemNotified: received:node:5b954d58-9c6f-4037-8004-e9b5c2250b79:localhost:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:Node f98e6706-721e-428d-ab92-6b7ac5f2aa4d :: false

createNodes 1.576s
2020-09-17 22:50:36 |

2020-09-17 22:50:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:36 | ------------------------------------

2020-09-17 22:50:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "pubsub#title": "Node f98e6706-721e-428d-ab92-6b7ac5f2aa4d"
}

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

2020-09-17 22:50:38 | [Mutex] waiting for: [received:nodes:07ad6ac2-a5d4-46f5-a8c3-54014bf56fc1:localhost]

2020-09-17 22:50:38 | [Mutex] received everything.

2020-09-17 22:50:38 | [Mutex] isItemNotified: received:node:07ad6ac2-a5d4-46f5-a8c3-54014bf56fc1:localhost:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:Node f98e6706-721e-428d-ab92-6b7ac5f2aa4d :: true

createSubnodes 1.023s
2020-09-17 22:50:38 |

2020-09-17 22:50:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:38 | ------------------------------------

2020-09-17 22:50:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10",
    "pubsub#title": "Node 7c7f7949-0136-4dc8-b0f0-ca3385fd6f10"
}

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

2020-09-17 22:50:39 | [Mutex] waiting for: [received:nodes:85c67134-0fd2-4d5b-b780-b408a79bcf22:localhost]

2020-09-17 22:50:39 | [Mutex] received everything.

2020-09-17 22:50:39 | [Mutex] isItemNotified: received:node:85c67134-0fd2-4d5b-b780-b408a79bcf22:localhost:node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10:Node 7c7f7949-0136-4dc8-b0f0-ca3385fd6f10 :: true

deleteNodes 1.019s
2020-09-17 22:50:43 |

2020-09-17 22:50:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:43 | ------------------------------------

2020-09-17 22:50:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10"
}

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

2020-09-17 22:50:44 | [Mutex] waiting for: [received:nodes:f46fd009-55b8-4fa9-b97f-eb0bc1cbeff1:localhost]

2020-09-17 22:50:44 | [Mutex] received everything.

2020-09-17 22:50:44 | [Mutex] isItemNotified: received:node:f46fd009-55b8-4fa9-b97f-eb0bc1cbeff1:localhost:node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10:Node 7c7f7949-0136-4dc8-b0f0-ca3385fd6f10 :: false

deleteSubnodes 1.025s
2020-09-17 22:50:42 |

2020-09-17 22:50:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:42 | ------------------------------------

2020-09-17 22:50:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d"
}

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

2020-09-17 22:50:43 | [Mutex] waiting for: [received:nodes:bd044846-1873-457f-a50e-1bdec3ba22b0:localhost]

2020-09-17 22:50:43 | [Mutex] received everything.

2020-09-17 22:50:43 | [Mutex] isItemNotified: received:node:bd044846-1873-457f-a50e-1bdec3ba22b0:localhost:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:Node f98e6706-721e-428d-ab92-6b7ac5f2aa4d :: false

2020-09-17 22:50:43 | [Mutex] waiting for: [received:nodes:896d3f22-3340-4330-b846-47e7a2337ff6:localhost]

2020-09-17 22:50:43 | [Mutex] received everything.

2020-09-17 22:50:43 | [Mutex] isItemNotified: received:node:896d3f22-3340-4330-b846-47e7a2337ff6:localhost:node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d:Node f98e6706-721e-428d-ab92-6b7ac5f2aa4d :: false

publishItemsToNodes 0.041s
2020-09-17 22:50:41 |

2020-09-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:41 | ------------------------------------

2020-09-17 22:50:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "entry": "<test>item-efbd0a53-17e9-4704-874f-0b60391c2ab0</test>",
    "item-id": "item-efbd0a53-17e9-4704-874f-0b60391c2ab0"
}

2020-09-17 22:50:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-efbd0a53-17e9-4704-874f-0b60391c2ab0"
}

2020-09-17 22:50:41 | [Mutex] waiting for: [published:item:notifieditem-efbd0a53-17e9-4704-874f-0b60391c2ab0:admin@test-domain.com]

2020-09-17 22:50:41 | [Mutex] received everything.

2020-09-17 22:50:41 | [Mutex] isItemNotified: published:item:notifieditem-efbd0a53-17e9-4704-874f-0b60391c2ab0:admin@test-domain.com :: true

retractItemsFromNodes 0.071s
2020-09-17 22:50:41 |

2020-09-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:41 | ------------------------------------

2020-09-17 22:50:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "item-id": "item-efbd0a53-17e9-4704-874f-0b60391c2ab0"
}

2020-09-17 22:50:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-efbd0a53-17e9-4704-874f-0b60391c2ab0"
}

2020-09-17 22:50:41 | [Mutex] received everything.

2020-09-17 22:50:41 | [Mutex] isItemNotified: retracted:item:notifieditem-efbd0a53-17e9-4704-874f-0b60391c2ab0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2020-09-17 22:50:41 |

2020-09-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:41 | ------------------------------------

2020-09-17 22:50:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "item-id": "item-efbd0a53-17e9-4704-874f-0b60391c2ab0"
}

2020-09-17 22:50:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "item-id": "item-efbd0a53-17e9-4704-874f-0b60391c2ab0",
    "item": [
        "<item id=\"item-efbd0a53-17e9-4704-874f-0b60391c2ab0\"><test>item-efbd0a53-17e9-4704-874f-0b60391c2ab0</test></item>"
    ]
}

2020-09-17 22:50:41 | [Mutex] notify: [retrieved:item:item-efbd0a53-17e9-4704-874f-0b60391c2ab0:payload-matches:true:localhost]

2020-09-17 22:50:41 | [Mutex] received everything.

2020-09-17 22:50:41 | [Mutex] isItemNotified: retrieved:item:item-efbd0a53-17e9-4704-874f-0b60391c2ab0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2020-09-17 22:50:41 |

2020-09-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:41 | ------------------------------------

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

2020-09-17 22:50:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
        "test",
        "node-7c7f7949-0136-4dc8-b0f0-ca3385fd6f10"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-17 22:50:41 |

2020-09-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:41 | ------------------------------------

2020-09-17 22:50:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d)"
}

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

subscribeNodes 1.011s
2020-09-17 22:50:40 |

2020-09-17 22:50:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:40 | ------------------------------------

2020-09-17 22:50:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.059s
2020-09-17 22:50:41 |

2020-09-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 22:50:41 | ------------------------------------

2020-09-17 22:50:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f98e6706-721e-428d-ab92-6b7ac5f2aa4d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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