Generated by TestNG with ReportNG at 21:09 PST on Monday 01 March 2021
root@43fec6d4badf / 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.163s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.107s
2021-03-01 21:23:37 |

2021-03-01 21:23:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:37 | ------------------------------------

2021-03-01 21:23:37 | [Mutex] waiting for: [configured:node:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b]

2021-03-01 21:23:37 | [Mutex] received everything.

2021-03-01 21:23:37 | [Mutex] isItemNotified: configured:node:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b :: true

2021-03-01 21:23:38 | [Mutex] waiting for: [received:nodes:6df92e85-9355-41d8-bee7-58c568cc81b2:localhost]

2021-03-01 21:23:38 | [Mutex] received everything.

2021-03-01 21:23:38 | [Mutex] isItemNotified: received:node:6df92e85-9355-41d8-bee7-58c568cc81b2:localhost:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:Node c5fe098c-815d-4b39-8f1d-51b15edf4b8b :: true

2021-03-01 21:23:38 | [Mutex] waiting for: [received:nodes:c2eca613-ba31-4798-9e9e-28a2799422b8:localhost]

2021-03-01 21:23:38 | [Mutex] received everything.

2021-03-01 21:23:38 | [Mutex] isItemNotified: received:node:c2eca613-ba31-4798-9e9e-28a2799422b8:localhost:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:Node c5fe098c-815d-4b39-8f1d-51b15edf4b8b :: false

createNodes 1.771s
2021-03-01 21:23:34 |

2021-03-01 21:23:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:34 | ------------------------------------

2021-03-01 21:23:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "pubsub#title": "Node c5fe098c-815d-4b39-8f1d-51b15edf4b8b"
}

2021-03-01 21:23:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:23:36 | [Mutex] waiting for: [received:nodes:c8e88050-25dc-4661-9a78-7d29c49cb7a6:localhost]

2021-03-01 21:23:36 | [Mutex] received everything.

2021-03-01 21:23:36 | [Mutex] isItemNotified: received:node:c8e88050-25dc-4661-9a78-7d29c49cb7a6:localhost:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:Node c5fe098c-815d-4b39-8f1d-51b15edf4b8b :: true

createSubnodes 1.024s
2021-03-01 21:23:36 |

2021-03-01 21:23:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:36 | ------------------------------------

2021-03-01 21:23:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b",
    "pubsub#title": "Node afe25b40-9e0f-4df3-a98a-86e3bdf56b0b"
}

2021-03-01 21:23:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:23:37 | [Mutex] waiting for: [received:nodes:3b9c8e6f-c34f-48a4-98bd-f56cd18d6338:localhost]

2021-03-01 21:23:37 | [Mutex] received everything.

2021-03-01 21:23:37 | [Mutex] isItemNotified: received:node:3b9c8e6f-c34f-48a4-98bd-f56cd18d6338:localhost:node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b:Node afe25b40-9e0f-4df3-a98a-86e3bdf56b0b :: true

deleteNodes 1.046s
2021-03-01 21:23:41 |

2021-03-01 21:23:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:41 | ------------------------------------

2021-03-01 21:23:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b"
}

2021-03-01 21:23:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:23:42 | [Mutex] waiting for: [received:nodes:65217766-e889-4d55-a96c-1511895e3d24:localhost]

2021-03-01 21:23:42 | [Mutex] received everything.

2021-03-01 21:23:42 | [Mutex] isItemNotified: received:node:65217766-e889-4d55-a96c-1511895e3d24:localhost:node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b:Node afe25b40-9e0f-4df3-a98a-86e3bdf56b0b :: false

deleteSubnodes 1.026s
2021-03-01 21:23:40 |

2021-03-01 21:23:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:40 | ------------------------------------

2021-03-01 21:23:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b"
}

2021-03-01 21:23:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-01 21:23:41 | [Mutex] waiting for: [received:nodes:8429b07b-0744-4af6-8262-b95d05d8a7a8:localhost]

2021-03-01 21:23:41 | [Mutex] received everything.

2021-03-01 21:23:41 | [Mutex] isItemNotified: received:node:8429b07b-0744-4af6-8262-b95d05d8a7a8:localhost:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:Node c5fe098c-815d-4b39-8f1d-51b15edf4b8b :: false

2021-03-01 21:23:41 | [Mutex] waiting for: [received:nodes:ce474439-c0e2-4cf6-a998-5c41aca8b9f2:localhost]

2021-03-01 21:23:41 | [Mutex] received everything.

2021-03-01 21:23:41 | [Mutex] isItemNotified: received:node:ce474439-c0e2-4cf6-a998-5c41aca8b9f2:localhost:node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b:Node c5fe098c-815d-4b39-8f1d-51b15edf4b8b :: false

publishItemsToNodes 0.054s
2021-03-01 21:23:39 |

2021-03-01 21:23:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:39 | ------------------------------------

2021-03-01 21:23:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "entry": "<test>item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954</test>",
    "item-id": "item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954"
}

2021-03-01 21:23:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954"
}

2021-03-01 21:23:39 | [Mutex] waiting for: [published:item:notifieditem-3e3c2c66-6418-41f9-a6d6-4efc9d52b954:admin@test-domain.com]

2021-03-01 21:23:39 | [Mutex] received everything.

2021-03-01 21:23:39 | [Mutex] isItemNotified: published:item:notifieditem-3e3c2c66-6418-41f9-a6d6-4efc9d52b954:admin@test-domain.com :: true

retractItemsFromNodes 0.072s
2021-03-01 21:23:39 |

2021-03-01 21:23:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:39 | ------------------------------------

2021-03-01 21:23:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "item-id": "item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954"
}

2021-03-01 21:23:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954"
}

2021-03-01 21:23:39 | [Mutex] waiting for: [retracted:item:notifieditem-3e3c2c66-6418-41f9-a6d6-4efc9d52b954:admin@test-domain.com]

2021-03-01 21:23:39 | [Mutex] received everything.

2021-03-01 21:23:39 | [Mutex] isItemNotified: retracted:item:notifieditem-3e3c2c66-6418-41f9-a6d6-4efc9d52b954:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2021-03-01 21:23:39 |

2021-03-01 21:23:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:39 | ------------------------------------

2021-03-01 21:23:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "item-id": "item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954"
}

2021-03-01 21:23:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "item-id": "item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954",
    "item": [
        "<item id=\"item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954\"><test>item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954</test></item>"
    ]
}

2021-03-01 21:23:39 | [Mutex] notify: [retrieved:item:item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954:payload-matches:true:localhost]

2021-03-01 21:23:39 | [Mutex] received everything.

2021-03-01 21:23:39 | [Mutex] isItemNotified: retrieved:item:item-3e3c2c66-6418-41f9-a6d6-4efc9d52b954:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2021-03-01 21:23:39 |

2021-03-01 21:23:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:39 | ------------------------------------

2021-03-01 21:23:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-01 21:23:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-afe25b40-9e0f-4df3-a98a-86e3bdf56b0b",
        "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-03-01 21:23:39 |

2021-03-01 21:23:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:39 | ------------------------------------

2021-03-01 21:23:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b)"
}

2021-03-01 21:23:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.017s
2021-03-01 21:23:38 |

2021-03-01 21:23:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:38 | ------------------------------------

2021-03-01 21:23:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-01 21:23:38 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2021-03-01 21:23:39 |

2021-03-01 21:23:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-01 21:23:39 | ------------------------------------

2021-03-01 21:23:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c5fe098c-815d-4b39-8f1d-51b15edf4b8b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-01 21:23:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}