Generated by TestNG with ReportNG at 22:30 PDT on Wednesday 21 April 2021
root@785cf647a4ab / 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.329s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.120s
2021-04-21 22:44:18 |

2021-04-21 22:44:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:18 | ------------------------------------

2021-04-21 22:44:18 | [Mutex] waiting for: [configured:node:node-1f47f01e-5b65-406d-9059-38b4eb881a89:node-84c09b54-fc58-4354-8d0a-84ef5e01b692]

2021-04-21 22:44:18 | [Mutex] received everything.

2021-04-21 22:44:18 | [Mutex] isItemNotified: configured:node:node-1f47f01e-5b65-406d-9059-38b4eb881a89:node-84c09b54-fc58-4354-8d0a-84ef5e01b692 :: true

2021-04-21 22:44:19 | [Mutex] waiting for: [received:nodes:6ae526a1-a04f-4654-aa02-638784608725:localhost]

2021-04-21 22:44:19 | [Mutex] received everything.

2021-04-21 22:44:19 | [Mutex] isItemNotified: received:node:6ae526a1-a04f-4654-aa02-638784608725:localhost:node-1f47f01e-5b65-406d-9059-38b4eb881a89:Node 1f47f01e-5b65-406d-9059-38b4eb881a89 :: true

2021-04-21 22:44:19 | [Mutex] waiting for: [received:nodes:2022ed08-0eca-4ec8-868c-ee0b9ba0b78c:localhost]

2021-04-21 22:44:19 | [Mutex] received everything.

2021-04-21 22:44:19 | [Mutex] isItemNotified: received:node:2022ed08-0eca-4ec8-868c-ee0b9ba0b78c:localhost:node-1f47f01e-5b65-406d-9059-38b4eb881a89:Node 1f47f01e-5b65-406d-9059-38b4eb881a89 :: false

createNodes 1.681s
2021-04-21 22:44:15 |

2021-04-21 22:44:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:15 | ------------------------------------

2021-04-21 22:44:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "pubsub#title": "Node 1f47f01e-5b65-406d-9059-38b4eb881a89"
}

2021-04-21 22:44:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:44:16 | [Mutex] waiting for: [received:nodes:64c01c1e-0861-4725-b77d-32f1e01b8908:localhost]

2021-04-21 22:44:16 | [Mutex] received everything.

2021-04-21 22:44:16 | [Mutex] isItemNotified: received:node:64c01c1e-0861-4725-b77d-32f1e01b8908:localhost:node-1f47f01e-5b65-406d-9059-38b4eb881a89:Node 1f47f01e-5b65-406d-9059-38b4eb881a89 :: true

createSubnodes 1.025s
2021-04-21 22:44:16 |

2021-04-21 22:44:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:16 | ------------------------------------

2021-04-21 22:44:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-84c09b54-fc58-4354-8d0a-84ef5e01b692",
    "pubsub#title": "Node 84c09b54-fc58-4354-8d0a-84ef5e01b692"
}

2021-04-21 22:44:17 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:44:18 | [Mutex] waiting for: [received:nodes:ea80f63d-3fe0-4a4f-951f-d6a716ab8c08:localhost]

2021-04-21 22:44:18 | [Mutex] received everything.

2021-04-21 22:44:18 | [Mutex] isItemNotified: received:node:ea80f63d-3fe0-4a4f-951f-d6a716ab8c08:localhost:node-84c09b54-fc58-4354-8d0a-84ef5e01b692:Node 84c09b54-fc58-4354-8d0a-84ef5e01b692 :: true

deleteNodes 1.023s
2021-04-21 22:44:22 |

2021-04-21 22:44:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:22 | ------------------------------------

2021-04-21 22:44:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-84c09b54-fc58-4354-8d0a-84ef5e01b692"
}

2021-04-21 22:44:22 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:44:23 | [Mutex] waiting for: [received:nodes:023f3ad2-811d-40f9-84fb-12852980acfc:localhost]

2021-04-21 22:44:23 | [Mutex] received everything.

2021-04-21 22:44:23 | [Mutex] isItemNotified: received:node:023f3ad2-811d-40f9-84fb-12852980acfc:localhost:node-84c09b54-fc58-4354-8d0a-84ef5e01b692:Node 84c09b54-fc58-4354-8d0a-84ef5e01b692 :: false

deleteSubnodes 1.028s
2021-04-21 22:44:21 |

2021-04-21 22:44:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:21 | ------------------------------------

2021-04-21 22:44:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89"
}

2021-04-21 22:44:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-21 22:44:22 | [Mutex] waiting for: [received:nodes:eac78906-db13-45c0-a320-2a25b25fa3e5:localhost]

2021-04-21 22:44:22 | [Mutex] received everything.

2021-04-21 22:44:22 | [Mutex] isItemNotified: received:node:eac78906-db13-45c0-a320-2a25b25fa3e5:localhost:node-1f47f01e-5b65-406d-9059-38b4eb881a89:Node 1f47f01e-5b65-406d-9059-38b4eb881a89 :: false

2021-04-21 22:44:22 | [Mutex] waiting for: [received:nodes:c744707d-2c4e-4d5b-8cbe-7f043b12f327:localhost]

2021-04-21 22:44:22 | [Mutex] received everything.

2021-04-21 22:44:22 | [Mutex] isItemNotified: received:node:c744707d-2c4e-4d5b-8cbe-7f043b12f327:localhost:node-1f47f01e-5b65-406d-9059-38b4eb881a89:Node 1f47f01e-5b65-406d-9059-38b4eb881a89 :: false

publishItemsToNodes 0.046s
2021-04-21 22:44:20 |

2021-04-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:20 | ------------------------------------

2021-04-21 22:44:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "entry": "<test>item-bf288b79-a896-40d7-82ef-55da82ce08be</test>",
    "item-id": "item-bf288b79-a896-40d7-82ef-55da82ce08be"
}

2021-04-21 22:44:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bf288b79-a896-40d7-82ef-55da82ce08be"
}

2021-04-21 22:44:20 | [Mutex] waiting for: [published:item:notifieditem-bf288b79-a896-40d7-82ef-55da82ce08be:admin@test-domain.com]

2021-04-21 22:44:20 | [Mutex] received everything.

2021-04-21 22:44:20 | [Mutex] isItemNotified: published:item:notifieditem-bf288b79-a896-40d7-82ef-55da82ce08be:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2021-04-21 22:44:20 |

2021-04-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:20 | ------------------------------------

2021-04-21 22:44:20 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "item-id": "item-bf288b79-a896-40d7-82ef-55da82ce08be"
}

2021-04-21 22:44:20 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bf288b79-a896-40d7-82ef-55da82ce08be"
}

2021-04-21 22:44:20 | [Mutex] received everything.

2021-04-21 22:44:20 | [Mutex] isItemNotified: retracted:item:notifieditem-bf288b79-a896-40d7-82ef-55da82ce08be:admin@test-domain.com :: true

retrieveItemsFromNodes 0.095s
2021-04-21 22:44:20 |

2021-04-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:20 | ------------------------------------

2021-04-21 22:44:20 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "item-id": "item-bf288b79-a896-40d7-82ef-55da82ce08be"
}

2021-04-21 22:44:20 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "item-id": "item-bf288b79-a896-40d7-82ef-55da82ce08be",
    "item": [
        "<item id=\"item-bf288b79-a896-40d7-82ef-55da82ce08be\"><test>item-bf288b79-a896-40d7-82ef-55da82ce08be</test></item>"
    ]
}

2021-04-21 22:44:20 | [Mutex] notify: [retrieved:item:item-bf288b79-a896-40d7-82ef-55da82ce08be:payload-matches:true:localhost]

2021-04-21 22:44:20 | [Mutex] received everything.

2021-04-21 22:44:20 | [Mutex] isItemNotified: retrieved:item:item-bf288b79-a896-40d7-82ef-55da82ce08be:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2021-04-21 22:44:20 |

2021-04-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:20 | ------------------------------------

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

2021-04-21 22:44:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-84c09b54-fc58-4354-8d0a-84ef5e01b692",
        "node-1f47f01e-5b65-406d-9059-38b4eb881a89"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-21 22:44:20 |

2021-04-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:20 | ------------------------------------

2021-04-21 22:44:20 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1f47f01e-5b65-406d-9059-38b4eb881a89)"
}

2021-04-21 22:44:20 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-04-21 22:44:19 |

2021-04-21 22:44:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:19 | ------------------------------------

2021-04-21 22:44:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-21 22:44:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.179s
2021-04-21 22:44:20 |

2021-04-21 22:44:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-21 22:44:20 | ------------------------------------

2021-04-21 22:44:20 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1f47f01e-5b65-406d-9059-38b4eb881a89",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-21 22:44:20 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}