Generated by TestNG with ReportNG at 22:19 PDT on Tuesday 30 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.586s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-08-30 22:33:48 |

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

2022-08-30 22:33:48 | ------------------------------------

2022-08-30 22:33:48 | [Mutex] waiting for: [configured:node:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f]

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

2022-08-30 22:33:48 | [Mutex] isItemNotified: configured:node:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f :: true

2022-08-30 22:33:49 | [Mutex] waiting for: [received:nodes:29d190e7-82b6-44ff-a46d-dde3761061a5:localhost]

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

2022-08-30 22:33:49 | [Mutex] isItemNotified: received:node:29d190e7-82b6-44ff-a46d-dde3761061a5:localhost:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:Node 95ac73d9-edf4-4aa1-803d-2cccb223a1aa :: true

2022-08-30 22:33:49 | [Mutex] waiting for: [received:nodes:ea65d36b-92ba-49ce-b947-affdf851bcbb:localhost]

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

2022-08-30 22:33:49 | [Mutex] isItemNotified: received:node:ea65d36b-92ba-49ce-b947-affdf851bcbb:localhost:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:Node 95ac73d9-edf4-4aa1-803d-2cccb223a1aa :: false

createNodes 1.556s
2022-08-30 22:33:45 |

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

2022-08-30 22:33:45 | ------------------------------------

2022-08-30 22:33:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "pubsub#title": "Node 95ac73d9-edf4-4aa1-803d-2cccb223a1aa"
}

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

2022-08-30 22:33:47 | [Mutex] waiting for: [received:nodes:b71910a7-608f-43ba-9561-9302e3ee328e:localhost]

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

2022-08-30 22:33:47 | [Mutex] isItemNotified: received:node:b71910a7-608f-43ba-9561-9302e3ee328e:localhost:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:Node 95ac73d9-edf4-4aa1-803d-2cccb223a1aa :: true

createSubnodes 1.022s
2022-08-30 22:33:47 |

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

2022-08-30 22:33:47 | ------------------------------------

2022-08-30 22:33:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f",
    "pubsub#title": "Node 42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f"
}

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

2022-08-30 22:33:48 | [Mutex] waiting for: [received:nodes:2a9e4788-ecd7-46bc-a26f-0e3345e789ff:localhost]

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

2022-08-30 22:33:48 | [Mutex] isItemNotified: received:node:2a9e4788-ecd7-46bc-a26f-0e3345e789ff:localhost:node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f:Node 42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f :: true

deleteNodes 1.065s
2022-08-30 22:33:52 |

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

2022-08-30 22:33:52 | ------------------------------------

2022-08-30 22:33:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f"
}

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

2022-08-30 22:33:53 | [Mutex] waiting for: [received:nodes:2997697d-d95d-4a0e-842f-b76d0fe42613:localhost]

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

2022-08-30 22:33:53 | [Mutex] isItemNotified: received:node:2997697d-d95d-4a0e-842f-b76d0fe42613:localhost:node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f:Node 42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f :: false

deleteSubnodes 1.029s
2022-08-30 22:33:51 |

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

2022-08-30 22:33:51 | ------------------------------------

2022-08-30 22:33:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa"
}

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

2022-08-30 22:33:52 | [Mutex] waiting for: [received:nodes:c120f772-02dd-4e58-b230-dee33c200aca:localhost]

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

2022-08-30 22:33:52 | [Mutex] isItemNotified: received:node:c120f772-02dd-4e58-b230-dee33c200aca:localhost:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:Node 95ac73d9-edf4-4aa1-803d-2cccb223a1aa :: false

2022-08-30 22:33:52 | [Mutex] waiting for: [received:nodes:9b5bc3ab-e8d4-468a-87a3-7c2b494c6de3:localhost]

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

2022-08-30 22:33:52 | [Mutex] isItemNotified: received:node:9b5bc3ab-e8d4-468a-87a3-7c2b494c6de3:localhost:node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa:Node 95ac73d9-edf4-4aa1-803d-2cccb223a1aa :: false

publishItemsToNodes 0.032s
2022-08-30 22:33:50 |

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

2022-08-30 22:33:50 | ------------------------------------

2022-08-30 22:33:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "entry": "<test>item-93a830cb-f001-4cd7-8290-6df8120be8e6</test>",
    "item-id": "item-93a830cb-f001-4cd7-8290-6df8120be8e6"
}

2022-08-30 22:33:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-93a830cb-f001-4cd7-8290-6df8120be8e6"
}

2022-08-30 22:33:50 | [Mutex] waiting for: [published:item:notifieditem-93a830cb-f001-4cd7-8290-6df8120be8e6:admin@test-domain.com]

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

2022-08-30 22:33:50 | [Mutex] isItemNotified: published:item:notifieditem-93a830cb-f001-4cd7-8290-6df8120be8e6:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-08-30 22:33:50 |

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

2022-08-30 22:33:50 | ------------------------------------

2022-08-30 22:33:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "item-id": "item-93a830cb-f001-4cd7-8290-6df8120be8e6"
}

2022-08-30 22:33:50 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-93a830cb-f001-4cd7-8290-6df8120be8e6"
}

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

2022-08-30 22:33:50 | [Mutex] isItemNotified: retracted:item:notifieditem-93a830cb-f001-4cd7-8290-6df8120be8e6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.077s
2022-08-30 22:33:50 |

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

2022-08-30 22:33:50 | ------------------------------------

2022-08-30 22:33:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "item-id": "item-93a830cb-f001-4cd7-8290-6df8120be8e6"
}

2022-08-30 22:33:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "item-id": "item-93a830cb-f001-4cd7-8290-6df8120be8e6",
    "item": [
        "<item id=\"item-93a830cb-f001-4cd7-8290-6df8120be8e6\"><test>item-93a830cb-f001-4cd7-8290-6df8120be8e6</test></item>"
    ]
}

2022-08-30 22:33:50 | [Mutex] notify: [retrieved:item:item-93a830cb-f001-4cd7-8290-6df8120be8e6:payload-matches:true:localhost]

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

2022-08-30 22:33:50 | [Mutex] isItemNotified: retrieved:item:item-93a830cb-f001-4cd7-8290-6df8120be8e6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-08-30 22:33:50 |

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

2022-08-30 22:33:50 | ------------------------------------

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

2022-08-30 22:33:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
        "test",
        "node-42e48dfb-b1a6-41af-b7aa-0c84e2c8a55f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-08-30 22:33:50 |

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

2022-08-30 22:33:50 | ------------------------------------

2022-08-30 22:33:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa)"
}

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

subscribeNodes 1.022s
2022-08-30 22:33:49 |

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

2022-08-30 22:33:49 | ------------------------------------

2022-08-30 22:33:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-08-30 22:33:50 |

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

2022-08-30 22:33:50 | ------------------------------------

2022-08-30 22:33:50 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-95ac73d9-edf4-4aa1-803d-2cccb223a1aa",
    "jids": [
        "admin@test-domain.com"
    ]
}

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