Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 23 August 2022
root@f9c07ffec79b / 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.638s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-08-23 22:34:21 |

2022-08-23 22:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:21 | ------------------------------------

2022-08-23 22:34:21 | [Mutex] waiting for: [configured:node:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:node-8903a439-542b-4670-8231-f39e7a57b525]

2022-08-23 22:34:21 | [Mutex] received everything.

2022-08-23 22:34:21 | [Mutex] isItemNotified: configured:node:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:node-8903a439-542b-4670-8231-f39e7a57b525 :: true

2022-08-23 22:34:22 | [Mutex] waiting for: [received:nodes:b6033e73-d48f-46af-97e1-c186e8c451fa:localhost]

2022-08-23 22:34:22 | [Mutex] received everything.

2022-08-23 22:34:22 | [Mutex] isItemNotified: received:node:b6033e73-d48f-46af-97e1-c186e8c451fa:localhost:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:Node 0f646ee7-d2e3-443e-b464-1cdea6a5c981 :: true

2022-08-23 22:34:22 | [Mutex] waiting for: [received:nodes:58ef51ea-5134-4f40-9d23-b099d0bb6d3d:localhost]

2022-08-23 22:34:22 | [Mutex] received everything.

2022-08-23 22:34:22 | [Mutex] isItemNotified: received:node:58ef51ea-5134-4f40-9d23-b099d0bb6d3d:localhost:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:Node 0f646ee7-d2e3-443e-b464-1cdea6a5c981 :: false

createNodes 1.533s
2022-08-23 22:34:18 |

2022-08-23 22:34:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:18 | ------------------------------------

2022-08-23 22:34:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "pubsub#title": "Node 0f646ee7-d2e3-443e-b464-1cdea6a5c981"
}

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

2022-08-23 22:34:20 | [Mutex] waiting for: [received:nodes:b570ab47-6b8d-4f94-a895-1bfeb29405d1:localhost]

2022-08-23 22:34:20 | [Mutex] waiting for: [received:nodes:b570ab47-6b8d-4f94-a895-1bfeb29405d1:localhost]

2022-08-23 22:34:20 | [Mutex] waiting for: [received:nodes:b570ab47-6b8d-4f94-a895-1bfeb29405d1:localhost]

2022-08-23 22:34:20 | [Mutex] received everything.

2022-08-23 22:34:20 | [Mutex] isItemNotified: received:node:b570ab47-6b8d-4f94-a895-1bfeb29405d1:localhost:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:Node 0f646ee7-d2e3-443e-b464-1cdea6a5c981 :: true

createSubnodes 1.022s
2022-08-23 22:34:20 |

2022-08-23 22:34:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:20 | ------------------------------------

2022-08-23 22:34:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-8903a439-542b-4670-8231-f39e7a57b525",
    "pubsub#title": "Node 8903a439-542b-4670-8231-f39e7a57b525"
}

2022-08-23 22:34:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:21 | [Mutex] waiting for: [received:nodes:d164899c-1498-498a-a4aa-c0beaabcbd42:localhost]

2022-08-23 22:34:21 | [Mutex] waiting for: [received:nodes:d164899c-1498-498a-a4aa-c0beaabcbd42:localhost]

2022-08-23 22:34:21 | [Mutex] waiting for: [received:nodes:d164899c-1498-498a-a4aa-c0beaabcbd42:localhost]

2022-08-23 22:34:21 | [Mutex] received everything.

2022-08-23 22:34:21 | [Mutex] isItemNotified: received:node:d164899c-1498-498a-a4aa-c0beaabcbd42:localhost:node-8903a439-542b-4670-8231-f39e7a57b525:Node 8903a439-542b-4670-8231-f39e7a57b525 :: true

deleteNodes 1.023s
2022-08-23 22:34:25 |

2022-08-23 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:25 | ------------------------------------

2022-08-23 22:34:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8903a439-542b-4670-8231-f39e7a57b525"
}

2022-08-23 22:34:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:26 | [Mutex] waiting for: [received:nodes:05fbfff7-e674-443d-91b9-05f0ea705e74:localhost]

2022-08-23 22:34:26 | [Mutex] waiting for: [received:nodes:05fbfff7-e674-443d-91b9-05f0ea705e74:localhost]

2022-08-23 22:34:26 | [Mutex] waiting for: [received:nodes:05fbfff7-e674-443d-91b9-05f0ea705e74:localhost]

2022-08-23 22:34:26 | [Mutex] received everything.

2022-08-23 22:34:26 | [Mutex] isItemNotified: received:node:05fbfff7-e674-443d-91b9-05f0ea705e74:localhost:node-8903a439-542b-4670-8231-f39e7a57b525:Node 8903a439-542b-4670-8231-f39e7a57b525 :: false

deleteSubnodes 1.032s
2022-08-23 22:34:24 |

2022-08-23 22:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:24 | ------------------------------------

2022-08-23 22:34:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981"
}

2022-08-23 22:34:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-08-23 22:34:25 | [Mutex] waiting for: [received:nodes:bbe49d81-ab95-484a-85d9-c3727584764b:localhost]

2022-08-23 22:34:25 | [Mutex] waiting for: [received:nodes:bbe49d81-ab95-484a-85d9-c3727584764b:localhost]

2022-08-23 22:34:25 | [Mutex] received everything.

2022-08-23 22:34:25 | [Mutex] isItemNotified: received:node:bbe49d81-ab95-484a-85d9-c3727584764b:localhost:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:Node 0f646ee7-d2e3-443e-b464-1cdea6a5c981 :: false

2022-08-23 22:34:25 | [Mutex] waiting for: [received:nodes:4efb0d53-8edc-4ec0-b975-8f1aedca2068:localhost]

2022-08-23 22:34:25 | [Mutex] received everything.

2022-08-23 22:34:25 | [Mutex] isItemNotified: received:node:4efb0d53-8edc-4ec0-b975-8f1aedca2068:localhost:node-0f646ee7-d2e3-443e-b464-1cdea6a5c981:Node 0f646ee7-d2e3-443e-b464-1cdea6a5c981 :: false

publishItemsToNodes 0.042s
2022-08-23 22:34:23 |

2022-08-23 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:23 | ------------------------------------

2022-08-23 22:34:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "entry": "<test>item-ee73810d-180a-4362-ad8e-237c32a0c13c</test>",
    "item-id": "item-ee73810d-180a-4362-ad8e-237c32a0c13c"
}

2022-08-23 22:34:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee73810d-180a-4362-ad8e-237c32a0c13c"
}

2022-08-23 22:34:23 | [Mutex] waiting for: [published:item:notifieditem-ee73810d-180a-4362-ad8e-237c32a0c13c:admin@test-domain.com]

2022-08-23 22:34:23 | [Mutex] received everything.

2022-08-23 22:34:23 | [Mutex] isItemNotified: published:item:notifieditem-ee73810d-180a-4362-ad8e-237c32a0c13c:admin@test-domain.com :: true

retractItemsFromNodes 0.053s
2022-08-23 22:34:23 |

2022-08-23 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:23 | ------------------------------------

2022-08-23 22:34:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "item-id": "item-ee73810d-180a-4362-ad8e-237c32a0c13c"
}

2022-08-23 22:34:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee73810d-180a-4362-ad8e-237c32a0c13c"
}

2022-08-23 22:34:23 | [Mutex] received everything.

2022-08-23 22:34:23 | [Mutex] isItemNotified: retracted:item:notifieditem-ee73810d-180a-4362-ad8e-237c32a0c13c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.059s
2022-08-23 22:34:23 |

2022-08-23 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:23 | ------------------------------------

2022-08-23 22:34:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "item-id": "item-ee73810d-180a-4362-ad8e-237c32a0c13c"
}

2022-08-23 22:34:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "item-id": "item-ee73810d-180a-4362-ad8e-237c32a0c13c",
    "item": [
        "<item id=\"item-ee73810d-180a-4362-ad8e-237c32a0c13c\"><test>item-ee73810d-180a-4362-ad8e-237c32a0c13c</test></item>"
    ]
}

2022-08-23 22:34:23 | [Mutex] notify: [retrieved:item:item-ee73810d-180a-4362-ad8e-237c32a0c13c:payload-matches:true:localhost]

2022-08-23 22:34:23 | [Mutex] received everything.

2022-08-23 22:34:23 | [Mutex] isItemNotified: retrieved:item:item-ee73810d-180a-4362-ad8e-237c32a0c13c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-08-23 22:34:23 |

2022-08-23 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:23 | ------------------------------------

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

2022-08-23 22:34:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
        "test",
        "node-8903a439-542b-4670-8231-f39e7a57b525"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-08-23 22:34:23 |

2022-08-23 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:23 | ------------------------------------

2022-08-23 22:34:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0f646ee7-d2e3-443e-b464-1cdea6a5c981)"
}

2022-08-23 22:34:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-08-23 22:34:22 |

2022-08-23 22:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:22 | ------------------------------------

2022-08-23 22:34:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.065s
2022-08-23 22:34:23 |

2022-08-23 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-23 22:34:23 | ------------------------------------

2022-08-23 22:34:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0f646ee7-d2e3-443e-b464-1cdea6a5c981",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-08-23 22:34:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}