Generated by TestNG with ReportNG at 22:15 PDT on Wednesday 28 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.173s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.183s
2021-04-28 22:30:01 |

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

2021-04-28 22:30:01 | ------------------------------------

2021-04-28 22:30:01 | [Mutex] waiting for: [configured:node:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:node-10591f45-6b7b-45c4-9a6d-08dc1328573d]

2021-04-28 22:30:02 | [Mutex] received everything.

2021-04-28 22:30:02 | [Mutex] isItemNotified: configured:node:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:node-10591f45-6b7b-45c4-9a6d-08dc1328573d :: true

2021-04-28 22:30:03 | [Mutex] waiting for: [received:nodes:59e0aa51-0652-4cf3-9a3e-22396b7dd23c:localhost]

2021-04-28 22:30:03 | [Mutex] received everything.

2021-04-28 22:30:03 | [Mutex] isItemNotified: received:node:59e0aa51-0652-4cf3-9a3e-22396b7dd23c:localhost:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:Node 8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee :: true

2021-04-28 22:30:03 | [Mutex] waiting for: [received:nodes:f2fe4123-c40d-4d60-8cf7-cf56c02b5009:localhost]

2021-04-28 22:30:03 | [Mutex] received everything.

2021-04-28 22:30:03 | [Mutex] isItemNotified: received:node:f2fe4123-c40d-4d60-8cf7-cf56c02b5009:localhost:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:Node 8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee :: false

createNodes 1.750s
2021-04-28 22:29:59 |

2021-04-28 22:29:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-28 22:29:59 | ------------------------------------

2021-04-28 22:29:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "pubsub#title": "Node 8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee"
}

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

2021-04-28 22:30:00 | [Mutex] waiting for: [received:nodes:981aafcf-4152-4b75-b392-4a0efb5e573b:localhost]

2021-04-28 22:30:00 | [Mutex] received everything.

2021-04-28 22:30:00 | [Mutex] isItemNotified: received:node:981aafcf-4152-4b75-b392-4a0efb5e573b:localhost:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:Node 8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee :: true

createSubnodes 1.027s
2021-04-28 22:30:00 |

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

2021-04-28 22:30:00 | ------------------------------------

2021-04-28 22:30:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-10591f45-6b7b-45c4-9a6d-08dc1328573d",
    "pubsub#title": "Node 10591f45-6b7b-45c4-9a6d-08dc1328573d"
}

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

2021-04-28 22:30:01 | [Mutex] waiting for: [received:nodes:66be8ff6-12bb-42c7-9c0f-43a2ee69bafc:localhost]

2021-04-28 22:30:01 | [Mutex] received everything.

2021-04-28 22:30:01 | [Mutex] isItemNotified: received:node:66be8ff6-12bb-42c7-9c0f-43a2ee69bafc:localhost:node-10591f45-6b7b-45c4-9a6d-08dc1328573d:Node 10591f45-6b7b-45c4-9a6d-08dc1328573d :: true

deleteNodes 1.019s
2021-04-28 22:30:06 |

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

2021-04-28 22:30:06 | ------------------------------------

2021-04-28 22:30:06 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-10591f45-6b7b-45c4-9a6d-08dc1328573d"
}

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

2021-04-28 22:30:07 | [Mutex] waiting for: [received:nodes:96a27a07-4b1a-4bc5-9920-ccbb7c6893b9:localhost]

2021-04-28 22:30:07 | [Mutex] received everything.

2021-04-28 22:30:07 | [Mutex] isItemNotified: received:node:96a27a07-4b1a-4bc5-9920-ccbb7c6893b9:localhost:node-10591f45-6b7b-45c4-9a6d-08dc1328573d:Node 10591f45-6b7b-45c4-9a6d-08dc1328573d :: false

deleteSubnodes 1.029s
2021-04-28 22:30:05 |

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

2021-04-28 22:30:05 | ------------------------------------

2021-04-28 22:30:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee"
}

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

2021-04-28 22:30:06 | [Mutex] waiting for: [received:nodes:3076361e-d2e0-4d51-9fa0-8e4989d4c362:localhost]

2021-04-28 22:30:06 | [Mutex] waiting for: [received:nodes:3076361e-d2e0-4d51-9fa0-8e4989d4c362:localhost]

2021-04-28 22:30:06 | [Mutex] received everything.

2021-04-28 22:30:06 | [Mutex] isItemNotified: received:node:3076361e-d2e0-4d51-9fa0-8e4989d4c362:localhost:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:Node 8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee :: false

2021-04-28 22:30:06 | [Mutex] waiting for: [received:nodes:47dcfcd7-f63d-4ee8-a40e-37b36599c782:localhost]

2021-04-28 22:30:06 | [Mutex] received everything.

2021-04-28 22:30:06 | [Mutex] isItemNotified: received:node:47dcfcd7-f63d-4ee8-a40e-37b36599c782:localhost:node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee:Node 8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee :: false

publishItemsToNodes 0.069s
2021-04-28 22:30:04 |

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

2021-04-28 22:30:04 | ------------------------------------

2021-04-28 22:30:04 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "entry": "<test>item-d82e4b3d-817d-4703-88af-9dba54cb93bb</test>",
    "item-id": "item-d82e4b3d-817d-4703-88af-9dba54cb93bb"
}

2021-04-28 22:30:04 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d82e4b3d-817d-4703-88af-9dba54cb93bb"
}

2021-04-28 22:30:04 | [Mutex] waiting for: [published:item:notifieditem-d82e4b3d-817d-4703-88af-9dba54cb93bb:admin@test-domain.com]

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

2021-04-28 22:30:04 | [Mutex] isItemNotified: published:item:notifieditem-d82e4b3d-817d-4703-88af-9dba54cb93bb:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-04-28 22:30:04 |

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

2021-04-28 22:30:04 | ------------------------------------

2021-04-28 22:30:04 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "item-id": "item-d82e4b3d-817d-4703-88af-9dba54cb93bb"
}

2021-04-28 22:30:04 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d82e4b3d-817d-4703-88af-9dba54cb93bb"
}

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

2021-04-28 22:30:04 | [Mutex] isItemNotified: retracted:item:notifieditem-d82e4b3d-817d-4703-88af-9dba54cb93bb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2021-04-28 22:30:04 |

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

2021-04-28 22:30:04 | ------------------------------------

2021-04-28 22:30:04 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "item-id": "item-d82e4b3d-817d-4703-88af-9dba54cb93bb"
}

2021-04-28 22:30:04 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "item-id": "item-d82e4b3d-817d-4703-88af-9dba54cb93bb",
    "item": [
        "<item id=\"item-d82e4b3d-817d-4703-88af-9dba54cb93bb\"><test>item-d82e4b3d-817d-4703-88af-9dba54cb93bb</test></item>"
    ]
}

2021-04-28 22:30:04 | [Mutex] notify: [retrieved:item:item-d82e4b3d-817d-4703-88af-9dba54cb93bb:payload-matches:true:localhost]

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

2021-04-28 22:30:04 | [Mutex] isItemNotified: retrieved:item:item-d82e4b3d-817d-4703-88af-9dba54cb93bb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2021-04-28 22:30:04 |

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

2021-04-28 22:30:04 | ------------------------------------

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

2021-04-28 22:30:04 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-10591f45-6b7b-45c4-9a6d-08dc1328573d",
        "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-04-28 22:30:04 |

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

2021-04-28 22:30:04 | ------------------------------------

2021-04-28 22:30:04 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee)"
}

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

subscribeNodes 1.014s
2021-04-28 22:30:03 |

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

2021-04-28 22:30:03 | ------------------------------------

2021-04-28 22:30:03 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.083s
2021-04-28 22:30:04 |

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

2021-04-28 22:30:04 | ------------------------------------

2021-04-28 22:30:04 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8bf7ccdb-5a6d-4cda-9f38-a32ca66df9ee",
    "jids": [
        "admin@test-domain.com"
    ]
}

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