Generated by TestNG with ReportNG at 22:22 PDT on Sunday 01 May 2022
root@1bc69cf4cb94 / 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.796s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-05-01 22:37:01 |

2022-05-01 22:37:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:01 | ------------------------------------

2022-05-01 22:37:01 | [Mutex] waiting for: [configured:node:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d]

2022-05-01 22:37:01 | [Mutex] received everything.

2022-05-01 22:37:01 | [Mutex] isItemNotified: configured:node:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d :: true

2022-05-01 22:37:02 | [Mutex] waiting for: [received:nodes:5bdb4ae6-627f-4849-9b37-0d0a396460c2:localhost]

2022-05-01 22:37:02 | [Mutex] received everything.

2022-05-01 22:37:02 | [Mutex] isItemNotified: received:node:5bdb4ae6-627f-4849-9b37-0d0a396460c2:localhost:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:Node c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77 :: true

2022-05-01 22:37:02 | [Mutex] waiting for: [received:nodes:94b2bc60-ba3a-4ac3-8d7e-30a46222a35c:localhost]

2022-05-01 22:37:02 | [Mutex] received everything.

2022-05-01 22:37:02 | [Mutex] isItemNotified: received:node:94b2bc60-ba3a-4ac3-8d7e-30a46222a35c:localhost:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:Node c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77 :: false

createNodes 1.579s
2022-05-01 22:36:58 |

2022-05-01 22:36:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:36:58 | ------------------------------------

2022-05-01 22:36:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "pubsub#title": "Node c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77"
}

2022-05-01 22:36:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 22:37:00 | [Mutex] waiting for: [received:nodes:d824662d-74ab-458f-9ac4-7f74228a1193:localhost]

2022-05-01 22:37:00 | [Mutex] waiting for: [received:nodes:d824662d-74ab-458f-9ac4-7f74228a1193:localhost]

2022-05-01 22:37:00 | [Mutex] received everything.

2022-05-01 22:37:00 | [Mutex] isItemNotified: received:node:d824662d-74ab-458f-9ac4-7f74228a1193:localhost:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:Node c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77 :: true

createSubnodes 1.025s
2022-05-01 22:37:00 |

2022-05-01 22:37:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:00 | ------------------------------------

2022-05-01 22:37:00 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d",
    "pubsub#title": "Node 60879eaa-e5e3-49ef-a6dc-8c33ed75f27d"
}

2022-05-01 22:37:00 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-05-01 22:37:01 | [Mutex] waiting for: [received:nodes:54553b8a-084a-49e5-b268-97642598ec23:localhost]

2022-05-01 22:37:01 | [Mutex] received everything.

2022-05-01 22:37:01 | [Mutex] isItemNotified: received:node:54553b8a-084a-49e5-b268-97642598ec23:localhost:node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d:Node 60879eaa-e5e3-49ef-a6dc-8c33ed75f27d :: true

deleteNodes 1.021s
2022-05-01 22:37:05 |

2022-05-01 22:37:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:05 | ------------------------------------

2022-05-01 22:37:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d"
}

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

2022-05-01 22:37:06 | [Mutex] waiting for: [received:nodes:1a95f79d-2edb-4c36-900a-92c82339bcda:localhost]

2022-05-01 22:37:06 | [Mutex] received everything.

2022-05-01 22:37:06 | [Mutex] isItemNotified: received:node:1a95f79d-2edb-4c36-900a-92c82339bcda:localhost:node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d:Node 60879eaa-e5e3-49ef-a6dc-8c33ed75f27d :: false

deleteSubnodes 1.029s
2022-05-01 22:37:04 |

2022-05-01 22:37:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:04 | ------------------------------------

2022-05-01 22:37:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77"
}

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

2022-05-01 22:37:05 | [Mutex] waiting for: [received:nodes:6c0ed794-edfb-45ff-986c-f5de3d7035b1:localhost]

2022-05-01 22:37:05 | [Mutex] received everything.

2022-05-01 22:37:05 | [Mutex] isItemNotified: received:node:6c0ed794-edfb-45ff-986c-f5de3d7035b1:localhost:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:Node c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77 :: false

2022-05-01 22:37:05 | [Mutex] waiting for: [received:nodes:f68b917b-a995-4988-8719-0b89677f1ae7:localhost]

2022-05-01 22:37:05 | [Mutex] received everything.

2022-05-01 22:37:05 | [Mutex] isItemNotified: received:node:f68b917b-a995-4988-8719-0b89677f1ae7:localhost:node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77:Node c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77 :: false

publishItemsToNodes 0.057s
2022-05-01 22:37:03 |

2022-05-01 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:03 | ------------------------------------

2022-05-01 22:37:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "entry": "<test>item-0bb084b2-37aa-473e-88b0-7241830d4965</test>",
    "item-id": "item-0bb084b2-37aa-473e-88b0-7241830d4965"
}

2022-05-01 22:37:03 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0bb084b2-37aa-473e-88b0-7241830d4965"
}

2022-05-01 22:37:03 | [Mutex] received everything.

2022-05-01 22:37:03 | [Mutex] isItemNotified: published:item:notifieditem-0bb084b2-37aa-473e-88b0-7241830d4965:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2022-05-01 22:37:03 |

2022-05-01 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:03 | ------------------------------------

2022-05-01 22:37:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "item-id": "item-0bb084b2-37aa-473e-88b0-7241830d4965"
}

2022-05-01 22:37:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-0bb084b2-37aa-473e-88b0-7241830d4965"
}

2022-05-01 22:37:03 | [Mutex] received everything.

2022-05-01 22:37:03 | [Mutex] isItemNotified: retracted:item:notifieditem-0bb084b2-37aa-473e-88b0-7241830d4965:admin@test-domain.com :: true

retrieveItemsFromNodes 0.070s
2022-05-01 22:37:03 |

2022-05-01 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:03 | ------------------------------------

2022-05-01 22:37:03 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "item-id": "item-0bb084b2-37aa-473e-88b0-7241830d4965"
}

2022-05-01 22:37:03 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "item-id": "item-0bb084b2-37aa-473e-88b0-7241830d4965",
    "item": [
        "<item id=\"item-0bb084b2-37aa-473e-88b0-7241830d4965\"><test>item-0bb084b2-37aa-473e-88b0-7241830d4965</test></item>"
    ]
}

2022-05-01 22:37:03 | [Mutex] notify: [retrieved:item:item-0bb084b2-37aa-473e-88b0-7241830d4965:payload-matches:true:localhost]

2022-05-01 22:37:03 | [Mutex] received everything.

2022-05-01 22:37:03 | [Mutex] isItemNotified: retrieved:item:item-0bb084b2-37aa-473e-88b0-7241830d4965:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-05-01 22:37:03 |

2022-05-01 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:03 | ------------------------------------

2022-05-01 22:37:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-05-01 22:37:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
        "node-60879eaa-e5e3-49ef-a6dc-8c33ed75f27d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-05-01 22:37:03 |

2022-05-01 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:03 | ------------------------------------

2022-05-01 22:37:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77)"
}

2022-05-01 22:37:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-05-01 22:37:02 |

2022-05-01 22:37:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:02 | ------------------------------------

2022-05-01 22:37:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-01 22:37:02 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.115s
2022-05-01 22:37:03 |

2022-05-01 22:37:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-05-01 22:37:03 | ------------------------------------

2022-05-01 22:37:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c9a1c4eb-9484-4af2-bba6-efe8d3fd3d77",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-05-01 22:37:03 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}