Generated by TestNG with ReportNG at 22:42 PDT on Wednesday 09 September 2020
root@37cb6fd1939a / 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.000s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2020-09-09 22:58:01 |

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

2020-09-09 22:58:01 | ------------------------------------

2020-09-09 22:58:01 | [Mutex] waiting for: [configured:node:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:node-7478ea5a-3ea5-44c7-a047-d3cb630993e3]

2020-09-09 22:58:02 | [Mutex] received everything.

2020-09-09 22:58:02 | [Mutex] isItemNotified: configured:node:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:node-7478ea5a-3ea5-44c7-a047-d3cb630993e3 :: true

2020-09-09 22:58:03 | [Mutex] waiting for: [received:nodes:2bec54ab-7839-40e3-b117-f5d0f0995a98:localhost]

2020-09-09 22:58:03 | [Mutex] received everything.

2020-09-09 22:58:03 | [Mutex] isItemNotified: received:node:2bec54ab-7839-40e3-b117-f5d0f0995a98:localhost:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:Node f291fc98-7d70-4345-9e94-d8464f92c6d6 :: true

2020-09-09 22:58:03 | [Mutex] waiting for: [received:nodes:1fbefb55-dfd0-4827-9c98-28252bb99e97:localhost]

2020-09-09 22:58:03 | [Mutex] waiting for: [received:nodes:1fbefb55-dfd0-4827-9c98-28252bb99e97:localhost]

2020-09-09 22:58:03 | [Mutex] received everything.

2020-09-09 22:58:03 | [Mutex] isItemNotified: received:node:1fbefb55-dfd0-4827-9c98-28252bb99e97:localhost:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:Node f291fc98-7d70-4345-9e94-d8464f92c6d6 :: false

createNodes 1.724s
2020-09-09 22:57:59 |

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

2020-09-09 22:57:59 | ------------------------------------

2020-09-09 22:57:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "pubsub#title": "Node f291fc98-7d70-4345-9e94-d8464f92c6d6"
}

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

2020-09-09 22:58:00 | [Mutex] waiting for: [received:nodes:492c0ea8-fa81-4417-a3b0-3776d6c315ce:localhost]

2020-09-09 22:58:00 | [Mutex] received everything.

2020-09-09 22:58:00 | [Mutex] isItemNotified: received:node:492c0ea8-fa81-4417-a3b0-3776d6c315ce:localhost:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:Node f291fc98-7d70-4345-9e94-d8464f92c6d6 :: true

createSubnodes 1.024s
2020-09-09 22:58:00 |

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

2020-09-09 22:58:00 | ------------------------------------

2020-09-09 22:58:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7478ea5a-3ea5-44c7-a047-d3cb630993e3",
    "pubsub#title": "Node 7478ea5a-3ea5-44c7-a047-d3cb630993e3"
}

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

2020-09-09 22:58:01 | [Mutex] waiting for: [received:nodes:d57845d1-e061-4d18-af1a-34588b8ac971:localhost]

2020-09-09 22:58:01 | [Mutex] received everything.

2020-09-09 22:58:01 | [Mutex] isItemNotified: received:node:d57845d1-e061-4d18-af1a-34588b8ac971:localhost:node-7478ea5a-3ea5-44c7-a047-d3cb630993e3:Node 7478ea5a-3ea5-44c7-a047-d3cb630993e3 :: true

deleteNodes 1.017s
2020-09-09 22:58:06 |

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

2020-09-09 22:58:06 | ------------------------------------

2020-09-09 22:58:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7478ea5a-3ea5-44c7-a047-d3cb630993e3"
}

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

2020-09-09 22:58:07 | [Mutex] waiting for: [received:nodes:4426b7b9-8d0c-4be6-ba22-e184826805bc:localhost]

2020-09-09 22:58:07 | [Mutex] received everything.

2020-09-09 22:58:07 | [Mutex] isItemNotified: received:node:4426b7b9-8d0c-4be6-ba22-e184826805bc:localhost:node-7478ea5a-3ea5-44c7-a047-d3cb630993e3:Node 7478ea5a-3ea5-44c7-a047-d3cb630993e3 :: false

deleteSubnodes 1.025s
2020-09-09 22:58:05 |

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

2020-09-09 22:58:05 | ------------------------------------

2020-09-09 22:58:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6"
}

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

2020-09-09 22:58:06 | [Mutex] waiting for: [received:nodes:d14e54d0-b5f9-4b1d-84f1-14c512985319:localhost]

2020-09-09 22:58:06 | [Mutex] waiting for: [received:nodes:d14e54d0-b5f9-4b1d-84f1-14c512985319:localhost]

2020-09-09 22:58:06 | [Mutex] received everything.

2020-09-09 22:58:06 | [Mutex] isItemNotified: received:node:d14e54d0-b5f9-4b1d-84f1-14c512985319:localhost:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:Node f291fc98-7d70-4345-9e94-d8464f92c6d6 :: false

2020-09-09 22:58:06 | [Mutex] waiting for: [received:nodes:6fddcbf9-c825-4fa2-9667-896f3d95bb84:localhost]

2020-09-09 22:58:06 | [Mutex] received everything.

2020-09-09 22:58:06 | [Mutex] isItemNotified: received:node:6fddcbf9-c825-4fa2-9667-896f3d95bb84:localhost:node-f291fc98-7d70-4345-9e94-d8464f92c6d6:Node f291fc98-7d70-4345-9e94-d8464f92c6d6 :: false

publishItemsToNodes 0.039s
2020-09-09 22:58:04 |

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

2020-09-09 22:58:04 | ------------------------------------

2020-09-09 22:58:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "entry": "<test>item-58adda15-06d9-43be-a413-368e7386d954</test>",
    "item-id": "item-58adda15-06d9-43be-a413-368e7386d954"
}

2020-09-09 22:58:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-58adda15-06d9-43be-a413-368e7386d954"
}

2020-09-09 22:58:04 | [Mutex] waiting for: [published:item:notifieditem-58adda15-06d9-43be-a413-368e7386d954:admin@test-domain.com]

2020-09-09 22:58:04 | [Mutex] received everything.

2020-09-09 22:58:04 | [Mutex] isItemNotified: published:item:notifieditem-58adda15-06d9-43be-a413-368e7386d954:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2020-09-09 22:58:04 |

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

2020-09-09 22:58:04 | ------------------------------------

2020-09-09 22:58:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "item-id": "item-58adda15-06d9-43be-a413-368e7386d954"
}

2020-09-09 22:58:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-58adda15-06d9-43be-a413-368e7386d954"
}

2020-09-09 22:58:04 | [Mutex] received everything.

2020-09-09 22:58:04 | [Mutex] isItemNotified: retracted:item:notifieditem-58adda15-06d9-43be-a413-368e7386d954:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2020-09-09 22:58:04 |

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

2020-09-09 22:58:04 | ------------------------------------

2020-09-09 22:58:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "item-id": "item-58adda15-06d9-43be-a413-368e7386d954"
}

2020-09-09 22:58:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "item-id": "item-58adda15-06d9-43be-a413-368e7386d954",
    "item": [
        "<item id=\"item-58adda15-06d9-43be-a413-368e7386d954\"><test>item-58adda15-06d9-43be-a413-368e7386d954</test></item>"
    ]
}

2020-09-09 22:58:04 | [Mutex] notify: [retrieved:item:item-58adda15-06d9-43be-a413-368e7386d954:payload-matches:true:localhost]

2020-09-09 22:58:04 | [Mutex] received everything.

2020-09-09 22:58:04 | [Mutex] isItemNotified: retrieved:item:item-58adda15-06d9-43be-a413-368e7386d954:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2020-09-09 22:58:04 |

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

2020-09-09 22:58:04 | ------------------------------------

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

2020-09-09 22:58:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7478ea5a-3ea5-44c7-a047-d3cb630993e3",
        "node-f291fc98-7d70-4345-9e94-d8464f92c6d6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-09 22:58:04 |

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

2020-09-09 22:58:04 | ------------------------------------

2020-09-09 22:58:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f291fc98-7d70-4345-9e94-d8464f92c6d6)"
}

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

subscribeNodes 1.011s
2020-09-09 22:58:03 |

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

2020-09-09 22:58:03 | ------------------------------------

2020-09-09 22:58:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2020-09-09 22:58:04 |

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

2020-09-09 22:58:04 | ------------------------------------

2020-09-09 22:58:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f291fc98-7d70-4345-9e94-d8464f92c6d6",
    "jids": [
        "admin@test-domain.com"
    ]
}

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