Generated by TestNG with ReportNG at 22:14 PDT on Sunday 25 April 2021
root@b2c2a8eba6e6 / 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.010s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.148s
2021-04-25 22:30:15 |

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

2021-04-25 22:30:15 | ------------------------------------

2021-04-25 22:30:15 | [Mutex] waiting for: [configured:node:node-c1ecafa9-8484-4513-9b17-04383582525b:node-52a2ace7-ca99-41d9-a566-10eee3941a97]

2021-04-25 22:30:15 | [Mutex] received everything.

2021-04-25 22:30:15 | [Mutex] isItemNotified: configured:node:node-c1ecafa9-8484-4513-9b17-04383582525b:node-52a2ace7-ca99-41d9-a566-10eee3941a97 :: true

2021-04-25 22:30:16 | [Mutex] waiting for: [received:nodes:f8ac0cc5-0362-4729-b604-07571ae350e2:localhost]

2021-04-25 22:30:16 | [Mutex] received everything.

2021-04-25 22:30:16 | [Mutex] isItemNotified: received:node:f8ac0cc5-0362-4729-b604-07571ae350e2:localhost:node-c1ecafa9-8484-4513-9b17-04383582525b:Node c1ecafa9-8484-4513-9b17-04383582525b :: true

2021-04-25 22:30:16 | [Mutex] waiting for: [received:nodes:73957d79-5f7e-44cc-bdff-509216ca5c5f:localhost]

2021-04-25 22:30:16 | [Mutex] waiting for: [received:nodes:73957d79-5f7e-44cc-bdff-509216ca5c5f:localhost]

2021-04-25 22:30:16 | [Mutex] received everything.

2021-04-25 22:30:16 | [Mutex] isItemNotified: received:node:73957d79-5f7e-44cc-bdff-509216ca5c5f:localhost:node-c1ecafa9-8484-4513-9b17-04383582525b:Node c1ecafa9-8484-4513-9b17-04383582525b :: false

createNodes 1.605s
2021-04-25 22:30:13 |

2021-04-25 22:30:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:30:13 | ------------------------------------

2021-04-25 22:30:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "pubsub#title": "Node c1ecafa9-8484-4513-9b17-04383582525b"
}

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

2021-04-25 22:30:14 | [Mutex] waiting for: [received:nodes:f8f6613a-4261-44dd-96d9-cffa15a17574:localhost]

2021-04-25 22:30:14 | [Mutex] waiting for: [received:nodes:f8f6613a-4261-44dd-96d9-cffa15a17574:localhost]

2021-04-25 22:30:14 | [Mutex] received everything.

2021-04-25 22:30:14 | [Mutex] isItemNotified: received:node:f8f6613a-4261-44dd-96d9-cffa15a17574:localhost:node-c1ecafa9-8484-4513-9b17-04383582525b:Node c1ecafa9-8484-4513-9b17-04383582525b :: true

createSubnodes 1.026s
2021-04-25 22:30:14 |

2021-04-25 22:30:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:30:14 | ------------------------------------

2021-04-25 22:30:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-52a2ace7-ca99-41d9-a566-10eee3941a97",
    "pubsub#title": "Node 52a2ace7-ca99-41d9-a566-10eee3941a97"
}

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

2021-04-25 22:30:15 | [Mutex] waiting for: [received:nodes:44dff588-ed2b-4629-a2a8-0e73b9cafdfa:localhost]

2021-04-25 22:30:15 | [Mutex] received everything.

2021-04-25 22:30:15 | [Mutex] isItemNotified: received:node:44dff588-ed2b-4629-a2a8-0e73b9cafdfa:localhost:node-52a2ace7-ca99-41d9-a566-10eee3941a97:Node 52a2ace7-ca99-41d9-a566-10eee3941a97 :: true

deleteNodes 1.021s
2021-04-25 22:30:20 |

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

2021-04-25 22:30:20 | ------------------------------------

2021-04-25 22:30:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-52a2ace7-ca99-41d9-a566-10eee3941a97"
}

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

2021-04-25 22:30:21 | [Mutex] waiting for: [received:nodes:fbf4b3d8-37ba-4c75-aabf-da3fa1346ade:localhost]

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

2021-04-25 22:30:21 | [Mutex] isItemNotified: received:node:fbf4b3d8-37ba-4c75-aabf-da3fa1346ade:localhost:node-52a2ace7-ca99-41d9-a566-10eee3941a97:Node 52a2ace7-ca99-41d9-a566-10eee3941a97 :: false

deleteSubnodes 1.024s
2021-04-25 22:30:19 |

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

2021-04-25 22:30:19 | ------------------------------------

2021-04-25 22:30:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b"
}

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

2021-04-25 22:30:20 | [Mutex] waiting for: [received:nodes:bb337e24-a5c3-49d4-b886-38d4f1a6882b:localhost]

2021-04-25 22:30:20 | [Mutex] waiting for: [received:nodes:bb337e24-a5c3-49d4-b886-38d4f1a6882b:localhost]

2021-04-25 22:30:20 | [Mutex] waiting for: [received:nodes:bb337e24-a5c3-49d4-b886-38d4f1a6882b:localhost]

2021-04-25 22:30:20 | [Mutex] received everything.

2021-04-25 22:30:20 | [Mutex] isItemNotified: received:node:bb337e24-a5c3-49d4-b886-38d4f1a6882b:localhost:node-c1ecafa9-8484-4513-9b17-04383582525b:Node c1ecafa9-8484-4513-9b17-04383582525b :: false

2021-04-25 22:30:20 | [Mutex] waiting for: [received:nodes:9dff9fdc-dedd-44af-9e57-3a2f15c3cfd1:localhost]

2021-04-25 22:30:20 | [Mutex] received everything.

2021-04-25 22:30:20 | [Mutex] isItemNotified: received:node:9dff9fdc-dedd-44af-9e57-3a2f15c3cfd1:localhost:node-c1ecafa9-8484-4513-9b17-04383582525b:Node c1ecafa9-8484-4513-9b17-04383582525b :: false

publishItemsToNodes 0.056s
2021-04-25 22:30:17 |

2021-04-25 22:30:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:30:17 | ------------------------------------

2021-04-25 22:30:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "entry": "<test>item-3d0d0484-2a23-4713-b7fc-f92466ff81a8</test>",
    "item-id": "item-3d0d0484-2a23-4713-b7fc-f92466ff81a8"
}

2021-04-25 22:30:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3d0d0484-2a23-4713-b7fc-f92466ff81a8"
}

2021-04-25 22:30:18 | [Mutex] waiting for: [published:item:notifieditem-3d0d0484-2a23-4713-b7fc-f92466ff81a8:admin@test-domain.com]

2021-04-25 22:30:18 | [Mutex] received everything.

2021-04-25 22:30:18 | [Mutex] isItemNotified: published:item:notifieditem-3d0d0484-2a23-4713-b7fc-f92466ff81a8:admin@test-domain.com :: true

retractItemsFromNodes 0.108s
2021-04-25 22:30:18 |

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

2021-04-25 22:30:18 | ------------------------------------

2021-04-25 22:30:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "item-id": "item-3d0d0484-2a23-4713-b7fc-f92466ff81a8"
}

2021-04-25 22:30:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3d0d0484-2a23-4713-b7fc-f92466ff81a8"
}

2021-04-25 22:30:18 | [Mutex] waiting for: [retracted:item:notifieditem-3d0d0484-2a23-4713-b7fc-f92466ff81a8:admin@test-domain.com]

2021-04-25 22:30:18 | [Mutex] received everything.

2021-04-25 22:30:18 | [Mutex] isItemNotified: retracted:item:notifieditem-3d0d0484-2a23-4713-b7fc-f92466ff81a8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.047s
2021-04-25 22:30:18 |

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

2021-04-25 22:30:18 | ------------------------------------

2021-04-25 22:30:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "item-id": "item-3d0d0484-2a23-4713-b7fc-f92466ff81a8"
}

2021-04-25 22:30:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "item-id": "item-3d0d0484-2a23-4713-b7fc-f92466ff81a8",
    "item": [
        "<item id=\"item-3d0d0484-2a23-4713-b7fc-f92466ff81a8\"><test>item-3d0d0484-2a23-4713-b7fc-f92466ff81a8</test></item>"
    ]
}

2021-04-25 22:30:18 | [Mutex] notify: [retrieved:item:item-3d0d0484-2a23-4713-b7fc-f92466ff81a8:payload-matches:true:localhost]

2021-04-25 22:30:18 | [Mutex] received everything.

2021-04-25 22:30:18 | [Mutex] isItemNotified: retrieved:item:item-3d0d0484-2a23-4713-b7fc-f92466ff81a8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2021-04-25 22:30:18 |

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

2021-04-25 22:30:18 | ------------------------------------

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

2021-04-25 22:30:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c1ecafa9-8484-4513-9b17-04383582525b",
        "node-52a2ace7-ca99-41d9-a566-10eee3941a97"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-04-25 22:30:18 |

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

2021-04-25 22:30:18 | ------------------------------------

2021-04-25 22:30:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c1ecafa9-8484-4513-9b17-04383582525b)"
}

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

subscribeNodes 1.008s
2021-04-25 22:30:16 |

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

2021-04-25 22:30:16 | ------------------------------------

2021-04-25 22:30:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.052s
2021-04-25 22:30:18 |

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

2021-04-25 22:30:18 | ------------------------------------

2021-04-25 22:30:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c1ecafa9-8484-4513-9b17-04383582525b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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