Generated by TestNG with ReportNG at 21:44 PST on Wednesday 15 February 2023
root@ed1b7dd8a1b3 / 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.594s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2023-02-15 21:59:00 |

2023-02-15 21:59:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:00 | ------------------------------------

2023-02-15 21:59:00 | [Mutex] waiting for: [configured:node:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:node-688a1bf8-7f23-4791-bfdc-dc5860823c35]

2023-02-15 21:59:00 | [Mutex] received everything.

2023-02-15 21:59:00 | [Mutex] isItemNotified: configured:node:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:node-688a1bf8-7f23-4791-bfdc-dc5860823c35 :: true

2023-02-15 21:59:01 | [Mutex] waiting for: [received:nodes:8391f228-5d8a-4542-9b70-b31083116802:localhost]

2023-02-15 21:59:01 | [Mutex] received everything.

2023-02-15 21:59:01 | [Mutex] isItemNotified: received:node:8391f228-5d8a-4542-9b70-b31083116802:localhost:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:Node ece1bae1-1876-45dc-85cb-e619d4b77a29 :: true

2023-02-15 21:59:01 | [Mutex] waiting for: [received:nodes:9d1742d8-9747-46e5-81bc-dc4c1d759cf2:localhost]

2023-02-15 21:59:01 | [Mutex] waiting for: [received:nodes:9d1742d8-9747-46e5-81bc-dc4c1d759cf2:localhost]

2023-02-15 21:59:01 | [Mutex] waiting for: [received:nodes:9d1742d8-9747-46e5-81bc-dc4c1d759cf2:localhost]

2023-02-15 21:59:01 | [Mutex] waiting for: [received:nodes:9d1742d8-9747-46e5-81bc-dc4c1d759cf2:localhost]

2023-02-15 21:59:01 | [Mutex] received everything.

2023-02-15 21:59:01 | [Mutex] isItemNotified: received:node:9d1742d8-9747-46e5-81bc-dc4c1d759cf2:localhost:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:Node ece1bae1-1876-45dc-85cb-e619d4b77a29 :: false

createNodes 1.548s
2023-02-15 21:58:57 |

2023-02-15 21:58:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:58:57 | ------------------------------------

2023-02-15 21:58:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "pubsub#title": "Node ece1bae1-1876-45dc-85cb-e619d4b77a29"
}

2023-02-15 21:58:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 21:58:59 | [Mutex] waiting for: [received:nodes:2ef7fb6d-f590-401b-b1a2-c39045c01dcd:localhost]

2023-02-15 21:58:59 | [Mutex] waiting for: [received:nodes:2ef7fb6d-f590-401b-b1a2-c39045c01dcd:localhost]

2023-02-15 21:58:59 | [Mutex] waiting for: [received:nodes:2ef7fb6d-f590-401b-b1a2-c39045c01dcd:localhost]

2023-02-15 21:58:59 | [Mutex] received everything.

2023-02-15 21:58:59 | [Mutex] isItemNotified: received:node:2ef7fb6d-f590-401b-b1a2-c39045c01dcd:localhost:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:Node ece1bae1-1876-45dc-85cb-e619d4b77a29 :: true

createSubnodes 1.026s
2023-02-15 21:58:59 |

2023-02-15 21:58:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:58:59 | ------------------------------------

2023-02-15 21:58:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-688a1bf8-7f23-4791-bfdc-dc5860823c35",
    "pubsub#title": "Node 688a1bf8-7f23-4791-bfdc-dc5860823c35"
}

2023-02-15 21:58:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 21:59:00 | [Mutex] waiting for: [received:nodes:561dd887-37e1-4478-93fe-8ebb57b15a78:localhost]

2023-02-15 21:59:00 | [Mutex] waiting for: [received:nodes:561dd887-37e1-4478-93fe-8ebb57b15a78:localhost]

2023-02-15 21:59:00 | [Mutex] waiting for: [received:nodes:561dd887-37e1-4478-93fe-8ebb57b15a78:localhost]

2023-02-15 21:59:00 | [Mutex] waiting for: [received:nodes:561dd887-37e1-4478-93fe-8ebb57b15a78:localhost]

2023-02-15 21:59:00 | [Mutex] waiting for: [received:nodes:561dd887-37e1-4478-93fe-8ebb57b15a78:localhost]

2023-02-15 21:59:00 | [Mutex] received everything.

2023-02-15 21:59:00 | [Mutex] isItemNotified: received:node:561dd887-37e1-4478-93fe-8ebb57b15a78:localhost:node-688a1bf8-7f23-4791-bfdc-dc5860823c35:Node 688a1bf8-7f23-4791-bfdc-dc5860823c35 :: true

deleteNodes 1.024s
2023-02-15 21:59:04 |

2023-02-15 21:59:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:04 | ------------------------------------

2023-02-15 21:59:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-688a1bf8-7f23-4791-bfdc-dc5860823c35"
}

2023-02-15 21:59:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 21:59:05 | [Mutex] waiting for: [received:nodes:2078e214-f6bd-445d-8196-f3af6b214c42:localhost]

2023-02-15 21:59:05 | [Mutex] received everything.

2023-02-15 21:59:05 | [Mutex] isItemNotified: received:node:2078e214-f6bd-445d-8196-f3af6b214c42:localhost:node-688a1bf8-7f23-4791-bfdc-dc5860823c35:Node 688a1bf8-7f23-4791-bfdc-dc5860823c35 :: false

deleteSubnodes 1.027s
2023-02-15 21:59:03 |

2023-02-15 21:59:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:03 | ------------------------------------

2023-02-15 21:59:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29"
}

2023-02-15 21:59:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-02-15 21:59:04 | [Mutex] waiting for: [received:nodes:96491dab-9c40-4b60-90d4-dd828212e454:localhost]

2023-02-15 21:59:04 | [Mutex] waiting for: [received:nodes:96491dab-9c40-4b60-90d4-dd828212e454:localhost]

2023-02-15 21:59:04 | [Mutex] waiting for: [received:nodes:96491dab-9c40-4b60-90d4-dd828212e454:localhost]

2023-02-15 21:59:04 | [Mutex] waiting for: [received:nodes:96491dab-9c40-4b60-90d4-dd828212e454:localhost]

2023-02-15 21:59:04 | [Mutex] received everything.

2023-02-15 21:59:04 | [Mutex] isItemNotified: received:node:96491dab-9c40-4b60-90d4-dd828212e454:localhost:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:Node ece1bae1-1876-45dc-85cb-e619d4b77a29 :: false

2023-02-15 21:59:04 | [Mutex] waiting for: [received:nodes:cedf995f-f7e2-4cf2-92a9-8d433d6f4709:localhost]

2023-02-15 21:59:04 | [Mutex] received everything.

2023-02-15 21:59:04 | [Mutex] isItemNotified: received:node:cedf995f-f7e2-4cf2-92a9-8d433d6f4709:localhost:node-ece1bae1-1876-45dc-85cb-e619d4b77a29:Node ece1bae1-1876-45dc-85cb-e619d4b77a29 :: false

publishItemsToNodes 0.032s
2023-02-15 21:59:02 |

2023-02-15 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:02 | ------------------------------------

2023-02-15 21:59:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "entry": "<test>item-fb6a1f58-2648-4a92-abd3-0d8028471119</test>",
    "item-id": "item-fb6a1f58-2648-4a92-abd3-0d8028471119"
}

2023-02-15 21:59:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb6a1f58-2648-4a92-abd3-0d8028471119"
}

2023-02-15 21:59:02 | [Mutex] waiting for: [published:item:notifieditem-fb6a1f58-2648-4a92-abd3-0d8028471119:admin@test-domain.com]

2023-02-15 21:59:02 | [Mutex] received everything.

2023-02-15 21:59:02 | [Mutex] isItemNotified: published:item:notifieditem-fb6a1f58-2648-4a92-abd3-0d8028471119:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-02-15 21:59:02 |

2023-02-15 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:02 | ------------------------------------

2023-02-15 21:59:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "item-id": "item-fb6a1f58-2648-4a92-abd3-0d8028471119"
}

2023-02-15 21:59:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb6a1f58-2648-4a92-abd3-0d8028471119"
}

2023-02-15 21:59:02 | [Mutex] received everything.

2023-02-15 21:59:02 | [Mutex] isItemNotified: retracted:item:notifieditem-fb6a1f58-2648-4a92-abd3-0d8028471119:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2023-02-15 21:59:02 |

2023-02-15 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:02 | ------------------------------------

2023-02-15 21:59:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "item-id": "item-fb6a1f58-2648-4a92-abd3-0d8028471119"
}

2023-02-15 21:59:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "item-id": "item-fb6a1f58-2648-4a92-abd3-0d8028471119",
    "item": [
        "<item id=\"item-fb6a1f58-2648-4a92-abd3-0d8028471119\"><test>item-fb6a1f58-2648-4a92-abd3-0d8028471119</test></item>"
    ]
}

2023-02-15 21:59:02 | [Mutex] notify: [retrieved:item:item-fb6a1f58-2648-4a92-abd3-0d8028471119:payload-matches:true:localhost]

2023-02-15 21:59:02 | [Mutex] received everything.

2023-02-15 21:59:02 | [Mutex] isItemNotified: retrieved:item:item-fb6a1f58-2648-4a92-abd3-0d8028471119:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-02-15 21:59:02 |

2023-02-15 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:02 | ------------------------------------

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

2023-02-15 21:59:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
        "node-688a1bf8-7f23-4791-bfdc-dc5860823c35",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-02-15 21:59:02 |

2023-02-15 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:02 | ------------------------------------

2023-02-15 21:59:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ece1bae1-1876-45dc-85cb-e619d4b77a29)"
}

2023-02-15 21:59:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2023-02-15 21:59:01 |

2023-02-15 21:59:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:01 | ------------------------------------

2023-02-15 21:59:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-15 21:59:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.074s
2023-02-15 21:59:02 |

2023-02-15 21:59:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-02-15 21:59:02 | ------------------------------------

2023-02-15 21:59:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ece1bae1-1876-45dc-85cb-e619d4b77a29",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-02-15 21:59:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}