Generated by TestNG with ReportNG at 23:02 PST on Sunday 05 November 2023
root@8dfa9d99ff97 / Java 17.0.8 (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.687s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2023-11-05 23:17:27 |

2023-11-05 23:17:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:27 | ------------------------------------

2023-11-05 23:17:27 | [Mutex] waiting for: [configured:node:node-25932548-8e7c-428d-b308-2c6442456455:node-612a93a9-253c-4588-b2d8-aa78a0ed751c]

2023-11-05 23:17:27 | [Mutex] received everything.

2023-11-05 23:17:27 | [Mutex] isItemNotified: configured:node:node-25932548-8e7c-428d-b308-2c6442456455:node-612a93a9-253c-4588-b2d8-aa78a0ed751c :: true

2023-11-05 23:17:28 | [Mutex] waiting for: [received:nodes:d54b8bb0-cfc8-4f3b-ac37-6d5854cf7401:localhost]

2023-11-05 23:17:28 | [Mutex] received everything.

2023-11-05 23:17:28 | [Mutex] isItemNotified: received:node:d54b8bb0-cfc8-4f3b-ac37-6d5854cf7401:localhost:node-25932548-8e7c-428d-b308-2c6442456455:Node 25932548-8e7c-428d-b308-2c6442456455 :: true

2023-11-05 23:17:28 | [Mutex] waiting for: [received:nodes:33571c20-9bc2-4e42-839e-f518e47bf85b:localhost]

2023-11-05 23:17:28 | [Mutex] waiting for: [received:nodes:33571c20-9bc2-4e42-839e-f518e47bf85b:localhost]

2023-11-05 23:17:28 | [Mutex] waiting for: [received:nodes:33571c20-9bc2-4e42-839e-f518e47bf85b:localhost]

2023-11-05 23:17:28 | [Mutex] waiting for: [received:nodes:33571c20-9bc2-4e42-839e-f518e47bf85b:localhost]

2023-11-05 23:17:28 | [Mutex] received everything.

2023-11-05 23:17:28 | [Mutex] isItemNotified: received:node:33571c20-9bc2-4e42-839e-f518e47bf85b:localhost:node-25932548-8e7c-428d-b308-2c6442456455:Node 25932548-8e7c-428d-b308-2c6442456455 :: false

createNodes 1.692s
2023-11-05 23:17:24 |

2023-11-05 23:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:24 | ------------------------------------

2023-11-05 23:17:25 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "pubsub#title": "Node 25932548-8e7c-428d-b308-2c6442456455"
}

2023-11-05 23:17:25 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 23:17:26 | [Mutex] waiting for: [received:nodes:5734d3bd-b216-4fec-9242-435a72579143:localhost]

2023-11-05 23:17:26 | [Mutex] waiting for: [received:nodes:5734d3bd-b216-4fec-9242-435a72579143:localhost]

2023-11-05 23:17:26 | [Mutex] waiting for: [received:nodes:5734d3bd-b216-4fec-9242-435a72579143:localhost]

2023-11-05 23:17:26 | [Mutex] waiting for: [received:nodes:5734d3bd-b216-4fec-9242-435a72579143:localhost]

2023-11-05 23:17:26 | [Mutex] received everything.

2023-11-05 23:17:26 | [Mutex] isItemNotified: received:node:5734d3bd-b216-4fec-9242-435a72579143:localhost:node-25932548-8e7c-428d-b308-2c6442456455:Node 25932548-8e7c-428d-b308-2c6442456455 :: true

createSubnodes 1.021s
2023-11-05 23:17:26 |

2023-11-05 23:17:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:26 | ------------------------------------

2023-11-05 23:17:26 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-612a93a9-253c-4588-b2d8-aa78a0ed751c",
    "pubsub#title": "Node 612a93a9-253c-4588-b2d8-aa78a0ed751c"
}

2023-11-05 23:17:26 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 23:17:27 | [Mutex] waiting for: [received:nodes:63f35918-6939-44f3-beb0-45efa9719f76:localhost]

2023-11-05 23:17:27 | [Mutex] waiting for: [received:nodes:63f35918-6939-44f3-beb0-45efa9719f76:localhost]

2023-11-05 23:17:27 | [Mutex] waiting for: [received:nodes:63f35918-6939-44f3-beb0-45efa9719f76:localhost]

2023-11-05 23:17:27 | [Mutex] waiting for: [received:nodes:63f35918-6939-44f3-beb0-45efa9719f76:localhost]

2023-11-05 23:17:27 | [Mutex] waiting for: [received:nodes:63f35918-6939-44f3-beb0-45efa9719f76:localhost]

2023-11-05 23:17:27 | [Mutex] received everything.

2023-11-05 23:17:27 | [Mutex] isItemNotified: received:node:63f35918-6939-44f3-beb0-45efa9719f76:localhost:node-612a93a9-253c-4588-b2d8-aa78a0ed751c:Node 612a93a9-253c-4588-b2d8-aa78a0ed751c :: true

deleteNodes 1.017s
2023-11-05 23:17:31 |

2023-11-05 23:17:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:31 | ------------------------------------

2023-11-05 23:17:31 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-612a93a9-253c-4588-b2d8-aa78a0ed751c"
}

2023-11-05 23:17:31 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-11-05 23:17:32 | [Mutex] waiting for: [received:nodes:074d770f-e112-45a8-a159-db2eb727df90:localhost]

2023-11-05 23:17:32 | [Mutex] waiting for: [received:nodes:074d770f-e112-45a8-a159-db2eb727df90:localhost]

2023-11-05 23:17:32 | [Mutex] waiting for: [received:nodes:074d770f-e112-45a8-a159-db2eb727df90:localhost]

2023-11-05 23:17:32 | [Mutex] received everything.

2023-11-05 23:17:32 | [Mutex] isItemNotified: received:node:074d770f-e112-45a8-a159-db2eb727df90:localhost:node-612a93a9-253c-4588-b2d8-aa78a0ed751c:Node 612a93a9-253c-4588-b2d8-aa78a0ed751c :: false

deleteSubnodes 1.024s
2023-11-05 23:17:30 |

2023-11-05 23:17:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:30 | ------------------------------------

2023-11-05 23:17:30 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-25932548-8e7c-428d-b308-2c6442456455"
}

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

2023-11-05 23:17:31 | [Mutex] waiting for: [received:nodes:9467af76-571f-45e4-ad68-0d7036ab3c3b:localhost]

2023-11-05 23:17:31 | [Mutex] waiting for: [received:nodes:9467af76-571f-45e4-ad68-0d7036ab3c3b:localhost]

2023-11-05 23:17:31 | [Mutex] waiting for: [received:nodes:9467af76-571f-45e4-ad68-0d7036ab3c3b:localhost]

2023-11-05 23:17:31 | [Mutex] waiting for: [received:nodes:9467af76-571f-45e4-ad68-0d7036ab3c3b:localhost]

2023-11-05 23:17:31 | [Mutex] received everything.

2023-11-05 23:17:31 | [Mutex] isItemNotified: received:node:9467af76-571f-45e4-ad68-0d7036ab3c3b:localhost:node-25932548-8e7c-428d-b308-2c6442456455:Node 25932548-8e7c-428d-b308-2c6442456455 :: false

2023-11-05 23:17:31 | [Mutex] waiting for: [received:nodes:58d047c1-fccc-423a-bb20-861e6dbd61fa:localhost]

2023-11-05 23:17:31 | [Mutex] received everything.

2023-11-05 23:17:31 | [Mutex] isItemNotified: received:node:58d047c1-fccc-423a-bb20-861e6dbd61fa:localhost:node-25932548-8e7c-428d-b308-2c6442456455:Node 25932548-8e7c-428d-b308-2c6442456455 :: false

publishItemsToNodes 0.119s
2023-11-05 23:17:29 |

2023-11-05 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:29 | ------------------------------------

2023-11-05 23:17:29 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "entry": "<test>item-fb637744-f5db-4e78-bc04-ace93bdb210b</test>",
    "item-id": "item-fb637744-f5db-4e78-bc04-ace93bdb210b"
}

2023-11-05 23:17:29 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb637744-f5db-4e78-bc04-ace93bdb210b"
}

2023-11-05 23:17:29 | [Mutex] waiting for: [published:item:notifieditem-fb637744-f5db-4e78-bc04-ace93bdb210b:admin@test-domain.com]

2023-11-05 23:17:29 | [Mutex] received everything.

2023-11-05 23:17:29 | [Mutex] isItemNotified: published:item:notifieditem-fb637744-f5db-4e78-bc04-ace93bdb210b:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2023-11-05 23:17:29 |

2023-11-05 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:29 | ------------------------------------

2023-11-05 23:17:29 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "item-id": "item-fb637744-f5db-4e78-bc04-ace93bdb210b"
}

2023-11-05 23:17:29 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-fb637744-f5db-4e78-bc04-ace93bdb210b"
}

2023-11-05 23:17:29 | [Mutex] waiting for: [retracted:item:notifieditem-fb637744-f5db-4e78-bc04-ace93bdb210b:admin@test-domain.com]

2023-11-05 23:17:29 | [Mutex] received everything.

2023-11-05 23:17:29 | [Mutex] isItemNotified: retracted:item:notifieditem-fb637744-f5db-4e78-bc04-ace93bdb210b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.020s
2023-11-05 23:17:29 |

2023-11-05 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:29 | ------------------------------------

2023-11-05 23:17:29 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "item-id": "item-fb637744-f5db-4e78-bc04-ace93bdb210b"
}

2023-11-05 23:17:29 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "item-id": "item-fb637744-f5db-4e78-bc04-ace93bdb210b",
    "item": [
        "<item id=\"item-fb637744-f5db-4e78-bc04-ace93bdb210b\"><test>item-fb637744-f5db-4e78-bc04-ace93bdb210b</test></item>"
    ]
}

2023-11-05 23:17:29 | [Mutex] notify: [retrieved:item:item-fb637744-f5db-4e78-bc04-ace93bdb210b:payload-matches:true:localhost]

2023-11-05 23:17:29 | [Mutex] received everything.

2023-11-05 23:17:29 | [Mutex] isItemNotified: retrieved:item:item-fb637744-f5db-4e78-bc04-ace93bdb210b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2023-11-05 23:17:29 |

2023-11-05 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:29 | ------------------------------------

2023-11-05 23:17:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-11-05 23:17:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-612a93a9-253c-4588-b2d8-aa78a0ed751c",
        "node-25932548-8e7c-428d-b308-2c6442456455"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2023-11-05 23:17:29 |

2023-11-05 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:29 | ------------------------------------

2023-11-05 23:17:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-25932548-8e7c-428d-b308-2c6442456455)"
}

2023-11-05 23:17:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.008s
2023-11-05 23:17:28 |

2023-11-05 23:17:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:28 | ------------------------------------

2023-11-05 23:17:28 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-05 23:17:28 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.064s
2023-11-05 23:17:29 |

2023-11-05 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-11-05 23:17:29 | ------------------------------------

2023-11-05 23:17:29 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-25932548-8e7c-428d-b308-2c6442456455",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-11-05 23:17:29 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}