Generated by TestNG with ReportNG at 07:34 PST on Monday 06 March 2023
root@7c41cec37518 / 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.706s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.104s
2023-03-06 07:49:16 |

2023-03-06 07:49:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:16 | ------------------------------------

2023-03-06 07:49:16 | [Mutex] waiting for: [configured:node:node-3ab9517b-88ff-4533-b840-adc53293aa1f:node-eea98967-7de5-47b1-be4b-3c03760a3f2f]

2023-03-06 07:49:16 | [Mutex] received everything.

2023-03-06 07:49:16 | [Mutex] isItemNotified: configured:node:node-3ab9517b-88ff-4533-b840-adc53293aa1f:node-eea98967-7de5-47b1-be4b-3c03760a3f2f :: true

2023-03-06 07:49:17 | [Mutex] waiting for: [received:nodes:662a9bcc-d825-4cce-a91a-effabc6942ae:localhost]

2023-03-06 07:49:17 | [Mutex] received everything.

2023-03-06 07:49:17 | [Mutex] isItemNotified: received:node:662a9bcc-d825-4cce-a91a-effabc6942ae:localhost:node-3ab9517b-88ff-4533-b840-adc53293aa1f:Node 3ab9517b-88ff-4533-b840-adc53293aa1f :: true

2023-03-06 07:49:17 | [Mutex] waiting for: [received:nodes:de31176d-e87f-4c82-999e-91bade915f20:localhost]

2023-03-06 07:49:17 | [Mutex] waiting for: [received:nodes:de31176d-e87f-4c82-999e-91bade915f20:localhost]

2023-03-06 07:49:17 | [Mutex] waiting for: [received:nodes:de31176d-e87f-4c82-999e-91bade915f20:localhost]

2023-03-06 07:49:17 | [Mutex] waiting for: [received:nodes:de31176d-e87f-4c82-999e-91bade915f20:localhost]

2023-03-06 07:49:17 | [Mutex] received everything.

2023-03-06 07:49:17 | [Mutex] isItemNotified: received:node:de31176d-e87f-4c82-999e-91bade915f20:localhost:node-3ab9517b-88ff-4533-b840-adc53293aa1f:Node 3ab9517b-88ff-4533-b840-adc53293aa1f :: false

createNodes 1.598s
2023-03-06 07:49:13 |

2023-03-06 07:49:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:13 | ------------------------------------

2023-03-06 07:49:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "pubsub#title": "Node 3ab9517b-88ff-4533-b840-adc53293aa1f"
}

2023-03-06 07:49:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:49:15 | [Mutex] waiting for: [received:nodes:ec6db04b-6c79-4b79-9b72-77291c785b3b:localhost]

2023-03-06 07:49:15 | [Mutex] waiting for: [received:nodes:ec6db04b-6c79-4b79-9b72-77291c785b3b:localhost]

2023-03-06 07:49:15 | [Mutex] waiting for: [received:nodes:ec6db04b-6c79-4b79-9b72-77291c785b3b:localhost]

2023-03-06 07:49:15 | [Mutex] waiting for: [received:nodes:ec6db04b-6c79-4b79-9b72-77291c785b3b:localhost]

2023-03-06 07:49:15 | [Mutex] waiting for: [received:nodes:ec6db04b-6c79-4b79-9b72-77291c785b3b:localhost]

2023-03-06 07:49:15 | [Mutex] received everything.

2023-03-06 07:49:15 | [Mutex] isItemNotified: received:node:ec6db04b-6c79-4b79-9b72-77291c785b3b:localhost:node-3ab9517b-88ff-4533-b840-adc53293aa1f:Node 3ab9517b-88ff-4533-b840-adc53293aa1f :: true

createSubnodes 1.036s
2023-03-06 07:49:15 |

2023-03-06 07:49:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:15 | ------------------------------------

2023-03-06 07:49:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-eea98967-7de5-47b1-be4b-3c03760a3f2f",
    "pubsub#title": "Node eea98967-7de5-47b1-be4b-3c03760a3f2f"
}

2023-03-06 07:49:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:49:16 | [Mutex] waiting for: [received:nodes:cae15d91-7621-4ef8-a33f-d1fc77e2b1aa:localhost]

2023-03-06 07:49:16 | [Mutex] waiting for: [received:nodes:cae15d91-7621-4ef8-a33f-d1fc77e2b1aa:localhost]

2023-03-06 07:49:16 | [Mutex] waiting for: [received:nodes:cae15d91-7621-4ef8-a33f-d1fc77e2b1aa:localhost]

2023-03-06 07:49:16 | [Mutex] waiting for: [received:nodes:cae15d91-7621-4ef8-a33f-d1fc77e2b1aa:localhost]

2023-03-06 07:49:16 | [Mutex] waiting for: [received:nodes:cae15d91-7621-4ef8-a33f-d1fc77e2b1aa:localhost]

2023-03-06 07:49:16 | [Mutex] received everything.

2023-03-06 07:49:16 | [Mutex] isItemNotified: received:node:cae15d91-7621-4ef8-a33f-d1fc77e2b1aa:localhost:node-eea98967-7de5-47b1-be4b-3c03760a3f2f:Node eea98967-7de5-47b1-be4b-3c03760a3f2f :: true

deleteNodes 1.026s
2023-03-06 07:49:20 |

2023-03-06 07:49:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:20 | ------------------------------------

2023-03-06 07:49:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-eea98967-7de5-47b1-be4b-3c03760a3f2f"
}

2023-03-06 07:49:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:49:21 | [Mutex] waiting for: [received:nodes:516ae63a-750a-4fc6-8522-070fc4b24d6c:localhost]

2023-03-06 07:49:21 | [Mutex] waiting for: [received:nodes:516ae63a-750a-4fc6-8522-070fc4b24d6c:localhost]

2023-03-06 07:49:21 | [Mutex] waiting for: [received:nodes:516ae63a-750a-4fc6-8522-070fc4b24d6c:localhost]

2023-03-06 07:49:21 | [Mutex] received everything.

2023-03-06 07:49:21 | [Mutex] isItemNotified: received:node:516ae63a-750a-4fc6-8522-070fc4b24d6c:localhost:node-eea98967-7de5-47b1-be4b-3c03760a3f2f:Node eea98967-7de5-47b1-be4b-3c03760a3f2f :: false

deleteSubnodes 1.027s
2023-03-06 07:49:19 |

2023-03-06 07:49:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:19 | ------------------------------------

2023-03-06 07:49:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f"
}

2023-03-06 07:49:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-06 07:49:20 | [Mutex] waiting for: [received:nodes:74b57151-a52a-454b-8947-dc8264431796:localhost]

2023-03-06 07:49:20 | [Mutex] waiting for: [received:nodes:74b57151-a52a-454b-8947-dc8264431796:localhost]

2023-03-06 07:49:20 | [Mutex] waiting for: [received:nodes:74b57151-a52a-454b-8947-dc8264431796:localhost]

2023-03-06 07:49:20 | [Mutex] waiting for: [received:nodes:74b57151-a52a-454b-8947-dc8264431796:localhost]

2023-03-06 07:49:20 | [Mutex] received everything.

2023-03-06 07:49:20 | [Mutex] isItemNotified: received:node:74b57151-a52a-454b-8947-dc8264431796:localhost:node-3ab9517b-88ff-4533-b840-adc53293aa1f:Node 3ab9517b-88ff-4533-b840-adc53293aa1f :: false

2023-03-06 07:49:20 | [Mutex] waiting for: [received:nodes:3a1ce8b9-574d-4de9-9a8c-2dd33d0e553c:localhost]

2023-03-06 07:49:20 | [Mutex] received everything.

2023-03-06 07:49:20 | [Mutex] isItemNotified: received:node:3a1ce8b9-574d-4de9-9a8c-2dd33d0e553c:localhost:node-3ab9517b-88ff-4533-b840-adc53293aa1f:Node 3ab9517b-88ff-4533-b840-adc53293aa1f :: false

publishItemsToNodes 0.037s
2023-03-06 07:49:18 |

2023-03-06 07:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:18 | ------------------------------------

2023-03-06 07:49:18 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "entry": "<test>item-e8f00d45-8f36-4db9-844b-d3590129b8a0</test>",
    "item-id": "item-e8f00d45-8f36-4db9-844b-d3590129b8a0"
}

2023-03-06 07:49:18 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e8f00d45-8f36-4db9-844b-d3590129b8a0"
}

2023-03-06 07:49:18 | [Mutex] received everything.

2023-03-06 07:49:18 | [Mutex] isItemNotified: published:item:notifieditem-e8f00d45-8f36-4db9-844b-d3590129b8a0:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-03-06 07:49:18 |

2023-03-06 07:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:18 | ------------------------------------

2023-03-06 07:49:18 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "item-id": "item-e8f00d45-8f36-4db9-844b-d3590129b8a0"
}

2023-03-06 07:49:18 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e8f00d45-8f36-4db9-844b-d3590129b8a0"
}

2023-03-06 07:49:18 | [Mutex] received everything.

2023-03-06 07:49:18 | [Mutex] isItemNotified: retracted:item:notifieditem-e8f00d45-8f36-4db9-844b-d3590129b8a0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2023-03-06 07:49:18 |

2023-03-06 07:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:18 | ------------------------------------

2023-03-06 07:49:18 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "item-id": "item-e8f00d45-8f36-4db9-844b-d3590129b8a0"
}

2023-03-06 07:49:18 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "item-id": "item-e8f00d45-8f36-4db9-844b-d3590129b8a0",
    "item": [
        "<item id=\"item-e8f00d45-8f36-4db9-844b-d3590129b8a0\"><test>item-e8f00d45-8f36-4db9-844b-d3590129b8a0</test></item>"
    ]
}

2023-03-06 07:49:18 | [Mutex] notify: [retrieved:item:item-e8f00d45-8f36-4db9-844b-d3590129b8a0:payload-matches:true:localhost]

2023-03-06 07:49:18 | [Mutex] received everything.

2023-03-06 07:49:18 | [Mutex] isItemNotified: retrieved:item:item-e8f00d45-8f36-4db9-844b-d3590129b8a0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-03-06 07:49:18 |

2023-03-06 07:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:18 | ------------------------------------

2023-03-06 07:49:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-06 07:49:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-eea98967-7de5-47b1-be4b-3c03760a3f2f",
        "test",
        "node-3ab9517b-88ff-4533-b840-adc53293aa1f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-03-06 07:49:18 |

2023-03-06 07:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:18 | ------------------------------------

2023-03-06 07:49:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3ab9517b-88ff-4533-b840-adc53293aa1f)"
}

2023-03-06 07:49:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-03-06 07:49:17 |

2023-03-06 07:49:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:17 | ------------------------------------

2023-03-06 07:49:17 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 07:49:17 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-03-06 07:49:18 |

2023-03-06 07:49:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-06 07:49:18 | ------------------------------------

2023-03-06 07:49:18 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3ab9517b-88ff-4533-b840-adc53293aa1f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-06 07:49:18 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}