Generated by TestNG with ReportNG at 22:48 PDT on Sunday 18 September 2022
root@7c41cec37518 / 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.704s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-09-18 23:03:18 |

2022-09-18 23:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:18 | ------------------------------------

2022-09-18 23:03:18 | [Mutex] waiting for: [configured:node:node-125c626b-65d3-42aa-9063-2e13591ae507:node-13ac9254-6a44-4308-931a-d4f95d0fcbbc]

2022-09-18 23:03:18 | [Mutex] received everything.

2022-09-18 23:03:18 | [Mutex] isItemNotified: configured:node:node-125c626b-65d3-42aa-9063-2e13591ae507:node-13ac9254-6a44-4308-931a-d4f95d0fcbbc :: true

2022-09-18 23:03:19 | [Mutex] waiting for: [received:nodes:beb4f37b-fafa-4e50-958c-8d025a9a69d8:localhost]

2022-09-18 23:03:19 | [Mutex] received everything.

2022-09-18 23:03:19 | [Mutex] isItemNotified: received:node:beb4f37b-fafa-4e50-958c-8d025a9a69d8:localhost:node-125c626b-65d3-42aa-9063-2e13591ae507:Node 125c626b-65d3-42aa-9063-2e13591ae507 :: true

2022-09-18 23:03:19 | [Mutex] waiting for: [received:nodes:c5a2273d-fb34-4c6a-b54e-91470671253a:localhost]

2022-09-18 23:03:19 | [Mutex] received everything.

2022-09-18 23:03:19 | [Mutex] isItemNotified: received:node:c5a2273d-fb34-4c6a-b54e-91470671253a:localhost:node-125c626b-65d3-42aa-9063-2e13591ae507:Node 125c626b-65d3-42aa-9063-2e13591ae507 :: false

createNodes 1.667s
2022-09-18 23:03:16 |

2022-09-18 23:03:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:16 | ------------------------------------

2022-09-18 23:03:16 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "pubsub#title": "Node 125c626b-65d3-42aa-9063-2e13591ae507"
}

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

2022-09-18 23:03:17 | [Mutex] waiting for: [received:nodes:f2953988-4bec-4a88-bb54-7cb16f7d8403:localhost]

2022-09-18 23:03:17 | [Mutex] waiting for: [received:nodes:f2953988-4bec-4a88-bb54-7cb16f7d8403:localhost]

2022-09-18 23:03:17 | [Mutex] waiting for: [received:nodes:f2953988-4bec-4a88-bb54-7cb16f7d8403:localhost]

2022-09-18 23:03:17 | [Mutex] received everything.

2022-09-18 23:03:17 | [Mutex] isItemNotified: received:node:f2953988-4bec-4a88-bb54-7cb16f7d8403:localhost:node-125c626b-65d3-42aa-9063-2e13591ae507:Node 125c626b-65d3-42aa-9063-2e13591ae507 :: true

createSubnodes 1.024s
2022-09-18 23:03:17 |

2022-09-18 23:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:17 | ------------------------------------

2022-09-18 23:03:17 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-13ac9254-6a44-4308-931a-d4f95d0fcbbc",
    "pubsub#title": "Node 13ac9254-6a44-4308-931a-d4f95d0fcbbc"
}

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

2022-09-18 23:03:18 | [Mutex] waiting for: [received:nodes:751efab7-4697-4c23-82c2-c1a516f5e4c6:localhost]

2022-09-18 23:03:18 | [Mutex] waiting for: [received:nodes:751efab7-4697-4c23-82c2-c1a516f5e4c6:localhost]

2022-09-18 23:03:18 | [Mutex] received everything.

2022-09-18 23:03:18 | [Mutex] isItemNotified: received:node:751efab7-4697-4c23-82c2-c1a516f5e4c6:localhost:node-13ac9254-6a44-4308-931a-d4f95d0fcbbc:Node 13ac9254-6a44-4308-931a-d4f95d0fcbbc :: true

deleteNodes 1.022s
2022-09-18 23:03:23 |

2022-09-18 23:03:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:23 | ------------------------------------

2022-09-18 23:03:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-13ac9254-6a44-4308-931a-d4f95d0fcbbc"
}

2022-09-18 23:03:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-18 23:03:24 | [Mutex] waiting for: [received:nodes:fc98ed1d-83b1-4332-936f-d7834a851826:localhost]

2022-09-18 23:03:24 | [Mutex] waiting for: [received:nodes:fc98ed1d-83b1-4332-936f-d7834a851826:localhost]

2022-09-18 23:03:24 | [Mutex] received everything.

2022-09-18 23:03:24 | [Mutex] isItemNotified: received:node:fc98ed1d-83b1-4332-936f-d7834a851826:localhost:node-13ac9254-6a44-4308-931a-d4f95d0fcbbc:Node 13ac9254-6a44-4308-931a-d4f95d0fcbbc :: false

deleteSubnodes 1.024s
2022-09-18 23:03:22 |

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

2022-09-18 23:03:22 | ------------------------------------

2022-09-18 23:03:22 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507"
}

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

2022-09-18 23:03:23 | [Mutex] waiting for: [received:nodes:f5dfcf9b-a25d-486f-8234-f89e7af82793:localhost]

2022-09-18 23:03:23 | [Mutex] waiting for: [received:nodes:f5dfcf9b-a25d-486f-8234-f89e7af82793:localhost]

2022-09-18 23:03:23 | [Mutex] waiting for: [received:nodes:f5dfcf9b-a25d-486f-8234-f89e7af82793:localhost]

2022-09-18 23:03:23 | [Mutex] received everything.

2022-09-18 23:03:23 | [Mutex] isItemNotified: received:node:f5dfcf9b-a25d-486f-8234-f89e7af82793:localhost:node-125c626b-65d3-42aa-9063-2e13591ae507:Node 125c626b-65d3-42aa-9063-2e13591ae507 :: false

2022-09-18 23:03:23 | [Mutex] waiting for: [received:nodes:2bca5e44-b533-49bc-b825-064f853f6623:localhost]

2022-09-18 23:03:23 | [Mutex] received everything.

2022-09-18 23:03:23 | [Mutex] isItemNotified: received:node:2bca5e44-b533-49bc-b825-064f853f6623:localhost:node-125c626b-65d3-42aa-9063-2e13591ae507:Node 125c626b-65d3-42aa-9063-2e13591ae507 :: false

publishItemsToNodes 0.045s
2022-09-18 23:03:20 |

2022-09-18 23:03:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:20 | ------------------------------------

2022-09-18 23:03:20 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "entry": "<test>item-f16d40c9-99e8-416f-8431-ccf3f66e173c</test>",
    "item-id": "item-f16d40c9-99e8-416f-8431-ccf3f66e173c"
}

2022-09-18 23:03:20 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f16d40c9-99e8-416f-8431-ccf3f66e173c"
}

2022-09-18 23:03:20 | [Mutex] waiting for: [published:item:notifieditem-f16d40c9-99e8-416f-8431-ccf3f66e173c:admin@test-domain.com]

2022-09-18 23:03:21 | [Mutex] received everything.

2022-09-18 23:03:21 | [Mutex] isItemNotified: published:item:notifieditem-f16d40c9-99e8-416f-8431-ccf3f66e173c:admin@test-domain.com :: true

retractItemsFromNodes 0.103s
2022-09-18 23:03:21 |

2022-09-18 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:21 | ------------------------------------

2022-09-18 23:03:21 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "item-id": "item-f16d40c9-99e8-416f-8431-ccf3f66e173c"
}

2022-09-18 23:03:21 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-f16d40c9-99e8-416f-8431-ccf3f66e173c"
}

2022-09-18 23:03:21 | [Mutex] received everything.

2022-09-18 23:03:21 | [Mutex] isItemNotified: retracted:item:notifieditem-f16d40c9-99e8-416f-8431-ccf3f66e173c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2022-09-18 23:03:21 |

2022-09-18 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:21 | ------------------------------------

2022-09-18 23:03:21 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "item-id": "item-f16d40c9-99e8-416f-8431-ccf3f66e173c"
}

2022-09-18 23:03:21 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "item-id": "item-f16d40c9-99e8-416f-8431-ccf3f66e173c",
    "item": [
        "<item id=\"item-f16d40c9-99e8-416f-8431-ccf3f66e173c\"><test>item-f16d40c9-99e8-416f-8431-ccf3f66e173c</test></item>"
    ]
}

2022-09-18 23:03:21 | [Mutex] notify: [retrieved:item:item-f16d40c9-99e8-416f-8431-ccf3f66e173c:payload-matches:true:localhost]

2022-09-18 23:03:21 | [Mutex] received everything.

2022-09-18 23:03:21 | [Mutex] isItemNotified: retrieved:item:item-f16d40c9-99e8-416f-8431-ccf3f66e173c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-18 23:03:21 |

2022-09-18 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:21 | ------------------------------------

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

2022-09-18 23:03:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-125c626b-65d3-42aa-9063-2e13591ae507",
        "node-13ac9254-6a44-4308-931a-d4f95d0fcbbc"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-18 23:03:21 |

2022-09-18 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:21 | ------------------------------------

2022-09-18 23:03:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-125c626b-65d3-42aa-9063-2e13591ae507)"
}

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

subscribeNodes 1.010s
2022-09-18 23:03:19 |

2022-09-18 23:03:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:19 | ------------------------------------

2022-09-18 23:03:19 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-18 23:03:19 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-09-18 23:03:21 |

2022-09-18 23:03:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-18 23:03:21 | ------------------------------------

2022-09-18 23:03:21 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-125c626b-65d3-42aa-9063-2e13591ae507",
    "jids": [
        "admin@test-domain.com"
    ]
}

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