Generated by TestNG with ReportNG at 22:50 PDT on Sunday 19 June 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.680s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2022-06-19 23:05:33 |

2022-06-19 23:05:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:33 | ------------------------------------

2022-06-19 23:05:33 | [Mutex] waiting for: [configured:node:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:node-91c5313e-6dbc-4561-b64c-5edb4ee06133]

2022-06-19 23:05:33 | [Mutex] received everything.

2022-06-19 23:05:33 | [Mutex] isItemNotified: configured:node:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:node-91c5313e-6dbc-4561-b64c-5edb4ee06133 :: true

2022-06-19 23:05:34 | [Mutex] waiting for: [received:nodes:36b198ae-e757-4a7b-823d-b3b18fa39e82:localhost]

2022-06-19 23:05:34 | [Mutex] received everything.

2022-06-19 23:05:34 | [Mutex] isItemNotified: received:node:36b198ae-e757-4a7b-823d-b3b18fa39e82:localhost:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:Node da42bfcd-e975-44e9-9fca-5d8c78e73692 :: true

2022-06-19 23:05:34 | [Mutex] waiting for: [received:nodes:95957bb7-412a-4096-bc3a-7e221b24466b:localhost]

2022-06-19 23:05:34 | [Mutex] received everything.

2022-06-19 23:05:34 | [Mutex] isItemNotified: received:node:95957bb7-412a-4096-bc3a-7e221b24466b:localhost:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:Node da42bfcd-e975-44e9-9fca-5d8c78e73692 :: false

createNodes 1.515s
2022-06-19 23:05:30 |

2022-06-19 23:05:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:30 | ------------------------------------

2022-06-19 23:05:30 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "pubsub#title": "Node da42bfcd-e975-44e9-9fca-5d8c78e73692"
}

2022-06-19 23:05:30 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 23:05:31 | [Mutex] waiting for: [received:nodes:3af41b72-1d6d-4d00-a4e6-64df02f8a77c:localhost]

2022-06-19 23:05:31 | [Mutex] waiting for: [received:nodes:3af41b72-1d6d-4d00-a4e6-64df02f8a77c:localhost]

2022-06-19 23:05:31 | [Mutex] received everything.

2022-06-19 23:05:31 | [Mutex] isItemNotified: received:node:3af41b72-1d6d-4d00-a4e6-64df02f8a77c:localhost:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:Node da42bfcd-e975-44e9-9fca-5d8c78e73692 :: true

createSubnodes 1.025s
2022-06-19 23:05:31 |

2022-06-19 23:05:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:31 | ------------------------------------

2022-06-19 23:05:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-91c5313e-6dbc-4561-b64c-5edb4ee06133",
    "pubsub#title": "Node 91c5313e-6dbc-4561-b64c-5edb4ee06133"
}

2022-06-19 23:05:32 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 23:05:33 | [Mutex] waiting for: [received:nodes:9716e8e2-9e72-497c-bd22-8d34911ba6ef:localhost]

2022-06-19 23:05:33 | [Mutex] received everything.

2022-06-19 23:05:33 | [Mutex] isItemNotified: received:node:9716e8e2-9e72-497c-bd22-8d34911ba6ef:localhost:node-91c5313e-6dbc-4561-b64c-5edb4ee06133:Node 91c5313e-6dbc-4561-b64c-5edb4ee06133 :: true

deleteNodes 1.025s
2022-06-19 23:05:37 |

2022-06-19 23:05:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:37 | ------------------------------------

2022-06-19 23:05:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-91c5313e-6dbc-4561-b64c-5edb4ee06133"
}

2022-06-19 23:05:37 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 23:05:38 | [Mutex] waiting for: [received:nodes:fe2d994c-5ac6-4f90-9e06-fb1354fe62da:localhost]

2022-06-19 23:05:38 | [Mutex] waiting for: [received:nodes:fe2d994c-5ac6-4f90-9e06-fb1354fe62da:localhost]

2022-06-19 23:05:38 | [Mutex] waiting for: [received:nodes:fe2d994c-5ac6-4f90-9e06-fb1354fe62da:localhost]

2022-06-19 23:05:38 | [Mutex] received everything.

2022-06-19 23:05:38 | [Mutex] isItemNotified: received:node:fe2d994c-5ac6-4f90-9e06-fb1354fe62da:localhost:node-91c5313e-6dbc-4561-b64c-5edb4ee06133:Node 91c5313e-6dbc-4561-b64c-5edb4ee06133 :: false

deleteSubnodes 1.027s
2022-06-19 23:05:36 |

2022-06-19 23:05:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:36 | ------------------------------------

2022-06-19 23:05:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692"
}

2022-06-19 23:05:36 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-19 23:05:37 | [Mutex] waiting for: [received:nodes:08b59ed8-35e5-4a0c-88cb-80ed2687452b:localhost]

2022-06-19 23:05:37 | [Mutex] received everything.

2022-06-19 23:05:37 | [Mutex] isItemNotified: received:node:08b59ed8-35e5-4a0c-88cb-80ed2687452b:localhost:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:Node da42bfcd-e975-44e9-9fca-5d8c78e73692 :: false

2022-06-19 23:05:37 | [Mutex] waiting for: [received:nodes:2691be11-37ef-470b-aa2c-ca0374e759af:localhost]

2022-06-19 23:05:37 | [Mutex] received everything.

2022-06-19 23:05:37 | [Mutex] isItemNotified: received:node:2691be11-37ef-470b-aa2c-ca0374e759af:localhost:node-da42bfcd-e975-44e9-9fca-5d8c78e73692:Node da42bfcd-e975-44e9-9fca-5d8c78e73692 :: false

publishItemsToNodes 0.057s
2022-06-19 23:05:35 |

2022-06-19 23:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:35 | ------------------------------------

2022-06-19 23:05:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "entry": "<test>item-da1f99d7-b449-4f25-b7dd-6b0f491caab8</test>",
    "item-id": "item-da1f99d7-b449-4f25-b7dd-6b0f491caab8"
}

2022-06-19 23:05:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da1f99d7-b449-4f25-b7dd-6b0f491caab8"
}

2022-06-19 23:05:35 | [Mutex] received everything.

2022-06-19 23:05:35 | [Mutex] isItemNotified: published:item:notifieditem-da1f99d7-b449-4f25-b7dd-6b0f491caab8:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-19 23:05:35 |

2022-06-19 23:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:35 | ------------------------------------

2022-06-19 23:05:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "item-id": "item-da1f99d7-b449-4f25-b7dd-6b0f491caab8"
}

2022-06-19 23:05:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da1f99d7-b449-4f25-b7dd-6b0f491caab8"
}

2022-06-19 23:05:35 | [Mutex] received everything.

2022-06-19 23:05:35 | [Mutex] isItemNotified: retracted:item:notifieditem-da1f99d7-b449-4f25-b7dd-6b0f491caab8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-06-19 23:05:35 |

2022-06-19 23:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:35 | ------------------------------------

2022-06-19 23:05:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "item-id": "item-da1f99d7-b449-4f25-b7dd-6b0f491caab8"
}

2022-06-19 23:05:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "item-id": "item-da1f99d7-b449-4f25-b7dd-6b0f491caab8",
    "item": [
        "<item id=\"item-da1f99d7-b449-4f25-b7dd-6b0f491caab8\"><test>item-da1f99d7-b449-4f25-b7dd-6b0f491caab8</test></item>"
    ]
}

2022-06-19 23:05:35 | [Mutex] notify: [retrieved:item:item-da1f99d7-b449-4f25-b7dd-6b0f491caab8:payload-matches:true:localhost]

2022-06-19 23:05:35 | [Mutex] received everything.

2022-06-19 23:05:35 | [Mutex] isItemNotified: retrieved:item:item-da1f99d7-b449-4f25-b7dd-6b0f491caab8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.100s
2022-06-19 23:05:35 |

2022-06-19 23:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:35 | ------------------------------------

2022-06-19 23:05:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-19 23:05:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
        "node-91c5313e-6dbc-4561-b64c-5edb4ee06133"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-19 23:05:35 |

2022-06-19 23:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:35 | ------------------------------------

2022-06-19 23:05:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-da42bfcd-e975-44e9-9fca-5d8c78e73692)"
}

2022-06-19 23:05:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-06-19 23:05:34 |

2022-06-19 23:05:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:34 | ------------------------------------

2022-06-19 23:05:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-19 23:05:34 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-06-19 23:05:35 |

2022-06-19 23:05:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-19 23:05:35 | ------------------------------------

2022-06-19 23:05:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-da42bfcd-e975-44e9-9fca-5d8c78e73692",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-19 23:05:35 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}