Generated by TestNG with ReportNG at 22:17 PDT on Monday 27 June 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.727s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.034s
2022-06-27 22:33:29 |

2022-06-27 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:29 | ------------------------------------

2022-06-27 22:33:29 | [Mutex] waiting for: [configured:node:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a]

2022-06-27 22:33:29 | [Mutex] received everything.

2022-06-27 22:33:29 | [Mutex] isItemNotified: configured:node:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a :: true

2022-06-27 22:33:30 | [Mutex] waiting for: [received:nodes:04cf24a2-f0e9-4b6b-abd3-083a90a1f28e:localhost]

2022-06-27 22:33:30 | [Mutex] received everything.

2022-06-27 22:33:30 | [Mutex] isItemNotified: received:node:04cf24a2-f0e9-4b6b-abd3-083a90a1f28e:localhost:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:Node 3adb8ce0-26ee-45f2-94b5-cb044154c258 :: true

2022-06-27 22:33:30 | [Mutex] waiting for: [received:nodes:26dcec59-49f8-494f-80d6-9abd3ed1b957:localhost]

2022-06-27 22:33:30 | [Mutex] waiting for: [received:nodes:26dcec59-49f8-494f-80d6-9abd3ed1b957:localhost]

2022-06-27 22:33:30 | [Mutex] received everything.

2022-06-27 22:33:30 | [Mutex] isItemNotified: received:node:26dcec59-49f8-494f-80d6-9abd3ed1b957:localhost:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:Node 3adb8ce0-26ee-45f2-94b5-cb044154c258 :: false

createNodes 1.615s
2022-06-27 22:33:26 |

2022-06-27 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:26 | ------------------------------------

2022-06-27 22:33:27 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "pubsub#title": "Node 3adb8ce0-26ee-45f2-94b5-cb044154c258"
}

2022-06-27 22:33:27 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:33:28 | [Mutex] waiting for: [received:nodes:fe3c0ad0-c498-4f44-a2d1-975a307fb898:localhost]

2022-06-27 22:33:28 | [Mutex] received everything.

2022-06-27 22:33:28 | [Mutex] isItemNotified: received:node:fe3c0ad0-c498-4f44-a2d1-975a307fb898:localhost:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:Node 3adb8ce0-26ee-45f2-94b5-cb044154c258 :: true

createSubnodes 1.023s
2022-06-27 22:33:28 |

2022-06-27 22:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:28 | ------------------------------------

2022-06-27 22:33:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a",
    "pubsub#title": "Node c78099ea-5345-4823-bfaf-04d3bcfb5c0a"
}

2022-06-27 22:33:28 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:33:29 | [Mutex] waiting for: [received:nodes:84907b64-c42d-4a9a-89f1-66626189ebc8:localhost]

2022-06-27 22:33:29 | [Mutex] received everything.

2022-06-27 22:33:29 | [Mutex] isItemNotified: received:node:84907b64-c42d-4a9a-89f1-66626189ebc8:localhost:node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a:Node c78099ea-5345-4823-bfaf-04d3bcfb5c0a :: true

deleteNodes 1.026s
2022-06-27 22:33:33 |

2022-06-27 22:33:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:33 | ------------------------------------

2022-06-27 22:33:33 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a"
}

2022-06-27 22:33:33 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:33:34 | [Mutex] waiting for: [received:nodes:b67b2c9a-41a0-478e-aa33-7e709014d80b:localhost]

2022-06-27 22:33:34 | [Mutex] waiting for: [received:nodes:b67b2c9a-41a0-478e-aa33-7e709014d80b:localhost]

2022-06-27 22:33:34 | [Mutex] received everything.

2022-06-27 22:33:34 | [Mutex] isItemNotified: received:node:b67b2c9a-41a0-478e-aa33-7e709014d80b:localhost:node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a:Node c78099ea-5345-4823-bfaf-04d3bcfb5c0a :: false

deleteSubnodes 1.023s
2022-06-27 22:33:32 |

2022-06-27 22:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:32 | ------------------------------------

2022-06-27 22:33:32 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258"
}

2022-06-27 22:33:32 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-27 22:33:33 | [Mutex] waiting for: [received:nodes:d2f4b91a-6947-420e-b2d8-4b66d0704a81:localhost]

2022-06-27 22:33:33 | [Mutex] received everything.

2022-06-27 22:33:33 | [Mutex] isItemNotified: received:node:d2f4b91a-6947-420e-b2d8-4b66d0704a81:localhost:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:Node 3adb8ce0-26ee-45f2-94b5-cb044154c258 :: false

2022-06-27 22:33:33 | [Mutex] waiting for: [received:nodes:96aaa1b1-ee88-44be-a217-86d9c6283ac8:localhost]

2022-06-27 22:33:33 | [Mutex] received everything.

2022-06-27 22:33:33 | [Mutex] isItemNotified: received:node:96aaa1b1-ee88-44be-a217-86d9c6283ac8:localhost:node-3adb8ce0-26ee-45f2-94b5-cb044154c258:Node 3adb8ce0-26ee-45f2-94b5-cb044154c258 :: false

publishItemsToNodes 0.057s
2022-06-27 22:33:31 |

2022-06-27 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:31 | ------------------------------------

2022-06-27 22:33:31 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "entry": "<test>item-db988b51-9d6d-43d8-af87-f4bebf64b052</test>",
    "item-id": "item-db988b51-9d6d-43d8-af87-f4bebf64b052"
}

2022-06-27 22:33:31 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-db988b51-9d6d-43d8-af87-f4bebf64b052"
}

2022-06-27 22:33:31 | [Mutex] waiting for: [published:item:notifieditem-db988b51-9d6d-43d8-af87-f4bebf64b052:admin@test-domain.com]

2022-06-27 22:33:31 | [Mutex] received everything.

2022-06-27 22:33:31 | [Mutex] isItemNotified: published:item:notifieditem-db988b51-9d6d-43d8-af87-f4bebf64b052:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-27 22:33:31 |

2022-06-27 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:31 | ------------------------------------

2022-06-27 22:33:31 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "item-id": "item-db988b51-9d6d-43d8-af87-f4bebf64b052"
}

2022-06-27 22:33:31 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-db988b51-9d6d-43d8-af87-f4bebf64b052"
}

2022-06-27 22:33:31 | [Mutex] received everything.

2022-06-27 22:33:31 | [Mutex] isItemNotified: retracted:item:notifieditem-db988b51-9d6d-43d8-af87-f4bebf64b052:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2022-06-27 22:33:31 |

2022-06-27 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:31 | ------------------------------------

2022-06-27 22:33:31 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "item-id": "item-db988b51-9d6d-43d8-af87-f4bebf64b052"
}

2022-06-27 22:33:31 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "item-id": "item-db988b51-9d6d-43d8-af87-f4bebf64b052",
    "item": [
        "<item id=\"item-db988b51-9d6d-43d8-af87-f4bebf64b052\"><test>item-db988b51-9d6d-43d8-af87-f4bebf64b052</test></item>"
    ]
}

2022-06-27 22:33:31 | [Mutex] notify: [retrieved:item:item-db988b51-9d6d-43d8-af87-f4bebf64b052:payload-matches:true:localhost]

2022-06-27 22:33:31 | [Mutex] received everything.

2022-06-27 22:33:31 | [Mutex] isItemNotified: retrieved:item:item-db988b51-9d6d-43d8-af87-f4bebf64b052:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-27 22:33:31 |

2022-06-27 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:31 | ------------------------------------

2022-06-27 22:33:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-06-27 22:33:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
        "node-c78099ea-5345-4823-bfaf-04d3bcfb5c0a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-27 22:33:31 |

2022-06-27 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:31 | ------------------------------------

2022-06-27 22:33:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3adb8ce0-26ee-45f2-94b5-cb044154c258)"
}

2022-06-27 22:33:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-06-27 22:33:30 |

2022-06-27 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:30 | ------------------------------------

2022-06-27 22:33:30 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-27 22:33:30 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.127s
2022-06-27 22:33:31 |

2022-06-27 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-27 22:33:31 | ------------------------------------

2022-06-27 22:33:31 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3adb8ce0-26ee-45f2-94b5-cb044154c258",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-27 22:33:31 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}