Generated by TestNG with ReportNG at 22:28 PDT on Sunday 12 June 2022
root@61c39d2ed70d / Java 17.0.2 (Private Build) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.681s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.114s
2022-06-12 22:42:25 |

2022-06-12 22:42:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:25 | ------------------------------------

2022-06-12 22:42:25 | [Mutex] waiting for: [configured:node:node-3899946a-8ef6-49e4-8597-76393b23c352:node-84855131-a7a6-4d69-bc0a-50709cd4ff5b]

2022-06-12 22:42:26 | [Mutex] received everything.

2022-06-12 22:42:26 | [Mutex] isItemNotified: configured:node:node-3899946a-8ef6-49e4-8597-76393b23c352:node-84855131-a7a6-4d69-bc0a-50709cd4ff5b :: true

2022-06-12 22:42:27 | [Mutex] waiting for: [received:nodes:ed749320-0b4e-40e2-957c-77138320f425:localhost]

2022-06-12 22:42:27 | [Mutex] received everything.

2022-06-12 22:42:27 | [Mutex] isItemNotified: received:node:ed749320-0b4e-40e2-957c-77138320f425:localhost:node-3899946a-8ef6-49e4-8597-76393b23c352:Node 3899946a-8ef6-49e4-8597-76393b23c352 :: true

2022-06-12 22:42:27 | [Mutex] waiting for: [received:nodes:2164a7b1-d1a2-4c34-8048-d5950288aed5:localhost]

2022-06-12 22:42:27 | [Mutex] received everything.

2022-06-12 22:42:27 | [Mutex] isItemNotified: received:node:2164a7b1-d1a2-4c34-8048-d5950288aed5:localhost:node-3899946a-8ef6-49e4-8597-76393b23c352:Node 3899946a-8ef6-49e4-8597-76393b23c352 :: false

createNodes 1.564s
2022-06-12 22:42:23 |

2022-06-12 22:42:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:23 | ------------------------------------

2022-06-12 22:42:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "pubsub#title": "Node 3899946a-8ef6-49e4-8597-76393b23c352"
}

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

2022-06-12 22:42:24 | [Mutex] waiting for: [received:nodes:0f05f32f-5fbc-4ccf-9eaa-a136adf1070d:localhost]

2022-06-12 22:42:24 | [Mutex] waiting for: [received:nodes:0f05f32f-5fbc-4ccf-9eaa-a136adf1070d:localhost]

2022-06-12 22:42:24 | [Mutex] received everything.

2022-06-12 22:42:24 | [Mutex] isItemNotified: received:node:0f05f32f-5fbc-4ccf-9eaa-a136adf1070d:localhost:node-3899946a-8ef6-49e4-8597-76393b23c352:Node 3899946a-8ef6-49e4-8597-76393b23c352 :: true

createSubnodes 1.031s
2022-06-12 22:42:24 |

2022-06-12 22:42:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:24 | ------------------------------------

2022-06-12 22:42:24 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-84855131-a7a6-4d69-bc0a-50709cd4ff5b",
    "pubsub#title": "Node 84855131-a7a6-4d69-bc0a-50709cd4ff5b"
}

2022-06-12 22:42:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:42:25 | [Mutex] waiting for: [received:nodes:c278fb04-f091-405b-9aad-6ac01d021b50:localhost]

2022-06-12 22:42:25 | [Mutex] received everything.

2022-06-12 22:42:25 | [Mutex] isItemNotified: received:node:c278fb04-f091-405b-9aad-6ac01d021b50:localhost:node-84855131-a7a6-4d69-bc0a-50709cd4ff5b:Node 84855131-a7a6-4d69-bc0a-50709cd4ff5b :: true

deleteNodes 1.028s
2022-06-12 22:42:30 |

2022-06-12 22:42:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:30 | ------------------------------------

2022-06-12 22:42:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-84855131-a7a6-4d69-bc0a-50709cd4ff5b"
}

2022-06-12 22:42:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:42:31 | [Mutex] waiting for: [received:nodes:93f95b62-e445-41ce-ac67-92b8dc8f0d96:localhost]

2022-06-12 22:42:31 | [Mutex] received everything.

2022-06-12 22:42:31 | [Mutex] isItemNotified: received:node:93f95b62-e445-41ce-ac67-92b8dc8f0d96:localhost:node-84855131-a7a6-4d69-bc0a-50709cd4ff5b:Node 84855131-a7a6-4d69-bc0a-50709cd4ff5b :: false

deleteSubnodes 1.078s
2022-06-12 22:42:29 |

2022-06-12 22:42:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:29 | ------------------------------------

2022-06-12 22:42:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352"
}

2022-06-12 22:42:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-12 22:42:30 | [Mutex] waiting for: [received:nodes:6de0483c-6a55-452c-9eb8-9abf0254b091:localhost]

2022-06-12 22:42:30 | [Mutex] received everything.

2022-06-12 22:42:30 | [Mutex] isItemNotified: received:node:6de0483c-6a55-452c-9eb8-9abf0254b091:localhost:node-3899946a-8ef6-49e4-8597-76393b23c352:Node 3899946a-8ef6-49e4-8597-76393b23c352 :: false

2022-06-12 22:42:30 | [Mutex] waiting for: [received:nodes:544261d2-6362-4619-9b5f-557f64cf184b:localhost]

2022-06-12 22:42:30 | [Mutex] received everything.

2022-06-12 22:42:30 | [Mutex] isItemNotified: received:node:544261d2-6362-4619-9b5f-557f64cf184b:localhost:node-3899946a-8ef6-49e4-8597-76393b23c352:Node 3899946a-8ef6-49e4-8597-76393b23c352 :: false

publishItemsToNodes 0.055s
2022-06-12 22:42:28 |

2022-06-12 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:28 | ------------------------------------

2022-06-12 22:42:28 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "entry": "<test>item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88</test>",
    "item-id": "item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88"
}

2022-06-12 22:42:28 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88"
}

2022-06-12 22:42:28 | [Mutex] received everything.

2022-06-12 22:42:28 | [Mutex] isItemNotified: published:item:notifieditem-fcb4ac4b-6554-4c8a-8d41-a31444a30d88:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-06-12 22:42:28 |

2022-06-12 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:28 | ------------------------------------

2022-06-12 22:42:28 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "item-id": "item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88"
}

2022-06-12 22:42:28 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88"
}

2022-06-12 22:42:28 | [Mutex] received everything.

2022-06-12 22:42:28 | [Mutex] isItemNotified: retracted:item:notifieditem-fcb4ac4b-6554-4c8a-8d41-a31444a30d88:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2022-06-12 22:42:28 |

2022-06-12 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:28 | ------------------------------------

2022-06-12 22:42:28 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "item-id": "item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88"
}

2022-06-12 22:42:28 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "item-id": "item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88",
    "item": [
        "<item id=\"item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88\"><test>item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88</test></item>"
    ]
}

2022-06-12 22:42:28 | [Mutex] notify: [retrieved:item:item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88:payload-matches:true:localhost]

2022-06-12 22:42:28 | [Mutex] received everything.

2022-06-12 22:42:28 | [Mutex] isItemNotified: retrieved:item:item-fcb4ac4b-6554-4c8a-8d41-a31444a30d88:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-06-12 22:42:28 |

2022-06-12 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:28 | ------------------------------------

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

2022-06-12 22:42:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-84855131-a7a6-4d69-bc0a-50709cd4ff5b",
        "node-3899946a-8ef6-49e4-8597-76393b23c352"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-06-12 22:42:28 |

2022-06-12 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:28 | ------------------------------------

2022-06-12 22:42:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-3899946a-8ef6-49e4-8597-76393b23c352)"
}

2022-06-12 22:42:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2022-06-12 22:42:27 |

2022-06-12 22:42:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:27 | ------------------------------------

2022-06-12 22:42:27 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-12 22:42:27 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.068s
2022-06-12 22:42:28 |

2022-06-12 22:42:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-12 22:42:28 | ------------------------------------

2022-06-12 22:42:28 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-3899946a-8ef6-49e4-8597-76393b23c352",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-12 22:42:28 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}