Generated by TestNG with ReportNG at 08:01 PDT on Tuesday 12 July 2022
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.737s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.101s
2022-07-12 08:15:13 |

2022-07-12 08:15:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:13 | ------------------------------------

2022-07-12 08:15:13 | [Mutex] waiting for: [configured:node:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:node-45ea93d8-517e-4ad4-8894-34e07bd09b7d]

2022-07-12 08:15:13 | [Mutex] received everything.

2022-07-12 08:15:13 | [Mutex] isItemNotified: configured:node:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:node-45ea93d8-517e-4ad4-8894-34e07bd09b7d :: true

2022-07-12 08:15:14 | [Mutex] waiting for: [received:nodes:6025f490-47ce-495f-9cf1-7b3cc7b8fd7b:localhost]

2022-07-12 08:15:14 | [Mutex] received everything.

2022-07-12 08:15:14 | [Mutex] isItemNotified: received:node:6025f490-47ce-495f-9cf1-7b3cc7b8fd7b:localhost:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:Node ca84cd16-f090-4def-a7e3-e2da808e8d4e :: true

2022-07-12 08:15:14 | [Mutex] waiting for: [received:nodes:4900efb2-f242-451f-bb75-03142d16c77b:localhost]

2022-07-12 08:15:14 | [Mutex] waiting for: [received:nodes:4900efb2-f242-451f-bb75-03142d16c77b:localhost]

2022-07-12 08:15:14 | [Mutex] waiting for: [received:nodes:4900efb2-f242-451f-bb75-03142d16c77b:localhost]

2022-07-12 08:15:14 | [Mutex] received everything.

2022-07-12 08:15:14 | [Mutex] isItemNotified: received:node:4900efb2-f242-451f-bb75-03142d16c77b:localhost:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:Node ca84cd16-f090-4def-a7e3-e2da808e8d4e :: false

createNodes 1.652s
2022-07-12 08:15:11 |

2022-07-12 08:15:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:11 | ------------------------------------

2022-07-12 08:15:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "pubsub#title": "Node ca84cd16-f090-4def-a7e3-e2da808e8d4e"
}

2022-07-12 08:15:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:15:12 | [Mutex] waiting for: [received:nodes:d1d2ca90-f294-4600-997a-9db7e24db7fc:localhost]

2022-07-12 08:15:12 | [Mutex] received everything.

2022-07-12 08:15:12 | [Mutex] isItemNotified: received:node:d1d2ca90-f294-4600-997a-9db7e24db7fc:localhost:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:Node ca84cd16-f090-4def-a7e3-e2da808e8d4e :: true

createSubnodes 1.022s
2022-07-12 08:15:12 |

2022-07-12 08:15:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:12 | ------------------------------------

2022-07-12 08:15:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-45ea93d8-517e-4ad4-8894-34e07bd09b7d",
    "pubsub#title": "Node 45ea93d8-517e-4ad4-8894-34e07bd09b7d"
}

2022-07-12 08:15:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:15:13 | [Mutex] waiting for: [received:nodes:55128fdb-4778-482f-8a29-860f5558b2ca:localhost]

2022-07-12 08:15:13 | [Mutex] waiting for: [received:nodes:55128fdb-4778-482f-8a29-860f5558b2ca:localhost]

2022-07-12 08:15:13 | [Mutex] received everything.

2022-07-12 08:15:13 | [Mutex] isItemNotified: received:node:55128fdb-4778-482f-8a29-860f5558b2ca:localhost:node-45ea93d8-517e-4ad4-8894-34e07bd09b7d:Node 45ea93d8-517e-4ad4-8894-34e07bd09b7d :: true

deleteNodes 1.022s
2022-07-12 08:15:18 |

2022-07-12 08:15:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:18 | ------------------------------------

2022-07-12 08:15:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-45ea93d8-517e-4ad4-8894-34e07bd09b7d"
}

2022-07-12 08:15:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:15:19 | [Mutex] waiting for: [received:nodes:af426468-e5d7-4090-a3f7-2d1e53baff99:localhost]

2022-07-12 08:15:19 | [Mutex] waiting for: [received:nodes:af426468-e5d7-4090-a3f7-2d1e53baff99:localhost]

2022-07-12 08:15:19 | [Mutex] received everything.

2022-07-12 08:15:19 | [Mutex] isItemNotified: received:node:af426468-e5d7-4090-a3f7-2d1e53baff99:localhost:node-45ea93d8-517e-4ad4-8894-34e07bd09b7d:Node 45ea93d8-517e-4ad4-8894-34e07bd09b7d :: false

deleteSubnodes 1.025s
2022-07-12 08:15:17 |

2022-07-12 08:15:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:17 | ------------------------------------

2022-07-12 08:15:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e"
}

2022-07-12 08:15:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-12 08:15:18 | [Mutex] waiting for: [received:nodes:37008c2d-94b6-48fa-847a-86a87db95dc6:localhost]

2022-07-12 08:15:18 | [Mutex] waiting for: [received:nodes:37008c2d-94b6-48fa-847a-86a87db95dc6:localhost]

2022-07-12 08:15:18 | [Mutex] waiting for: [received:nodes:37008c2d-94b6-48fa-847a-86a87db95dc6:localhost]

2022-07-12 08:15:18 | [Mutex] waiting for: [received:nodes:37008c2d-94b6-48fa-847a-86a87db95dc6:localhost]

2022-07-12 08:15:18 | [Mutex] received everything.

2022-07-12 08:15:18 | [Mutex] isItemNotified: received:node:37008c2d-94b6-48fa-847a-86a87db95dc6:localhost:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:Node ca84cd16-f090-4def-a7e3-e2da808e8d4e :: false

2022-07-12 08:15:18 | [Mutex] waiting for: [received:nodes:c35eeed8-fcbc-441f-8bf5-b90202b635d2:localhost]

2022-07-12 08:15:18 | [Mutex] received everything.

2022-07-12 08:15:18 | [Mutex] isItemNotified: received:node:c35eeed8-fcbc-441f-8bf5-b90202b635d2:localhost:node-ca84cd16-f090-4def-a7e3-e2da808e8d4e:Node ca84cd16-f090-4def-a7e3-e2da808e8d4e :: false

publishItemsToNodes 0.054s
2022-07-12 08:15:15 |

2022-07-12 08:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:15 | ------------------------------------

2022-07-12 08:15:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "entry": "<test>item-2c8616cf-33d0-4eb3-935c-17caa164bf62</test>",
    "item-id": "item-2c8616cf-33d0-4eb3-935c-17caa164bf62"
}

2022-07-12 08:15:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c8616cf-33d0-4eb3-935c-17caa164bf62"
}

2022-07-12 08:15:15 | [Mutex] waiting for: [published:item:notifieditem-2c8616cf-33d0-4eb3-935c-17caa164bf62:admin@test-domain.com]

2022-07-12 08:15:15 | [Mutex] received everything.

2022-07-12 08:15:15 | [Mutex] isItemNotified: published:item:notifieditem-2c8616cf-33d0-4eb3-935c-17caa164bf62:admin@test-domain.com :: true

retractItemsFromNodes 0.059s
2022-07-12 08:15:16 |

2022-07-12 08:15:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:16 | ------------------------------------

2022-07-12 08:15:16 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "item-id": "item-2c8616cf-33d0-4eb3-935c-17caa164bf62"
}

2022-07-12 08:15:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2c8616cf-33d0-4eb3-935c-17caa164bf62"
}

2022-07-12 08:15:16 | [Mutex] received everything.

2022-07-12 08:15:16 | [Mutex] isItemNotified: retracted:item:notifieditem-2c8616cf-33d0-4eb3-935c-17caa164bf62:admin@test-domain.com :: true

retrieveItemsFromNodes 0.045s
2022-07-12 08:15:15 |

2022-07-12 08:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:15 | ------------------------------------

2022-07-12 08:15:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "item-id": "item-2c8616cf-33d0-4eb3-935c-17caa164bf62"
}

2022-07-12 08:15:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "item-id": "item-2c8616cf-33d0-4eb3-935c-17caa164bf62",
    "item": [
        "<item id=\"item-2c8616cf-33d0-4eb3-935c-17caa164bf62\"><test>item-2c8616cf-33d0-4eb3-935c-17caa164bf62</test></item>"
    ]
}

2022-07-12 08:15:15 | [Mutex] notify: [retrieved:item:item-2c8616cf-33d0-4eb3-935c-17caa164bf62:payload-matches:true:localhost]

2022-07-12 08:15:15 | [Mutex] received everything.

2022-07-12 08:15:15 | [Mutex] isItemNotified: retrieved:item:item-2c8616cf-33d0-4eb3-935c-17caa164bf62:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-07-12 08:15:15 |

2022-07-12 08:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:15 | ------------------------------------

2022-07-12 08:15:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-12 08:15:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
        "node-45ea93d8-517e-4ad4-8894-34e07bd09b7d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-12 08:15:15 |

2022-07-12 08:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:15 | ------------------------------------

2022-07-12 08:15:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-ca84cd16-f090-4def-a7e3-e2da808e8d4e)"
}

2022-07-12 08:15:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2022-07-12 08:15:14 |

2022-07-12 08:15:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:14 | ------------------------------------

2022-07-12 08:15:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 08:15:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.107s
2022-07-12 08:15:16 |

2022-07-12 08:15:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-12 08:15:16 | ------------------------------------

2022-07-12 08:15:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-ca84cd16-f090-4def-a7e3-e2da808e8d4e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-12 08:15:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}