Generated by TestNG with ReportNG at 21:18 PST on Wednesday 16 February 2022
root@785cf647a4ab / 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.078s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.133s
2022-02-16 21:33:44 |

2022-02-16 21:33:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:44 | ------------------------------------

2022-02-16 21:33:44 | [Mutex] waiting for: [configured:node:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:node-e78735ff-d2c9-4e5d-8860-ecd174314dd4]

2022-02-16 21:33:44 | [Mutex] received everything.

2022-02-16 21:33:44 | [Mutex] isItemNotified: configured:node:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:node-e78735ff-d2c9-4e5d-8860-ecd174314dd4 :: true

2022-02-16 21:33:45 | [Mutex] waiting for: [received:nodes:fcb03ff9-7310-48f0-897e-3529e70f5377:localhost]

2022-02-16 21:33:45 | [Mutex] received everything.

2022-02-16 21:33:45 | [Mutex] isItemNotified: received:node:fcb03ff9-7310-48f0-897e-3529e70f5377:localhost:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:Node fe3b69c0-d2ee-446b-b9ef-cdbd155567cc :: true

2022-02-16 21:33:45 | [Mutex] waiting for: [received:nodes:e4724f1b-9ac0-49fa-a6a2-4f0c6638143c:localhost]

2022-02-16 21:33:45 | [Mutex] received everything.

2022-02-16 21:33:45 | [Mutex] isItemNotified: received:node:e4724f1b-9ac0-49fa-a6a2-4f0c6638143c:localhost:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:Node fe3b69c0-d2ee-446b-b9ef-cdbd155567cc :: false

createNodes 1.735s
2022-02-16 21:33:41 |

2022-02-16 21:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:41 | ------------------------------------

2022-02-16 21:33: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-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "pubsub#title": "Node fe3b69c0-d2ee-446b-b9ef-cdbd155567cc"
}

2022-02-16 21:33:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:33:43 | [Mutex] waiting for: [received:nodes:8a026b63-e912-465b-a1ed-762416c4cd96:localhost]

2022-02-16 21:33:43 | [Mutex] received everything.

2022-02-16 21:33:43 | [Mutex] isItemNotified: received:node:8a026b63-e912-465b-a1ed-762416c4cd96:localhost:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:Node fe3b69c0-d2ee-446b-b9ef-cdbd155567cc :: true

createSubnodes 1.029s
2022-02-16 21:33:43 |

2022-02-16 21:33:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:43 | ------------------------------------

2022-02-16 21:33: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-e78735ff-d2c9-4e5d-8860-ecd174314dd4",
    "pubsub#title": "Node e78735ff-d2c9-4e5d-8860-ecd174314dd4"
}

2022-02-16 21:33:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:33:44 | [Mutex] waiting for: [received:nodes:24e75c3d-3cf2-4bfd-bffd-f66d8044e0b7:localhost]

2022-02-16 21:33:44 | [Mutex] received everything.

2022-02-16 21:33:44 | [Mutex] isItemNotified: received:node:24e75c3d-3cf2-4bfd-bffd-f66d8044e0b7:localhost:node-e78735ff-d2c9-4e5d-8860-ecd174314dd4:Node e78735ff-d2c9-4e5d-8860-ecd174314dd4 :: true

deleteNodes 1.036s
2022-02-16 21:33:48 |

2022-02-16 21:33:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:48 | ------------------------------------

2022-02-16 21:33:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e78735ff-d2c9-4e5d-8860-ecd174314dd4"
}

2022-02-16 21:33:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:33:49 | [Mutex] waiting for: [received:nodes:b8350c43-9cd4-4231-8277-c67034c1e11b:localhost]

2022-02-16 21:33:49 | [Mutex] received everything.

2022-02-16 21:33:49 | [Mutex] isItemNotified: received:node:b8350c43-9cd4-4231-8277-c67034c1e11b:localhost:node-e78735ff-d2c9-4e5d-8860-ecd174314dd4:Node e78735ff-d2c9-4e5d-8860-ecd174314dd4 :: false

deleteSubnodes 1.034s
2022-02-16 21:33:47 |

2022-02-16 21:33:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:47 | ------------------------------------

2022-02-16 21:33:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc"
}

2022-02-16 21:33:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-16 21:33:48 | [Mutex] waiting for: [received:nodes:84276735-92e4-4be5-931a-60b0d8afcde3:localhost]

2022-02-16 21:33:48 | [Mutex] received everything.

2022-02-16 21:33:48 | [Mutex] isItemNotified: received:node:84276735-92e4-4be5-931a-60b0d8afcde3:localhost:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:Node fe3b69c0-d2ee-446b-b9ef-cdbd155567cc :: false

2022-02-16 21:33:48 | [Mutex] waiting for: [received:nodes:bc80d8f6-8a40-4559-b894-e6f9fa676118:localhost]

2022-02-16 21:33:48 | [Mutex] received everything.

2022-02-16 21:33:48 | [Mutex] isItemNotified: received:node:bc80d8f6-8a40-4559-b894-e6f9fa676118:localhost:node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc:Node fe3b69c0-d2ee-446b-b9ef-cdbd155567cc :: false

publishItemsToNodes 0.066s
2022-02-16 21:33:46 |

2022-02-16 21:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:46 | ------------------------------------

2022-02-16 21:33:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "entry": "<test>item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3</test>",
    "item-id": "item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3"
}

2022-02-16 21:33:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3"
}

2022-02-16 21:33:46 | [Mutex] waiting for: [published:item:notifieditem-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3:admin@test-domain.com]

2022-02-16 21:33:46 | [Mutex] received everything.

2022-02-16 21:33:46 | [Mutex] isItemNotified: published:item:notifieditem-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-02-16 21:33:46 |

2022-02-16 21:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:46 | ------------------------------------

2022-02-16 21:33:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "item-id": "item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3"
}

2022-02-16 21:33:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3"
}

2022-02-16 21:33:46 | [Mutex] received everything.

2022-02-16 21:33:46 | [Mutex] isItemNotified: retracted:item:notifieditem-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.039s
2022-02-16 21:33:46 |

2022-02-16 21:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:46 | ------------------------------------

2022-02-16 21:33:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "item-id": "item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3"
}

2022-02-16 21:33:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "item-id": "item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3",
    "item": [
        "<item id=\"item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3\"><test>item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3</test></item>"
    ]
}

2022-02-16 21:33:46 | [Mutex] notify: [retrieved:item:item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3:payload-matches:true:localhost]

2022-02-16 21:33:46 | [Mutex] received everything.

2022-02-16 21:33:46 | [Mutex] isItemNotified: retrieved:item:item-0b2cbd55-7ea8-4cad-9a9b-8c1f49a9fbd3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-16 21:33:46 |

2022-02-16 21:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:46 | ------------------------------------

2022-02-16 21:33:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-16 21:33:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
        "node-e78735ff-d2c9-4e5d-8860-ecd174314dd4",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-16 21:33:46 |

2022-02-16 21:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:46 | ------------------------------------

2022-02-16 21:33:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc)"
}

2022-02-16 21:33:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2022-02-16 21:33:45 |

2022-02-16 21:33:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:45 | ------------------------------------

2022-02-16 21:33:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-16 21:33:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-02-16 21:33:46 |

2022-02-16 21:33:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-16 21:33:46 | ------------------------------------

2022-02-16 21:33:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fe3b69c0-d2ee-446b-b9ef-cdbd155567cc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-16 21:33:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}