Generated by TestNG with ReportNG at 22:48 PDT on Thursday 14 April 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.905s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-04-14 23:01:52 |

2022-04-14 23:01:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:52 | ------------------------------------

2022-04-14 23:01:52 | [Mutex] waiting for: [configured:node:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:node-feab7903-890d-405c-ba54-9e87e6aa85b8]

2022-04-14 23:01:52 | [Mutex] received everything.

2022-04-14 23:01:52 | [Mutex] isItemNotified: configured:node:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:node-feab7903-890d-405c-ba54-9e87e6aa85b8 :: true

2022-04-14 23:01:53 | [Mutex] waiting for: [received:nodes:fc82ca94-8fc1-453d-addd-b5fab4115d9f:localhost]

2022-04-14 23:01:53 | [Mutex] received everything.

2022-04-14 23:01:53 | [Mutex] isItemNotified: received:node:fc82ca94-8fc1-453d-addd-b5fab4115d9f:localhost:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:Node 9967a674-6f2b-4881-ba46-3fc10341d6bc :: true

2022-04-14 23:01:53 | [Mutex] waiting for: [received:nodes:f9bfe473-1065-4baa-ad4c-677a572836f1:localhost]

2022-04-14 23:01:53 | [Mutex] received everything.

2022-04-14 23:01:53 | [Mutex] isItemNotified: received:node:f9bfe473-1065-4baa-ad4c-677a572836f1:localhost:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:Node 9967a674-6f2b-4881-ba46-3fc10341d6bc :: false

createNodes 1.719s
2022-04-14 23:01:49 |

2022-04-14 23:01:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:49 | ------------------------------------

2022-04-14 23:01:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "pubsub#title": "Node 9967a674-6f2b-4881-ba46-3fc10341d6bc"
}

2022-04-14 23:01:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 23:01:50 | [Mutex] waiting for: [received:nodes:39f83dc3-ae56-49ba-aff9-c54e68f1d832:localhost]

2022-04-14 23:01:50 | [Mutex] waiting for: [received:nodes:39f83dc3-ae56-49ba-aff9-c54e68f1d832:localhost]

2022-04-14 23:01:50 | [Mutex] received everything.

2022-04-14 23:01:50 | [Mutex] isItemNotified: received:node:39f83dc3-ae56-49ba-aff9-c54e68f1d832:localhost:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:Node 9967a674-6f2b-4881-ba46-3fc10341d6bc :: true

createSubnodes 1.026s
2022-04-14 23:01:50 |

2022-04-14 23:01:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:50 | ------------------------------------

2022-04-14 23:01:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-feab7903-890d-405c-ba54-9e87e6aa85b8",
    "pubsub#title": "Node feab7903-890d-405c-ba54-9e87e6aa85b8"
}

2022-04-14 23:01:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-04-14 23:01:52 | [Mutex] waiting for: [received:nodes:f842f507-ba3f-461c-971c-098fd53257ab:localhost]

2022-04-14 23:01:52 | [Mutex] received everything.

2022-04-14 23:01:52 | [Mutex] isItemNotified: received:node:f842f507-ba3f-461c-971c-098fd53257ab:localhost:node-feab7903-890d-405c-ba54-9e87e6aa85b8:Node feab7903-890d-405c-ba54-9e87e6aa85b8 :: true

deleteNodes 1.020s
2022-04-14 23:01:56 |

2022-04-14 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:56 | ------------------------------------

2022-04-14 23:01:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-feab7903-890d-405c-ba54-9e87e6aa85b8"
}

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

2022-04-14 23:01:57 | [Mutex] waiting for: [received:nodes:fcf4acc5-217b-4c03-a8e9-d7c943f2d666:localhost]

2022-04-14 23:01:57 | [Mutex] received everything.

2022-04-14 23:01:57 | [Mutex] isItemNotified: received:node:fcf4acc5-217b-4c03-a8e9-d7c943f2d666:localhost:node-feab7903-890d-405c-ba54-9e87e6aa85b8:Node feab7903-890d-405c-ba54-9e87e6aa85b8 :: false

deleteSubnodes 1.024s
2022-04-14 23:01:55 |

2022-04-14 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:55 | ------------------------------------

2022-04-14 23:01:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc"
}

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

2022-04-14 23:01:56 | [Mutex] waiting for: [received:nodes:7c466512-92e1-41db-8720-b98213215659:localhost]

2022-04-14 23:01:56 | [Mutex] received everything.

2022-04-14 23:01:56 | [Mutex] isItemNotified: received:node:7c466512-92e1-41db-8720-b98213215659:localhost:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:Node 9967a674-6f2b-4881-ba46-3fc10341d6bc :: false

2022-04-14 23:01:56 | [Mutex] waiting for: [received:nodes:70538f0c-f7ff-4ba0-8d5f-9d90d493b6f3:localhost]

2022-04-14 23:01:56 | [Mutex] received everything.

2022-04-14 23:01:56 | [Mutex] isItemNotified: received:node:70538f0c-f7ff-4ba0-8d5f-9d90d493b6f3:localhost:node-9967a674-6f2b-4881-ba46-3fc10341d6bc:Node 9967a674-6f2b-4881-ba46-3fc10341d6bc :: false

publishItemsToNodes 0.038s
2022-04-14 23:01:54 |

2022-04-14 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:54 | ------------------------------------

2022-04-14 23:01:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "entry": "<test>item-33767944-0b4e-4f4d-958a-e84b50e1e7af</test>",
    "item-id": "item-33767944-0b4e-4f4d-958a-e84b50e1e7af"
}

2022-04-14 23:01:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-33767944-0b4e-4f4d-958a-e84b50e1e7af"
}

2022-04-14 23:01:54 | [Mutex] waiting for: [published:item:notifieditem-33767944-0b4e-4f4d-958a-e84b50e1e7af:admin@test-domain.com]

2022-04-14 23:01:54 | [Mutex] received everything.

2022-04-14 23:01:54 | [Mutex] isItemNotified: published:item:notifieditem-33767944-0b4e-4f4d-958a-e84b50e1e7af:admin@test-domain.com :: true

retractItemsFromNodes 0.054s
2022-04-14 23:01:54 |

2022-04-14 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:54 | ------------------------------------

2022-04-14 23:01:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "item-id": "item-33767944-0b4e-4f4d-958a-e84b50e1e7af"
}

2022-04-14 23:01:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-33767944-0b4e-4f4d-958a-e84b50e1e7af"
}

2022-04-14 23:01:54 | [Mutex] received everything.

2022-04-14 23:01:54 | [Mutex] isItemNotified: retracted:item:notifieditem-33767944-0b4e-4f4d-958a-e84b50e1e7af:admin@test-domain.com :: true

retrieveItemsFromNodes 0.111s
2022-04-14 23:01:54 |

2022-04-14 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:54 | ------------------------------------

2022-04-14 23:01:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "item-id": "item-33767944-0b4e-4f4d-958a-e84b50e1e7af"
}

2022-04-14 23:01:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "item-id": "item-33767944-0b4e-4f4d-958a-e84b50e1e7af",
    "item": [
        "<item id=\"item-33767944-0b4e-4f4d-958a-e84b50e1e7af\"><test>item-33767944-0b4e-4f4d-958a-e84b50e1e7af</test></item>"
    ]
}

2022-04-14 23:01:54 | [Mutex] notify: [retrieved:item:item-33767944-0b4e-4f4d-958a-e84b50e1e7af:payload-matches:true:localhost]

2022-04-14 23:01:54 | [Mutex] received everything.

2022-04-14 23:01:54 | [Mutex] isItemNotified: retrieved:item:item-33767944-0b4e-4f4d-958a-e84b50e1e7af:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2022-04-14 23:01:54 |

2022-04-14 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:54 | ------------------------------------

2022-04-14 23:01:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-04-14 23:01:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
        "node-feab7903-890d-405c-ba54-9e87e6aa85b8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-04-14 23:01:54 |

2022-04-14 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:54 | ------------------------------------

2022-04-14 23:01:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9967a674-6f2b-4881-ba46-3fc10341d6bc)"
}

2022-04-14 23:01:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-04-14 23:01:53 |

2022-04-14 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:53 | ------------------------------------

2022-04-14 23:01:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-14 23:01:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-04-14 23:01:54 |

2022-04-14 23:01:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-14 23:01:54 | ------------------------------------

2022-04-14 23:01:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9967a674-6f2b-4881-ba46-3fc10341d6bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-04-14 23:01:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}