Generated by TestNG with ReportNG at 22:18 PDT on Tuesday 16 August 2022
root@ed1b7dd8a1b3 / 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.826s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2022-08-16 22:33:12 |

2022-08-16 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:12 | ------------------------------------

2022-08-16 22:33:12 | [Mutex] waiting for: [configured:node:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5]

2022-08-16 22:33:12 | [Mutex] received everything.

2022-08-16 22:33:12 | [Mutex] isItemNotified: configured:node:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5 :: true

2022-08-16 22:33:13 | [Mutex] waiting for: [received:nodes:06c88289-5414-44d6-bcbc-e143d6a832fe:localhost]

2022-08-16 22:33:13 | [Mutex] received everything.

2022-08-16 22:33:13 | [Mutex] isItemNotified: received:node:06c88289-5414-44d6-bcbc-e143d6a832fe:localhost:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:Node c8e5f6b9-9ffe-499d-90e1-f66661106c0d :: true

2022-08-16 22:33:13 | [Mutex] waiting for: [received:nodes:5f8f3c51-8050-41c3-8512-34a476457cca:localhost]

2022-08-16 22:33:13 | [Mutex] waiting for: [received:nodes:5f8f3c51-8050-41c3-8512-34a476457cca:localhost]

2022-08-16 22:33:13 | [Mutex] received everything.

2022-08-16 22:33:13 | [Mutex] isItemNotified: received:node:5f8f3c51-8050-41c3-8512-34a476457cca:localhost:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:Node c8e5f6b9-9ffe-499d-90e1-f66661106c0d :: false

createNodes 1.626s
2022-08-16 22:33:09 |

2022-08-16 22:33:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:09 | ------------------------------------

2022-08-16 22:33:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "pubsub#title": "Node c8e5f6b9-9ffe-499d-90e1-f66661106c0d"
}

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

2022-08-16 22:33:11 | [Mutex] waiting for: [received:nodes:1e3d4a8c-27d7-4b38-9248-6ea6d0f2b3ce:localhost]

2022-08-16 22:33:11 | [Mutex] received everything.

2022-08-16 22:33:11 | [Mutex] isItemNotified: received:node:1e3d4a8c-27d7-4b38-9248-6ea6d0f2b3ce:localhost:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:Node c8e5f6b9-9ffe-499d-90e1-f66661106c0d :: true

createSubnodes 1.023s
2022-08-16 22:33:11 |

2022-08-16 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:11 | ------------------------------------

2022-08-16 22:33:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5",
    "pubsub#title": "Node ce15f5d4-b83d-4ee7-97bd-f828a74762d5"
}

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

2022-08-16 22:33:12 | [Mutex] waiting for: [received:nodes:407b513f-864d-446f-959b-9036635f2780:localhost]

2022-08-16 22:33:12 | [Mutex] received everything.

2022-08-16 22:33:12 | [Mutex] isItemNotified: received:node:407b513f-864d-446f-959b-9036635f2780:localhost:node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5:Node ce15f5d4-b83d-4ee7-97bd-f828a74762d5 :: true

deleteNodes 1.023s
2022-08-16 22:33:16 |

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

2022-08-16 22:33:16 | ------------------------------------

2022-08-16 22:33:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5"
}

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

2022-08-16 22:33:17 | [Mutex] waiting for: [received:nodes:51a49b20-d510-44f6-9cd6-6650e0329c72:localhost]

2022-08-16 22:33:17 | [Mutex] received everything.

2022-08-16 22:33:17 | [Mutex] isItemNotified: received:node:51a49b20-d510-44f6-9cd6-6650e0329c72:localhost:node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5:Node ce15f5d4-b83d-4ee7-97bd-f828a74762d5 :: false

deleteSubnodes 1.076s
2022-08-16 22:33:15 |

2022-08-16 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:15 | ------------------------------------

2022-08-16 22:33:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d"
}

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

2022-08-16 22:33:16 | [Mutex] waiting for: [received:nodes:ebc11d8f-8221-40ca-8bf4-c5d3008ea21b:localhost]

2022-08-16 22:33:16 | [Mutex] received everything.

2022-08-16 22:33:16 | [Mutex] isItemNotified: received:node:ebc11d8f-8221-40ca-8bf4-c5d3008ea21b:localhost:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:Node c8e5f6b9-9ffe-499d-90e1-f66661106c0d :: false

2022-08-16 22:33:16 | [Mutex] waiting for: [received:nodes:dc416797-441d-4c4e-831f-94d4771ae08e:localhost]

2022-08-16 22:33:16 | [Mutex] received everything.

2022-08-16 22:33:16 | [Mutex] isItemNotified: received:node:dc416797-441d-4c4e-831f-94d4771ae08e:localhost:node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d:Node c8e5f6b9-9ffe-499d-90e1-f66661106c0d :: false

publishItemsToNodes 0.051s
2022-08-16 22:33:14 |

2022-08-16 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:14 | ------------------------------------

2022-08-16 22:33:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "entry": "<test>item-57b2ca34-29ac-4df9-adbd-a325c10c07c6</test>",
    "item-id": "item-57b2ca34-29ac-4df9-adbd-a325c10c07c6"
}

2022-08-16 22:33:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-57b2ca34-29ac-4df9-adbd-a325c10c07c6"
}

2022-08-16 22:33:14 | [Mutex] received everything.

2022-08-16 22:33:14 | [Mutex] isItemNotified: published:item:notifieditem-57b2ca34-29ac-4df9-adbd-a325c10c07c6:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-16 22:33:14 |

2022-08-16 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:14 | ------------------------------------

2022-08-16 22:33:14 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "item-id": "item-57b2ca34-29ac-4df9-adbd-a325c10c07c6"
}

2022-08-16 22:33:14 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-57b2ca34-29ac-4df9-adbd-a325c10c07c6"
}

2022-08-16 22:33:14 | [Mutex] received everything.

2022-08-16 22:33:14 | [Mutex] isItemNotified: retracted:item:notifieditem-57b2ca34-29ac-4df9-adbd-a325c10c07c6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2022-08-16 22:33:14 |

2022-08-16 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:14 | ------------------------------------

2022-08-16 22:33:14 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "item-id": "item-57b2ca34-29ac-4df9-adbd-a325c10c07c6"
}

2022-08-16 22:33:14 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "item-id": "item-57b2ca34-29ac-4df9-adbd-a325c10c07c6",
    "item": [
        "<item id=\"item-57b2ca34-29ac-4df9-adbd-a325c10c07c6\"><test>item-57b2ca34-29ac-4df9-adbd-a325c10c07c6</test></item>"
    ]
}

2022-08-16 22:33:14 | [Mutex] notify: [retrieved:item:item-57b2ca34-29ac-4df9-adbd-a325c10c07c6:payload-matches:true:localhost]

2022-08-16 22:33:14 | [Mutex] received everything.

2022-08-16 22:33:14 | [Mutex] isItemNotified: retrieved:item:item-57b2ca34-29ac-4df9-adbd-a325c10c07c6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-08-16 22:33:14 |

2022-08-16 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:14 | ------------------------------------

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

2022-08-16 22:33:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ce15f5d4-b83d-4ee7-97bd-f828a74762d5",
        "test",
        "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-16 22:33:14 |

2022-08-16 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:14 | ------------------------------------

2022-08-16 22:33:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d)"
}

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

subscribeNodes 1.011s
2022-08-16 22:33:13 |

2022-08-16 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:13 | ------------------------------------

2022-08-16 22:33:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2022-08-16 22:33:14 |

2022-08-16 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-08-16 22:33:14 | ------------------------------------

2022-08-16 22:33:14 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c8e5f6b9-9ffe-499d-90e1-f66661106c0d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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