Generated by TestNG with ReportNG at 22:45 PDT on Wednesday 25 October 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.566s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2023-10-25 22:59:36 |

2023-10-25 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:36 | ------------------------------------

2023-10-25 22:59:36 | [Mutex] waiting for: [configured:node:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad]

2023-10-25 22:59:36 | [Mutex] received everything.

2023-10-25 22:59:36 | [Mutex] isItemNotified: configured:node:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad :: true

2023-10-25 22:59:37 | [Mutex] waiting for: [received:nodes:de68c7de-6c37-4eb1-91d2-56f2b0f5aa5b:localhost]

2023-10-25 22:59:37 | [Mutex] received everything.

2023-10-25 22:59:37 | [Mutex] isItemNotified: received:node:de68c7de-6c37-4eb1-91d2-56f2b0f5aa5b:localhost:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:Node c5fc9c19-9132-4aab-a1a1-112f8b7ead02 :: true

2023-10-25 22:59:37 | [Mutex] waiting for: [received:nodes:a0107d9f-2e2c-402c-9247-384ebd992410:localhost]

2023-10-25 22:59:37 | [Mutex] waiting for: [received:nodes:a0107d9f-2e2c-402c-9247-384ebd992410:localhost]

2023-10-25 22:59:37 | [Mutex] waiting for: [received:nodes:a0107d9f-2e2c-402c-9247-384ebd992410:localhost]

2023-10-25 22:59:37 | [Mutex] received everything.

2023-10-25 22:59:37 | [Mutex] isItemNotified: received:node:a0107d9f-2e2c-402c-9247-384ebd992410:localhost:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:Node c5fc9c19-9132-4aab-a1a1-112f8b7ead02 :: false

createNodes 1.606s
2023-10-25 22:59:34 |

2023-10-25 22:59:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:34 | ------------------------------------

2023-10-25 22:59:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "pubsub#title": "Node c5fc9c19-9132-4aab-a1a1-112f8b7ead02"
}

2023-10-25 22:59:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 22:59:35 | [Mutex] waiting for: [received:nodes:3d7c3f34-1705-4e4e-925f-2eeb64bfb85b:localhost]

2023-10-25 22:59:35 | [Mutex] waiting for: [received:nodes:3d7c3f34-1705-4e4e-925f-2eeb64bfb85b:localhost]

2023-10-25 22:59:35 | [Mutex] waiting for: [received:nodes:3d7c3f34-1705-4e4e-925f-2eeb64bfb85b:localhost]

2023-10-25 22:59:35 | [Mutex] waiting for: [received:nodes:3d7c3f34-1705-4e4e-925f-2eeb64bfb85b:localhost]

2023-10-25 22:59:35 | [Mutex] received everything.

2023-10-25 22:59:35 | [Mutex] isItemNotified: received:node:3d7c3f34-1705-4e4e-925f-2eeb64bfb85b:localhost:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:Node c5fc9c19-9132-4aab-a1a1-112f8b7ead02 :: true

createSubnodes 1.033s
2023-10-25 22:59:35 |

2023-10-25 22:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:35 | ------------------------------------

2023-10-25 22:59:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad",
    "pubsub#title": "Node 4fca6fd8-86c7-4752-87f6-ce0f444bfcad"
}

2023-10-25 22:59:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 22:59:36 | [Mutex] waiting for: [received:nodes:62f6c073-994f-437d-8d71-6d0599538671:localhost]

2023-10-25 22:59:36 | [Mutex] received everything.

2023-10-25 22:59:36 | [Mutex] isItemNotified: received:node:62f6c073-994f-437d-8d71-6d0599538671:localhost:node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad:Node 4fca6fd8-86c7-4752-87f6-ce0f444bfcad :: true

deleteNodes 1.022s
2023-10-25 22:59:41 |

2023-10-25 22:59:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:41 | ------------------------------------

2023-10-25 22:59:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad"
}

2023-10-25 22:59:41 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 22:59:42 | [Mutex] waiting for: [received:nodes:7f5eba44-3498-429f-a509-39c97fba83d8:localhost]

2023-10-25 22:59:42 | [Mutex] waiting for: [received:nodes:7f5eba44-3498-429f-a509-39c97fba83d8:localhost]

2023-10-25 22:59:42 | [Mutex] waiting for: [received:nodes:7f5eba44-3498-429f-a509-39c97fba83d8:localhost]

2023-10-25 22:59:42 | [Mutex] received everything.

2023-10-25 22:59:42 | [Mutex] isItemNotified: received:node:7f5eba44-3498-429f-a509-39c97fba83d8:localhost:node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad:Node 4fca6fd8-86c7-4752-87f6-ce0f444bfcad :: false

deleteSubnodes 1.026s
2023-10-25 22:59:40 |

2023-10-25 22:59:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:40 | ------------------------------------

2023-10-25 22:59:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02"
}

2023-10-25 22:59:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-25 22:59:41 | [Mutex] waiting for: [received:nodes:64981f3b-cbe6-47ee-b034-028dd0456997:localhost]

2023-10-25 22:59:41 | [Mutex] waiting for: [received:nodes:64981f3b-cbe6-47ee-b034-028dd0456997:localhost]

2023-10-25 22:59:41 | [Mutex] waiting for: [received:nodes:64981f3b-cbe6-47ee-b034-028dd0456997:localhost]

2023-10-25 22:59:41 | [Mutex] waiting for: [received:nodes:64981f3b-cbe6-47ee-b034-028dd0456997:localhost]

2023-10-25 22:59:41 | [Mutex] received everything.

2023-10-25 22:59:41 | [Mutex] isItemNotified: received:node:64981f3b-cbe6-47ee-b034-028dd0456997:localhost:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:Node c5fc9c19-9132-4aab-a1a1-112f8b7ead02 :: false

2023-10-25 22:59:41 | [Mutex] waiting for: [received:nodes:7bfb741b-8299-41b2-9e12-f062ce3552f1:localhost]

2023-10-25 22:59:41 | [Mutex] received everything.

2023-10-25 22:59:41 | [Mutex] isItemNotified: received:node:7bfb741b-8299-41b2-9e12-f062ce3552f1:localhost:node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02:Node c5fc9c19-9132-4aab-a1a1-112f8b7ead02 :: false

publishItemsToNodes 0.039s
2023-10-25 22:59:38 |

2023-10-25 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:38 | ------------------------------------

2023-10-25 22:59:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "entry": "<test>item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6</test>",
    "item-id": "item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6"
}

2023-10-25 22:59:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6"
}

2023-10-25 22:59:38 | [Mutex] waiting for: [published:item:notifieditem-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6:admin@test-domain.com]

2023-10-25 22:59:38 | [Mutex] received everything.

2023-10-25 22:59:38 | [Mutex] isItemNotified: published:item:notifieditem-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-10-25 22:59:39 |

2023-10-25 22:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:39 | ------------------------------------

2023-10-25 22:59:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "item-id": "item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6"
}

2023-10-25 22:59:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6"
}

2023-10-25 22:59:39 | [Mutex] received everything.

2023-10-25 22:59:39 | [Mutex] isItemNotified: retracted:item:notifieditem-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2023-10-25 22:59:38 |

2023-10-25 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:38 | ------------------------------------

2023-10-25 22:59:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "item-id": "item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6"
}

2023-10-25 22:59:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "item-id": "item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6",
    "item": [
        "<item id=\"item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6\"><test>item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6</test></item>"
    ]
}

2023-10-25 22:59:38 | [Mutex] notify: [retrieved:item:item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6:payload-matches:true:localhost]

2023-10-25 22:59:38 | [Mutex] received everything.

2023-10-25 22:59:38 | [Mutex] isItemNotified: retrieved:item:item-da53083b-0a6d-48d0-9d81-8fe45dfc9cb6:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2023-10-25 22:59:38 |

2023-10-25 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:38 | ------------------------------------

2023-10-25 22:59:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-10-25 22:59:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4fca6fd8-86c7-4752-87f6-ce0f444bfcad",
        "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-10-25 22:59:39 |

2023-10-25 22:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:39 | ------------------------------------

2023-10-25 22:59:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02)"
}

2023-10-25 22:59:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-10-25 22:59:37 |

2023-10-25 22:59:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:37 | ------------------------------------

2023-10-25 22:59:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-25 22:59:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-10-25 22:59:39 |

2023-10-25 22:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-25 22:59:39 | ------------------------------------

2023-10-25 22:59:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c5fc9c19-9132-4aab-a1a1-112f8b7ead02",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-25 22:59:39 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}