Generated by TestNG with ReportNG at 21:46 PST on Thursday 10 February 2022
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.156s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.167s
2022-02-10 22:03:21 |

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

2022-02-10 22:03:21 | ------------------------------------

2022-02-10 22:03:21 | [Mutex] waiting for: [configured:node:node-7c38bebe-d814-40b3-ba25-7710f78475a4:node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4]

2022-02-10 22:03:21 | [Mutex] received everything.

2022-02-10 22:03:21 | [Mutex] isItemNotified: configured:node:node-7c38bebe-d814-40b3-ba25-7710f78475a4:node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4 :: true

2022-02-10 22:03:22 | [Mutex] waiting for: [received:nodes:88230fa2-36f8-4a81-92f7-73395a7890b2:localhost]

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

2022-02-10 22:03:22 | [Mutex] isItemNotified: received:node:88230fa2-36f8-4a81-92f7-73395a7890b2:localhost:node-7c38bebe-d814-40b3-ba25-7710f78475a4:Node 7c38bebe-d814-40b3-ba25-7710f78475a4 :: true

2022-02-10 22:03:22 | [Mutex] waiting for: [received:nodes:0e2505f4-6b41-4767-b112-07cee07cec4e:localhost]

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

2022-02-10 22:03:22 | [Mutex] isItemNotified: received:node:0e2505f4-6b41-4767-b112-07cee07cec4e:localhost:node-7c38bebe-d814-40b3-ba25-7710f78475a4:Node 7c38bebe-d814-40b3-ba25-7710f78475a4 :: false

createNodes 1.755s
2022-02-10 22:03:18 |

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

2022-02-10 22:03:18 | ------------------------------------

2022-02-10 22:03:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "pubsub#title": "Node 7c38bebe-d814-40b3-ba25-7710f78475a4"
}

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

2022-02-10 22:03:20 | [Mutex] waiting for: [received:nodes:5b221720-7dc4-4f13-b3d2-b1319eda55c1:localhost]

2022-02-10 22:03:20 | [Mutex] received everything.

2022-02-10 22:03:20 | [Mutex] isItemNotified: received:node:5b221720-7dc4-4f13-b3d2-b1319eda55c1:localhost:node-7c38bebe-d814-40b3-ba25-7710f78475a4:Node 7c38bebe-d814-40b3-ba25-7710f78475a4 :: true

createSubnodes 1.037s
2022-02-10 22:03:20 |

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

2022-02-10 22:03:20 | ------------------------------------

2022-02-10 22:03:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4",
    "pubsub#title": "Node 558edffa-1a4f-4a54-ba3c-a0f83dfe69a4"
}

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

2022-02-10 22:03:21 | [Mutex] waiting for: [received:nodes:f5a3db59-f65a-4063-b8d4-e3085693e130:localhost]

2022-02-10 22:03:21 | [Mutex] waiting for: [received:nodes:f5a3db59-f65a-4063-b8d4-e3085693e130:localhost]

2022-02-10 22:03:21 | [Mutex] received everything.

2022-02-10 22:03:21 | [Mutex] isItemNotified: received:node:f5a3db59-f65a-4063-b8d4-e3085693e130:localhost:node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4:Node 558edffa-1a4f-4a54-ba3c-a0f83dfe69a4 :: true

deleteNodes 1.032s
2022-02-10 22:03:26 |

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

2022-02-10 22:03:26 | ------------------------------------

2022-02-10 22:03:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4"
}

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

2022-02-10 22:03:27 | [Mutex] waiting for: [received:nodes:beb841d3-92a8-4627-b09c-ac87abf4cd92:localhost]

2022-02-10 22:03:27 | [Mutex] waiting for: [received:nodes:beb841d3-92a8-4627-b09c-ac87abf4cd92:localhost]

2022-02-10 22:03:27 | [Mutex] received everything.

2022-02-10 22:03:27 | [Mutex] isItemNotified: received:node:beb841d3-92a8-4627-b09c-ac87abf4cd92:localhost:node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4:Node 558edffa-1a4f-4a54-ba3c-a0f83dfe69a4 :: false

deleteSubnodes 1.036s
2022-02-10 22:03:25 |

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

2022-02-10 22:03:25 | ------------------------------------

2022-02-10 22:03:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4"
}

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

2022-02-10 22:03:26 | [Mutex] waiting for: [received:nodes:a26f7b42-47dd-4508-a407-b2fe2646d5ef:localhost]

2022-02-10 22:03:26 | [Mutex] received everything.

2022-02-10 22:03:26 | [Mutex] isItemNotified: received:node:a26f7b42-47dd-4508-a407-b2fe2646d5ef:localhost:node-7c38bebe-d814-40b3-ba25-7710f78475a4:Node 7c38bebe-d814-40b3-ba25-7710f78475a4 :: false

2022-02-10 22:03:26 | [Mutex] waiting for: [received:nodes:aeddf2f6-c433-4077-97d0-bdf87914d945:localhost]

2022-02-10 22:03:26 | [Mutex] received everything.

2022-02-10 22:03:26 | [Mutex] isItemNotified: received:node:aeddf2f6-c433-4077-97d0-bdf87914d945:localhost:node-7c38bebe-d814-40b3-ba25-7710f78475a4:Node 7c38bebe-d814-40b3-ba25-7710f78475a4 :: false

publishItemsToNodes 0.059s
2022-02-10 22:03:23 |

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

2022-02-10 22:03:23 | ------------------------------------

2022-02-10 22:03:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "entry": "<test>item-b84989de-8de7-48c6-8609-4fea1faaea30</test>",
    "item-id": "item-b84989de-8de7-48c6-8609-4fea1faaea30"
}

2022-02-10 22:03:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b84989de-8de7-48c6-8609-4fea1faaea30"
}

2022-02-10 22:03:23 | [Mutex] waiting for: [published:item:notifieditem-b84989de-8de7-48c6-8609-4fea1faaea30:admin@test-domain.com]

2022-02-10 22:03:23 | [Mutex] received everything.

2022-02-10 22:03:23 | [Mutex] isItemNotified: published:item:notifieditem-b84989de-8de7-48c6-8609-4fea1faaea30:admin@test-domain.com :: true

retractItemsFromNodes 0.074s
2022-02-10 22:03:24 |

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

2022-02-10 22:03:24 | ------------------------------------

2022-02-10 22:03:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "item-id": "item-b84989de-8de7-48c6-8609-4fea1faaea30"
}

2022-02-10 22:03:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-b84989de-8de7-48c6-8609-4fea1faaea30"
}

2022-02-10 22:03:24 | [Mutex] waiting for: [retracted:item:notifieditem-b84989de-8de7-48c6-8609-4fea1faaea30:admin@test-domain.com]

2022-02-10 22:03:24 | [Mutex] received everything.

2022-02-10 22:03:24 | [Mutex] isItemNotified: retracted:item:notifieditem-b84989de-8de7-48c6-8609-4fea1faaea30:admin@test-domain.com :: true

retrieveItemsFromNodes 0.075s
2022-02-10 22:03:23 |

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

2022-02-10 22:03:23 | ------------------------------------

2022-02-10 22:03:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "item-id": "item-b84989de-8de7-48c6-8609-4fea1faaea30"
}

2022-02-10 22:03:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "item-id": "item-b84989de-8de7-48c6-8609-4fea1faaea30",
    "item": [
        "<item id=\"item-b84989de-8de7-48c6-8609-4fea1faaea30\"><test>item-b84989de-8de7-48c6-8609-4fea1faaea30</test></item>"
    ]
}

2022-02-10 22:03:24 | [Mutex] notify: [retrieved:item:item-b84989de-8de7-48c6-8609-4fea1faaea30:payload-matches:true:localhost]

2022-02-10 22:03:24 | [Mutex] received everything.

2022-02-10 22:03:24 | [Mutex] isItemNotified: retrieved:item:item-b84989de-8de7-48c6-8609-4fea1faaea30:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-10 22:03:24 |

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

2022-02-10 22:03:24 | ------------------------------------

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

2022-02-10 22:03:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
        "node-558edffa-1a4f-4a54-ba3c-a0f83dfe69a4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-02-10 22:03:24 |

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

2022-02-10 22:03:24 | ------------------------------------

2022-02-10 22:03:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-7c38bebe-d814-40b3-ba25-7710f78475a4)"
}

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

subscribeNodes 1.015s
2022-02-10 22:03:22 |

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

2022-02-10 22:03:22 | ------------------------------------

2022-02-10 22:03:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.064s
2022-02-10 22:03:24 |

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

2022-02-10 22:03:24 | ------------------------------------

2022-02-10 22:03:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-7c38bebe-d814-40b3-ba25-7710f78475a4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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