Generated by TestNG with ReportNG at 22:48 PDT on Monday 26 September 2022
root@7c41cec37518 / 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.798s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-09-26 23:03:39 |

2022-09-26 23:03:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:39 | ------------------------------------

2022-09-26 23:03:39 | [Mutex] waiting for: [configured:node:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:node-d3f90d71-c128-4db7-874b-346c81430531]

2022-09-26 23:03:39 | [Mutex] received everything.

2022-09-26 23:03:39 | [Mutex] isItemNotified: configured:node:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:node-d3f90d71-c128-4db7-874b-346c81430531 :: true

2022-09-26 23:03:40 | [Mutex] waiting for: [received:nodes:8b3e227e-d1b0-4347-9f57-71c57a18f0c8:localhost]

2022-09-26 23:03:40 | [Mutex] received everything.

2022-09-26 23:03:40 | [Mutex] isItemNotified: received:node:8b3e227e-d1b0-4347-9f57-71c57a18f0c8:localhost:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:Node 4b85ded3-ca30-4f75-b0a8-1fe36f91ad71 :: true

2022-09-26 23:03:40 | [Mutex] waiting for: [received:nodes:43e2bdd8-1b05-499e-b08a-40264f755760:localhost]

2022-09-26 23:03:40 | [Mutex] waiting for: [received:nodes:43e2bdd8-1b05-499e-b08a-40264f755760:localhost]

2022-09-26 23:03:40 | [Mutex] received everything.

2022-09-26 23:03:40 | [Mutex] isItemNotified: received:node:43e2bdd8-1b05-499e-b08a-40264f755760:localhost:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:Node 4b85ded3-ca30-4f75-b0a8-1fe36f91ad71 :: false

createNodes 1.727s
2022-09-26 23:03:36 |

2022-09-26 23:03:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:36 | ------------------------------------

2022-09-26 23:03:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "pubsub#title": "Node 4b85ded3-ca30-4f75-b0a8-1fe36f91ad71"
}

2022-09-26 23:03:37 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:03:38 | [Mutex] waiting for: [received:nodes:d8b833db-6017-4c9c-a32f-ba6713870b77:localhost]

2022-09-26 23:03:38 | [Mutex] received everything.

2022-09-26 23:03:38 | [Mutex] isItemNotified: received:node:d8b833db-6017-4c9c-a32f-ba6713870b77:localhost:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:Node 4b85ded3-ca30-4f75-b0a8-1fe36f91ad71 :: true

createSubnodes 1.023s
2022-09-26 23:03:38 |

2022-09-26 23:03:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:38 | ------------------------------------

2022-09-26 23:03:38 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-d3f90d71-c128-4db7-874b-346c81430531",
    "pubsub#title": "Node d3f90d71-c128-4db7-874b-346c81430531"
}

2022-09-26 23:03:38 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:03:39 | [Mutex] waiting for: [received:nodes:e0fdfc36-2905-4d2d-9ff9-b0948767bc15:localhost]

2022-09-26 23:03:39 | [Mutex] received everything.

2022-09-26 23:03:39 | [Mutex] isItemNotified: received:node:e0fdfc36-2905-4d2d-9ff9-b0948767bc15:localhost:node-d3f90d71-c128-4db7-874b-346c81430531:Node d3f90d71-c128-4db7-874b-346c81430531 :: true

deleteNodes 1.016s
2022-09-26 23:03:44 |

2022-09-26 23:03:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:44 | ------------------------------------

2022-09-26 23:03:44 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d3f90d71-c128-4db7-874b-346c81430531"
}

2022-09-26 23:03:44 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:03:45 | [Mutex] waiting for: [received:nodes:45026892-7b11-4b7e-b9dc-ca526efea99b:localhost]

2022-09-26 23:03:45 | [Mutex] received everything.

2022-09-26 23:03:45 | [Mutex] isItemNotified: received:node:45026892-7b11-4b7e-b9dc-ca526efea99b:localhost:node-d3f90d71-c128-4db7-874b-346c81430531:Node d3f90d71-c128-4db7-874b-346c81430531 :: false

deleteSubnodes 1.025s
2022-09-26 23:03:43 |

2022-09-26 23:03:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:43 | ------------------------------------

2022-09-26 23:03:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71"
}

2022-09-26 23:03:43 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-09-26 23:03:44 | [Mutex] waiting for: [received:nodes:e4afded0-4576-4430-b41f-8e81108cfaca:localhost]

2022-09-26 23:03:44 | [Mutex] received everything.

2022-09-26 23:03:44 | [Mutex] isItemNotified: received:node:e4afded0-4576-4430-b41f-8e81108cfaca:localhost:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:Node 4b85ded3-ca30-4f75-b0a8-1fe36f91ad71 :: false

2022-09-26 23:03:44 | [Mutex] waiting for: [received:nodes:73929e7c-04a9-472e-92e8-1eeabed29d7a:localhost]

2022-09-26 23:03:44 | [Mutex] received everything.

2022-09-26 23:03:44 | [Mutex] isItemNotified: received:node:73929e7c-04a9-472e-92e8-1eeabed29d7a:localhost:node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71:Node 4b85ded3-ca30-4f75-b0a8-1fe36f91ad71 :: false

publishItemsToNodes 0.083s
2022-09-26 23:03:41 |

2022-09-26 23:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:41 | ------------------------------------

2022-09-26 23:03:41 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "entry": "<test>item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14</test>",
    "item-id": "item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14"
}

2022-09-26 23:03:41 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14"
}

2022-09-26 23:03:41 | [Mutex] waiting for: [published:item:notifieditem-d8a29299-4c8b-4eb0-8f86-1b0c71041b14:admin@test-domain.com]

2022-09-26 23:03:41 | [Mutex] received everything.

2022-09-26 23:03:41 | [Mutex] isItemNotified: published:item:notifieditem-d8a29299-4c8b-4eb0-8f86-1b0c71041b14:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-09-26 23:03:42 |

2022-09-26 23:03:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:42 | ------------------------------------

2022-09-26 23:03:42 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "item-id": "item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14"
}

2022-09-26 23:03:42 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14"
}

2022-09-26 23:03:42 | [Mutex] received everything.

2022-09-26 23:03:42 | [Mutex] isItemNotified: retracted:item:notifieditem-d8a29299-4c8b-4eb0-8f86-1b0c71041b14:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-09-26 23:03:41 |

2022-09-26 23:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:41 | ------------------------------------

2022-09-26 23:03:41 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "item-id": "item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14"
}

2022-09-26 23:03:41 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "item-id": "item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14",
    "item": [
        "<item id=\"item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14\"><test>item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14</test></item>"
    ]
}

2022-09-26 23:03:41 | [Mutex] notify: [retrieved:item:item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14:payload-matches:true:localhost]

2022-09-26 23:03:41 | [Mutex] received everything.

2022-09-26 23:03:41 | [Mutex] isItemNotified: retrieved:item:item-d8a29299-4c8b-4eb0-8f86-1b0c71041b14:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-09-26 23:03:41 |

2022-09-26 23:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:41 | ------------------------------------

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

2022-09-26 23:03:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
        "node-d3f90d71-c128-4db7-874b-346c81430531"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-09-26 23:03:41 |

2022-09-26 23:03:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:41 | ------------------------------------

2022-09-26 23:03:41 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71)"
}

2022-09-26 23:03:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-09-26 23:03:40 |

2022-09-26 23:03:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:40 | ------------------------------------

2022-09-26 23:03:40 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.058s
2022-09-26 23:03:42 |

2022-09-26 23:03:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-09-26 23:03:42 | ------------------------------------

2022-09-26 23:03:42 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4b85ded3-ca30-4f75-b0a8-1fe36f91ad71",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-09-26 23:03:42 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}