Generated by TestNG with ReportNG at 22:15 PDT on Thursday 23 March 2023
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.639s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2023-03-23 22:30:38 |

2023-03-23 22:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:38 | ------------------------------------

2023-03-23 22:30:38 | [Mutex] waiting for: [configured:node:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35]

2023-03-23 22:30:38 | [Mutex] received everything.

2023-03-23 22:30:38 | [Mutex] isItemNotified: configured:node:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35 :: true

2023-03-23 22:30:39 | [Mutex] waiting for: [received:nodes:5c2fe139-5917-4b8e-aa44-b419eefe8024:localhost]

2023-03-23 22:30:39 | [Mutex] received everything.

2023-03-23 22:30:39 | [Mutex] isItemNotified: received:node:5c2fe139-5917-4b8e-aa44-b419eefe8024:localhost:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:Node 4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3 :: true

2023-03-23 22:30:39 | [Mutex] waiting for: [received:nodes:4be3913c-505a-4cdf-9d40-7831811ab559:localhost]

2023-03-23 22:30:39 | [Mutex] waiting for: [received:nodes:4be3913c-505a-4cdf-9d40-7831811ab559:localhost]

2023-03-23 22:30:39 | [Mutex] waiting for: [received:nodes:4be3913c-505a-4cdf-9d40-7831811ab559:localhost]

2023-03-23 22:30:39 | [Mutex] waiting for: [received:nodes:4be3913c-505a-4cdf-9d40-7831811ab559:localhost]

2023-03-23 22:30:39 | [Mutex] received everything.

2023-03-23 22:30:39 | [Mutex] isItemNotified: received:node:4be3913c-505a-4cdf-9d40-7831811ab559:localhost:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:Node 4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3 :: false

createNodes 1.590s
2023-03-23 22:30:36 |

2023-03-23 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:36 | ------------------------------------

2023-03-23 22:30:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "pubsub#title": "Node 4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3"
}

2023-03-23 22:30:36 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 22:30:37 | [Mutex] waiting for: [received:nodes:518a6a52-456a-47ea-9137-8f5389c49d49:localhost]

2023-03-23 22:30:37 | [Mutex] waiting for: [received:nodes:518a6a52-456a-47ea-9137-8f5389c49d49:localhost]

2023-03-23 22:30:37 | [Mutex] waiting for: [received:nodes:518a6a52-456a-47ea-9137-8f5389c49d49:localhost]

2023-03-23 22:30:37 | [Mutex] waiting for: [received:nodes:518a6a52-456a-47ea-9137-8f5389c49d49:localhost]

2023-03-23 22:30:37 | [Mutex] received everything.

2023-03-23 22:30:37 | [Mutex] isItemNotified: received:node:518a6a52-456a-47ea-9137-8f5389c49d49:localhost:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:Node 4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3 :: true

createSubnodes 1.040s
2023-03-23 22:30:37 |

2023-03-23 22:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:37 | ------------------------------------

2023-03-23 22:30:37 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35",
    "pubsub#title": "Node 0d7bb275-533d-4bb1-a1af-df6b8bdb6d35"
}

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

2023-03-23 22:30:38 | [Mutex] waiting for: [received:nodes:00b00d67-7e4b-47e1-b141-884e1fca21d1:localhost]

2023-03-23 22:30:38 | [Mutex] received everything.

2023-03-23 22:30:38 | [Mutex] isItemNotified: received:node:00b00d67-7e4b-47e1-b141-884e1fca21d1:localhost:node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35:Node 0d7bb275-533d-4bb1-a1af-df6b8bdb6d35 :: true

deleteNodes 1.026s
2023-03-23 22:30:43 |

2023-03-23 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:43 | ------------------------------------

2023-03-23 22:30:43 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35"
}

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

2023-03-23 22:30:44 | [Mutex] waiting for: [received:nodes:4935aa91-504f-4d33-bc5a-24af9fb14f6d:localhost]

2023-03-23 22:30:44 | [Mutex] waiting for: [received:nodes:4935aa91-504f-4d33-bc5a-24af9fb14f6d:localhost]

2023-03-23 22:30:44 | [Mutex] waiting for: [received:nodes:4935aa91-504f-4d33-bc5a-24af9fb14f6d:localhost]

2023-03-23 22:30:44 | [Mutex] received everything.

2023-03-23 22:30:44 | [Mutex] isItemNotified: received:node:4935aa91-504f-4d33-bc5a-24af9fb14f6d:localhost:node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35:Node 0d7bb275-533d-4bb1-a1af-df6b8bdb6d35 :: false

deleteSubnodes 1.027s
2023-03-23 22:30:42 |

2023-03-23 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:42 | ------------------------------------

2023-03-23 22:30:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3"
}

2023-03-23 22:30:42 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-03-23 22:30:43 | [Mutex] waiting for: [received:nodes:3cd829fc-26b4-4d01-b64e-6ea9b1ad9d74:localhost]

2023-03-23 22:30:43 | [Mutex] waiting for: [received:nodes:3cd829fc-26b4-4d01-b64e-6ea9b1ad9d74:localhost]

2023-03-23 22:30:43 | [Mutex] waiting for: [received:nodes:3cd829fc-26b4-4d01-b64e-6ea9b1ad9d74:localhost]

2023-03-23 22:30:43 | [Mutex] received everything.

2023-03-23 22:30:43 | [Mutex] isItemNotified: received:node:3cd829fc-26b4-4d01-b64e-6ea9b1ad9d74:localhost:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:Node 4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3 :: false

2023-03-23 22:30:43 | [Mutex] waiting for: [received:nodes:ebbf7cc1-d7dc-4f33-a133-6bf6b33f637c:localhost]

2023-03-23 22:30:43 | [Mutex] received everything.

2023-03-23 22:30:43 | [Mutex] isItemNotified: received:node:ebbf7cc1-d7dc-4f33-a133-6bf6b33f637c:localhost:node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3:Node 4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3 :: false

publishItemsToNodes 0.046s
2023-03-23 22:30:40 |

2023-03-23 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:40 | ------------------------------------

2023-03-23 22:30:40 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "entry": "<test>item-94fb1870-dcd4-4388-8426-34f22a7b4170</test>",
    "item-id": "item-94fb1870-dcd4-4388-8426-34f22a7b4170"
}

2023-03-23 22:30:40 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-94fb1870-dcd4-4388-8426-34f22a7b4170"
}

2023-03-23 22:30:40 | [Mutex] waiting for: [published:item:notifieditem-94fb1870-dcd4-4388-8426-34f22a7b4170:admin@test-domain.com]

2023-03-23 22:30:40 | [Mutex] received everything.

2023-03-23 22:30:40 | [Mutex] isItemNotified: published:item:notifieditem-94fb1870-dcd4-4388-8426-34f22a7b4170:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-03-23 22:30:41 |

2023-03-23 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:41 | ------------------------------------

2023-03-23 22:30:41 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "item-id": "item-94fb1870-dcd4-4388-8426-34f22a7b4170"
}

2023-03-23 22:30:41 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-94fb1870-dcd4-4388-8426-34f22a7b4170"
}

2023-03-23 22:30:41 | [Mutex] received everything.

2023-03-23 22:30:41 | [Mutex] isItemNotified: retracted:item:notifieditem-94fb1870-dcd4-4388-8426-34f22a7b4170:admin@test-domain.com :: true

retrieveItemsFromNodes 0.056s
2023-03-23 22:30:40 |

2023-03-23 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:40 | ------------------------------------

2023-03-23 22:30:40 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "item-id": "item-94fb1870-dcd4-4388-8426-34f22a7b4170"
}

2023-03-23 22:30:40 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "item-id": "item-94fb1870-dcd4-4388-8426-34f22a7b4170",
    "item": [
        "<item id=\"item-94fb1870-dcd4-4388-8426-34f22a7b4170\"><test>item-94fb1870-dcd4-4388-8426-34f22a7b4170</test></item>"
    ]
}

2023-03-23 22:30:40 | [Mutex] notify: [retrieved:item:item-94fb1870-dcd4-4388-8426-34f22a7b4170:payload-matches:true:localhost]

2023-03-23 22:30:40 | [Mutex] received everything.

2023-03-23 22:30:40 | [Mutex] isItemNotified: retrieved:item:item-94fb1870-dcd4-4388-8426-34f22a7b4170:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-03-23 22:30:40 |

2023-03-23 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:40 | ------------------------------------

2023-03-23 22:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-03-23 22:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
        "node-0d7bb275-533d-4bb1-a1af-df6b8bdb6d35"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2023-03-23 22:30:40 |

2023-03-23 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:40 | ------------------------------------

2023-03-23 22:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3)"
}

2023-03-23 22:30:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2023-03-23 22:30:39 |

2023-03-23 22:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:39 | ------------------------------------

2023-03-23 22:30:39 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-23 22:30:39 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.075s
2023-03-23 22:30:41 |

2023-03-23 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-03-23 22:30:41 | ------------------------------------

2023-03-23 22:30:41 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-4d86cf76-0a57-4a08-ba0e-c0ba7d51bad3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-03-23 22:30:41 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}