Generated by TestNG with ReportNG at 22:18 PDT on Thursday 30 June 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.629s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.081s
2022-06-30 22:33:20 |

2022-06-30 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:20 | ------------------------------------

2022-06-30 22:33:20 | [Mutex] waiting for: [configured:node:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:node-3c3537fb-ba11-40a2-9a0b-7dce97914e73]

2022-06-30 22:33:20 | [Mutex] received everything.

2022-06-30 22:33:20 | [Mutex] isItemNotified: configured:node:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:node-3c3537fb-ba11-40a2-9a0b-7dce97914e73 :: true

2022-06-30 22:33:21 | [Mutex] waiting for: [received:nodes:9de67922-21f1-4a5e-97a6-80cd0859994a:localhost]

2022-06-30 22:33:21 | [Mutex] received everything.

2022-06-30 22:33:21 | [Mutex] isItemNotified: received:node:9de67922-21f1-4a5e-97a6-80cd0859994a:localhost:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:Node f318eebe-56eb-4915-8e18-78b4ecc8b47f :: true

2022-06-30 22:33:21 | [Mutex] waiting for: [received:nodes:28da4b63-a769-43bd-91e6-465bd4e5a3b4:localhost]

2022-06-30 22:33:21 | [Mutex] waiting for: [received:nodes:28da4b63-a769-43bd-91e6-465bd4e5a3b4:localhost]

2022-06-30 22:33:21 | [Mutex] received everything.

2022-06-30 22:33:21 | [Mutex] isItemNotified: received:node:28da4b63-a769-43bd-91e6-465bd4e5a3b4:localhost:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:Node f318eebe-56eb-4915-8e18-78b4ecc8b47f :: false

createNodes 1.538s
2022-06-30 22:33:17 |

2022-06-30 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:17 | ------------------------------------

2022-06-30 22:33:18 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "pubsub#title": "Node f318eebe-56eb-4915-8e18-78b4ecc8b47f"
}

2022-06-30 22:33:18 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 22:33:19 | [Mutex] waiting for: [received:nodes:5cb8b3b1-f061-4ffd-bd95-fc8a50abf827:localhost]

2022-06-30 22:33:19 | [Mutex] received everything.

2022-06-30 22:33:19 | [Mutex] isItemNotified: received:node:5cb8b3b1-f061-4ffd-bd95-fc8a50abf827:localhost:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:Node f318eebe-56eb-4915-8e18-78b4ecc8b47f :: true

createSubnodes 1.022s
2022-06-30 22:33:19 |

2022-06-30 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:19 | ------------------------------------

2022-06-30 22:33:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3c3537fb-ba11-40a2-9a0b-7dce97914e73",
    "pubsub#title": "Node 3c3537fb-ba11-40a2-9a0b-7dce97914e73"
}

2022-06-30 22:33:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 22:33:20 | [Mutex] waiting for: [received:nodes:a2db1e2b-6f38-459b-99f2-d4c16c70c017:localhost]

2022-06-30 22:33:20 | [Mutex] received everything.

2022-06-30 22:33:20 | [Mutex] isItemNotified: received:node:a2db1e2b-6f38-459b-99f2-d4c16c70c017:localhost:node-3c3537fb-ba11-40a2-9a0b-7dce97914e73:Node 3c3537fb-ba11-40a2-9a0b-7dce97914e73 :: true

deleteNodes 1.023s
2022-06-30 22:33:24 |

2022-06-30 22:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:24 | ------------------------------------

2022-06-30 22:33:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3c3537fb-ba11-40a2-9a0b-7dce97914e73"
}

2022-06-30 22:33:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 22:33:25 | [Mutex] waiting for: [received:nodes:c76f2016-4897-45ee-90cc-1ea53dd132c9:localhost]

2022-06-30 22:33:25 | [Mutex] waiting for: [received:nodes:c76f2016-4897-45ee-90cc-1ea53dd132c9:localhost]

2022-06-30 22:33:25 | [Mutex] waiting for: [received:nodes:c76f2016-4897-45ee-90cc-1ea53dd132c9:localhost]

2022-06-30 22:33:25 | [Mutex] received everything.

2022-06-30 22:33:25 | [Mutex] isItemNotified: received:node:c76f2016-4897-45ee-90cc-1ea53dd132c9:localhost:node-3c3537fb-ba11-40a2-9a0b-7dce97914e73:Node 3c3537fb-ba11-40a2-9a0b-7dce97914e73 :: false

deleteSubnodes 1.024s
2022-06-30 22:33:23 |

2022-06-30 22:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:23 | ------------------------------------

2022-06-30 22:33:23 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f"
}

2022-06-30 22:33:23 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-30 22:33:24 | [Mutex] waiting for: [received:nodes:b85e309f-bbf6-4096-81db-0c13fa74a2a8:localhost]

2022-06-30 22:33:24 | [Mutex] received everything.

2022-06-30 22:33:24 | [Mutex] isItemNotified: received:node:b85e309f-bbf6-4096-81db-0c13fa74a2a8:localhost:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:Node f318eebe-56eb-4915-8e18-78b4ecc8b47f :: false

2022-06-30 22:33:24 | [Mutex] waiting for: [received:nodes:52460a2b-978e-4a60-8576-5c041cdfd007:localhost]

2022-06-30 22:33:24 | [Mutex] received everything.

2022-06-30 22:33:24 | [Mutex] isItemNotified: received:node:52460a2b-978e-4a60-8576-5c041cdfd007:localhost:node-f318eebe-56eb-4915-8e18-78b4ecc8b47f:Node f318eebe-56eb-4915-8e18-78b4ecc8b47f :: false

publishItemsToNodes 0.053s
2022-06-30 22:33:22 |

2022-06-30 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:22 | ------------------------------------

2022-06-30 22:33:22 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "entry": "<test>item-e52dec40-59ca-4367-a520-88d51d9b7a6b</test>",
    "item-id": "item-e52dec40-59ca-4367-a520-88d51d9b7a6b"
}

2022-06-30 22:33:22 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e52dec40-59ca-4367-a520-88d51d9b7a6b"
}

2022-06-30 22:33:22 | [Mutex] waiting for: [published:item:notifieditem-e52dec40-59ca-4367-a520-88d51d9b7a6b:admin@test-domain.com]

2022-06-30 22:33:22 | [Mutex] received everything.

2022-06-30 22:33:22 | [Mutex] isItemNotified: published:item:notifieditem-e52dec40-59ca-4367-a520-88d51d9b7a6b:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2022-06-30 22:33:22 |

2022-06-30 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:22 | ------------------------------------

2022-06-30 22:33:22 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "item-id": "item-e52dec40-59ca-4367-a520-88d51d9b7a6b"
}

2022-06-30 22:33:22 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e52dec40-59ca-4367-a520-88d51d9b7a6b"
}

2022-06-30 22:33:22 | [Mutex] received everything.

2022-06-30 22:33:22 | [Mutex] isItemNotified: retracted:item:notifieditem-e52dec40-59ca-4367-a520-88d51d9b7a6b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2022-06-30 22:33:22 |

2022-06-30 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:22 | ------------------------------------

2022-06-30 22:33:22 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "item-id": "item-e52dec40-59ca-4367-a520-88d51d9b7a6b"
}

2022-06-30 22:33:22 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "item-id": "item-e52dec40-59ca-4367-a520-88d51d9b7a6b",
    "item": [
        "<item id=\"item-e52dec40-59ca-4367-a520-88d51d9b7a6b\"><test>item-e52dec40-59ca-4367-a520-88d51d9b7a6b</test></item>"
    ]
}

2022-06-30 22:33:22 | [Mutex] notify: [retrieved:item:item-e52dec40-59ca-4367-a520-88d51d9b7a6b:payload-matches:true:localhost]

2022-06-30 22:33:22 | [Mutex] received everything.

2022-06-30 22:33:22 | [Mutex] isItemNotified: retrieved:item:item-e52dec40-59ca-4367-a520-88d51d9b7a6b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.081s
2022-06-30 22:33:22 |

2022-06-30 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:22 | ------------------------------------

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

2022-06-30 22:33:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3c3537fb-ba11-40a2-9a0b-7dce97914e73",
        "test",
        "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-30 22:33:22 |

2022-06-30 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:22 | ------------------------------------

2022-06-30 22:33:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-f318eebe-56eb-4915-8e18-78b4ecc8b47f)"
}

2022-06-30 22:33:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-06-30 22:33:21 |

2022-06-30 22:33:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:21 | ------------------------------------

2022-06-30 22:33:21 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-30 22:33:21 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2022-06-30 22:33:22 |

2022-06-30 22:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-30 22:33:22 | ------------------------------------

2022-06-30 22:33:22 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-f318eebe-56eb-4915-8e18-78b4ecc8b47f",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-30 22:33:22 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}