Generated by TestNG with ReportNG at 22:22 PDT on Wednesday 27 April 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / 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.758s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.146s
2022-04-27 22:36:54 |

2022-04-27 22:36:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:54 | ------------------------------------

2022-04-27 22:36:54 | [Mutex] waiting for: [configured:node:node-9e481212-bff3-4963-8504-d882547bf9cd:node-87f2d658-ed13-405d-80a2-7148d090ea9a]

2022-04-27 22:36:54 | [Mutex] received everything.

2022-04-27 22:36:54 | [Mutex] isItemNotified: configured:node:node-9e481212-bff3-4963-8504-d882547bf9cd:node-87f2d658-ed13-405d-80a2-7148d090ea9a :: true

2022-04-27 22:36:55 | [Mutex] waiting for: [received:nodes:f6adbba0-e838-4503-a4a9-d2bac6fe6700:localhost]

2022-04-27 22:36:55 | [Mutex] received everything.

2022-04-27 22:36:55 | [Mutex] isItemNotified: received:node:f6adbba0-e838-4503-a4a9-d2bac6fe6700:localhost:node-9e481212-bff3-4963-8504-d882547bf9cd:Node 9e481212-bff3-4963-8504-d882547bf9cd :: true

2022-04-27 22:36:55 | [Mutex] waiting for: [received:nodes:ede710f2-b3f9-4974-92a3-86a41e9dc3cd:localhost]

2022-04-27 22:36:55 | [Mutex] received everything.

2022-04-27 22:36:55 | [Mutex] isItemNotified: received:node:ede710f2-b3f9-4974-92a3-86a41e9dc3cd:localhost:node-9e481212-bff3-4963-8504-d882547bf9cd:Node 9e481212-bff3-4963-8504-d882547bf9cd :: false

createNodes 1.541s
2022-04-27 22:36:51 |

2022-04-27 22:36:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:51 | ------------------------------------

2022-04-27 22:36: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-9e481212-bff3-4963-8504-d882547bf9cd",
    "pubsub#title": "Node 9e481212-bff3-4963-8504-d882547bf9cd"
}

2022-04-27 22:36:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:36:53 | [Mutex] waiting for: [received:nodes:8b32a13e-ea47-45a8-97ae-a291d6c14b84:localhost]

2022-04-27 22:36:53 | [Mutex] received everything.

2022-04-27 22:36:53 | [Mutex] isItemNotified: received:node:8b32a13e-ea47-45a8-97ae-a291d6c14b84:localhost:node-9e481212-bff3-4963-8504-d882547bf9cd:Node 9e481212-bff3-4963-8504-d882547bf9cd :: true

createSubnodes 1.022s
2022-04-27 22:36:53 |

2022-04-27 22:36:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:53 | ------------------------------------

2022-04-27 22:36: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-87f2d658-ed13-405d-80a2-7148d090ea9a",
    "pubsub#title": "Node 87f2d658-ed13-405d-80a2-7148d090ea9a"
}

2022-04-27 22:36:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:36:54 | [Mutex] waiting for: [received:nodes:c137853d-af12-4e93-adda-d4f0dd8a1fb3:localhost]

2022-04-27 22:36:54 | [Mutex] received everything.

2022-04-27 22:36:54 | [Mutex] isItemNotified: received:node:c137853d-af12-4e93-adda-d4f0dd8a1fb3:localhost:node-87f2d658-ed13-405d-80a2-7148d090ea9a:Node 87f2d658-ed13-405d-80a2-7148d090ea9a :: true

deleteNodes 1.022s
2022-04-27 22:36:58 |

2022-04-27 22:36:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:58 | ------------------------------------

2022-04-27 22:36:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-87f2d658-ed13-405d-80a2-7148d090ea9a"
}

2022-04-27 22:36:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:36:59 | [Mutex] waiting for: [received:nodes:5d486062-88ca-4b10-90a0-c7ef7c78b672:localhost]

2022-04-27 22:36:59 | [Mutex] waiting for: [received:nodes:5d486062-88ca-4b10-90a0-c7ef7c78b672:localhost]

2022-04-27 22:36:59 | [Mutex] received everything.

2022-04-27 22:36:59 | [Mutex] isItemNotified: received:node:5d486062-88ca-4b10-90a0-c7ef7c78b672:localhost:node-87f2d658-ed13-405d-80a2-7148d090ea9a:Node 87f2d658-ed13-405d-80a2-7148d090ea9a :: false

deleteSubnodes 1.026s
2022-04-27 22:36:57 |

2022-04-27 22:36:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:57 | ------------------------------------

2022-04-27 22:36:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd"
}

2022-04-27 22:36:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-27 22:36:58 | [Mutex] waiting for: [received:nodes:1d586a0d-d324-4171-86c5-83abd7e74d1b:localhost]

2022-04-27 22:36:58 | [Mutex] waiting for: [received:nodes:1d586a0d-d324-4171-86c5-83abd7e74d1b:localhost]

2022-04-27 22:36:58 | [Mutex] received everything.

2022-04-27 22:36:58 | [Mutex] isItemNotified: received:node:1d586a0d-d324-4171-86c5-83abd7e74d1b:localhost:node-9e481212-bff3-4963-8504-d882547bf9cd:Node 9e481212-bff3-4963-8504-d882547bf9cd :: false

2022-04-27 22:36:58 | [Mutex] waiting for: [received:nodes:2abf4c92-f376-44ea-8548-33910fc10db2:localhost]

2022-04-27 22:36:58 | [Mutex] received everything.

2022-04-27 22:36:58 | [Mutex] isItemNotified: received:node:2abf4c92-f376-44ea-8548-33910fc10db2:localhost:node-9e481212-bff3-4963-8504-d882547bf9cd:Node 9e481212-bff3-4963-8504-d882547bf9cd :: false

publishItemsToNodes 0.061s
2022-04-27 22:36:56 |

2022-04-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:56 | ------------------------------------

2022-04-27 22:36:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd",
    "entry": "<test>item-994203f7-a5cd-43da-a1e7-972ef2c257c0</test>",
    "item-id": "item-994203f7-a5cd-43da-a1e7-972ef2c257c0"
}

2022-04-27 22:36:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-994203f7-a5cd-43da-a1e7-972ef2c257c0"
}

2022-04-27 22:36:56 | [Mutex] waiting for: [published:item:notifieditem-994203f7-a5cd-43da-a1e7-972ef2c257c0:admin@test-domain.com]

2022-04-27 22:36:56 | [Mutex] received everything.

2022-04-27 22:36:56 | [Mutex] isItemNotified: published:item:notifieditem-994203f7-a5cd-43da-a1e7-972ef2c257c0:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-04-27 22:36:56 |

2022-04-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:56 | ------------------------------------

2022-04-27 22:36:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd",
    "item-id": "item-994203f7-a5cd-43da-a1e7-972ef2c257c0"
}

2022-04-27 22:36:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-994203f7-a5cd-43da-a1e7-972ef2c257c0"
}

2022-04-27 22:36:56 | [Mutex] received everything.

2022-04-27 22:36:56 | [Mutex] isItemNotified: retracted:item:notifieditem-994203f7-a5cd-43da-a1e7-972ef2c257c0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.034s
2022-04-27 22:36:56 |

2022-04-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:56 | ------------------------------------

2022-04-27 22:36:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd",
    "item-id": "item-994203f7-a5cd-43da-a1e7-972ef2c257c0"
}

2022-04-27 22:36:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd",
    "item-id": "item-994203f7-a5cd-43da-a1e7-972ef2c257c0",
    "item": [
        "<item id=\"item-994203f7-a5cd-43da-a1e7-972ef2c257c0\"><test>item-994203f7-a5cd-43da-a1e7-972ef2c257c0</test></item>"
    ]
}

2022-04-27 22:36:56 | [Mutex] notify: [retrieved:item:item-994203f7-a5cd-43da-a1e7-972ef2c257c0:payload-matches:true:localhost]

2022-04-27 22:36:56 | [Mutex] received everything.

2022-04-27 22:36:56 | [Mutex] isItemNotified: retrieved:item:item-994203f7-a5cd-43da-a1e7-972ef2c257c0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.057s
2022-04-27 22:36:56 |

2022-04-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:56 | ------------------------------------

2022-04-27 22:36:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-04-27 22:36:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9e481212-bff3-4963-8504-d882547bf9cd",
        "node-87f2d658-ed13-405d-80a2-7148d090ea9a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-04-27 22:36:56 |

2022-04-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:56 | ------------------------------------

2022-04-27 22:36:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9e481212-bff3-4963-8504-d882547bf9cd)"
}

2022-04-27 22:36:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2022-04-27 22:36:55 |

2022-04-27 22:36:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:55 | ------------------------------------

2022-04-27 22:36:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 22:36:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-04-27 22:36:56 |

2022-04-27 22:36:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-27 22:36:56 | ------------------------------------

2022-04-27 22:36:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9e481212-bff3-4963-8504-d882547bf9cd",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-27 22:36:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}