Generated by TestNG with ReportNG at 22:21 PDT on Thursday 18 March 2021
root@eaa73862192b / 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.977s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2021-03-18 22:38:13 |

2021-03-18 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:13 | ------------------------------------

2021-03-18 22:38:13 | [Mutex] waiting for: [configured:node:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2]

2021-03-18 22:38:13 | [Mutex] received everything.

2021-03-18 22:38:13 | [Mutex] isItemNotified: configured:node:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2 :: true

2021-03-18 22:38:14 | [Mutex] waiting for: [received:nodes:6483a894-fb80-4c32-9011-f8cdc5521034:localhost]

2021-03-18 22:38:14 | [Mutex] received everything.

2021-03-18 22:38:14 | [Mutex] isItemNotified: received:node:6483a894-fb80-4c32-9011-f8cdc5521034:localhost:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:Node 64f29a5e-5e00-46d3-89bc-42a7298dfcfa :: true

2021-03-18 22:38:14 | [Mutex] waiting for: [received:nodes:b8e0d9f8-5be6-4373-80c6-086667c5fa00:localhost]

2021-03-18 22:38:14 | [Mutex] received everything.

2021-03-18 22:38:14 | [Mutex] isItemNotified: received:node:b8e0d9f8-5be6-4373-80c6-086667c5fa00:localhost:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:Node 64f29a5e-5e00-46d3-89bc-42a7298dfcfa :: false

createNodes 1.628s
2021-03-18 22:38:10 |

2021-03-18 22:38:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:10 | ------------------------------------

2021-03-18 22:38:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "pubsub#title": "Node 64f29a5e-5e00-46d3-89bc-42a7298dfcfa"
}

2021-03-18 22:38:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-18 22:38:12 | [Mutex] waiting for: [received:nodes:08137ff7-7611-47f4-812d-6a7486790b56:localhost]

2021-03-18 22:38:12 | [Mutex] received everything.

2021-03-18 22:38:12 | [Mutex] isItemNotified: received:node:08137ff7-7611-47f4-812d-6a7486790b56:localhost:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:Node 64f29a5e-5e00-46d3-89bc-42a7298dfcfa :: true

createSubnodes 1.024s
2021-03-18 22:38:12 |

2021-03-18 22:38:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:12 | ------------------------------------

2021-03-18 22:38:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2",
    "pubsub#title": "Node 1ef252e1-da22-4cc9-ac4d-b3aef475eef2"
}

2021-03-18 22:38:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-18 22:38:13 | [Mutex] waiting for: [received:nodes:ba4b6751-f9c1-43d1-a8e7-4f12235aa565:localhost]

2021-03-18 22:38:13 | [Mutex] received everything.

2021-03-18 22:38:13 | [Mutex] isItemNotified: received:node:ba4b6751-f9c1-43d1-a8e7-4f12235aa565:localhost:node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2:Node 1ef252e1-da22-4cc9-ac4d-b3aef475eef2 :: true

deleteNodes 1.024s
2021-03-18 22:38:17 |

2021-03-18 22:38:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:17 | ------------------------------------

2021-03-18 22:38:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2"
}

2021-03-18 22:38:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-18 22:38:18 | [Mutex] waiting for: [received:nodes:5bab44de-ec25-4382-b026-26bedc971a2c:localhost]

2021-03-18 22:38:18 | [Mutex] waiting for: [received:nodes:5bab44de-ec25-4382-b026-26bedc971a2c:localhost]

2021-03-18 22:38:18 | [Mutex] received everything.

2021-03-18 22:38:18 | [Mutex] isItemNotified: received:node:5bab44de-ec25-4382-b026-26bedc971a2c:localhost:node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2:Node 1ef252e1-da22-4cc9-ac4d-b3aef475eef2 :: false

deleteSubnodes 1.027s
2021-03-18 22:38:16 |

2021-03-18 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:16 | ------------------------------------

2021-03-18 22:38:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa"
}

2021-03-18 22:38:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-18 22:38:17 | [Mutex] waiting for: [received:nodes:b5c9c962-c119-4c92-ba1b-e5891302a1bd:localhost]

2021-03-18 22:38:17 | [Mutex] received everything.

2021-03-18 22:38:17 | [Mutex] isItemNotified: received:node:b5c9c962-c119-4c92-ba1b-e5891302a1bd:localhost:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:Node 64f29a5e-5e00-46d3-89bc-42a7298dfcfa :: false

2021-03-18 22:38:17 | [Mutex] waiting for: [received:nodes:c62eb339-4eb7-4ffe-8320-3f1b65304d7a:localhost]

2021-03-18 22:38:17 | [Mutex] received everything.

2021-03-18 22:38:17 | [Mutex] isItemNotified: received:node:c62eb339-4eb7-4ffe-8320-3f1b65304d7a:localhost:node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa:Node 64f29a5e-5e00-46d3-89bc-42a7298dfcfa :: false

publishItemsToNodes 0.032s
2021-03-18 22:38:15 |

2021-03-18 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:15 | ------------------------------------

2021-03-18 22:38:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "entry": "<test>item-0660b9df-c736-4a80-a8b2-c84e3878ed3d</test>",
    "item-id": "item-0660b9df-c736-4a80-a8b2-c84e3878ed3d"
}

2021-03-18 22:38:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0660b9df-c736-4a80-a8b2-c84e3878ed3d"
}

2021-03-18 22:38:15 | [Mutex] waiting for: [published:item:notifieditem-0660b9df-c736-4a80-a8b2-c84e3878ed3d:admin@test-domain.com]

2021-03-18 22:38:15 | [Mutex] received everything.

2021-03-18 22:38:15 | [Mutex] isItemNotified: published:item:notifieditem-0660b9df-c736-4a80-a8b2-c84e3878ed3d:admin@test-domain.com :: true

retractItemsFromNodes 0.115s
2021-03-18 22:38:15 |

2021-03-18 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:15 | ------------------------------------

2021-03-18 22:38:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "item-id": "item-0660b9df-c736-4a80-a8b2-c84e3878ed3d"
}

2021-03-18 22:38:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0660b9df-c736-4a80-a8b2-c84e3878ed3d"
}

2021-03-18 22:38:15 | [Mutex] waiting for: [retracted:item:notifieditem-0660b9df-c736-4a80-a8b2-c84e3878ed3d:admin@test-domain.com]

2021-03-18 22:38:15 | [Mutex] received everything.

2021-03-18 22:38:15 | [Mutex] isItemNotified: retracted:item:notifieditem-0660b9df-c736-4a80-a8b2-c84e3878ed3d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.066s
2021-03-18 22:38:15 |

2021-03-18 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:15 | ------------------------------------

2021-03-18 22:38:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "item-id": "item-0660b9df-c736-4a80-a8b2-c84e3878ed3d"
}

2021-03-18 22:38:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "item-id": "item-0660b9df-c736-4a80-a8b2-c84e3878ed3d",
    "item": [
        "<item id=\"item-0660b9df-c736-4a80-a8b2-c84e3878ed3d\"><test>item-0660b9df-c736-4a80-a8b2-c84e3878ed3d</test></item>"
    ]
}

2021-03-18 22:38:15 | [Mutex] notify: [retrieved:item:item-0660b9df-c736-4a80-a8b2-c84e3878ed3d:payload-matches:true:localhost]

2021-03-18 22:38:15 | [Mutex] received everything.

2021-03-18 22:38:15 | [Mutex] isItemNotified: retrieved:item:item-0660b9df-c736-4a80-a8b2-c84e3878ed3d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-03-18 22:38:15 |

2021-03-18 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:15 | ------------------------------------

2021-03-18 22:38:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-18 22:38:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
        "node-1ef252e1-da22-4cc9-ac4d-b3aef475eef2",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-03-18 22:38:15 |

2021-03-18 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:15 | ------------------------------------

2021-03-18 22:38:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa)"
}

2021-03-18 22:38:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-03-18 22:38:14 |

2021-03-18 22:38:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:14 | ------------------------------------

2021-03-18 22:38:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-18 22:38:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.034s
2021-03-18 22:38:15 |

2021-03-18 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-18 22:38:15 | ------------------------------------

2021-03-18 22:38:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-64f29a5e-5e00-46d3-89bc-42a7298dfcfa",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-18 22:38:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}