Generated by TestNG with ReportNG at 22:45 PDT on Friday 27 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.096s
2023-10-27 23:00:11 |

2023-10-27 23:00:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:11 | ------------------------------------

2023-10-27 23:00:11 | [Mutex] waiting for: [configured:node:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:node-f60c4306-ca11-4ab5-82c8-db04188e2f8d]

2023-10-27 23:00:11 | [Mutex] received everything.

2023-10-27 23:00:11 | [Mutex] isItemNotified: configured:node:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:node-f60c4306-ca11-4ab5-82c8-db04188e2f8d :: true

2023-10-27 23:00:12 | [Mutex] waiting for: [received:nodes:576f402c-1cd5-4522-8112-ba89bdd9d834:localhost]

2023-10-27 23:00:12 | [Mutex] received everything.

2023-10-27 23:00:12 | [Mutex] isItemNotified: received:node:576f402c-1cd5-4522-8112-ba89bdd9d834:localhost:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:Node 2ee50bbe-6400-4938-b204-bb8c73a70a25 :: true

2023-10-27 23:00:12 | [Mutex] waiting for: [received:nodes:9f566963-bccb-4d7c-8434-048012126228:localhost]

2023-10-27 23:00:12 | [Mutex] waiting for: [received:nodes:9f566963-bccb-4d7c-8434-048012126228:localhost]

2023-10-27 23:00:12 | [Mutex] waiting for: [received:nodes:9f566963-bccb-4d7c-8434-048012126228:localhost]

2023-10-27 23:00:12 | [Mutex] waiting for: [received:nodes:9f566963-bccb-4d7c-8434-048012126228:localhost]

2023-10-27 23:00:12 | [Mutex] received everything.

2023-10-27 23:00:12 | [Mutex] isItemNotified: received:node:9f566963-bccb-4d7c-8434-048012126228:localhost:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:Node 2ee50bbe-6400-4938-b204-bb8c73a70a25 :: false

createNodes 1.647s
2023-10-27 23:00:08 |

2023-10-27 23:00:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:08 | ------------------------------------

2023-10-27 23:00:08 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "pubsub#title": "Node 2ee50bbe-6400-4938-b204-bb8c73a70a25"
}

2023-10-27 23:00:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-27 23:00:10 | [Mutex] waiting for: [received:nodes:36bf65e7-c54a-430c-b24a-dd12410f12c9:localhost]

2023-10-27 23:00:10 | [Mutex] received everything.

2023-10-27 23:00:10 | [Mutex] isItemNotified: received:node:36bf65e7-c54a-430c-b24a-dd12410f12c9:localhost:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:Node 2ee50bbe-6400-4938-b204-bb8c73a70a25 :: true

createSubnodes 1.028s
2023-10-27 23:00:10 |

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

2023-10-27 23:00:10 | ------------------------------------

2023-10-27 23:00:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f60c4306-ca11-4ab5-82c8-db04188e2f8d",
    "pubsub#title": "Node f60c4306-ca11-4ab5-82c8-db04188e2f8d"
}

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

2023-10-27 23:00:11 | [Mutex] waiting for: [received:nodes:8f3bff29-e3e1-4aa7-9262-f69f1f3f2595:localhost]

2023-10-27 23:00:11 | [Mutex] received everything.

2023-10-27 23:00:11 | [Mutex] isItemNotified: received:node:8f3bff29-e3e1-4aa7-9262-f69f1f3f2595:localhost:node-f60c4306-ca11-4ab5-82c8-db04188e2f8d:Node f60c4306-ca11-4ab5-82c8-db04188e2f8d :: true

deleteNodes 1.019s
2023-10-27 23:00:15 |

2023-10-27 23:00:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:15 | ------------------------------------

2023-10-27 23:00:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f60c4306-ca11-4ab5-82c8-db04188e2f8d"
}

2023-10-27 23:00:15 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-27 23:00:16 | [Mutex] waiting for: [received:nodes:0c817349-96b1-4a1e-baa9-acba614c5219:localhost]

2023-10-27 23:00:16 | [Mutex] waiting for: [received:nodes:0c817349-96b1-4a1e-baa9-acba614c5219:localhost]

2023-10-27 23:00:16 | [Mutex] waiting for: [received:nodes:0c817349-96b1-4a1e-baa9-acba614c5219:localhost]

2023-10-27 23:00:16 | [Mutex] received everything.

2023-10-27 23:00:16 | [Mutex] isItemNotified: received:node:0c817349-96b1-4a1e-baa9-acba614c5219:localhost:node-f60c4306-ca11-4ab5-82c8-db04188e2f8d:Node f60c4306-ca11-4ab5-82c8-db04188e2f8d :: false

deleteSubnodes 1.022s
2023-10-27 23:00:14 |

2023-10-27 23:00:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:14 | ------------------------------------

2023-10-27 23:00:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25"
}

2023-10-27 23:00:14 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-10-27 23:00:15 | [Mutex] waiting for: [received:nodes:16d19161-d93e-4743-9eb2-7b416a0d0d01:localhost]

2023-10-27 23:00:15 | [Mutex] waiting for: [received:nodes:16d19161-d93e-4743-9eb2-7b416a0d0d01:localhost]

2023-10-27 23:00:15 | [Mutex] waiting for: [received:nodes:16d19161-d93e-4743-9eb2-7b416a0d0d01:localhost]

2023-10-27 23:00:15 | [Mutex] waiting for: [received:nodes:16d19161-d93e-4743-9eb2-7b416a0d0d01:localhost]

2023-10-27 23:00:15 | [Mutex] received everything.

2023-10-27 23:00:15 | [Mutex] isItemNotified: received:node:16d19161-d93e-4743-9eb2-7b416a0d0d01:localhost:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:Node 2ee50bbe-6400-4938-b204-bb8c73a70a25 :: false

2023-10-27 23:00:15 | [Mutex] waiting for: [received:nodes:85b85848-3ceb-4f25-8fe6-dff6b4d32069:localhost]

2023-10-27 23:00:15 | [Mutex] received everything.

2023-10-27 23:00:15 | [Mutex] isItemNotified: received:node:85b85848-3ceb-4f25-8fe6-dff6b4d32069:localhost:node-2ee50bbe-6400-4938-b204-bb8c73a70a25:Node 2ee50bbe-6400-4938-b204-bb8c73a70a25 :: false

publishItemsToNodes 0.053s
2023-10-27 23:00:13 |

2023-10-27 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:13 | ------------------------------------

2023-10-27 23:00:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "entry": "<test>item-50ef0595-5a57-4496-a3f3-30a281113059</test>",
    "item-id": "item-50ef0595-5a57-4496-a3f3-30a281113059"
}

2023-10-27 23:00:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-50ef0595-5a57-4496-a3f3-30a281113059"
}

2023-10-27 23:00:13 | [Mutex] waiting for: [published:item:notifieditem-50ef0595-5a57-4496-a3f3-30a281113059:admin@test-domain.com]

2023-10-27 23:00:13 | [Mutex] received everything.

2023-10-27 23:00:13 | [Mutex] isItemNotified: published:item:notifieditem-50ef0595-5a57-4496-a3f3-30a281113059:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2023-10-27 23:00:13 |

2023-10-27 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:13 | ------------------------------------

2023-10-27 23:00:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "item-id": "item-50ef0595-5a57-4496-a3f3-30a281113059"
}

2023-10-27 23:00:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-50ef0595-5a57-4496-a3f3-30a281113059"
}

2023-10-27 23:00:13 | [Mutex] received everything.

2023-10-27 23:00:13 | [Mutex] isItemNotified: retracted:item:notifieditem-50ef0595-5a57-4496-a3f3-30a281113059:admin@test-domain.com :: true

retrieveItemsFromNodes 0.032s
2023-10-27 23:00:13 |

2023-10-27 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:13 | ------------------------------------

2023-10-27 23:00:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "item-id": "item-50ef0595-5a57-4496-a3f3-30a281113059"
}

2023-10-27 23:00:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "item-id": "item-50ef0595-5a57-4496-a3f3-30a281113059",
    "item": [
        "<item id=\"item-50ef0595-5a57-4496-a3f3-30a281113059\"><test>item-50ef0595-5a57-4496-a3f3-30a281113059</test></item>"
    ]
}

2023-10-27 23:00:13 | [Mutex] notify: [retrieved:item:item-50ef0595-5a57-4496-a3f3-30a281113059:payload-matches:true:localhost]

2023-10-27 23:00:13 | [Mutex] received everything.

2023-10-27 23:00:13 | [Mutex] isItemNotified: retrieved:item:item-50ef0595-5a57-4496-a3f3-30a281113059:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-10-27 23:00:13 |

2023-10-27 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:13 | ------------------------------------

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

2023-10-27 23:00:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
        "node-f60c4306-ca11-4ab5-82c8-db04188e2f8d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-10-27 23:00:13 |

2023-10-27 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:13 | ------------------------------------

2023-10-27 23:00:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2ee50bbe-6400-4938-b204-bb8c73a70a25)"
}

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

subscribeNodes 1.010s
2023-10-27 23:00:12 |

2023-10-27 23:00:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:12 | ------------------------------------

2023-10-27 23:00:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-27 23:00:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-10-27 23:00:13 |

2023-10-27 23:00:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-10-27 23:00:13 | ------------------------------------

2023-10-27 23:00:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2ee50bbe-6400-4938-b204-bb8c73a70a25",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-10-27 23:00:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}