Generated by TestNG with ReportNG at 22:32 PDT on Monday 03 April 2023
root@8f5c98824654 / Java 17.0.6 (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.611s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2023-04-03 22:47:15 |

2023-04-03 22:47:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:15 | ------------------------------------

2023-04-03 22:47:15 | [Mutex] waiting for: [configured:node:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:node-0349acc4-9294-411f-9195-7576a6e90d56]

2023-04-03 22:47:15 | [Mutex] received everything.

2023-04-03 22:47:15 | [Mutex] isItemNotified: configured:node:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:node-0349acc4-9294-411f-9195-7576a6e90d56 :: true

2023-04-03 22:47:16 | [Mutex] waiting for: [received:nodes:786eeb41-8923-4104-8ce4-d408626f2efc:localhost]

2023-04-03 22:47:16 | [Mutex] received everything.

2023-04-03 22:47:16 | [Mutex] isItemNotified: received:node:786eeb41-8923-4104-8ce4-d408626f2efc:localhost:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:Node 5f90ad1c-d4cc-4392-8ef6-72c62b277553 :: true

2023-04-03 22:47:16 | [Mutex] waiting for: [received:nodes:cd745c6a-72b9-4cc2-b459-9b5d41e70150:localhost]

2023-04-03 22:47:16 | [Mutex] received everything.

2023-04-03 22:47:16 | [Mutex] isItemNotified: received:node:cd745c6a-72b9-4cc2-b459-9b5d41e70150:localhost:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:Node 5f90ad1c-d4cc-4392-8ef6-72c62b277553 :: false

createNodes 1.602s
2023-04-03 22:47:12 |

2023-04-03 22:47:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:12 | ------------------------------------

2023-04-03 22:47:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "pubsub#title": "Node 5f90ad1c-d4cc-4392-8ef6-72c62b277553"
}

2023-04-03 22:47:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:47:14 | [Mutex] waiting for: [received:nodes:fa4fa723-e3fb-420d-956e-7135cfa36635:localhost]

2023-04-03 22:47:14 | [Mutex] received everything.

2023-04-03 22:47:14 | [Mutex] isItemNotified: received:node:fa4fa723-e3fb-420d-956e-7135cfa36635:localhost:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:Node 5f90ad1c-d4cc-4392-8ef6-72c62b277553 :: true

createSubnodes 1.032s
2023-04-03 22:47:14 |

2023-04-03 22:47:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:14 | ------------------------------------

2023-04-03 22:47:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0349acc4-9294-411f-9195-7576a6e90d56",
    "pubsub#title": "Node 0349acc4-9294-411f-9195-7576a6e90d56"
}

2023-04-03 22:47:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:47:15 | [Mutex] waiting for: [received:nodes:da120c06-4ce8-4a3e-85e0-cdf9ad4cdc07:localhost]

2023-04-03 22:47:15 | [Mutex] waiting for: [received:nodes:da120c06-4ce8-4a3e-85e0-cdf9ad4cdc07:localhost]

2023-04-03 22:47:15 | [Mutex] waiting for: [received:nodes:da120c06-4ce8-4a3e-85e0-cdf9ad4cdc07:localhost]

2023-04-03 22:47:15 | [Mutex] waiting for: [received:nodes:da120c06-4ce8-4a3e-85e0-cdf9ad4cdc07:localhost]

2023-04-03 22:47:15 | [Mutex] received everything.

2023-04-03 22:47:15 | [Mutex] isItemNotified: received:node:da120c06-4ce8-4a3e-85e0-cdf9ad4cdc07:localhost:node-0349acc4-9294-411f-9195-7576a6e90d56:Node 0349acc4-9294-411f-9195-7576a6e90d56 :: true

deleteNodes 1.027s
2023-04-03 22:47:19 |

2023-04-03 22:47:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:19 | ------------------------------------

2023-04-03 22:47:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0349acc4-9294-411f-9195-7576a6e90d56"
}

2023-04-03 22:47:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:47:20 | [Mutex] waiting for: [received:nodes:e1cc1abc-47c4-45bc-abc9-ee8e7a090b4d:localhost]

2023-04-03 22:47:21 | [Mutex] waiting for: [received:nodes:e1cc1abc-47c4-45bc-abc9-ee8e7a090b4d:localhost]

2023-04-03 22:47:21 | [Mutex] waiting for: [received:nodes:e1cc1abc-47c4-45bc-abc9-ee8e7a090b4d:localhost]

2023-04-03 22:47:21 | [Mutex] received everything.

2023-04-03 22:47:21 | [Mutex] isItemNotified: received:node:e1cc1abc-47c4-45bc-abc9-ee8e7a090b4d:localhost:node-0349acc4-9294-411f-9195-7576a6e90d56:Node 0349acc4-9294-411f-9195-7576a6e90d56 :: false

deleteSubnodes 1.026s
2023-04-03 22:47:18 |

2023-04-03 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:18 | ------------------------------------

2023-04-03 22:47:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553"
}

2023-04-03 22:47:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:47:19 | [Mutex] waiting for: [received:nodes:e3c7af0a-c48a-4b54-a832-9ff439cb0003:localhost]

2023-04-03 22:47:19 | [Mutex] waiting for: [received:nodes:e3c7af0a-c48a-4b54-a832-9ff439cb0003:localhost]

2023-04-03 22:47:19 | [Mutex] waiting for: [received:nodes:e3c7af0a-c48a-4b54-a832-9ff439cb0003:localhost]

2023-04-03 22:47:19 | [Mutex] waiting for: [received:nodes:e3c7af0a-c48a-4b54-a832-9ff439cb0003:localhost]

2023-04-03 22:47:19 | [Mutex] received everything.

2023-04-03 22:47:19 | [Mutex] isItemNotified: received:node:e3c7af0a-c48a-4b54-a832-9ff439cb0003:localhost:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:Node 5f90ad1c-d4cc-4392-8ef6-72c62b277553 :: false

2023-04-03 22:47:19 | [Mutex] waiting for: [received:nodes:8cfe912a-11ea-49f4-82fa-28b25aafd1f7:localhost]

2023-04-03 22:47:19 | [Mutex] received everything.

2023-04-03 22:47:19 | [Mutex] isItemNotified: received:node:8cfe912a-11ea-49f4-82fa-28b25aafd1f7:localhost:node-5f90ad1c-d4cc-4392-8ef6-72c62b277553:Node 5f90ad1c-d4cc-4392-8ef6-72c62b277553 :: false

publishItemsToNodes 0.047s
2023-04-03 22:47:17 |

2023-04-03 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:17 | ------------------------------------

2023-04-03 22:47:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "entry": "<test>item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8</test>",
    "item-id": "item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8"
}

2023-04-03 22:47:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8"
}

2023-04-03 22:47:17 | [Mutex] waiting for: [published:item:notifieditem-5eb19a77-2fce-4d3f-a79a-e00b709dfde8:admin@test-domain.com]

2023-04-03 22:47:17 | [Mutex] received everything.

2023-04-03 22:47:17 | [Mutex] isItemNotified: published:item:notifieditem-5eb19a77-2fce-4d3f-a79a-e00b709dfde8:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-04-03 22:47:17 |

2023-04-03 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:17 | ------------------------------------

2023-04-03 22:47:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "item-id": "item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8"
}

2023-04-03 22:47:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8"
}

2023-04-03 22:47:17 | [Mutex] received everything.

2023-04-03 22:47:17 | [Mutex] isItemNotified: retracted:item:notifieditem-5eb19a77-2fce-4d3f-a79a-e00b709dfde8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2023-04-03 22:47:17 |

2023-04-03 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:17 | ------------------------------------

2023-04-03 22:47:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "item-id": "item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8"
}

2023-04-03 22:47:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "item-id": "item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8",
    "item": [
        "<item id=\"item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8\"><test>item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8</test></item>"
    ]
}

2023-04-03 22:47:17 | [Mutex] notify: [retrieved:item:item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8:payload-matches:true:localhost]

2023-04-03 22:47:17 | [Mutex] received everything.

2023-04-03 22:47:17 | [Mutex] isItemNotified: retrieved:item:item-5eb19a77-2fce-4d3f-a79a-e00b709dfde8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-04-03 22:47:17 |

2023-04-03 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:17 | ------------------------------------

2023-04-03 22:47:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-04-03 22:47:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
        "node-0349acc4-9294-411f-9195-7576a6e90d56"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2023-04-03 22:47:17 |

2023-04-03 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:17 | ------------------------------------

2023-04-03 22:47:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-5f90ad1c-d4cc-4392-8ef6-72c62b277553)"
}

2023-04-03 22:47:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2023-04-03 22:47:16 |

2023-04-03 22:47:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:16 | ------------------------------------

2023-04-03 22:47:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 22:47:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-04-03 22:47:17 |

2023-04-03 22:47:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:47:17 | ------------------------------------

2023-04-03 22:47:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-5f90ad1c-d4cc-4392-8ef6-72c62b277553",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 22:47:17 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}