Generated by TestNG with ReportNG at 23:31 PDT on Sunday 23 October 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.625s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.092s
2022-10-23 23:53:25 |

2022-10-23 23:53:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:25 | ------------------------------------

2022-10-23 23:53:25 | [Mutex] waiting for: [configured:node:node-d532312e-4928-458d-882c-6b2683c1ae2b:node-a45b8f87-73c6-4cd6-99b6-464a08a51e03]

2022-10-23 23:53:25 | [Mutex] received everything.

2022-10-23 23:53:25 | [Mutex] isItemNotified: configured:node:node-d532312e-4928-458d-882c-6b2683c1ae2b:node-a45b8f87-73c6-4cd6-99b6-464a08a51e03 :: true

2022-10-23 23:53:26 | [Mutex] waiting for: [received:nodes:eb820ce8-fafb-497c-bbc8-811bc0d65b00:localhost]

2022-10-23 23:53:26 | [Mutex] received everything.

2022-10-23 23:53:26 | [Mutex] isItemNotified: received:node:eb820ce8-fafb-497c-bbc8-811bc0d65b00:localhost:node-d532312e-4928-458d-882c-6b2683c1ae2b:Node d532312e-4928-458d-882c-6b2683c1ae2b :: true

2022-10-23 23:53:26 | [Mutex] waiting for: [received:nodes:031df409-33d0-4c61-96ac-81498336c955:localhost]

2022-10-23 23:53:26 | [Mutex] waiting for: [received:nodes:031df409-33d0-4c61-96ac-81498336c955:localhost]

2022-10-23 23:53:26 | [Mutex] received everything.

2022-10-23 23:53:26 | [Mutex] isItemNotified: received:node:031df409-33d0-4c61-96ac-81498336c955:localhost:node-d532312e-4928-458d-882c-6b2683c1ae2b:Node d532312e-4928-458d-882c-6b2683c1ae2b :: false

createNodes 1.611s
2022-10-23 23:53:22 |

2022-10-23 23:53:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:22 | ------------------------------------

2022-10-23 23:53: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-d532312e-4928-458d-882c-6b2683c1ae2b",
    "pubsub#title": "Node d532312e-4928-458d-882c-6b2683c1ae2b"
}

2022-10-23 23:53:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:53:24 | [Mutex] waiting for: [received:nodes:bf47ecd8-ddfa-45cb-8137-fb4a3b275c97:localhost]

2022-10-23 23:53:24 | [Mutex] received everything.

2022-10-23 23:53:24 | [Mutex] isItemNotified: received:node:bf47ecd8-ddfa-45cb-8137-fb4a3b275c97:localhost:node-d532312e-4928-458d-882c-6b2683c1ae2b:Node d532312e-4928-458d-882c-6b2683c1ae2b :: true

createSubnodes 1.023s
2022-10-23 23:53:24 |

2022-10-23 23:53:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:24 | ------------------------------------

2022-10-23 23:53: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-a45b8f87-73c6-4cd6-99b6-464a08a51e03",
    "pubsub#title": "Node a45b8f87-73c6-4cd6-99b6-464a08a51e03"
}

2022-10-23 23:53:24 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:53:25 | [Mutex] waiting for: [received:nodes:244056d6-0e4f-4af3-8fd4-a4eb48a9a20e:localhost]

2022-10-23 23:53:25 | [Mutex] waiting for: [received:nodes:244056d6-0e4f-4af3-8fd4-a4eb48a9a20e:localhost]

2022-10-23 23:53:25 | [Mutex] received everything.

2022-10-23 23:53:25 | [Mutex] isItemNotified: received:node:244056d6-0e4f-4af3-8fd4-a4eb48a9a20e:localhost:node-a45b8f87-73c6-4cd6-99b6-464a08a51e03:Node a45b8f87-73c6-4cd6-99b6-464a08a51e03 :: true

deleteNodes 1.028s
2022-10-23 23:53:30 |

2022-10-23 23:53:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:30 | ------------------------------------

2022-10-23 23:53:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a45b8f87-73c6-4cd6-99b6-464a08a51e03"
}

2022-10-23 23:53:30 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:53:31 | [Mutex] waiting for: [received:nodes:f513f347-6b66-480f-bc66-a6c718396118:localhost]

2022-10-23 23:53:31 | [Mutex] received everything.

2022-10-23 23:53:31 | [Mutex] isItemNotified: received:node:f513f347-6b66-480f-bc66-a6c718396118:localhost:node-a45b8f87-73c6-4cd6-99b6-464a08a51e03:Node a45b8f87-73c6-4cd6-99b6-464a08a51e03 :: false

deleteSubnodes 1.026s
2022-10-23 23:53:29 |

2022-10-23 23:53:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:29 | ------------------------------------

2022-10-23 23:53:29 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b"
}

2022-10-23 23:53:29 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-23 23:53:30 | [Mutex] waiting for: [received:nodes:0e844756-49a8-416e-8eab-2a37d8233808:localhost]

2022-10-23 23:53:30 | [Mutex] waiting for: [received:nodes:0e844756-49a8-416e-8eab-2a37d8233808:localhost]

2022-10-23 23:53:30 | [Mutex] waiting for: [received:nodes:0e844756-49a8-416e-8eab-2a37d8233808:localhost]

2022-10-23 23:53:30 | [Mutex] waiting for: [received:nodes:0e844756-49a8-416e-8eab-2a37d8233808:localhost]

2022-10-23 23:53:30 | [Mutex] received everything.

2022-10-23 23:53:30 | [Mutex] isItemNotified: received:node:0e844756-49a8-416e-8eab-2a37d8233808:localhost:node-d532312e-4928-458d-882c-6b2683c1ae2b:Node d532312e-4928-458d-882c-6b2683c1ae2b :: false

2022-10-23 23:53:30 | [Mutex] waiting for: [received:nodes:977e6b0d-0ade-4ae9-b0e9-aa2cc42aef69:localhost]

2022-10-23 23:53:30 | [Mutex] received everything.

2022-10-23 23:53:30 | [Mutex] isItemNotified: received:node:977e6b0d-0ade-4ae9-b0e9-aa2cc42aef69:localhost:node-d532312e-4928-458d-882c-6b2683c1ae2b:Node d532312e-4928-458d-882c-6b2683c1ae2b :: false

publishItemsToNodes 0.092s
2022-10-23 23:53:27 |

2022-10-23 23:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:27 | ------------------------------------

2022-10-23 23:53:27 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b",
    "entry": "<test>item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7</test>",
    "item-id": "item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7"
}

2022-10-23 23:53:27 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7"
}

2022-10-23 23:53:27 | [Mutex] waiting for: [published:item:notifieditem-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7:admin@test-domain.com]

2022-10-23 23:53:27 | [Mutex] received everything.

2022-10-23 23:53:27 | [Mutex] isItemNotified: published:item:notifieditem-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-10-23 23:53:27 |

2022-10-23 23:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:27 | ------------------------------------

2022-10-23 23:53:27 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b",
    "item-id": "item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7"
}

2022-10-23 23:53:27 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7"
}

2022-10-23 23:53:27 | [Mutex] received everything.

2022-10-23 23:53:27 | [Mutex] isItemNotified: retracted:item:notifieditem-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7:admin@test-domain.com :: true

retrieveItemsFromNodes 0.019s
2022-10-23 23:53:27 |

2022-10-23 23:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:27 | ------------------------------------

2022-10-23 23:53:27 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b",
    "item-id": "item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7"
}

2022-10-23 23:53:27 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b",
    "item-id": "item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7",
    "item": [
        "<item id=\"item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7\"><test>item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7</test></item>"
    ]
}

2022-10-23 23:53:27 | [Mutex] notify: [retrieved:item:item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7:payload-matches:true:localhost]

2022-10-23 23:53:27 | [Mutex] received everything.

2022-10-23 23:53:27 | [Mutex] isItemNotified: retrieved:item:item-6df8ba46-312d-4ca9-bdf7-adb52cbd86d7:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.068s
2022-10-23 23:53:27 |

2022-10-23 23:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:27 | ------------------------------------

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

2022-10-23 23:53:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-a45b8f87-73c6-4cd6-99b6-464a08a51e03",
        "test",
        "node-d532312e-4928-458d-882c-6b2683c1ae2b"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-23 23:53:27 |

2022-10-23 23:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:27 | ------------------------------------

2022-10-23 23:53:27 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d532312e-4928-458d-882c-6b2683c1ae2b)"
}

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

subscribeNodes 1.012s
2022-10-23 23:53:26 |

2022-10-23 23:53:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:26 | ------------------------------------

2022-10-23 23:53:26 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-23 23:53:26 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.086s
2022-10-23 23:53:27 |

2022-10-23 23:53:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-23 23:53:27 | ------------------------------------

2022-10-23 23:53:27 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d532312e-4928-458d-882c-6b2683c1ae2b",
    "jids": [
        "admin@test-domain.com"
    ]
}

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