Generated by TestNG with ReportNG at 22:50 PDT on Wednesday 24 August 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.708s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2022-08-24 23:04:54 |

2022-08-24 23:04:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:54 | ------------------------------------

2022-08-24 23:04:54 | [Mutex] waiting for: [configured:node:node-cfabd8a5-5990-46e9-a237-37664af51d45:node-84b06c07-e882-4c70-a2f4-4d2607bca51a]

2022-08-24 23:04:54 | [Mutex] received everything.

2022-08-24 23:04:54 | [Mutex] isItemNotified: configured:node:node-cfabd8a5-5990-46e9-a237-37664af51d45:node-84b06c07-e882-4c70-a2f4-4d2607bca51a :: true

2022-08-24 23:04:55 | [Mutex] waiting for: [received:nodes:68cbb5f8-8130-404a-9fd9-ac00f5fb71d0:localhost]

2022-08-24 23:04:55 | [Mutex] received everything.

2022-08-24 23:04:55 | [Mutex] isItemNotified: received:node:68cbb5f8-8130-404a-9fd9-ac00f5fb71d0:localhost:node-cfabd8a5-5990-46e9-a237-37664af51d45:Node cfabd8a5-5990-46e9-a237-37664af51d45 :: true

2022-08-24 23:04:55 | [Mutex] waiting for: [received:nodes:ccd2f2eb-7bec-43c1-b6b7-cee59472adc4:localhost]

2022-08-24 23:04:55 | [Mutex] waiting for: [received:nodes:ccd2f2eb-7bec-43c1-b6b7-cee59472adc4:localhost]

2022-08-24 23:04:55 | [Mutex] received everything.

2022-08-24 23:04:55 | [Mutex] isItemNotified: received:node:ccd2f2eb-7bec-43c1-b6b7-cee59472adc4:localhost:node-cfabd8a5-5990-46e9-a237-37664af51d45:Node cfabd8a5-5990-46e9-a237-37664af51d45 :: false

createNodes 1.583s
2022-08-24 23:04:51 |

2022-08-24 23:04:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:51 | ------------------------------------

2022-08-24 23:04: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-cfabd8a5-5990-46e9-a237-37664af51d45",
    "pubsub#title": "Node cfabd8a5-5990-46e9-a237-37664af51d45"
}

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

2022-08-24 23:04:53 | [Mutex] waiting for: [received:nodes:6f1e9f3f-6444-4d3f-adbe-b90645f8b86c:localhost]

2022-08-24 23:04:53 | [Mutex] received everything.

2022-08-24 23:04:53 | [Mutex] isItemNotified: received:node:6f1e9f3f-6444-4d3f-adbe-b90645f8b86c:localhost:node-cfabd8a5-5990-46e9-a237-37664af51d45:Node cfabd8a5-5990-46e9-a237-37664af51d45 :: true

createSubnodes 1.022s
2022-08-24 23:04:53 |

2022-08-24 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:53 | ------------------------------------

2022-08-24 23:04: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-84b06c07-e882-4c70-a2f4-4d2607bca51a",
    "pubsub#title": "Node 84b06c07-e882-4c70-a2f4-4d2607bca51a"
}

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

2022-08-24 23:04:54 | [Mutex] waiting for: [received:nodes:40a81497-7f11-41ab-829b-306540bbb737:localhost]

2022-08-24 23:04:54 | [Mutex] waiting for: [received:nodes:40a81497-7f11-41ab-829b-306540bbb737:localhost]

2022-08-24 23:04:54 | [Mutex] received everything.

2022-08-24 23:04:54 | [Mutex] isItemNotified: received:node:40a81497-7f11-41ab-829b-306540bbb737:localhost:node-84b06c07-e882-4c70-a2f4-4d2607bca51a:Node 84b06c07-e882-4c70-a2f4-4d2607bca51a :: true

deleteNodes 1.018s
2022-08-24 23:04:58 |

2022-08-24 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:58 | ------------------------------------

2022-08-24 23:04:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-84b06c07-e882-4c70-a2f4-4d2607bca51a"
}

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

2022-08-24 23:04:59 | [Mutex] waiting for: [received:nodes:b2ed59f4-8712-4655-a3d7-8ab472a489e3:localhost]

2022-08-24 23:04:59 | [Mutex] waiting for: [received:nodes:b2ed59f4-8712-4655-a3d7-8ab472a489e3:localhost]

2022-08-24 23:04:59 | [Mutex] waiting for: [received:nodes:b2ed59f4-8712-4655-a3d7-8ab472a489e3:localhost]

2022-08-24 23:04:59 | [Mutex] received everything.

2022-08-24 23:04:59 | [Mutex] isItemNotified: received:node:b2ed59f4-8712-4655-a3d7-8ab472a489e3:localhost:node-84b06c07-e882-4c70-a2f4-4d2607bca51a:Node 84b06c07-e882-4c70-a2f4-4d2607bca51a :: false

deleteSubnodes 1.024s
2022-08-24 23:04:57 |

2022-08-24 23:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:57 | ------------------------------------

2022-08-24 23:04:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45"
}

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

2022-08-24 23:04:58 | [Mutex] waiting for: [received:nodes:cdebfea1-77b6-4790-943c-002c4bafb320:localhost]

2022-08-24 23:04:58 | [Mutex] waiting for: [received:nodes:cdebfea1-77b6-4790-943c-002c4bafb320:localhost]

2022-08-24 23:04:58 | [Mutex] waiting for: [received:nodes:cdebfea1-77b6-4790-943c-002c4bafb320:localhost]

2022-08-24 23:04:58 | [Mutex] waiting for: [received:nodes:cdebfea1-77b6-4790-943c-002c4bafb320:localhost]

2022-08-24 23:04:58 | [Mutex] received everything.

2022-08-24 23:04:58 | [Mutex] isItemNotified: received:node:cdebfea1-77b6-4790-943c-002c4bafb320:localhost:node-cfabd8a5-5990-46e9-a237-37664af51d45:Node cfabd8a5-5990-46e9-a237-37664af51d45 :: false

2022-08-24 23:04:58 | [Mutex] waiting for: [received:nodes:b06d0a26-0760-4256-a7a3-81ce983032b0:localhost]

2022-08-24 23:04:58 | [Mutex] received everything.

2022-08-24 23:04:58 | [Mutex] isItemNotified: received:node:b06d0a26-0760-4256-a7a3-81ce983032b0:localhost:node-cfabd8a5-5990-46e9-a237-37664af51d45:Node cfabd8a5-5990-46e9-a237-37664af51d45 :: false

publishItemsToNodes 0.101s
2022-08-24 23:04:56 |

2022-08-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:56 | ------------------------------------

2022-08-24 23:04:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45",
    "entry": "<test>item-30eec38e-1aac-4557-84be-07bc7b47c172</test>",
    "item-id": "item-30eec38e-1aac-4557-84be-07bc7b47c172"
}

2022-08-24 23:04:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-30eec38e-1aac-4557-84be-07bc7b47c172"
}

2022-08-24 23:04:56 | [Mutex] waiting for: [published:item:notifieditem-30eec38e-1aac-4557-84be-07bc7b47c172:admin@test-domain.com]

2022-08-24 23:04:56 | [Mutex] received everything.

2022-08-24 23:04:56 | [Mutex] isItemNotified: published:item:notifieditem-30eec38e-1aac-4557-84be-07bc7b47c172:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-08-24 23:04:56 |

2022-08-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:56 | ------------------------------------

2022-08-24 23:04:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45",
    "item-id": "item-30eec38e-1aac-4557-84be-07bc7b47c172"
}

2022-08-24 23:04:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-30eec38e-1aac-4557-84be-07bc7b47c172"
}

2022-08-24 23:04:56 | [Mutex] received everything.

2022-08-24 23:04:56 | [Mutex] isItemNotified: retracted:item:notifieditem-30eec38e-1aac-4557-84be-07bc7b47c172:admin@test-domain.com :: true

retrieveItemsFromNodes 0.076s
2022-08-24 23:04:56 |

2022-08-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:56 | ------------------------------------

2022-08-24 23:04:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45",
    "item-id": "item-30eec38e-1aac-4557-84be-07bc7b47c172"
}

2022-08-24 23:04:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45",
    "item-id": "item-30eec38e-1aac-4557-84be-07bc7b47c172",
    "item": [
        "<item id=\"item-30eec38e-1aac-4557-84be-07bc7b47c172\"><test>item-30eec38e-1aac-4557-84be-07bc7b47c172</test></item>"
    ]
}

2022-08-24 23:04:56 | [Mutex] notify: [retrieved:item:item-30eec38e-1aac-4557-84be-07bc7b47c172:payload-matches:true:localhost]

2022-08-24 23:04:56 | [Mutex] received everything.

2022-08-24 23:04:56 | [Mutex] isItemNotified: retrieved:item:item-30eec38e-1aac-4557-84be-07bc7b47c172:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-08-24 23:04:56 |

2022-08-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:56 | ------------------------------------

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

2022-08-24 23:04:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-cfabd8a5-5990-46e9-a237-37664af51d45",
        "node-84b06c07-e882-4c70-a2f4-4d2607bca51a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-24 23:04:56 |

2022-08-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:56 | ------------------------------------

2022-08-24 23:04:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cfabd8a5-5990-46e9-a237-37664af51d45)"
}

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

subscribeNodes 1.009s
2022-08-24 23:04:55 |

2022-08-24 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:55 | ------------------------------------

2022-08-24 23:04:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2022-08-24 23:04:56 |

2022-08-24 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-24 23:04:56 | ------------------------------------

2022-08-24 23:04:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cfabd8a5-5990-46e9-a237-37664af51d45",
    "jids": [
        "admin@test-domain.com"
    ]
}

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