Generated by TestNG with ReportNG at 22:06 PST on Tuesday 09 November 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 : 8.993s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2021-11-09 22:23:54 |

2021-11-09 22:23:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:54 | ------------------------------------

2021-11-09 22:23:54 | [Mutex] waiting for: [configured:node:node-06a90e32-bc3e-4e39-a9ab-546921086341:node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9]

2021-11-09 22:23:54 | [Mutex] received everything.

2021-11-09 22:23:54 | [Mutex] isItemNotified: configured:node:node-06a90e32-bc3e-4e39-a9ab-546921086341:node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9 :: true

2021-11-09 22:23:55 | [Mutex] waiting for: [received:nodes:9bbea610-20a7-4758-838a-5863aaaeedc6:localhost]

2021-11-09 22:23:55 | [Mutex] waiting for: [received:nodes:9bbea610-20a7-4758-838a-5863aaaeedc6:localhost]

2021-11-09 22:23:55 | [Mutex] received everything.

2021-11-09 22:23:55 | [Mutex] isItemNotified: received:node:9bbea610-20a7-4758-838a-5863aaaeedc6:localhost:node-06a90e32-bc3e-4e39-a9ab-546921086341:Node 06a90e32-bc3e-4e39-a9ab-546921086341 :: true

2021-11-09 22:23:55 | [Mutex] waiting for: [received:nodes:ece74f72-1290-43b5-8279-0253f3ae3b87:localhost]

2021-11-09 22:23:55 | [Mutex] received everything.

2021-11-09 22:23:55 | [Mutex] isItemNotified: received:node:ece74f72-1290-43b5-8279-0253f3ae3b87:localhost:node-06a90e32-bc3e-4e39-a9ab-546921086341:Node 06a90e32-bc3e-4e39-a9ab-546921086341 :: false

createNodes 1.655s
2021-11-09 22:23:51 |

2021-11-09 22:23:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:51 | ------------------------------------

2021-11-09 22:23:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "pubsub#title": "Node 06a90e32-bc3e-4e39-a9ab-546921086341"
}

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

2021-11-09 22:23:53 | [Mutex] waiting for: [received:nodes:e0455195-cb83-47bb-8a9c-7c9796acfc10:localhost]

2021-11-09 22:23:53 | [Mutex] received everything.

2021-11-09 22:23:53 | [Mutex] isItemNotified: received:node:e0455195-cb83-47bb-8a9c-7c9796acfc10:localhost:node-06a90e32-bc3e-4e39-a9ab-546921086341:Node 06a90e32-bc3e-4e39-a9ab-546921086341 :: true

createSubnodes 1.023s
2021-11-09 22:23:53 |

2021-11-09 22:23:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:53 | ------------------------------------

2021-11-09 22:23:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9",
    "pubsub#title": "Node 1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9"
}

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

2021-11-09 22:23:54 | [Mutex] waiting for: [received:nodes:dba79037-b8a5-43d2-b45a-a8a8a0841d9f:localhost]

2021-11-09 22:23:54 | [Mutex] received everything.

2021-11-09 22:23:54 | [Mutex] isItemNotified: received:node:dba79037-b8a5-43d2-b45a-a8a8a0841d9f:localhost:node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9:Node 1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9 :: true

deleteNodes 1.018s
2021-11-09 22:23:58 |

2021-11-09 22:23:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:58 | ------------------------------------

2021-11-09 22:23:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9"
}

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

2021-11-09 22:23:59 | [Mutex] waiting for: [received:nodes:519c0a07-17a7-4424-8e67-a7d89b48cb0c:localhost]

2021-11-09 22:23:59 | [Mutex] waiting for: [received:nodes:519c0a07-17a7-4424-8e67-a7d89b48cb0c:localhost]

2021-11-09 22:23:59 | [Mutex] received everything.

2021-11-09 22:23:59 | [Mutex] isItemNotified: received:node:519c0a07-17a7-4424-8e67-a7d89b48cb0c:localhost:node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9:Node 1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9 :: false

deleteSubnodes 1.029s
2021-11-09 22:23:57 |

2021-11-09 22:23:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:57 | ------------------------------------

2021-11-09 22:23:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341"
}

2021-11-09 22:23:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-11-09 22:23:58 | [Mutex] waiting for: [received:nodes:4ab18a91-3726-47bc-897b-8d685a1a7cc1:localhost]

2021-11-09 22:23:58 | [Mutex] waiting for: [received:nodes:4ab18a91-3726-47bc-897b-8d685a1a7cc1:localhost]

2021-11-09 22:23:58 | [Mutex] received everything.

2021-11-09 22:23:58 | [Mutex] isItemNotified: received:node:4ab18a91-3726-47bc-897b-8d685a1a7cc1:localhost:node-06a90e32-bc3e-4e39-a9ab-546921086341:Node 06a90e32-bc3e-4e39-a9ab-546921086341 :: false

2021-11-09 22:23:58 | [Mutex] waiting for: [received:nodes:94eec838-a9cf-41b3-8eb2-95bbb614ac5c:localhost]

2021-11-09 22:23:58 | [Mutex] received everything.

2021-11-09 22:23:58 | [Mutex] isItemNotified: received:node:94eec838-a9cf-41b3-8eb2-95bbb614ac5c:localhost:node-06a90e32-bc3e-4e39-a9ab-546921086341:Node 06a90e32-bc3e-4e39-a9ab-546921086341 :: false

publishItemsToNodes 0.052s
2021-11-09 22:23:56 |

2021-11-09 22:23:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:56 | ------------------------------------

2021-11-09 22:23:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "entry": "<test>item-64c5bec8-d545-4ded-9036-f3ca519caf0b</test>",
    "item-id": "item-64c5bec8-d545-4ded-9036-f3ca519caf0b"
}

2021-11-09 22:23:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-64c5bec8-d545-4ded-9036-f3ca519caf0b"
}

2021-11-09 22:23:56 | [Mutex] waiting for: [published:item:notifieditem-64c5bec8-d545-4ded-9036-f3ca519caf0b:admin@test-domain.com]

2021-11-09 22:23:56 | [Mutex] received everything.

2021-11-09 22:23:56 | [Mutex] isItemNotified: published:item:notifieditem-64c5bec8-d545-4ded-9036-f3ca519caf0b:admin@test-domain.com :: true

retractItemsFromNodes 0.068s
2021-11-09 22:23:56 |

2021-11-09 22:23:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:56 | ------------------------------------

2021-11-09 22:23:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "item-id": "item-64c5bec8-d545-4ded-9036-f3ca519caf0b"
}

2021-11-09 22:23:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-64c5bec8-d545-4ded-9036-f3ca519caf0b"
}

2021-11-09 22:23:56 | [Mutex] received everything.

2021-11-09 22:23:56 | [Mutex] isItemNotified: retracted:item:notifieditem-64c5bec8-d545-4ded-9036-f3ca519caf0b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2021-11-09 22:23:56 |

2021-11-09 22:23:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:56 | ------------------------------------

2021-11-09 22:23:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "item-id": "item-64c5bec8-d545-4ded-9036-f3ca519caf0b"
}

2021-11-09 22:23:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "item-id": "item-64c5bec8-d545-4ded-9036-f3ca519caf0b",
    "item": [
        "<item id=\"item-64c5bec8-d545-4ded-9036-f3ca519caf0b\"><test>item-64c5bec8-d545-4ded-9036-f3ca519caf0b</test></item>"
    ]
}

2021-11-09 22:23:56 | [Mutex] notify: [retrieved:item:item-64c5bec8-d545-4ded-9036-f3ca519caf0b:payload-matches:true:localhost]

2021-11-09 22:23:56 | [Mutex] received everything.

2021-11-09 22:23:56 | [Mutex] isItemNotified: retrieved:item:item-64c5bec8-d545-4ded-9036-f3ca519caf0b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-11-09 22:23:56 |

2021-11-09 22:23:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:56 | ------------------------------------

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

2021-11-09 22:23:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-06a90e32-bc3e-4e39-a9ab-546921086341",
        "node-1fa834cb-83e5-4cc8-a2ef-8c9812e88ae9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-11-09 22:23:56 |

2021-11-09 22:23:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:56 | ------------------------------------

2021-11-09 22:23:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-06a90e32-bc3e-4e39-a9ab-546921086341)"
}

2021-11-09 22:23:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.047s
2021-11-09 22:23:55 |

2021-11-09 22:23:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:55 | ------------------------------------

2021-11-09 22:23:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-09 22:23:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2021-11-09 22:23:56 |

2021-11-09 22:23:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-11-09 22:23:56 | ------------------------------------

2021-11-09 22:23:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-06a90e32-bc3e-4e39-a9ab-546921086341",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-11-09 22:23:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}