Generated by TestNG with ReportNG at 22:30 PDT on Tuesday 20 June 2023
root@8f5c98824654 / 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.673s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.139s
2023-06-20 22:45:12 |

2023-06-20 22:45:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:12 | ------------------------------------

2023-06-20 22:45:12 | [Mutex] waiting for: [configured:node:node-95d4ba72-9ea1-489d-a942-5578d3da4566:node-3ac1d315-38ff-488a-9966-753d2ff8093d]

2023-06-20 22:45:12 | [Mutex] received everything.

2023-06-20 22:45:12 | [Mutex] isItemNotified: configured:node:node-95d4ba72-9ea1-489d-a942-5578d3da4566:node-3ac1d315-38ff-488a-9966-753d2ff8093d :: true

2023-06-20 22:45:13 | [Mutex] waiting for: [received:nodes:98fb805f-8c85-4b8a-9431-57feb839064f:localhost]

2023-06-20 22:45:13 | [Mutex] received everything.

2023-06-20 22:45:13 | [Mutex] isItemNotified: received:node:98fb805f-8c85-4b8a-9431-57feb839064f:localhost:node-95d4ba72-9ea1-489d-a942-5578d3da4566:Node 95d4ba72-9ea1-489d-a942-5578d3da4566 :: true

2023-06-20 22:45:13 | [Mutex] waiting for: [received:nodes:52a32c0b-0502-44c4-bfca-13f51d2e7bbc:localhost]

2023-06-20 22:45:13 | [Mutex] waiting for: [received:nodes:52a32c0b-0502-44c4-bfca-13f51d2e7bbc:localhost]

2023-06-20 22:45:13 | [Mutex] received everything.

2023-06-20 22:45:13 | [Mutex] isItemNotified: received:node:52a32c0b-0502-44c4-bfca-13f51d2e7bbc:localhost:node-95d4ba72-9ea1-489d-a942-5578d3da4566:Node 95d4ba72-9ea1-489d-a942-5578d3da4566 :: false

createNodes 1.667s
2023-06-20 22:45:10 |

2023-06-20 22:45:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:10 | ------------------------------------

2023-06-20 22:45:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "pubsub#title": "Node 95d4ba72-9ea1-489d-a942-5578d3da4566"
}

2023-06-20 22:45:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:45:11 | [Mutex] waiting for: [received:nodes:2edb232f-106d-4d17-9243-60c79438c527:localhost]

2023-06-20 22:45:11 | [Mutex] waiting for: [received:nodes:2edb232f-106d-4d17-9243-60c79438c527:localhost]

2023-06-20 22:45:11 | [Mutex] waiting for: [received:nodes:2edb232f-106d-4d17-9243-60c79438c527:localhost]

2023-06-20 22:45:11 | [Mutex] waiting for: [received:nodes:2edb232f-106d-4d17-9243-60c79438c527:localhost]

2023-06-20 22:45:11 | [Mutex] received everything.

2023-06-20 22:45:11 | [Mutex] isItemNotified: received:node:2edb232f-106d-4d17-9243-60c79438c527:localhost:node-95d4ba72-9ea1-489d-a942-5578d3da4566:Node 95d4ba72-9ea1-489d-a942-5578d3da4566 :: true

createSubnodes 1.035s
2023-06-20 22:45:11 |

2023-06-20 22:45:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:11 | ------------------------------------

2023-06-20 22:45:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3ac1d315-38ff-488a-9966-753d2ff8093d",
    "pubsub#title": "Node 3ac1d315-38ff-488a-9966-753d2ff8093d"
}

2023-06-20 22:45:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:45:12 | [Mutex] waiting for: [received:nodes:beca9573-fd27-46ee-bdb0-23fc645dcc5e:localhost]

2023-06-20 22:45:12 | [Mutex] waiting for: [received:nodes:beca9573-fd27-46ee-bdb0-23fc645dcc5e:localhost]

2023-06-20 22:45:12 | [Mutex] waiting for: [received:nodes:beca9573-fd27-46ee-bdb0-23fc645dcc5e:localhost]

2023-06-20 22:45:12 | [Mutex] waiting for: [received:nodes:beca9573-fd27-46ee-bdb0-23fc645dcc5e:localhost]

2023-06-20 22:45:12 | [Mutex] received everything.

2023-06-20 22:45:12 | [Mutex] isItemNotified: received:node:beca9573-fd27-46ee-bdb0-23fc645dcc5e:localhost:node-3ac1d315-38ff-488a-9966-753d2ff8093d:Node 3ac1d315-38ff-488a-9966-753d2ff8093d :: true

deleteNodes 1.022s
2023-06-20 22:45:17 |

2023-06-20 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:17 | ------------------------------------

2023-06-20 22:45:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3ac1d315-38ff-488a-9966-753d2ff8093d"
}

2023-06-20 22:45:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:45:18 | [Mutex] waiting for: [received:nodes:50c84011-980d-4a00-a56c-c82bd7e2c450:localhost]

2023-06-20 22:45:18 | [Mutex] waiting for: [received:nodes:50c84011-980d-4a00-a56c-c82bd7e2c450:localhost]

2023-06-20 22:45:18 | [Mutex] waiting for: [received:nodes:50c84011-980d-4a00-a56c-c82bd7e2c450:localhost]

2023-06-20 22:45:18 | [Mutex] received everything.

2023-06-20 22:45:18 | [Mutex] isItemNotified: received:node:50c84011-980d-4a00-a56c-c82bd7e2c450:localhost:node-3ac1d315-38ff-488a-9966-753d2ff8093d:Node 3ac1d315-38ff-488a-9966-753d2ff8093d :: false

deleteSubnodes 1.028s
2023-06-20 22:45:16 |

2023-06-20 22:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:16 | ------------------------------------

2023-06-20 22:45:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566"
}

2023-06-20 22:45:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-06-20 22:45:17 | [Mutex] waiting for: [received:nodes:f01fb67d-3358-4e86-b267-8049158d9620:localhost]

2023-06-20 22:45:17 | [Mutex] waiting for: [received:nodes:f01fb67d-3358-4e86-b267-8049158d9620:localhost]

2023-06-20 22:45:17 | [Mutex] waiting for: [received:nodes:f01fb67d-3358-4e86-b267-8049158d9620:localhost]

2023-06-20 22:45:17 | [Mutex] received everything.

2023-06-20 22:45:17 | [Mutex] isItemNotified: received:node:f01fb67d-3358-4e86-b267-8049158d9620:localhost:node-95d4ba72-9ea1-489d-a942-5578d3da4566:Node 95d4ba72-9ea1-489d-a942-5578d3da4566 :: false

2023-06-20 22:45:17 | [Mutex] waiting for: [received:nodes:c0514685-fa6d-43d3-8105-92449b33ef6f:localhost]

2023-06-20 22:45:17 | [Mutex] received everything.

2023-06-20 22:45:17 | [Mutex] isItemNotified: received:node:c0514685-fa6d-43d3-8105-92449b33ef6f:localhost:node-95d4ba72-9ea1-489d-a942-5578d3da4566:Node 95d4ba72-9ea1-489d-a942-5578d3da4566 :: false

publishItemsToNodes 0.054s
2023-06-20 22:45:14 |

2023-06-20 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:14 | ------------------------------------

2023-06-20 22:45:14 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "entry": "<test>item-2551b4dd-be5e-4520-8d28-84b428f17551</test>",
    "item-id": "item-2551b4dd-be5e-4520-8d28-84b428f17551"
}

2023-06-20 22:45:14 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2551b4dd-be5e-4520-8d28-84b428f17551"
}

2023-06-20 22:45:14 | [Mutex] waiting for: [published:item:notifieditem-2551b4dd-be5e-4520-8d28-84b428f17551:admin@test-domain.com]

2023-06-20 22:45:15 | [Mutex] received everything.

2023-06-20 22:45:15 | [Mutex] isItemNotified: published:item:notifieditem-2551b4dd-be5e-4520-8d28-84b428f17551:admin@test-domain.com :: true

retractItemsFromNodes 0.063s
2023-06-20 22:45:15 |

2023-06-20 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:15 | ------------------------------------

2023-06-20 22:45:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "item-id": "item-2551b4dd-be5e-4520-8d28-84b428f17551"
}

2023-06-20 22:45:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2551b4dd-be5e-4520-8d28-84b428f17551"
}

2023-06-20 22:45:15 | [Mutex] received everything.

2023-06-20 22:45:15 | [Mutex] isItemNotified: retracted:item:notifieditem-2551b4dd-be5e-4520-8d28-84b428f17551:admin@test-domain.com :: true

retrieveItemsFromNodes 0.042s
2023-06-20 22:45:15 |

2023-06-20 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:15 | ------------------------------------

2023-06-20 22:45:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "item-id": "item-2551b4dd-be5e-4520-8d28-84b428f17551"
}

2023-06-20 22:45:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "item-id": "item-2551b4dd-be5e-4520-8d28-84b428f17551",
    "item": [
        "<item id=\"item-2551b4dd-be5e-4520-8d28-84b428f17551\"><test>item-2551b4dd-be5e-4520-8d28-84b428f17551</test></item>"
    ]
}

2023-06-20 22:45:15 | [Mutex] notify: [retrieved:item:item-2551b4dd-be5e-4520-8d28-84b428f17551:payload-matches:true:localhost]

2023-06-20 22:45:15 | [Mutex] received everything.

2023-06-20 22:45:15 | [Mutex] isItemNotified: retrieved:item:item-2551b4dd-be5e-4520-8d28-84b428f17551:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2023-06-20 22:45:15 |

2023-06-20 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:15 | ------------------------------------

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

2023-06-20 22:45:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-3ac1d315-38ff-488a-9966-753d2ff8093d",
        "node-95d4ba72-9ea1-489d-a942-5578d3da4566"
    ]
}

retrieveUserSubscriptionsWithRegex 0.050s
2023-06-20 22:45:15 |

2023-06-20 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:15 | ------------------------------------

2023-06-20 22:45:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-95d4ba72-9ea1-489d-a942-5578d3da4566)"
}

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

subscribeNodes 1.016s
2023-06-20 22:45:13 |

2023-06-20 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:13 | ------------------------------------

2023-06-20 22:45:13 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-06-20 22:45:13 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.063s
2023-06-20 22:45:15 |

2023-06-20 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-06-20 22:45:15 | ------------------------------------

2023-06-20 22:45:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-95d4ba72-9ea1-489d-a942-5578d3da4566",
    "jids": [
        "admin@test-domain.com"
    ]
}

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