Generated by TestNG with ReportNG at 08:01 PST on Friday 30 December 2022
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.831s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.147s
2022-12-30 08:16:17 |

2022-12-30 08:16:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:17 | ------------------------------------

2022-12-30 08:16:17 | [Mutex] waiting for: [configured:node:node-45b63501-e3e4-436d-b20e-33ed1807bd23:node-a9796f57-63b6-4d15-8e1f-e684f5a57562]

2022-12-30 08:16:17 | [Mutex] received everything.

2022-12-30 08:16:17 | [Mutex] isItemNotified: configured:node:node-45b63501-e3e4-436d-b20e-33ed1807bd23:node-a9796f57-63b6-4d15-8e1f-e684f5a57562 :: true

2022-12-30 08:16:18 | [Mutex] waiting for: [received:nodes:5a2a9c30-3a12-46b2-9db7-9c248a0547fc:localhost]

2022-12-30 08:16:18 | [Mutex] received everything.

2022-12-30 08:16:18 | [Mutex] isItemNotified: received:node:5a2a9c30-3a12-46b2-9db7-9c248a0547fc:localhost:node-45b63501-e3e4-436d-b20e-33ed1807bd23:Node 45b63501-e3e4-436d-b20e-33ed1807bd23 :: true

2022-12-30 08:16:18 | [Mutex] waiting for: [received:nodes:c6e49b71-d201-4b06-a7ae-4211a201d837:localhost]

2022-12-30 08:16:18 | [Mutex] waiting for: [received:nodes:c6e49b71-d201-4b06-a7ae-4211a201d837:localhost]

2022-12-30 08:16:18 | [Mutex] waiting for: [received:nodes:c6e49b71-d201-4b06-a7ae-4211a201d837:localhost]

2022-12-30 08:16:18 | [Mutex] waiting for: [received:nodes:c6e49b71-d201-4b06-a7ae-4211a201d837:localhost]

2022-12-30 08:16:18 | [Mutex] received everything.

2022-12-30 08:16:18 | [Mutex] isItemNotified: received:node:c6e49b71-d201-4b06-a7ae-4211a201d837:localhost:node-45b63501-e3e4-436d-b20e-33ed1807bd23:Node 45b63501-e3e4-436d-b20e-33ed1807bd23 :: false

createNodes 1.758s
2022-12-30 08:16:14 |

2022-12-30 08:16:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:14 | ------------------------------------

2022-12-30 08:16:15 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "pubsub#title": "Node 45b63501-e3e4-436d-b20e-33ed1807bd23"
}

2022-12-30 08:16:15 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:16:16 | [Mutex] waiting for: [received:nodes:856fcc06-fd87-40be-b9cc-9ddd9cae9ce6:localhost]

2022-12-30 08:16:16 | [Mutex] waiting for: [received:nodes:856fcc06-fd87-40be-b9cc-9ddd9cae9ce6:localhost]

2022-12-30 08:16:16 | [Mutex] waiting for: [received:nodes:856fcc06-fd87-40be-b9cc-9ddd9cae9ce6:localhost]

2022-12-30 08:16:16 | [Mutex] waiting for: [received:nodes:856fcc06-fd87-40be-b9cc-9ddd9cae9ce6:localhost]

2022-12-30 08:16:16 | [Mutex] received everything.

2022-12-30 08:16:16 | [Mutex] isItemNotified: received:node:856fcc06-fd87-40be-b9cc-9ddd9cae9ce6:localhost:node-45b63501-e3e4-436d-b20e-33ed1807bd23:Node 45b63501-e3e4-436d-b20e-33ed1807bd23 :: true

createSubnodes 1.025s
2022-12-30 08:16:16 |

2022-12-30 08:16:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:16 | ------------------------------------

2022-12-30 08:16:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a9796f57-63b6-4d15-8e1f-e684f5a57562",
    "pubsub#title": "Node a9796f57-63b6-4d15-8e1f-e684f5a57562"
}

2022-12-30 08:16:16 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:16:17 | [Mutex] waiting for: [received:nodes:3a44d5a5-6b99-4139-b4bf-73e6aeef04b7:localhost]

2022-12-30 08:16:17 | [Mutex] waiting for: [received:nodes:3a44d5a5-6b99-4139-b4bf-73e6aeef04b7:localhost]

2022-12-30 08:16:17 | [Mutex] waiting for: [received:nodes:3a44d5a5-6b99-4139-b4bf-73e6aeef04b7:localhost]

2022-12-30 08:16:17 | [Mutex] waiting for: [received:nodes:3a44d5a5-6b99-4139-b4bf-73e6aeef04b7:localhost]

2022-12-30 08:16:17 | [Mutex] waiting for: [received:nodes:3a44d5a5-6b99-4139-b4bf-73e6aeef04b7:localhost]

2022-12-30 08:16:17 | [Mutex] received everything.

2022-12-30 08:16:17 | [Mutex] isItemNotified: received:node:3a44d5a5-6b99-4139-b4bf-73e6aeef04b7:localhost:node-a9796f57-63b6-4d15-8e1f-e684f5a57562:Node a9796f57-63b6-4d15-8e1f-e684f5a57562 :: true

deleteNodes 1.023s
2022-12-30 08:16:21 |

2022-12-30 08:16:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:21 | ------------------------------------

2022-12-30 08:16:21 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a9796f57-63b6-4d15-8e1f-e684f5a57562"
}

2022-12-30 08:16:21 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:16:22 | [Mutex] waiting for: [received:nodes:2863e959-b7a4-4d1e-84ca-e4581b6fc055:localhost]

2022-12-30 08:16:22 | [Mutex] waiting for: [received:nodes:2863e959-b7a4-4d1e-84ca-e4581b6fc055:localhost]

2022-12-30 08:16:22 | [Mutex] waiting for: [received:nodes:2863e959-b7a4-4d1e-84ca-e4581b6fc055:localhost]

2022-12-30 08:16:22 | [Mutex] received everything.

2022-12-30 08:16:22 | [Mutex] isItemNotified: received:node:2863e959-b7a4-4d1e-84ca-e4581b6fc055:localhost:node-a9796f57-63b6-4d15-8e1f-e684f5a57562:Node a9796f57-63b6-4d15-8e1f-e684f5a57562 :: false

deleteSubnodes 1.029s
2022-12-30 08:16:20 |

2022-12-30 08:16:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:20 | ------------------------------------

2022-12-30 08:16:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23"
}

2022-12-30 08:16:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-12-30 08:16:21 | [Mutex] waiting for: [received:nodes:37e65476-5b5e-4e5a-b54b-b90580c54bd1:localhost]

2022-12-30 08:16:21 | [Mutex] received everything.

2022-12-30 08:16:21 | [Mutex] isItemNotified: received:node:37e65476-5b5e-4e5a-b54b-b90580c54bd1:localhost:node-45b63501-e3e4-436d-b20e-33ed1807bd23:Node 45b63501-e3e4-436d-b20e-33ed1807bd23 :: false

2022-12-30 08:16:21 | [Mutex] waiting for: [received:nodes:e7dd8820-584f-492d-9156-46b49850e9cf:localhost]

2022-12-30 08:16:21 | [Mutex] received everything.

2022-12-30 08:16:21 | [Mutex] isItemNotified: received:node:e7dd8820-584f-492d-9156-46b49850e9cf:localhost:node-45b63501-e3e4-436d-b20e-33ed1807bd23:Node 45b63501-e3e4-436d-b20e-33ed1807bd23 :: false

publishItemsToNodes 0.058s
2022-12-30 08:16:19 |

2022-12-30 08:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:19 | ------------------------------------

2022-12-30 08:16:19 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "entry": "<test>item-bc89feef-e9b1-46d0-8e9a-21d36e85adea</test>",
    "item-id": "item-bc89feef-e9b1-46d0-8e9a-21d36e85adea"
}

2022-12-30 08:16:19 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bc89feef-e9b1-46d0-8e9a-21d36e85adea"
}

2022-12-30 08:16:19 | [Mutex] waiting for: [published:item:notifieditem-bc89feef-e9b1-46d0-8e9a-21d36e85adea:admin@test-domain.com]

2022-12-30 08:16:19 | [Mutex] received everything.

2022-12-30 08:16:19 | [Mutex] isItemNotified: published:item:notifieditem-bc89feef-e9b1-46d0-8e9a-21d36e85adea:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-12-30 08:16:19 |

2022-12-30 08:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:19 | ------------------------------------

2022-12-30 08:16:19 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "item-id": "item-bc89feef-e9b1-46d0-8e9a-21d36e85adea"
}

2022-12-30 08:16:19 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-bc89feef-e9b1-46d0-8e9a-21d36e85adea"
}

2022-12-30 08:16:19 | [Mutex] received everything.

2022-12-30 08:16:19 | [Mutex] isItemNotified: retracted:item:notifieditem-bc89feef-e9b1-46d0-8e9a-21d36e85adea:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2022-12-30 08:16:19 |

2022-12-30 08:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:19 | ------------------------------------

2022-12-30 08:16:19 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "item-id": "item-bc89feef-e9b1-46d0-8e9a-21d36e85adea"
}

2022-12-30 08:16:19 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "item-id": "item-bc89feef-e9b1-46d0-8e9a-21d36e85adea",
    "item": [
        "<item id=\"item-bc89feef-e9b1-46d0-8e9a-21d36e85adea\"><test>item-bc89feef-e9b1-46d0-8e9a-21d36e85adea</test></item>"
    ]
}

2022-12-30 08:16:19 | [Mutex] notify: [retrieved:item:item-bc89feef-e9b1-46d0-8e9a-21d36e85adea:payload-matches:true:localhost]

2022-12-30 08:16:19 | [Mutex] received everything.

2022-12-30 08:16:19 | [Mutex] isItemNotified: retrieved:item:item-bc89feef-e9b1-46d0-8e9a-21d36e85adea:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-12-30 08:16:19 |

2022-12-30 08:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:19 | ------------------------------------

2022-12-30 08:16:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-12-30 08:16:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
        "node-a9796f57-63b6-4d15-8e1f-e684f5a57562"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-12-30 08:16:19 |

2022-12-30 08:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:19 | ------------------------------------

2022-12-30 08:16:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-45b63501-e3e4-436d-b20e-33ed1807bd23)"
}

2022-12-30 08:16:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-12-30 08:16:18 |

2022-12-30 08:16:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:18 | ------------------------------------

2022-12-30 08:16:18 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 08:16:18 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2022-12-30 08:16:19 |

2022-12-30 08:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-12-30 08:16:19 | ------------------------------------

2022-12-30 08:16:19 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-45b63501-e3e4-436d-b20e-33ed1807bd23",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-12-30 08:16:19 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}