Generated by TestNG with ReportNG at 22:20 PDT on Sunday 03 October 2021
root@785cf647a4ab / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 9.007s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.128s
2021-10-03 22:34:00 |

2021-10-03 22:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:00 | ------------------------------------

2021-10-03 22:34:00 | [Mutex] waiting for: [configured:node:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:node-79a93326-b498-4329-a879-8359106a4695]

2021-10-03 22:34:00 | [Mutex] received everything.

2021-10-03 22:34:00 | [Mutex] isItemNotified: configured:node:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:node-79a93326-b498-4329-a879-8359106a4695 :: true

2021-10-03 22:34:01 | [Mutex] waiting for: [received:nodes:66d17aeb-0a63-473f-a0ea-2618ced72e09:localhost]

2021-10-03 22:34:01 | [Mutex] received everything.

2021-10-03 22:34:01 | [Mutex] isItemNotified: received:node:66d17aeb-0a63-473f-a0ea-2618ced72e09:localhost:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:Node 0b0de80a-b17b-42f7-9e1b-7a41ffba1340 :: true

2021-10-03 22:34:01 | [Mutex] waiting for: [received:nodes:67cf90ed-15f0-4c3d-96a7-4aa1f4f1fc1b:localhost]

2021-10-03 22:34:01 | [Mutex] received everything.

2021-10-03 22:34:01 | [Mutex] isItemNotified: received:node:67cf90ed-15f0-4c3d-96a7-4aa1f4f1fc1b:localhost:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:Node 0b0de80a-b17b-42f7-9e1b-7a41ffba1340 :: false

createNodes 1.705s
2021-10-03 22:33:57 |

2021-10-03 22:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:33:57 | ------------------------------------

2021-10-03 22:33:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "pubsub#title": "Node 0b0de80a-b17b-42f7-9e1b-7a41ffba1340"
}

2021-10-03 22:33:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-03 22:33:59 | [Mutex] waiting for: [received:nodes:a575fed4-1f0a-471a-b1ca-d478d54348c2:localhost]

2021-10-03 22:33:59 | [Mutex] received everything.

2021-10-03 22:33:59 | [Mutex] isItemNotified: received:node:a575fed4-1f0a-471a-b1ca-d478d54348c2:localhost:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:Node 0b0de80a-b17b-42f7-9e1b-7a41ffba1340 :: true

createSubnodes 1.035s
2021-10-03 22:33:59 |

2021-10-03 22:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:33:59 | ------------------------------------

2021-10-03 22:33:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-79a93326-b498-4329-a879-8359106a4695",
    "pubsub#title": "Node 79a93326-b498-4329-a879-8359106a4695"
}

2021-10-03 22:33:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-03 22:34:00 | [Mutex] waiting for: [received:nodes:2eb089b2-0d20-4f28-b245-7b4d7ccb986e:localhost]

2021-10-03 22:34:00 | [Mutex] waiting for: [received:nodes:2eb089b2-0d20-4f28-b245-7b4d7ccb986e:localhost]

2021-10-03 22:34:00 | [Mutex] received everything.

2021-10-03 22:34:00 | [Mutex] isItemNotified: received:node:2eb089b2-0d20-4f28-b245-7b4d7ccb986e:localhost:node-79a93326-b498-4329-a879-8359106a4695:Node 79a93326-b498-4329-a879-8359106a4695 :: true

deleteNodes 1.023s
2021-10-03 22:34:04 |

2021-10-03 22:34:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:04 | ------------------------------------

2021-10-03 22:34:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-79a93326-b498-4329-a879-8359106a4695"
}

2021-10-03 22:34:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-03 22:34:05 | [Mutex] waiting for: [received:nodes:ae0c76b3-6619-4c1f-8f40-61c187cf78f0:localhost]

2021-10-03 22:34:05 | [Mutex] received everything.

2021-10-03 22:34:05 | [Mutex] isItemNotified: received:node:ae0c76b3-6619-4c1f-8f40-61c187cf78f0:localhost:node-79a93326-b498-4329-a879-8359106a4695:Node 79a93326-b498-4329-a879-8359106a4695 :: false

deleteSubnodes 1.028s
2021-10-03 22:34:03 |

2021-10-03 22:34:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:03 | ------------------------------------

2021-10-03 22:34:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340"
}

2021-10-03 22:34:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-10-03 22:34:04 | [Mutex] waiting for: [received:nodes:ac7d3cb5-c5d1-48e4-b348-4e9d56dcee2f:localhost]

2021-10-03 22:34:04 | [Mutex] received everything.

2021-10-03 22:34:04 | [Mutex] isItemNotified: received:node:ac7d3cb5-c5d1-48e4-b348-4e9d56dcee2f:localhost:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:Node 0b0de80a-b17b-42f7-9e1b-7a41ffba1340 :: false

2021-10-03 22:34:04 | [Mutex] waiting for: [received:nodes:27554b85-09c6-43d4-87e8-4d9d28c56b31:localhost]

2021-10-03 22:34:04 | [Mutex] received everything.

2021-10-03 22:34:04 | [Mutex] isItemNotified: received:node:27554b85-09c6-43d4-87e8-4d9d28c56b31:localhost:node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340:Node 0b0de80a-b17b-42f7-9e1b-7a41ffba1340 :: false

publishItemsToNodes 0.056s
2021-10-03 22:34:02 |

2021-10-03 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:02 | ------------------------------------

2021-10-03 22:34:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "entry": "<test>item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693</test>",
    "item-id": "item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693"
}

2021-10-03 22:34:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693"
}

2021-10-03 22:34:02 | [Mutex] waiting for: [published:item:notifieditem-ba79c96d-a2e6-4b2d-a63f-a2d63f963693:admin@test-domain.com]

2021-10-03 22:34:02 | [Mutex] received everything.

2021-10-03 22:34:02 | [Mutex] isItemNotified: published:item:notifieditem-ba79c96d-a2e6-4b2d-a63f-a2d63f963693:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-10-03 22:34:02 |

2021-10-03 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:02 | ------------------------------------

2021-10-03 22:34:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "item-id": "item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693"
}

2021-10-03 22:34:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693"
}

2021-10-03 22:34:02 | [Mutex] received everything.

2021-10-03 22:34:02 | [Mutex] isItemNotified: retracted:item:notifieditem-ba79c96d-a2e6-4b2d-a63f-a2d63f963693:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2021-10-03 22:34:02 |

2021-10-03 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:02 | ------------------------------------

2021-10-03 22:34:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "item-id": "item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693"
}

2021-10-03 22:34:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "item-id": "item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693",
    "item": [
        "<item id=\"item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693\"><test>item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693</test></item>"
    ]
}

2021-10-03 22:34:02 | [Mutex] notify: [retrieved:item:item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693:payload-matches:true:localhost]

2021-10-03 22:34:02 | [Mutex] received everything.

2021-10-03 22:34:02 | [Mutex] isItemNotified: retrieved:item:item-ba79c96d-a2e6-4b2d-a63f-a2d63f963693:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.058s
2021-10-03 22:34:02 |

2021-10-03 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:02 | ------------------------------------

2021-10-03 22:34:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-10-03 22:34:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
        "node-79a93326-b498-4329-a879-8359106a4695"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2021-10-03 22:34:02 |

2021-10-03 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:02 | ------------------------------------

2021-10-03 22:34:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340)"
}

2021-10-03 22:34:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2021-10-03 22:34:01 |

2021-10-03 22:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:01 | ------------------------------------

2021-10-03 22:34:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-03 22:34:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2021-10-03 22:34:02 |

2021-10-03 22:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-10-03 22:34:02 | ------------------------------------

2021-10-03 22:34:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0b0de80a-b17b-42f7-9e1b-7a41ffba1340",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-10-03 22:34:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}