Generated by TestNG with ReportNG at 22:16 PDT on Monday 13 September 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.041s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2021-09-13 22:31:44 |

2021-09-13 22:31:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:44 | ------------------------------------

2021-09-13 22:31:44 | [Mutex] waiting for: [configured:node:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:node-72a94c10-a252-4317-8725-b58ed3e1fedf]

2021-09-13 22:31:44 | [Mutex] received everything.

2021-09-13 22:31:44 | [Mutex] isItemNotified: configured:node:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:node-72a94c10-a252-4317-8725-b58ed3e1fedf :: true

2021-09-13 22:31:45 | [Mutex] waiting for: [received:nodes:4f312a0a-e3be-4e22-a8a1-54d7b20c1001:localhost]

2021-09-13 22:31:45 | [Mutex] waiting for: [received:nodes:4f312a0a-e3be-4e22-a8a1-54d7b20c1001:localhost]

2021-09-13 22:31:45 | [Mutex] received everything.

2021-09-13 22:31:45 | [Mutex] isItemNotified: received:node:4f312a0a-e3be-4e22-a8a1-54d7b20c1001:localhost:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:Node 2ffe684e-91f2-4300-a178-cb5bc38c75a3 :: true

2021-09-13 22:31:45 | [Mutex] waiting for: [received:nodes:eebfbb68-80a0-4307-97b5-434f423e7c7c:localhost]

2021-09-13 22:31:45 | [Mutex] waiting for: [received:nodes:eebfbb68-80a0-4307-97b5-434f423e7c7c:localhost]

2021-09-13 22:31:45 | [Mutex] waiting for: [received:nodes:eebfbb68-80a0-4307-97b5-434f423e7c7c:localhost]

2021-09-13 22:31:45 | [Mutex] received everything.

2021-09-13 22:31:45 | [Mutex] isItemNotified: received:node:eebfbb68-80a0-4307-97b5-434f423e7c7c:localhost:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:Node 2ffe684e-91f2-4300-a178-cb5bc38c75a3 :: false

createNodes 1.648s
2021-09-13 22:31:41 |

2021-09-13 22:31:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:41 | ------------------------------------

2021-09-13 22:31: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-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "pubsub#title": "Node 2ffe684e-91f2-4300-a178-cb5bc38c75a3"
}

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

2021-09-13 22:31:43 | [Mutex] waiting for: [received:nodes:18f929fd-4e9e-4f37-b9dd-9136ee41b7bc:localhost]

2021-09-13 22:31:43 | [Mutex] received everything.

2021-09-13 22:31:43 | [Mutex] isItemNotified: received:node:18f929fd-4e9e-4f37-b9dd-9136ee41b7bc:localhost:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:Node 2ffe684e-91f2-4300-a178-cb5bc38c75a3 :: true

createSubnodes 1.027s
2021-09-13 22:31:43 |

2021-09-13 22:31:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:43 | ------------------------------------

2021-09-13 22:31: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-72a94c10-a252-4317-8725-b58ed3e1fedf",
    "pubsub#title": "Node 72a94c10-a252-4317-8725-b58ed3e1fedf"
}

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

2021-09-13 22:31:44 | [Mutex] waiting for: [received:nodes:a7e774b9-dcdb-4ca7-ae5b-a568fa005bf9:localhost]

2021-09-13 22:31:44 | [Mutex] received everything.

2021-09-13 22:31:44 | [Mutex] isItemNotified: received:node:a7e774b9-dcdb-4ca7-ae5b-a568fa005bf9:localhost:node-72a94c10-a252-4317-8725-b58ed3e1fedf:Node 72a94c10-a252-4317-8725-b58ed3e1fedf :: true

deleteNodes 1.025s
2021-09-13 22:31:48 |

2021-09-13 22:31:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:48 | ------------------------------------

2021-09-13 22:31:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-72a94c10-a252-4317-8725-b58ed3e1fedf"
}

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

2021-09-13 22:31:49 | [Mutex] waiting for: [received:nodes:510bd579-1077-4742-806e-c42f41d66f07:localhost]

2021-09-13 22:31:49 | [Mutex] received everything.

2021-09-13 22:31:49 | [Mutex] isItemNotified: received:node:510bd579-1077-4742-806e-c42f41d66f07:localhost:node-72a94c10-a252-4317-8725-b58ed3e1fedf:Node 72a94c10-a252-4317-8725-b58ed3e1fedf :: false

deleteSubnodes 1.029s
2021-09-13 22:31:47 |

2021-09-13 22:31:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:47 | ------------------------------------

2021-09-13 22:31:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3"
}

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

2021-09-13 22:31:48 | [Mutex] waiting for: [received:nodes:87881316-8b15-4ce5-8065-dd4f7971d7db:localhost]

2021-09-13 22:31:48 | [Mutex] received everything.

2021-09-13 22:31:48 | [Mutex] isItemNotified: received:node:87881316-8b15-4ce5-8065-dd4f7971d7db:localhost:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:Node 2ffe684e-91f2-4300-a178-cb5bc38c75a3 :: false

2021-09-13 22:31:48 | [Mutex] waiting for: [received:nodes:fe16d5a2-7e13-4402-ba46-f5b34a9fa4a6:localhost]

2021-09-13 22:31:48 | [Mutex] received everything.

2021-09-13 22:31:48 | [Mutex] isItemNotified: received:node:fe16d5a2-7e13-4402-ba46-f5b34a9fa4a6:localhost:node-2ffe684e-91f2-4300-a178-cb5bc38c75a3:Node 2ffe684e-91f2-4300-a178-cb5bc38c75a3 :: false

publishItemsToNodes 0.043s
2021-09-13 22:31:46 |

2021-09-13 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:46 | ------------------------------------

2021-09-13 22:31:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "entry": "<test>item-e35438fa-2422-43f0-897d-4b68061c1957</test>",
    "item-id": "item-e35438fa-2422-43f0-897d-4b68061c1957"
}

2021-09-13 22:31:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e35438fa-2422-43f0-897d-4b68061c1957"
}

2021-09-13 22:31:46 | [Mutex] waiting for: [published:item:notifieditem-e35438fa-2422-43f0-897d-4b68061c1957:admin@test-domain.com]

2021-09-13 22:31:46 | [Mutex] received everything.

2021-09-13 22:31:46 | [Mutex] isItemNotified: published:item:notifieditem-e35438fa-2422-43f0-897d-4b68061c1957:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-09-13 22:31:46 |

2021-09-13 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:46 | ------------------------------------

2021-09-13 22:31:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "item-id": "item-e35438fa-2422-43f0-897d-4b68061c1957"
}

2021-09-13 22:31:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e35438fa-2422-43f0-897d-4b68061c1957"
}

2021-09-13 22:31:46 | [Mutex] received everything.

2021-09-13 22:31:46 | [Mutex] isItemNotified: retracted:item:notifieditem-e35438fa-2422-43f0-897d-4b68061c1957:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2021-09-13 22:31:46 |

2021-09-13 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:46 | ------------------------------------

2021-09-13 22:31:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "item-id": "item-e35438fa-2422-43f0-897d-4b68061c1957"
}

2021-09-13 22:31:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "item-id": "item-e35438fa-2422-43f0-897d-4b68061c1957",
    "item": [
        "<item id=\"item-e35438fa-2422-43f0-897d-4b68061c1957\"><test>item-e35438fa-2422-43f0-897d-4b68061c1957</test></item>"
    ]
}

2021-09-13 22:31:46 | [Mutex] notify: [retrieved:item:item-e35438fa-2422-43f0-897d-4b68061c1957:payload-matches:true:localhost]

2021-09-13 22:31:46 | [Mutex] received everything.

2021-09-13 22:31:46 | [Mutex] isItemNotified: retrieved:item:item-e35438fa-2422-43f0-897d-4b68061c1957:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.163s
2021-09-13 22:31:46 |

2021-09-13 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:46 | ------------------------------------

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

2021-09-13 22:31:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-72a94c10-a252-4317-8725-b58ed3e1fedf",
        "test",
        "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-09-13 22:31:46 |

2021-09-13 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:46 | ------------------------------------

2021-09-13 22:31:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2ffe684e-91f2-4300-a178-cb5bc38c75a3)"
}

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

subscribeNodes 1.010s
2021-09-13 22:31:45 |

2021-09-13 22:31:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:45 | ------------------------------------

2021-09-13 22:31:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2021-09-13 22:31:46 |

2021-09-13 22:31:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-13 22:31:46 | ------------------------------------

2021-09-13 22:31:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2ffe684e-91f2-4300-a178-cb5bc38c75a3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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