Generated by TestNG with ReportNG at 22:17 PDT on Tuesday 19 July 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.640s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.083s
2022-07-19 22:31:57 |

2022-07-19 22:31:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:31:57 | ------------------------------------

2022-07-19 22:31:57 | [Mutex] waiting for: [configured:node:node-02e218a6-2870-4e71-befb-62512b0a6b16:node-0062e754-2e88-4b9e-8be3-851def57f3d0]

2022-07-19 22:31:57 | [Mutex] received everything.

2022-07-19 22:31:57 | [Mutex] isItemNotified: configured:node:node-02e218a6-2870-4e71-befb-62512b0a6b16:node-0062e754-2e88-4b9e-8be3-851def57f3d0 :: true

2022-07-19 22:31:58 | [Mutex] waiting for: [received:nodes:786c7adf-7ae2-4897-af1d-8421baa14fd9:localhost]

2022-07-19 22:31:58 | [Mutex] received everything.

2022-07-19 22:31:58 | [Mutex] isItemNotified: received:node:786c7adf-7ae2-4897-af1d-8421baa14fd9:localhost:node-02e218a6-2870-4e71-befb-62512b0a6b16:Node 02e218a6-2870-4e71-befb-62512b0a6b16 :: true

2022-07-19 22:31:58 | [Mutex] waiting for: [received:nodes:6a3026f9-38dd-4e76-976e-a84c907525c1:localhost]

2022-07-19 22:31:58 | [Mutex] waiting for: [received:nodes:6a3026f9-38dd-4e76-976e-a84c907525c1:localhost]

2022-07-19 22:31:58 | [Mutex] received everything.

2022-07-19 22:31:58 | [Mutex] isItemNotified: received:node:6a3026f9-38dd-4e76-976e-a84c907525c1:localhost:node-02e218a6-2870-4e71-befb-62512b0a6b16:Node 02e218a6-2870-4e71-befb-62512b0a6b16 :: false

createNodes 1.543s
2022-07-19 22:31:55 |

2022-07-19 22:31:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:31:55 | ------------------------------------

2022-07-19 22:31:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "pubsub#title": "Node 02e218a6-2870-4e71-befb-62512b0a6b16"
}

2022-07-19 22:31:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:31:56 | [Mutex] waiting for: [received:nodes:f47f0fab-606b-48ed-9772-658e452d7304:localhost]

2022-07-19 22:31:56 | [Mutex] received everything.

2022-07-19 22:31:56 | [Mutex] isItemNotified: received:node:f47f0fab-606b-48ed-9772-658e452d7304:localhost:node-02e218a6-2870-4e71-befb-62512b0a6b16:Node 02e218a6-2870-4e71-befb-62512b0a6b16 :: true

createSubnodes 1.021s
2022-07-19 22:31:56 |

2022-07-19 22:31:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:31:56 | ------------------------------------

2022-07-19 22:31:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0062e754-2e88-4b9e-8be3-851def57f3d0",
    "pubsub#title": "Node 0062e754-2e88-4b9e-8be3-851def57f3d0"
}

2022-07-19 22:31:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:31:57 | [Mutex] waiting for: [received:nodes:3ccd384b-2ba0-4b55-bbe2-7075c61fa38d:localhost]

2022-07-19 22:31:57 | [Mutex] waiting for: [received:nodes:3ccd384b-2ba0-4b55-bbe2-7075c61fa38d:localhost]

2022-07-19 22:31:57 | [Mutex] received everything.

2022-07-19 22:31:57 | [Mutex] isItemNotified: received:node:3ccd384b-2ba0-4b55-bbe2-7075c61fa38d:localhost:node-0062e754-2e88-4b9e-8be3-851def57f3d0:Node 0062e754-2e88-4b9e-8be3-851def57f3d0 :: true

deleteNodes 1.018s
2022-07-19 22:32:02 |

2022-07-19 22:32:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:32:02 | ------------------------------------

2022-07-19 22:32:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0062e754-2e88-4b9e-8be3-851def57f3d0"
}

2022-07-19 22:32:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:32:03 | [Mutex] waiting for: [received:nodes:794e3fa4-d130-4702-89ba-c4ba19bdfc4c:localhost]

2022-07-19 22:32:03 | [Mutex] received everything.

2022-07-19 22:32:03 | [Mutex] isItemNotified: received:node:794e3fa4-d130-4702-89ba-c4ba19bdfc4c:localhost:node-0062e754-2e88-4b9e-8be3-851def57f3d0:Node 0062e754-2e88-4b9e-8be3-851def57f3d0 :: false

deleteSubnodes 1.027s
2022-07-19 22:32:01 |

2022-07-19 22:32:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:32:01 | ------------------------------------

2022-07-19 22:32:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16"
}

2022-07-19 22:32:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-19 22:32:02 | [Mutex] waiting for: [received:nodes:45dda559-89fb-42d2-8ea8-1186621e725f:localhost]

2022-07-19 22:32:02 | [Mutex] waiting for: [received:nodes:45dda559-89fb-42d2-8ea8-1186621e725f:localhost]

2022-07-19 22:32:02 | [Mutex] received everything.

2022-07-19 22:32:02 | [Mutex] isItemNotified: received:node:45dda559-89fb-42d2-8ea8-1186621e725f:localhost:node-02e218a6-2870-4e71-befb-62512b0a6b16:Node 02e218a6-2870-4e71-befb-62512b0a6b16 :: false

2022-07-19 22:32:02 | [Mutex] waiting for: [received:nodes:deb9d789-ac01-4dda-8c0e-6527bc254245:localhost]

2022-07-19 22:32:02 | [Mutex] received everything.

2022-07-19 22:32:02 | [Mutex] isItemNotified: received:node:deb9d789-ac01-4dda-8c0e-6527bc254245:localhost:node-02e218a6-2870-4e71-befb-62512b0a6b16:Node 02e218a6-2870-4e71-befb-62512b0a6b16 :: false

publishItemsToNodes 0.057s
2022-07-19 22:31:59 |

2022-07-19 22:31:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:31:59 | ------------------------------------

2022-07-19 22:31:59 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "entry": "<test>item-c4fff51c-b3b6-4417-8956-6f2216616fa2</test>",
    "item-id": "item-c4fff51c-b3b6-4417-8956-6f2216616fa2"
}

2022-07-19 22:31:59 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4fff51c-b3b6-4417-8956-6f2216616fa2"
}

2022-07-19 22:31:59 | [Mutex] waiting for: [published:item:notifieditem-c4fff51c-b3b6-4417-8956-6f2216616fa2:admin@test-domain.com]

2022-07-19 22:31:59 | [Mutex] received everything.

2022-07-19 22:31:59 | [Mutex] isItemNotified: published:item:notifieditem-c4fff51c-b3b6-4417-8956-6f2216616fa2:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2022-07-19 22:32:00 |

2022-07-19 22:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:32:00 | ------------------------------------

2022-07-19 22:32:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "item-id": "item-c4fff51c-b3b6-4417-8956-6f2216616fa2"
}

2022-07-19 22:32:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4fff51c-b3b6-4417-8956-6f2216616fa2"
}

2022-07-19 22:32:00 | [Mutex] waiting for: [retracted:item:notifieditem-c4fff51c-b3b6-4417-8956-6f2216616fa2:admin@test-domain.com]

2022-07-19 22:32:00 | [Mutex] received everything.

2022-07-19 22:32:00 | [Mutex] isItemNotified: retracted:item:notifieditem-c4fff51c-b3b6-4417-8956-6f2216616fa2:admin@test-domain.com :: true

retrieveItemsFromNodes 0.089s
2022-07-19 22:31:59 |

2022-07-19 22:31:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:31:59 | ------------------------------------

2022-07-19 22:31:59 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "item-id": "item-c4fff51c-b3b6-4417-8956-6f2216616fa2"
}

2022-07-19 22:32:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "item-id": "item-c4fff51c-b3b6-4417-8956-6f2216616fa2",
    "item": [
        "<item id=\"item-c4fff51c-b3b6-4417-8956-6f2216616fa2\"><test>item-c4fff51c-b3b6-4417-8956-6f2216616fa2</test></item>"
    ]
}

2022-07-19 22:32:00 | [Mutex] notify: [retrieved:item:item-c4fff51c-b3b6-4417-8956-6f2216616fa2:payload-matches:true:localhost]

2022-07-19 22:32:00 | [Mutex] received everything.

2022-07-19 22:32:00 | [Mutex] isItemNotified: retrieved:item:item-c4fff51c-b3b6-4417-8956-6f2216616fa2:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-07-19 22:32:00 |

2022-07-19 22:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:32:00 | ------------------------------------

2022-07-19 22:32:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-19 22:32:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0062e754-2e88-4b9e-8be3-851def57f3d0",
        "test",
        "node-02e218a6-2870-4e71-befb-62512b0a6b16"
    ]
}

retrieveUserSubscriptionsWithRegex 0.056s
2022-07-19 22:32:00 |

2022-07-19 22:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:32:00 | ------------------------------------

2022-07-19 22:32:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-02e218a6-2870-4e71-befb-62512b0a6b16)"
}

2022-07-19 22:32:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-07-19 22:31:58 |

2022-07-19 22:31:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:31:58 | ------------------------------------

2022-07-19 22:31:58 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-19 22:31:58 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.053s
2022-07-19 22:32:00 |

2022-07-19 22:32:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-19 22:32:00 | ------------------------------------

2022-07-19 22:32:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-02e218a6-2870-4e71-befb-62512b0a6b16",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-19 22:32:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}