Generated by TestNG with ReportNG at 22:30 PDT on Thursday 04 May 2023
root@cc7d7fbb25f7 / Java 17.0.6 (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.655s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2023-05-04 22:44:43 |

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

2023-05-04 22:44:43 | ------------------------------------

2023-05-04 22:44:43 | [Mutex] waiting for: [configured:node:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:node-0f8bed75-1b79-4aeb-b7df-80acd0575f09]

2023-05-04 22:44:43 | [Mutex] received everything.

2023-05-04 22:44:43 | [Mutex] isItemNotified: configured:node:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:node-0f8bed75-1b79-4aeb-b7df-80acd0575f09 :: true

2023-05-04 22:44:44 | [Mutex] waiting for: [received:nodes:dcb34216-e802-4389-a5b4-c181190ea5b4:localhost]

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

2023-05-04 22:44:44 | [Mutex] isItemNotified: received:node:dcb34216-e802-4389-a5b4-c181190ea5b4:localhost:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:Node dfca1ad9-69bf-4f97-aa47-795257c9b3bc :: true

2023-05-04 22:44:44 | [Mutex] waiting for: [received:nodes:afff27f0-6819-44f2-b503-360a12b1a776:localhost]

2023-05-04 22:44:44 | [Mutex] waiting for: [received:nodes:afff27f0-6819-44f2-b503-360a12b1a776:localhost]

2023-05-04 22:44:44 | [Mutex] waiting for: [received:nodes:afff27f0-6819-44f2-b503-360a12b1a776:localhost]

2023-05-04 22:44:44 | [Mutex] waiting for: [received:nodes:afff27f0-6819-44f2-b503-360a12b1a776:localhost]

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

2023-05-04 22:44:44 | [Mutex] isItemNotified: received:node:afff27f0-6819-44f2-b503-360a12b1a776:localhost:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:Node dfca1ad9-69bf-4f97-aa47-795257c9b3bc :: false

createNodes 1.597s
2023-05-04 22:44:40 |

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

2023-05-04 22:44:40 | ------------------------------------

2023-05-04 22:44: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-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "pubsub#title": "Node dfca1ad9-69bf-4f97-aa47-795257c9b3bc"
}

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

2023-05-04 22:44:42 | [Mutex] waiting for: [received:nodes:9b7d3d84-c2f7-4d39-b936-f5656c53949a:localhost]

2023-05-04 22:44:42 | [Mutex] waiting for: [received:nodes:9b7d3d84-c2f7-4d39-b936-f5656c53949a:localhost]

2023-05-04 22:44:42 | [Mutex] waiting for: [received:nodes:9b7d3d84-c2f7-4d39-b936-f5656c53949a:localhost]

2023-05-04 22:44:42 | [Mutex] waiting for: [received:nodes:9b7d3d84-c2f7-4d39-b936-f5656c53949a:localhost]

2023-05-04 22:44:42 | [Mutex] received everything.

2023-05-04 22:44:42 | [Mutex] isItemNotified: received:node:9b7d3d84-c2f7-4d39-b936-f5656c53949a:localhost:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:Node dfca1ad9-69bf-4f97-aa47-795257c9b3bc :: true

createSubnodes 1.035s
2023-05-04 22:44:42 |

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

2023-05-04 22:44:42 | ------------------------------------

2023-05-04 22:44: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-0f8bed75-1b79-4aeb-b7df-80acd0575f09",
    "pubsub#title": "Node 0f8bed75-1b79-4aeb-b7df-80acd0575f09"
}

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

2023-05-04 22:44:43 | [Mutex] waiting for: [received:nodes:34b2be50-29c7-454c-8bab-2df79e5f907e:localhost]

2023-05-04 22:44:43 | [Mutex] received everything.

2023-05-04 22:44:43 | [Mutex] isItemNotified: received:node:34b2be50-29c7-454c-8bab-2df79e5f907e:localhost:node-0f8bed75-1b79-4aeb-b7df-80acd0575f09:Node 0f8bed75-1b79-4aeb-b7df-80acd0575f09 :: true

deleteNodes 1.023s
2023-05-04 22:44:47 |

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

2023-05-04 22:44:47 | ------------------------------------

2023-05-04 22:44:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0f8bed75-1b79-4aeb-b7df-80acd0575f09"
}

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

2023-05-04 22:44:48 | [Mutex] waiting for: [received:nodes:b919ecb3-3e21-4953-8039-d0e3035231b3:localhost]

2023-05-04 22:44:48 | [Mutex] waiting for: [received:nodes:b919ecb3-3e21-4953-8039-d0e3035231b3:localhost]

2023-05-04 22:44:48 | [Mutex] waiting for: [received:nodes:b919ecb3-3e21-4953-8039-d0e3035231b3:localhost]

2023-05-04 22:44:48 | [Mutex] received everything.

2023-05-04 22:44:48 | [Mutex] isItemNotified: received:node:b919ecb3-3e21-4953-8039-d0e3035231b3:localhost:node-0f8bed75-1b79-4aeb-b7df-80acd0575f09:Node 0f8bed75-1b79-4aeb-b7df-80acd0575f09 :: false

deleteSubnodes 1.029s
2023-05-04 22:44:46 |

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

2023-05-04 22:44:46 | ------------------------------------

2023-05-04 22:44:46 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc"
}

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

2023-05-04 22:44:47 | [Mutex] waiting for: [received:nodes:e8bbd560-da89-4544-945e-09713803f24e:localhost]

2023-05-04 22:44:47 | [Mutex] waiting for: [received:nodes:e8bbd560-da89-4544-945e-09713803f24e:localhost]

2023-05-04 22:44:47 | [Mutex] waiting for: [received:nodes:e8bbd560-da89-4544-945e-09713803f24e:localhost]

2023-05-04 22:44:47 | [Mutex] waiting for: [received:nodes:e8bbd560-da89-4544-945e-09713803f24e:localhost]

2023-05-04 22:44:47 | [Mutex] received everything.

2023-05-04 22:44:47 | [Mutex] isItemNotified: received:node:e8bbd560-da89-4544-945e-09713803f24e:localhost:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:Node dfca1ad9-69bf-4f97-aa47-795257c9b3bc :: false

2023-05-04 22:44:47 | [Mutex] waiting for: [received:nodes:4a6cb8b0-e6c1-4b5e-87fe-aae4a66ad96e:localhost]

2023-05-04 22:44:47 | [Mutex] received everything.

2023-05-04 22:44:47 | [Mutex] isItemNotified: received:node:4a6cb8b0-e6c1-4b5e-87fe-aae4a66ad96e:localhost:node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc:Node dfca1ad9-69bf-4f97-aa47-795257c9b3bc :: false

publishItemsToNodes 0.044s
2023-05-04 22:44:45 |

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

2023-05-04 22:44:45 | ------------------------------------

2023-05-04 22:44:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "entry": "<test>item-ee39b8e6-5d44-4c0b-920b-06d2400e6996</test>",
    "item-id": "item-ee39b8e6-5d44-4c0b-920b-06d2400e6996"
}

2023-05-04 22:44:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee39b8e6-5d44-4c0b-920b-06d2400e6996"
}

2023-05-04 22:44:45 | [Mutex] waiting for: [published:item:notifieditem-ee39b8e6-5d44-4c0b-920b-06d2400e6996:admin@test-domain.com]

2023-05-04 22:44:45 | [Mutex] received everything.

2023-05-04 22:44:45 | [Mutex] isItemNotified: published:item:notifieditem-ee39b8e6-5d44-4c0b-920b-06d2400e6996:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2023-05-04 22:44:45 |

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

2023-05-04 22:44:45 | ------------------------------------

2023-05-04 22:44:45 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "item-id": "item-ee39b8e6-5d44-4c0b-920b-06d2400e6996"
}

2023-05-04 22:44:45 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ee39b8e6-5d44-4c0b-920b-06d2400e6996"
}

2023-05-04 22:44:45 | [Mutex] received everything.

2023-05-04 22:44:45 | [Mutex] isItemNotified: retracted:item:notifieditem-ee39b8e6-5d44-4c0b-920b-06d2400e6996:admin@test-domain.com :: true

retrieveItemsFromNodes 0.124s
2023-05-04 22:44:45 |

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

2023-05-04 22:44:45 | ------------------------------------

2023-05-04 22:44:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "item-id": "item-ee39b8e6-5d44-4c0b-920b-06d2400e6996"
}

2023-05-04 22:44:45 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "item-id": "item-ee39b8e6-5d44-4c0b-920b-06d2400e6996",
    "item": [
        "<item id=\"item-ee39b8e6-5d44-4c0b-920b-06d2400e6996\"><test>item-ee39b8e6-5d44-4c0b-920b-06d2400e6996</test></item>"
    ]
}

2023-05-04 22:44:45 | [Mutex] notify: [retrieved:item:item-ee39b8e6-5d44-4c0b-920b-06d2400e6996:payload-matches:true:localhost]

2023-05-04 22:44:45 | [Mutex] received everything.

2023-05-04 22:44:45 | [Mutex] isItemNotified: retrieved:item:item-ee39b8e6-5d44-4c0b-920b-06d2400e6996:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-05-04 22:44:45 |

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

2023-05-04 22:44:45 | ------------------------------------

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

2023-05-04 22:44:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
        "test",
        "node-0f8bed75-1b79-4aeb-b7df-80acd0575f09"
    ]
}

retrieveUserSubscriptionsWithRegex 0.054s
2023-05-04 22:44:45 |

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

2023-05-04 22:44:45 | ------------------------------------

2023-05-04 22:44:45 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc)"
}

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

subscribeNodes 1.012s
2023-05-04 22:44:44 |

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

2023-05-04 22:44:44 | ------------------------------------

2023-05-04 22:44:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.079s
2023-05-04 22:44:45 |

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

2023-05-04 22:44:45 | ------------------------------------

2023-05-04 22:44:45 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-dfca1ad9-69bf-4f97-aa47-795257c9b3bc",
    "jids": [
        "admin@test-domain.com"
    ]
}

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