Generated by TestNG with ReportNG at 22:44 PDT on Saturday 04 November 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.574s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2023-11-04 22:58:43 |

2023-11-04 22:58:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:43 | ------------------------------------

2023-11-04 22:58:43 | [Mutex] waiting for: [configured:node:node-0573cc01-1c34-4a28-9d62-bf072920c519:node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb]

2023-11-04 22:58:43 | [Mutex] received everything.

2023-11-04 22:58:43 | [Mutex] isItemNotified: configured:node:node-0573cc01-1c34-4a28-9d62-bf072920c519:node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb :: true

2023-11-04 22:58:44 | [Mutex] waiting for: [received:nodes:03f68d9e-0efb-45c2-88d0-e7c4226be9e6:localhost]

2023-11-04 22:58:44 | [Mutex] received everything.

2023-11-04 22:58:44 | [Mutex] isItemNotified: received:node:03f68d9e-0efb-45c2-88d0-e7c4226be9e6:localhost:node-0573cc01-1c34-4a28-9d62-bf072920c519:Node 0573cc01-1c34-4a28-9d62-bf072920c519 :: true

2023-11-04 22:58:44 | [Mutex] waiting for: [received:nodes:82c059b7-cdba-45a7-8943-43f2b94f9788:localhost]

2023-11-04 22:58:44 | [Mutex] waiting for: [received:nodes:82c059b7-cdba-45a7-8943-43f2b94f9788:localhost]

2023-11-04 22:58:44 | [Mutex] waiting for: [received:nodes:82c059b7-cdba-45a7-8943-43f2b94f9788:localhost]

2023-11-04 22:58:44 | [Mutex] received everything.

2023-11-04 22:58:44 | [Mutex] isItemNotified: received:node:82c059b7-cdba-45a7-8943-43f2b94f9788:localhost:node-0573cc01-1c34-4a28-9d62-bf072920c519:Node 0573cc01-1c34-4a28-9d62-bf072920c519 :: false

createNodes 1.598s
2023-11-04 22:58:40 |

2023-11-04 22:58:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:40 | ------------------------------------

2023-11-04 22:58:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "pubsub#title": "Node 0573cc01-1c34-4a28-9d62-bf072920c519"
}

2023-11-04 22:58:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-04 22:58:42 | [Mutex] waiting for: [received:nodes:728a5922-ba2b-425f-b284-2d692e644ed1:localhost]

2023-11-04 22:58:42 | [Mutex] waiting for: [received:nodes:728a5922-ba2b-425f-b284-2d692e644ed1:localhost]

2023-11-04 22:58:42 | [Mutex] waiting for: [received:nodes:728a5922-ba2b-425f-b284-2d692e644ed1:localhost]

2023-11-04 22:58:42 | [Mutex] received everything.

2023-11-04 22:58:42 | [Mutex] isItemNotified: received:node:728a5922-ba2b-425f-b284-2d692e644ed1:localhost:node-0573cc01-1c34-4a28-9d62-bf072920c519:Node 0573cc01-1c34-4a28-9d62-bf072920c519 :: true

createSubnodes 1.027s
2023-11-04 22:58:42 |

2023-11-04 22:58:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:42 | ------------------------------------

2023-11-04 22:58:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb",
    "pubsub#title": "Node e00f70fa-8f86-4c4d-92b2-8069bdef78eb"
}

2023-11-04 22:58:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-04 22:58:43 | [Mutex] waiting for: [received:nodes:b38b2ac8-9e19-42e4-99c9-205a449e2aca:localhost]

2023-11-04 22:58:43 | [Mutex] waiting for: [received:nodes:b38b2ac8-9e19-42e4-99c9-205a449e2aca:localhost]

2023-11-04 22:58:43 | [Mutex] waiting for: [received:nodes:b38b2ac8-9e19-42e4-99c9-205a449e2aca:localhost]

2023-11-04 22:58:43 | [Mutex] waiting for: [received:nodes:b38b2ac8-9e19-42e4-99c9-205a449e2aca:localhost]

2023-11-04 22:58:43 | [Mutex] received everything.

2023-11-04 22:58:43 | [Mutex] isItemNotified: received:node:b38b2ac8-9e19-42e4-99c9-205a449e2aca:localhost:node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb:Node e00f70fa-8f86-4c4d-92b2-8069bdef78eb :: true

deleteNodes 1.019s
2023-11-04 22:58:48 |

2023-11-04 22:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:48 | ------------------------------------

2023-11-04 22:58:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb"
}

2023-11-04 22:58:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-04 22:58:49 | [Mutex] waiting for: [received:nodes:3e4d3e0d-a052-43c5-a267-20624aed48ff:localhost]

2023-11-04 22:58:49 | [Mutex] waiting for: [received:nodes:3e4d3e0d-a052-43c5-a267-20624aed48ff:localhost]

2023-11-04 22:58:49 | [Mutex] waiting for: [received:nodes:3e4d3e0d-a052-43c5-a267-20624aed48ff:localhost]

2023-11-04 22:58:49 | [Mutex] received everything.

2023-11-04 22:58:49 | [Mutex] isItemNotified: received:node:3e4d3e0d-a052-43c5-a267-20624aed48ff:localhost:node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb:Node e00f70fa-8f86-4c4d-92b2-8069bdef78eb :: false

deleteSubnodes 1.070s
2023-11-04 22:58:47 |

2023-11-04 22:58:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:47 | ------------------------------------

2023-11-04 22:58:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519"
}

2023-11-04 22:58:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-04 22:58:48 | [Mutex] waiting for: [received:nodes:722b1757-1375-4e72-9e6a-d69c8eb2be7c:localhost]

2023-11-04 22:58:48 | [Mutex] waiting for: [received:nodes:722b1757-1375-4e72-9e6a-d69c8eb2be7c:localhost]

2023-11-04 22:58:48 | [Mutex] received everything.

2023-11-04 22:58:48 | [Mutex] isItemNotified: received:node:722b1757-1375-4e72-9e6a-d69c8eb2be7c:localhost:node-0573cc01-1c34-4a28-9d62-bf072920c519:Node 0573cc01-1c34-4a28-9d62-bf072920c519 :: false

2023-11-04 22:58:48 | [Mutex] waiting for: [received:nodes:8e1804cd-dbe4-4489-b9b6-c975b69ddc2e:localhost]

2023-11-04 22:58:48 | [Mutex] received everything.

2023-11-04 22:58:48 | [Mutex] isItemNotified: received:node:8e1804cd-dbe4-4489-b9b6-c975b69ddc2e:localhost:node-0573cc01-1c34-4a28-9d62-bf072920c519:Node 0573cc01-1c34-4a28-9d62-bf072920c519 :: false

publishItemsToNodes 0.037s
2023-11-04 22:58:45 |

2023-11-04 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:45 | ------------------------------------

2023-11-04 22:58:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "entry": "<test>item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a</test>",
    "item-id": "item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a"
}

2023-11-04 22:58:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a"
}

2023-11-04 22:58:45 | [Mutex] received everything.

2023-11-04 22:58:45 | [Mutex] isItemNotified: published:item:notifieditem-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2023-11-04 22:58:45 |

2023-11-04 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:45 | ------------------------------------

2023-11-04 22:58:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "item-id": "item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a"
}

2023-11-04 22:58:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a"
}

2023-11-04 22:58:45 | [Mutex] received everything.

2023-11-04 22:58:45 | [Mutex] isItemNotified: retracted:item:notifieditem-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2023-11-04 22:58:45 |

2023-11-04 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:45 | ------------------------------------

2023-11-04 22:58:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "item-id": "item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a"
}

2023-11-04 22:58:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "item-id": "item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a",
    "item": [
        "<item id=\"item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a\"><test>item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a</test></item>"
    ]
}

2023-11-04 22:58:45 | [Mutex] notify: [retrieved:item:item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a:payload-matches:true:localhost]

2023-11-04 22:58:45 | [Mutex] received everything.

2023-11-04 22:58:45 | [Mutex] isItemNotified: retrieved:item:item-7e4677d7-47c6-49ea-8d8c-70a3cb009e6a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-11-04 22:58:45 |

2023-11-04 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:45 | ------------------------------------

2023-11-04 22:58:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-11-04 22:58:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-e00f70fa-8f86-4c4d-92b2-8069bdef78eb",
        "node-0573cc01-1c34-4a28-9d62-bf072920c519"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-11-04 22:58:45 |

2023-11-04 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:45 | ------------------------------------

2023-11-04 22:58:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0573cc01-1c34-4a28-9d62-bf072920c519)"
}

2023-11-04 22:58:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-11-04 22:58:44 |

2023-11-04 22:58:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:44 | ------------------------------------

2023-11-04 22:58:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-04 22:58:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-11-04 22:58:45 |

2023-11-04 22:58:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-04 22:58:45 | ------------------------------------

2023-11-04 22:58:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0573cc01-1c34-4a28-9d62-bf072920c519",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-04 22:58:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}