Generated by TestNG with ReportNG at 22:46 PDT on Wednesday 27 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.601s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2022-07-27 23:01:56 |

2022-07-27 23:01:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:56 | ------------------------------------

2022-07-27 23:01:56 | [Mutex] waiting for: [configured:node:node-e641db2a-c07f-4081-8e07-5f1f256a197d:node-280bcb5c-f4c0-471d-996e-eb7ba645663b]

2022-07-27 23:01:56 | [Mutex] received everything.

2022-07-27 23:01:56 | [Mutex] isItemNotified: configured:node:node-e641db2a-c07f-4081-8e07-5f1f256a197d:node-280bcb5c-f4c0-471d-996e-eb7ba645663b :: true

2022-07-27 23:01:57 | [Mutex] waiting for: [received:nodes:4dcc341c-0741-44a5-ad17-083e695b6eb8:localhost]

2022-07-27 23:01:57 | [Mutex] received everything.

2022-07-27 23:01:57 | [Mutex] isItemNotified: received:node:4dcc341c-0741-44a5-ad17-083e695b6eb8:localhost:node-e641db2a-c07f-4081-8e07-5f1f256a197d:Node e641db2a-c07f-4081-8e07-5f1f256a197d :: true

2022-07-27 23:01:57 | [Mutex] waiting for: [received:nodes:8041fb5c-08f0-4f6e-92a1-13537713a3d3:localhost]

2022-07-27 23:01:57 | [Mutex] received everything.

2022-07-27 23:01:57 | [Mutex] isItemNotified: received:node:8041fb5c-08f0-4f6e-92a1-13537713a3d3:localhost:node-e641db2a-c07f-4081-8e07-5f1f256a197d:Node e641db2a-c07f-4081-8e07-5f1f256a197d :: false

createNodes 1.568s
2022-07-27 23:01:53 |

2022-07-27 23:01:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:53 | ------------------------------------

2022-07-27 23:01:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "pubsub#title": "Node e641db2a-c07f-4081-8e07-5f1f256a197d"
}

2022-07-27 23:01:54 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 23:01:55 | [Mutex] waiting for: [received:nodes:03e16e8d-ab24-4463-902c-4a4a6c44545b:localhost]

2022-07-27 23:01:55 | [Mutex] received everything.

2022-07-27 23:01:55 | [Mutex] isItemNotified: received:node:03e16e8d-ab24-4463-902c-4a4a6c44545b:localhost:node-e641db2a-c07f-4081-8e07-5f1f256a197d:Node e641db2a-c07f-4081-8e07-5f1f256a197d :: true

createSubnodes 1.020s
2022-07-27 23:01:55 |

2022-07-27 23:01:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:55 | ------------------------------------

2022-07-27 23:01:55 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-280bcb5c-f4c0-471d-996e-eb7ba645663b",
    "pubsub#title": "Node 280bcb5c-f4c0-471d-996e-eb7ba645663b"
}

2022-07-27 23:01:55 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 23:01:56 | [Mutex] waiting for: [received:nodes:079499b4-47d4-4146-94a1-d3e5b59db431:localhost]

2022-07-27 23:01:56 | [Mutex] received everything.

2022-07-27 23:01:56 | [Mutex] isItemNotified: received:node:079499b4-47d4-4146-94a1-d3e5b59db431:localhost:node-280bcb5c-f4c0-471d-996e-eb7ba645663b:Node 280bcb5c-f4c0-471d-996e-eb7ba645663b :: true

deleteNodes 1.027s
2022-07-27 23:02:00 |

2022-07-27 23:02:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:02:00 | ------------------------------------

2022-07-27 23:02:00 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-280bcb5c-f4c0-471d-996e-eb7ba645663b"
}

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

2022-07-27 23:02:01 | [Mutex] waiting for: [received:nodes:b8315585-60e4-4b02-aca7-bfb34f29202e:localhost]

2022-07-27 23:02:01 | [Mutex] received everything.

2022-07-27 23:02:01 | [Mutex] isItemNotified: received:node:b8315585-60e4-4b02-aca7-bfb34f29202e:localhost:node-280bcb5c-f4c0-471d-996e-eb7ba645663b:Node 280bcb5c-f4c0-471d-996e-eb7ba645663b :: false

deleteSubnodes 1.027s
2022-07-27 23:01:59 |

2022-07-27 23:01:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:59 | ------------------------------------

2022-07-27 23:01:59 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d"
}

2022-07-27 23:01:59 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-27 23:02:00 | [Mutex] waiting for: [received:nodes:b553f623-f8a7-4928-b5c0-8d6475d14fd2:localhost]

2022-07-27 23:02:00 | [Mutex] waiting for: [received:nodes:b553f623-f8a7-4928-b5c0-8d6475d14fd2:localhost]

2022-07-27 23:02:00 | [Mutex] received everything.

2022-07-27 23:02:00 | [Mutex] isItemNotified: received:node:b553f623-f8a7-4928-b5c0-8d6475d14fd2:localhost:node-e641db2a-c07f-4081-8e07-5f1f256a197d:Node e641db2a-c07f-4081-8e07-5f1f256a197d :: false

2022-07-27 23:02:00 | [Mutex] waiting for: [received:nodes:896e0c5c-25e4-4caa-a13d-d682164e7660:localhost]

2022-07-27 23:02:00 | [Mutex] received everything.

2022-07-27 23:02:00 | [Mutex] isItemNotified: received:node:896e0c5c-25e4-4caa-a13d-d682164e7660:localhost:node-e641db2a-c07f-4081-8e07-5f1f256a197d:Node e641db2a-c07f-4081-8e07-5f1f256a197d :: false

publishItemsToNodes 0.046s
2022-07-27 23:01:58 |

2022-07-27 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:58 | ------------------------------------

2022-07-27 23:01:58 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "entry": "<test>item-dd1191e6-e937-4d8a-a91d-14c884e8b94a</test>",
    "item-id": "item-dd1191e6-e937-4d8a-a91d-14c884e8b94a"
}

2022-07-27 23:01:58 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dd1191e6-e937-4d8a-a91d-14c884e8b94a"
}

2022-07-27 23:01:58 | [Mutex] waiting for: [published:item:notifieditem-dd1191e6-e937-4d8a-a91d-14c884e8b94a:admin@test-domain.com]

2022-07-27 23:01:58 | [Mutex] received everything.

2022-07-27 23:01:58 | [Mutex] isItemNotified: published:item:notifieditem-dd1191e6-e937-4d8a-a91d-14c884e8b94a:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2022-07-27 23:01:58 |

2022-07-27 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:58 | ------------------------------------

2022-07-27 23:01:58 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "item-id": "item-dd1191e6-e937-4d8a-a91d-14c884e8b94a"
}

2022-07-27 23:01:58 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-dd1191e6-e937-4d8a-a91d-14c884e8b94a"
}

2022-07-27 23:01:58 | [Mutex] received everything.

2022-07-27 23:01:58 | [Mutex] isItemNotified: retracted:item:notifieditem-dd1191e6-e937-4d8a-a91d-14c884e8b94a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-07-27 23:01:58 |

2022-07-27 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:58 | ------------------------------------

2022-07-27 23:01:58 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "item-id": "item-dd1191e6-e937-4d8a-a91d-14c884e8b94a"
}

2022-07-27 23:01:58 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "item-id": "item-dd1191e6-e937-4d8a-a91d-14c884e8b94a",
    "item": [
        "<item id=\"item-dd1191e6-e937-4d8a-a91d-14c884e8b94a\"><test>item-dd1191e6-e937-4d8a-a91d-14c884e8b94a</test></item>"
    ]
}

2022-07-27 23:01:58 | [Mutex] notify: [retrieved:item:item-dd1191e6-e937-4d8a-a91d-14c884e8b94a:payload-matches:true:localhost]

2022-07-27 23:01:58 | [Mutex] received everything.

2022-07-27 23:01:58 | [Mutex] isItemNotified: retrieved:item:item-dd1191e6-e937-4d8a-a91d-14c884e8b94a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-07-27 23:01:58 |

2022-07-27 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:58 | ------------------------------------

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

2022-07-27 23:01:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-280bcb5c-f4c0-471d-996e-eb7ba645663b",
        "node-e641db2a-c07f-4081-8e07-5f1f256a197d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-27 23:01:58 |

2022-07-27 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:58 | ------------------------------------

2022-07-27 23:01:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-e641db2a-c07f-4081-8e07-5f1f256a197d)"
}

2022-07-27 23:01:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-07-27 23:01:57 |

2022-07-27 23:01:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:57 | ------------------------------------

2022-07-27 23:01:57 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-27 23:01:57 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.083s
2022-07-27 23:01:58 |

2022-07-27 23:01:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-27 23:01:58 | ------------------------------------

2022-07-27 23:01:58 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-e641db2a-c07f-4081-8e07-5f1f256a197d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-27 23:01:58 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}