Generated by TestNG with ReportNG at 22:46 PDT on Friday 08 July 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.751s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.086s
2022-07-08 23:00:19 |

2022-07-08 23:00:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:00:19 | ------------------------------------

2022-07-08 23:00:19 | [Mutex] waiting for: [configured:node:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33]

2022-07-08 23:00:19 | [Mutex] received everything.

2022-07-08 23:00:19 | [Mutex] isItemNotified: configured:node:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33 :: true

2022-07-08 23:00:20 | [Mutex] waiting for: [received:nodes:5a8b1409-2da8-407c-8dd1-74c15a90366b:localhost]

2022-07-08 23:00:20 | [Mutex] received everything.

2022-07-08 23:00:20 | [Mutex] isItemNotified: received:node:5a8b1409-2da8-407c-8dd1-74c15a90366b:localhost:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:Node bcc4dc8e-aaad-4ded-96ed-d8830908e8ef :: true

2022-07-08 23:00:20 | [Mutex] waiting for: [received:nodes:57eef5a9-1c39-411c-87b4-b93dc1264161:localhost]

2022-07-08 23:00:20 | [Mutex] waiting for: [received:nodes:57eef5a9-1c39-411c-87b4-b93dc1264161:localhost]

2022-07-08 23:00:20 | [Mutex] waiting for: [received:nodes:57eef5a9-1c39-411c-87b4-b93dc1264161:localhost]

2022-07-08 23:00:20 | [Mutex] received everything.

2022-07-08 23:00:20 | [Mutex] isItemNotified: received:node:57eef5a9-1c39-411c-87b4-b93dc1264161:localhost:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:Node bcc4dc8e-aaad-4ded-96ed-d8830908e8ef :: false

createNodes 1.590s
2022-07-08 23:00:16 |

2022-07-08 23:00:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-08 23:00:16 | ------------------------------------

2022-07-08 23:00:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "pubsub#title": "Node bcc4dc8e-aaad-4ded-96ed-d8830908e8ef"
}

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

2022-07-08 23:00:18 | [Mutex] waiting for: [received:nodes:07084999-27c1-4cbf-b33e-b88b14ebe9f5:localhost]

2022-07-08 23:00:18 | [Mutex] received everything.

2022-07-08 23:00:18 | [Mutex] isItemNotified: received:node:07084999-27c1-4cbf-b33e-b88b14ebe9f5:localhost:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:Node bcc4dc8e-aaad-4ded-96ed-d8830908e8ef :: true

createSubnodes 1.032s
2022-07-08 23:00:18 |

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

2022-07-08 23:00:18 | ------------------------------------

2022-07-08 23:00:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33",
    "pubsub#title": "Node a94e09a8-c4aa-411c-b516-0d1cc6cc0d33"
}

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

2022-07-08 23:00:19 | [Mutex] waiting for: [received:nodes:20821085-9acf-46ad-bf1d-6ecd1961b57e:localhost]

2022-07-08 23:00:19 | [Mutex] waiting for: [received:nodes:20821085-9acf-46ad-bf1d-6ecd1961b57e:localhost]

2022-07-08 23:00:19 | [Mutex] received everything.

2022-07-08 23:00:19 | [Mutex] isItemNotified: received:node:20821085-9acf-46ad-bf1d-6ecd1961b57e:localhost:node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33:Node a94e09a8-c4aa-411c-b516-0d1cc6cc0d33 :: true

deleteNodes 1.030s
2022-07-08 23:00:23 |

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

2022-07-08 23:00:23 | ------------------------------------

2022-07-08 23:00:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33"
}

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

2022-07-08 23:00:25 | [Mutex] waiting for: [received:nodes:676985e4-9746-4d48-81f3-1678c0a11c38:localhost]

2022-07-08 23:00:25 | [Mutex] waiting for: [received:nodes:676985e4-9746-4d48-81f3-1678c0a11c38:localhost]

2022-07-08 23:00:25 | [Mutex] received everything.

2022-07-08 23:00:25 | [Mutex] isItemNotified: received:node:676985e4-9746-4d48-81f3-1678c0a11c38:localhost:node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33:Node a94e09a8-c4aa-411c-b516-0d1cc6cc0d33 :: false

deleteSubnodes 1.076s
2022-07-08 23:00:22 |

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

2022-07-08 23:00:22 | ------------------------------------

2022-07-08 23:00:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef"
}

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

2022-07-08 23:00:23 | [Mutex] waiting for: [received:nodes:e31b7951-b390-4cfa-875b-0b4e02e5b499:localhost]

2022-07-08 23:00:23 | [Mutex] received everything.

2022-07-08 23:00:23 | [Mutex] isItemNotified: received:node:e31b7951-b390-4cfa-875b-0b4e02e5b499:localhost:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:Node bcc4dc8e-aaad-4ded-96ed-d8830908e8ef :: false

2022-07-08 23:00:23 | [Mutex] waiting for: [received:nodes:c1ff7e87-b24f-4aaa-a550-cf5b303aaf16:localhost]

2022-07-08 23:00:23 | [Mutex] received everything.

2022-07-08 23:00:23 | [Mutex] isItemNotified: received:node:c1ff7e87-b24f-4aaa-a550-cf5b303aaf16:localhost:node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef:Node bcc4dc8e-aaad-4ded-96ed-d8830908e8ef :: false

publishItemsToNodes 0.027s
2022-07-08 23:00:21 |

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

2022-07-08 23:00:21 | ------------------------------------

2022-07-08 23:00:21 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "entry": "<test>item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c</test>",
    "item-id": "item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c"
}

2022-07-08 23:00:21 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c"
}

2022-07-08 23:00:21 | [Mutex] waiting for: [published:item:notifieditem-ab939221-38fb-47eb-9a3c-4d3310ed1b1c:admin@test-domain.com]

2022-07-08 23:00:21 | [Mutex] received everything.

2022-07-08 23:00:21 | [Mutex] isItemNotified: published:item:notifieditem-ab939221-38fb-47eb-9a3c-4d3310ed1b1c:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-08 23:00:21 |

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

2022-07-08 23:00:21 | ------------------------------------

2022-07-08 23:00:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "item-id": "item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c"
}

2022-07-08 23:00:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c"
}

2022-07-08 23:00:21 | [Mutex] received everything.

2022-07-08 23:00:21 | [Mutex] isItemNotified: retracted:item:notifieditem-ab939221-38fb-47eb-9a3c-4d3310ed1b1c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.068s
2022-07-08 23:00:21 |

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

2022-07-08 23:00:21 | ------------------------------------

2022-07-08 23:00:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "item-id": "item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c"
}

2022-07-08 23:00:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "item-id": "item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c",
    "item": [
        "<item id=\"item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c\"><test>item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c</test></item>"
    ]
}

2022-07-08 23:00:21 | [Mutex] notify: [retrieved:item:item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c:payload-matches:true:localhost]

2022-07-08 23:00:21 | [Mutex] received everything.

2022-07-08 23:00:21 | [Mutex] isItemNotified: retrieved:item:item-ab939221-38fb-47eb-9a3c-4d3310ed1b1c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-08 23:00:21 |

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

2022-07-08 23:00:21 | ------------------------------------

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

2022-07-08 23:00:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
        "node-a94e09a8-c4aa-411c-b516-0d1cc6cc0d33",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-08 23:00:21 |

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

2022-07-08 23:00:21 | ------------------------------------

2022-07-08 23:00:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef)"
}

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

subscribeNodes 1.011s
2022-07-08 23:00:20 |

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

2022-07-08 23:00:20 | ------------------------------------

2022-07-08 23:00:20 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-07-08 23:00:21 |

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

2022-07-08 23:00:21 | ------------------------------------

2022-07-08 23:00:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-bcc4dc8e-aaad-4ded-96ed-d8830908e8ef",
    "jids": [
        "admin@test-domain.com"
    ]
}

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