Generated by TestNG with ReportNG at 04:26 PST on Monday 26 December 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.700s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.084s
2022-12-26 04:41:21 |

2022-12-26 04:41:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:21 | ------------------------------------

2022-12-26 04:41:21 | [Mutex] waiting for: [configured:node:node-055a693d-0e00-4472-87ae-498db53428fc:node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe]

2022-12-26 04:41:21 | [Mutex] received everything.

2022-12-26 04:41:21 | [Mutex] isItemNotified: configured:node:node-055a693d-0e00-4472-87ae-498db53428fc:node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe :: true

2022-12-26 04:41:22 | [Mutex] waiting for: [received:nodes:57884407-7284-43a4-8d3d-e26bd0651d61:localhost]

2022-12-26 04:41:22 | [Mutex] received everything.

2022-12-26 04:41:22 | [Mutex] isItemNotified: received:node:57884407-7284-43a4-8d3d-e26bd0651d61:localhost:node-055a693d-0e00-4472-87ae-498db53428fc:Node 055a693d-0e00-4472-87ae-498db53428fc :: true

2022-12-26 04:41:22 | [Mutex] waiting for: [received:nodes:71447042-23d5-4487-98a3-6879d656ab9b:localhost]

2022-12-26 04:41:22 | [Mutex] waiting for: [received:nodes:71447042-23d5-4487-98a3-6879d656ab9b:localhost]

2022-12-26 04:41:22 | [Mutex] waiting for: [received:nodes:71447042-23d5-4487-98a3-6879d656ab9b:localhost]

2022-12-26 04:41:22 | [Mutex] waiting for: [received:nodes:71447042-23d5-4487-98a3-6879d656ab9b:localhost]

2022-12-26 04:41:22 | [Mutex] received everything.

2022-12-26 04:41:22 | [Mutex] isItemNotified: received:node:71447042-23d5-4487-98a3-6879d656ab9b:localhost:node-055a693d-0e00-4472-87ae-498db53428fc:Node 055a693d-0e00-4472-87ae-498db53428fc :: false

createNodes 1.637s
2022-12-26 04:41:18 |

2022-12-26 04:41:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:18 | ------------------------------------

2022-12-26 04:41:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "pubsub#title": "Node 055a693d-0e00-4472-87ae-498db53428fc"
}

2022-12-26 04:41:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:41:20 | [Mutex] waiting for: [received:nodes:7fcb3631-4e1f-4e4e-8bba-11c0afca358f:localhost]

2022-12-26 04:41:20 | [Mutex] waiting for: [received:nodes:7fcb3631-4e1f-4e4e-8bba-11c0afca358f:localhost]

2022-12-26 04:41:20 | [Mutex] waiting for: [received:nodes:7fcb3631-4e1f-4e4e-8bba-11c0afca358f:localhost]

2022-12-26 04:41:20 | [Mutex] waiting for: [received:nodes:7fcb3631-4e1f-4e4e-8bba-11c0afca358f:localhost]

2022-12-26 04:41:20 | [Mutex] received everything.

2022-12-26 04:41:20 | [Mutex] isItemNotified: received:node:7fcb3631-4e1f-4e4e-8bba-11c0afca358f:localhost:node-055a693d-0e00-4472-87ae-498db53428fc:Node 055a693d-0e00-4472-87ae-498db53428fc :: true

createSubnodes 1.028s
2022-12-26 04:41:20 |

2022-12-26 04:41:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:20 | ------------------------------------

2022-12-26 04:41:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe",
    "pubsub#title": "Node 7cb2d32e-dd7b-497f-be20-cfe6d91ebabe"
}

2022-12-26 04:41:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:41:21 | [Mutex] waiting for: [received:nodes:dd926815-144f-49d3-b4b3-ace0bd2093c0:localhost]

2022-12-26 04:41:21 | [Mutex] waiting for: [received:nodes:dd926815-144f-49d3-b4b3-ace0bd2093c0:localhost]

2022-12-26 04:41:21 | [Mutex] waiting for: [received:nodes:dd926815-144f-49d3-b4b3-ace0bd2093c0:localhost]

2022-12-26 04:41:21 | [Mutex] waiting for: [received:nodes:dd926815-144f-49d3-b4b3-ace0bd2093c0:localhost]

2022-12-26 04:41:21 | [Mutex] waiting for: [received:nodes:dd926815-144f-49d3-b4b3-ace0bd2093c0:localhost]

2022-12-26 04:41:21 | [Mutex] received everything.

2022-12-26 04:41:21 | [Mutex] isItemNotified: received:node:dd926815-144f-49d3-b4b3-ace0bd2093c0:localhost:node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe:Node 7cb2d32e-dd7b-497f-be20-cfe6d91ebabe :: true

deleteNodes 1.020s
2022-12-26 04:41:25 |

2022-12-26 04:41:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:25 | ------------------------------------

2022-12-26 04:41:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe"
}

2022-12-26 04:41:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-26 04:41:26 | [Mutex] waiting for: [received:nodes:51e12de0-5793-4b3b-9765-71dcc17d5784:localhost]

2022-12-26 04:41:26 | [Mutex] waiting for: [received:nodes:51e12de0-5793-4b3b-9765-71dcc17d5784:localhost]

2022-12-26 04:41:26 | [Mutex] waiting for: [received:nodes:51e12de0-5793-4b3b-9765-71dcc17d5784:localhost]

2022-12-26 04:41:26 | [Mutex] received everything.

2022-12-26 04:41:26 | [Mutex] isItemNotified: received:node:51e12de0-5793-4b3b-9765-71dcc17d5784:localhost:node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe:Node 7cb2d32e-dd7b-497f-be20-cfe6d91ebabe :: false

deleteSubnodes 1.032s
2022-12-26 04:41:24 |

2022-12-26 04:41:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:24 | ------------------------------------

2022-12-26 04:41:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc"
}

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

2022-12-26 04:41:25 | [Mutex] waiting for: [received:nodes:9f730af3-d1ef-43d4-aee6-d4338031deae:localhost]

2022-12-26 04:41:25 | [Mutex] received everything.

2022-12-26 04:41:25 | [Mutex] isItemNotified: received:node:9f730af3-d1ef-43d4-aee6-d4338031deae:localhost:node-055a693d-0e00-4472-87ae-498db53428fc:Node 055a693d-0e00-4472-87ae-498db53428fc :: false

2022-12-26 04:41:25 | [Mutex] waiting for: [received:nodes:29856141-bfdd-457d-ab27-c0bea2c0c219:localhost]

2022-12-26 04:41:25 | [Mutex] received everything.

2022-12-26 04:41:25 | [Mutex] isItemNotified: received:node:29856141-bfdd-457d-ab27-c0bea2c0c219:localhost:node-055a693d-0e00-4472-87ae-498db53428fc:Node 055a693d-0e00-4472-87ae-498db53428fc :: false

publishItemsToNodes 0.045s
2022-12-26 04:41:23 |

2022-12-26 04:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:23 | ------------------------------------

2022-12-26 04:41:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "entry": "<test>item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d</test>",
    "item-id": "item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d"
}

2022-12-26 04:41:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d"
}

2022-12-26 04:41:23 | [Mutex] waiting for: [published:item:notifieditem-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d:admin@test-domain.com]

2022-12-26 04:41:23 | [Mutex] received everything.

2022-12-26 04:41:23 | [Mutex] isItemNotified: published:item:notifieditem-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d:admin@test-domain.com :: true

retractItemsFromNodes 0.058s
2022-12-26 04:41:23 |

2022-12-26 04:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:23 | ------------------------------------

2022-12-26 04:41:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "item-id": "item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d"
}

2022-12-26 04:41:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d"
}

2022-12-26 04:41:23 | [Mutex] received everything.

2022-12-26 04:41:23 | [Mutex] isItemNotified: retracted:item:notifieditem-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.060s
2022-12-26 04:41:23 |

2022-12-26 04:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:23 | ------------------------------------

2022-12-26 04:41:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "item-id": "item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d"
}

2022-12-26 04:41:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "item-id": "item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d",
    "item": [
        "<item id=\"item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d\"><test>item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d</test></item>"
    ]
}

2022-12-26 04:41:23 | [Mutex] notify: [retrieved:item:item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d:payload-matches:true:localhost]

2022-12-26 04:41:23 | [Mutex] received everything.

2022-12-26 04:41:23 | [Mutex] isItemNotified: retrieved:item:item-2d1aebe3-0c8a-4afc-b123-7f6724e8cc0d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-12-26 04:41:23 |

2022-12-26 04:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:23 | ------------------------------------

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

2022-12-26 04:41:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-055a693d-0e00-4472-87ae-498db53428fc",
        "node-7cb2d32e-dd7b-497f-be20-cfe6d91ebabe"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-12-26 04:41:23 |

2022-12-26 04:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:23 | ------------------------------------

2022-12-26 04:41:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-055a693d-0e00-4472-87ae-498db53428fc)"
}

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

subscribeNodes 1.009s
2022-12-26 04:41:22 |

2022-12-26 04:41:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:22 | ------------------------------------

2022-12-26 04:41:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-26 04:41:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2022-12-26 04:41:23 |

2022-12-26 04:41:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-26 04:41:23 | ------------------------------------

2022-12-26 04:41:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-055a693d-0e00-4472-87ae-498db53428fc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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