Generated by TestNG with ReportNG at 07:32 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.701s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.135s
2022-07-12 07:46:33 |

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

2022-07-12 07:46:33 | ------------------------------------

2022-07-12 07:46:33 | [Mutex] waiting for: [configured:node:node-549a6c74-e801-4b20-a470-3164a9299485:node-92dde044-cb1e-4808-9412-bb404ab4337e]

2022-07-12 07:46:33 | [Mutex] received everything.

2022-07-12 07:46:33 | [Mutex] isItemNotified: configured:node:node-549a6c74-e801-4b20-a470-3164a9299485:node-92dde044-cb1e-4808-9412-bb404ab4337e :: true

2022-07-12 07:46:34 | [Mutex] waiting for: [received:nodes:d4da46ef-35f0-4204-935a-c3af0342b0a5:localhost]

2022-07-12 07:46:34 | [Mutex] received everything.

2022-07-12 07:46:34 | [Mutex] isItemNotified: received:node:d4da46ef-35f0-4204-935a-c3af0342b0a5:localhost:node-549a6c74-e801-4b20-a470-3164a9299485:Node 549a6c74-e801-4b20-a470-3164a9299485 :: true

2022-07-12 07:46:34 | [Mutex] waiting for: [received:nodes:7aac30b5-7dc1-4ce0-b580-b14804056a28:localhost]

2022-07-12 07:46:34 | [Mutex] received everything.

2022-07-12 07:46:34 | [Mutex] isItemNotified: received:node:7aac30b5-7dc1-4ce0-b580-b14804056a28:localhost:node-549a6c74-e801-4b20-a470-3164a9299485:Node 549a6c74-e801-4b20-a470-3164a9299485 :: false

createNodes 1.563s
2022-07-12 07:46:31 |

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

2022-07-12 07:46:31 | ------------------------------------

2022-07-12 07:46:31 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "pubsub#title": "Node 549a6c74-e801-4b20-a470-3164a9299485"
}

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

2022-07-12 07:46:32 | [Mutex] waiting for: [received:nodes:13f1d083-1b8f-4fd1-8317-a8de77b8e780:localhost]

2022-07-12 07:46:32 | [Mutex] received everything.

2022-07-12 07:46:32 | [Mutex] isItemNotified: received:node:13f1d083-1b8f-4fd1-8317-a8de77b8e780:localhost:node-549a6c74-e801-4b20-a470-3164a9299485:Node 549a6c74-e801-4b20-a470-3164a9299485 :: true

createSubnodes 1.022s
2022-07-12 07:46:32 |

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

2022-07-12 07:46:32 | ------------------------------------

2022-07-12 07:46:32 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-92dde044-cb1e-4808-9412-bb404ab4337e",
    "pubsub#title": "Node 92dde044-cb1e-4808-9412-bb404ab4337e"
}

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

2022-07-12 07:46:33 | [Mutex] waiting for: [received:nodes:713c24b1-5371-42f1-b066-c15096c3552a:localhost]

2022-07-12 07:46:33 | [Mutex] received everything.

2022-07-12 07:46:33 | [Mutex] isItemNotified: received:node:713c24b1-5371-42f1-b066-c15096c3552a:localhost:node-92dde044-cb1e-4808-9412-bb404ab4337e:Node 92dde044-cb1e-4808-9412-bb404ab4337e :: true

deleteNodes 1.024s
2022-07-12 07:46:38 |

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

2022-07-12 07:46:38 | ------------------------------------

2022-07-12 07:46:38 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-92dde044-cb1e-4808-9412-bb404ab4337e"
}

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

2022-07-12 07:46:39 | [Mutex] waiting for: [received:nodes:15c0fe2a-de0e-49b3-849a-0e5026260e5e:localhost]

2022-07-12 07:46:39 | [Mutex] waiting for: [received:nodes:15c0fe2a-de0e-49b3-849a-0e5026260e5e:localhost]

2022-07-12 07:46:39 | [Mutex] received everything.

2022-07-12 07:46:39 | [Mutex] isItemNotified: received:node:15c0fe2a-de0e-49b3-849a-0e5026260e5e:localhost:node-92dde044-cb1e-4808-9412-bb404ab4337e:Node 92dde044-cb1e-4808-9412-bb404ab4337e :: false

deleteSubnodes 1.026s
2022-07-12 07:46:37 |

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

2022-07-12 07:46:37 | ------------------------------------

2022-07-12 07:46:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485"
}

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

2022-07-12 07:46:38 | [Mutex] waiting for: [received:nodes:36aeb5b0-452c-4199-8262-c55470ef5fc9:localhost]

2022-07-12 07:46:38 | [Mutex] received everything.

2022-07-12 07:46:38 | [Mutex] isItemNotified: received:node:36aeb5b0-452c-4199-8262-c55470ef5fc9:localhost:node-549a6c74-e801-4b20-a470-3164a9299485:Node 549a6c74-e801-4b20-a470-3164a9299485 :: false

2022-07-12 07:46:38 | [Mutex] waiting for: [received:nodes:b18def58-6f66-47c1-b00c-486c0706560f:localhost]

2022-07-12 07:46:38 | [Mutex] received everything.

2022-07-12 07:46:38 | [Mutex] isItemNotified: received:node:b18def58-6f66-47c1-b00c-486c0706560f:localhost:node-549a6c74-e801-4b20-a470-3164a9299485:Node 549a6c74-e801-4b20-a470-3164a9299485 :: false

publishItemsToNodes 0.035s
2022-07-12 07:46:35 |

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

2022-07-12 07:46:35 | ------------------------------------

2022-07-12 07:46:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "entry": "<test>item-babc91b7-fa96-408f-a7c1-429c3ef5592f</test>",
    "item-id": "item-babc91b7-fa96-408f-a7c1-429c3ef5592f"
}

2022-07-12 07:46:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-babc91b7-fa96-408f-a7c1-429c3ef5592f"
}

2022-07-12 07:46:35 | [Mutex] waiting for: [published:item:notifieditem-babc91b7-fa96-408f-a7c1-429c3ef5592f:admin@test-domain.com]

2022-07-12 07:46:35 | [Mutex] received everything.

2022-07-12 07:46:35 | [Mutex] isItemNotified: published:item:notifieditem-babc91b7-fa96-408f-a7c1-429c3ef5592f:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2022-07-12 07:46:36 |

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

2022-07-12 07:46:36 | ------------------------------------

2022-07-12 07:46:36 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "item-id": "item-babc91b7-fa96-408f-a7c1-429c3ef5592f"
}

2022-07-12 07:46:36 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-babc91b7-fa96-408f-a7c1-429c3ef5592f"
}

2022-07-12 07:46:36 | [Mutex] received everything.

2022-07-12 07:46:36 | [Mutex] isItemNotified: retracted:item:notifieditem-babc91b7-fa96-408f-a7c1-429c3ef5592f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2022-07-12 07:46:35 |

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

2022-07-12 07:46:35 | ------------------------------------

2022-07-12 07:46:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "item-id": "item-babc91b7-fa96-408f-a7c1-429c3ef5592f"
}

2022-07-12 07:46:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "item-id": "item-babc91b7-fa96-408f-a7c1-429c3ef5592f",
    "item": [
        "<item id=\"item-babc91b7-fa96-408f-a7c1-429c3ef5592f\"><test>item-babc91b7-fa96-408f-a7c1-429c3ef5592f</test></item>"
    ]
}

2022-07-12 07:46:35 | [Mutex] notify: [retrieved:item:item-babc91b7-fa96-408f-a7c1-429c3ef5592f:payload-matches:true:localhost]

2022-07-12 07:46:35 | [Mutex] received everything.

2022-07-12 07:46:35 | [Mutex] isItemNotified: retrieved:item:item-babc91b7-fa96-408f-a7c1-429c3ef5592f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2022-07-12 07:46:35 |

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

2022-07-12 07:46:35 | ------------------------------------

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

2022-07-12 07:46:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-92dde044-cb1e-4808-9412-bb404ab4337e",
        "node-549a6c74-e801-4b20-a470-3164a9299485"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-12 07:46:35 |

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

2022-07-12 07:46:35 | ------------------------------------

2022-07-12 07:46:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-549a6c74-e801-4b20-a470-3164a9299485)"
}

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

subscribeNodes 1.012s
2022-07-12 07:46:34 |

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

2022-07-12 07:46:34 | ------------------------------------

2022-07-12 07:46:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.051s
2022-07-12 07:46:36 |

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

2022-07-12 07:46:36 | ------------------------------------

2022-07-12 07:46:36 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-549a6c74-e801-4b20-a470-3164a9299485",
    "jids": [
        "admin@test-domain.com"
    ]
}

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