Generated by TestNG with ReportNG at 22:49 PDT on Saturday 09 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.531s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.152s
2022-07-09 23:04:51 |

2022-07-09 23:04:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:51 | ------------------------------------

2022-07-09 23:04:51 | [Mutex] waiting for: [configured:node:node-f4deb81d-193d-4725-80e9-724c0734fca8:node-5b249893-0c55-4b80-b686-02dd932b4fd6]

2022-07-09 23:04:51 | [Mutex] received everything.

2022-07-09 23:04:51 | [Mutex] isItemNotified: configured:node:node-f4deb81d-193d-4725-80e9-724c0734fca8:node-5b249893-0c55-4b80-b686-02dd932b4fd6 :: true

2022-07-09 23:04:52 | [Mutex] waiting for: [received:nodes:99432f5b-53eb-49f8-80ee-3eaafb75c26a:localhost]

2022-07-09 23:04:52 | [Mutex] received everything.

2022-07-09 23:04:52 | [Mutex] isItemNotified: received:node:99432f5b-53eb-49f8-80ee-3eaafb75c26a:localhost:node-f4deb81d-193d-4725-80e9-724c0734fca8:Node f4deb81d-193d-4725-80e9-724c0734fca8 :: true

2022-07-09 23:04:52 | [Mutex] waiting for: [received:nodes:728e6415-f9c1-42fa-90d8-c90456a57c74:localhost]

2022-07-09 23:04:52 | [Mutex] received everything.

2022-07-09 23:04:52 | [Mutex] isItemNotified: received:node:728e6415-f9c1-42fa-90d8-c90456a57c74:localhost:node-f4deb81d-193d-4725-80e9-724c0734fca8:Node f4deb81d-193d-4725-80e9-724c0734fca8 :: false

createNodes 1.529s
2022-07-09 23:04:48 |

2022-07-09 23:04:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:48 | ------------------------------------

2022-07-09 23:04:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "pubsub#title": "Node f4deb81d-193d-4725-80e9-724c0734fca8"
}

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

2022-07-09 23:04:50 | [Mutex] waiting for: [received:nodes:f5daa147-3070-4e8d-9f25-e55833725662:localhost]

2022-07-09 23:04:50 | [Mutex] received everything.

2022-07-09 23:04:50 | [Mutex] isItemNotified: received:node:f5daa147-3070-4e8d-9f25-e55833725662:localhost:node-f4deb81d-193d-4725-80e9-724c0734fca8:Node f4deb81d-193d-4725-80e9-724c0734fca8 :: true

createSubnodes 1.020s
2022-07-09 23:04:50 |

2022-07-09 23:04:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:50 | ------------------------------------

2022-07-09 23:04:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5b249893-0c55-4b80-b686-02dd932b4fd6",
    "pubsub#title": "Node 5b249893-0c55-4b80-b686-02dd932b4fd6"
}

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

2022-07-09 23:04:51 | [Mutex] waiting for: [received:nodes:9db2af38-e1af-4b19-9ae3-0d9c112596e9:localhost]

2022-07-09 23:04:51 | [Mutex] received everything.

2022-07-09 23:04:51 | [Mutex] isItemNotified: received:node:9db2af38-e1af-4b19-9ae3-0d9c112596e9:localhost:node-5b249893-0c55-4b80-b686-02dd932b4fd6:Node 5b249893-0c55-4b80-b686-02dd932b4fd6 :: true

deleteNodes 1.017s
2022-07-09 23:04:55 |

2022-07-09 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:55 | ------------------------------------

2022-07-09 23:04:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5b249893-0c55-4b80-b686-02dd932b4fd6"
}

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

2022-07-09 23:04:56 | [Mutex] waiting for: [received:nodes:2e7a6d3c-c5c9-49b8-8350-594fe652fced:localhost]

2022-07-09 23:04:56 | [Mutex] received everything.

2022-07-09 23:04:56 | [Mutex] isItemNotified: received:node:2e7a6d3c-c5c9-49b8-8350-594fe652fced:localhost:node-5b249893-0c55-4b80-b686-02dd932b4fd6:Node 5b249893-0c55-4b80-b686-02dd932b4fd6 :: false

deleteSubnodes 1.024s
2022-07-09 23:04:54 |

2022-07-09 23:04:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:54 | ------------------------------------

2022-07-09 23:04:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8"
}

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

2022-07-09 23:04:55 | [Mutex] waiting for: [received:nodes:ed91b7d1-4acd-48a4-b836-49279af8a0b8:localhost]

2022-07-09 23:04:55 | [Mutex] received everything.

2022-07-09 23:04:55 | [Mutex] isItemNotified: received:node:ed91b7d1-4acd-48a4-b836-49279af8a0b8:localhost:node-f4deb81d-193d-4725-80e9-724c0734fca8:Node f4deb81d-193d-4725-80e9-724c0734fca8 :: false

2022-07-09 23:04:55 | [Mutex] waiting for: [received:nodes:04b30c31-977a-4c4c-9a78-f887478a5a23:localhost]

2022-07-09 23:04:55 | [Mutex] received everything.

2022-07-09 23:04:55 | [Mutex] isItemNotified: received:node:04b30c31-977a-4c4c-9a78-f887478a5a23:localhost:node-f4deb81d-193d-4725-80e9-724c0734fca8:Node f4deb81d-193d-4725-80e9-724c0734fca8 :: false

publishItemsToNodes 0.059s
2022-07-09 23:04:53 |

2022-07-09 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:53 | ------------------------------------

2022-07-09 23:04:53 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "entry": "<test>item-596ac4b8-fd94-4f0d-bbc7-632d446604f3</test>",
    "item-id": "item-596ac4b8-fd94-4f0d-bbc7-632d446604f3"
}

2022-07-09 23:04:53 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-596ac4b8-fd94-4f0d-bbc7-632d446604f3"
}

2022-07-09 23:04:53 | [Mutex] waiting for: [published:item:notifieditem-596ac4b8-fd94-4f0d-bbc7-632d446604f3:admin@test-domain.com]

2022-07-09 23:04:53 | [Mutex] received everything.

2022-07-09 23:04:53 | [Mutex] isItemNotified: published:item:notifieditem-596ac4b8-fd94-4f0d-bbc7-632d446604f3:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-07-09 23:04:53 |

2022-07-09 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:53 | ------------------------------------

2022-07-09 23:04:53 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "item-id": "item-596ac4b8-fd94-4f0d-bbc7-632d446604f3"
}

2022-07-09 23:04:53 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-596ac4b8-fd94-4f0d-bbc7-632d446604f3"
}

2022-07-09 23:04:53 | [Mutex] received everything.

2022-07-09 23:04:53 | [Mutex] isItemNotified: retracted:item:notifieditem-596ac4b8-fd94-4f0d-bbc7-632d446604f3:admin@test-domain.com :: true

retrieveItemsFromNodes 0.027s
2022-07-09 23:04:53 |

2022-07-09 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:53 | ------------------------------------

2022-07-09 23:04:53 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "item-id": "item-596ac4b8-fd94-4f0d-bbc7-632d446604f3"
}

2022-07-09 23:04:53 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "item-id": "item-596ac4b8-fd94-4f0d-bbc7-632d446604f3",
    "item": [
        "<item id=\"item-596ac4b8-fd94-4f0d-bbc7-632d446604f3\"><test>item-596ac4b8-fd94-4f0d-bbc7-632d446604f3</test></item>"
    ]
}

2022-07-09 23:04:53 | [Mutex] notify: [retrieved:item:item-596ac4b8-fd94-4f0d-bbc7-632d446604f3:payload-matches:true:localhost]

2022-07-09 23:04:53 | [Mutex] received everything.

2022-07-09 23:04:53 | [Mutex] isItemNotified: retrieved:item:item-596ac4b8-fd94-4f0d-bbc7-632d446604f3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2022-07-09 23:04:53 |

2022-07-09 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:53 | ------------------------------------

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

2022-07-09 23:04:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-f4deb81d-193d-4725-80e9-724c0734fca8",
        "test",
        "node-5b249893-0c55-4b80-b686-02dd932b4fd6"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-09 23:04:53 |

2022-07-09 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:53 | ------------------------------------

2022-07-09 23:04:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f4deb81d-193d-4725-80e9-724c0734fca8)"
}

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

subscribeNodes 1.007s
2022-07-09 23:04:52 |

2022-07-09 23:04:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:52 | ------------------------------------

2022-07-09 23:04:52 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-07-09 23:04:53 |

2022-07-09 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-09 23:04:53 | ------------------------------------

2022-07-09 23:04:53 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f4deb81d-193d-4725-80e9-724c0734fca8",
    "jids": [
        "admin@test-domain.com"
    ]
}

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