Generated by TestNG with ReportNG at 23:15 PDT on Monday 21 September 2020
root@d2a27fcc5bc3 / 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.983s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2020-09-21 23:30:44 |

2020-09-21 23:30:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:44 | ------------------------------------

2020-09-21 23:30:44 | [Mutex] waiting for: [configured:node:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0]

2020-09-21 23:30:44 | [Mutex] received everything.

2020-09-21 23:30:44 | [Mutex] isItemNotified: configured:node:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0 :: true

2020-09-21 23:30:45 | [Mutex] waiting for: [received:nodes:99ea8041-1007-4a88-9630-bb149a9f76c0:localhost]

2020-09-21 23:30:45 | [Mutex] received everything.

2020-09-21 23:30:45 | [Mutex] isItemNotified: received:node:99ea8041-1007-4a88-9630-bb149a9f76c0:localhost:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:Node 385245cf-c7f2-4921-b15a-ebf6306c1c5d :: true

2020-09-21 23:30:45 | [Mutex] waiting for: [received:nodes:19c123a3-39e7-47ac-8df0-7d071f96ec5e:localhost]

2020-09-21 23:30:45 | [Mutex] received everything.

2020-09-21 23:30:45 | [Mutex] isItemNotified: received:node:19c123a3-39e7-47ac-8df0-7d071f96ec5e:localhost:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:Node 385245cf-c7f2-4921-b15a-ebf6306c1c5d :: false

createNodes 1.733s
2020-09-21 23:30:41 |

2020-09-21 23:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:41 | ------------------------------------

2020-09-21 23:30:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "pubsub#title": "Node 385245cf-c7f2-4921-b15a-ebf6306c1c5d"
}

2020-09-21 23:30:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-21 23:30:43 | [Mutex] waiting for: [received:nodes:5f55f426-d8c9-476e-a3df-229626fb8048:localhost]

2020-09-21 23:30:43 | [Mutex] waiting for: [received:nodes:5f55f426-d8c9-476e-a3df-229626fb8048:localhost]

2020-09-21 23:30:43 | [Mutex] received everything.

2020-09-21 23:30:43 | [Mutex] isItemNotified: received:node:5f55f426-d8c9-476e-a3df-229626fb8048:localhost:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:Node 385245cf-c7f2-4921-b15a-ebf6306c1c5d :: true

createSubnodes 1.025s
2020-09-21 23:30:43 |

2020-09-21 23:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:43 | ------------------------------------

2020-09-21 23:30:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0",
    "pubsub#title": "Node 05f429ee-d9d4-4244-a8a9-e7cd07c737d0"
}

2020-09-21 23:30:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-21 23:30:44 | [Mutex] waiting for: [received:nodes:72846698-fb24-4e98-89ab-ea9fd5da2651:localhost]

2020-09-21 23:30:44 | [Mutex] received everything.

2020-09-21 23:30:44 | [Mutex] isItemNotified: received:node:72846698-fb24-4e98-89ab-ea9fd5da2651:localhost:node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0:Node 05f429ee-d9d4-4244-a8a9-e7cd07c737d0 :: true

deleteNodes 1.021s
2020-09-21 23:30:49 |

2020-09-21 23:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:49 | ------------------------------------

2020-09-21 23:30:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0"
}

2020-09-21 23:30:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-21 23:30:50 | [Mutex] waiting for: [received:nodes:09df9a4d-abf5-4636-9706-bd49388e2d17:localhost]

2020-09-21 23:30:50 | [Mutex] waiting for: [received:nodes:09df9a4d-abf5-4636-9706-bd49388e2d17:localhost]

2020-09-21 23:30:50 | [Mutex] received everything.

2020-09-21 23:30:50 | [Mutex] isItemNotified: received:node:09df9a4d-abf5-4636-9706-bd49388e2d17:localhost:node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0:Node 05f429ee-d9d4-4244-a8a9-e7cd07c737d0 :: false

deleteSubnodes 1.027s
2020-09-21 23:30:48 |

2020-09-21 23:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:48 | ------------------------------------

2020-09-21 23:30:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d"
}

2020-09-21 23:30:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-21 23:30:49 | [Mutex] waiting for: [received:nodes:b8967ebc-dc33-4fdc-837f-85f862c6f262:localhost]

2020-09-21 23:30:49 | [Mutex] received everything.

2020-09-21 23:30:49 | [Mutex] isItemNotified: received:node:b8967ebc-dc33-4fdc-837f-85f862c6f262:localhost:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:Node 385245cf-c7f2-4921-b15a-ebf6306c1c5d :: false

2020-09-21 23:30:49 | [Mutex] waiting for: [received:nodes:f7d73c64-d33c-433e-b103-03c432b0210a:localhost]

2020-09-21 23:30:49 | [Mutex] received everything.

2020-09-21 23:30:49 | [Mutex] isItemNotified: received:node:f7d73c64-d33c-433e-b103-03c432b0210a:localhost:node-385245cf-c7f2-4921-b15a-ebf6306c1c5d:Node 385245cf-c7f2-4921-b15a-ebf6306c1c5d :: false

publishItemsToNodes 0.065s
2020-09-21 23:30:46 |

2020-09-21 23:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:46 | ------------------------------------

2020-09-21 23:30:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "entry": "<test>item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c</test>",
    "item-id": "item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c"
}

2020-09-21 23:30:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c"
}

2020-09-21 23:30:46 | [Mutex] waiting for: [published:item:notifieditem-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c:admin@test-domain.com]

2020-09-21 23:30:46 | [Mutex] received everything.

2020-09-21 23:30:46 | [Mutex] isItemNotified: published:item:notifieditem-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2020-09-21 23:30:47 |

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

2020-09-21 23:30:47 | ------------------------------------

2020-09-21 23:30:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "item-id": "item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c"
}

2020-09-21 23:30:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c"
}

2020-09-21 23:30:47 | [Mutex] received everything.

2020-09-21 23:30:47 | [Mutex] isItemNotified: retracted:item:notifieditem-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.064s
2020-09-21 23:30:46 |

2020-09-21 23:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:46 | ------------------------------------

2020-09-21 23:30:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "item-id": "item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c"
}

2020-09-21 23:30:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "item-id": "item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c",
    "item": [
        "<item id=\"item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c\"><test>item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c</test></item>"
    ]
}

2020-09-21 23:30:46 | [Mutex] notify: [retrieved:item:item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c:payload-matches:true:localhost]

2020-09-21 23:30:46 | [Mutex] received everything.

2020-09-21 23:30:46 | [Mutex] isItemNotified: retrieved:item:item-0d06289a-f0af-4e8b-85ec-97cdef0d4c8c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2020-09-21 23:30:46 |

2020-09-21 23:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:46 | ------------------------------------

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

2020-09-21 23:30:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-05f429ee-d9d4-4244-a8a9-e7cd07c737d0",
        "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-21 23:30:46 |

2020-09-21 23:30:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:46 | ------------------------------------

2020-09-21 23:30:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-385245cf-c7f2-4921-b15a-ebf6306c1c5d)"
}

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

subscribeNodes 1.012s
2020-09-21 23:30:45 |

2020-09-21 23:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-21 23:30:45 | ------------------------------------

2020-09-21 23:30:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-21 23:30:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2020-09-21 23:30:47 |

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

2020-09-21 23:30:47 | ------------------------------------

2020-09-21 23:30:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-385245cf-c7f2-4921-b15a-ebf6306c1c5d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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