Generated by TestNG with ReportNG at 03:29 PST on Thursday 03 March 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.031s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.210s
2022-03-03 03:44:50 |

2022-03-03 03:44:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:50 | ------------------------------------

2022-03-03 03:44:50 | [Mutex] waiting for: [configured:node:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:node-b95b4d4f-c0cc-418a-8357-8494e1278adf]

2022-03-03 03:44:50 | [Mutex] received everything.

2022-03-03 03:44:50 | [Mutex] isItemNotified: configured:node:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:node-b95b4d4f-c0cc-418a-8357-8494e1278adf :: true

2022-03-03 03:44:51 | [Mutex] waiting for: [received:nodes:a5c17fee-59ea-4f7c-9f13-ce23abc72806:localhost]

2022-03-03 03:44:51 | [Mutex] waiting for: [received:nodes:a5c17fee-59ea-4f7c-9f13-ce23abc72806:localhost]

2022-03-03 03:44:51 | [Mutex] received everything.

2022-03-03 03:44:51 | [Mutex] isItemNotified: received:node:a5c17fee-59ea-4f7c-9f13-ce23abc72806:localhost:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:Node b854463c-6c23-4fd5-b1ee-c2faee3a429e :: true

2022-03-03 03:44:51 | [Mutex] waiting for: [received:nodes:f53aa0f4-b467-4e88-89c5-9b1ba0001550:localhost]

2022-03-03 03:44:51 | [Mutex] received everything.

2022-03-03 03:44:51 | [Mutex] isItemNotified: received:node:f53aa0f4-b467-4e88-89c5-9b1ba0001550:localhost:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:Node b854463c-6c23-4fd5-b1ee-c2faee3a429e :: false

createNodes 1.671s
2022-03-03 03:44:47 |

2022-03-03 03:44:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:47 | ------------------------------------

2022-03-03 03:44:48 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "pubsub#title": "Node b854463c-6c23-4fd5-b1ee-c2faee3a429e"
}

2022-03-03 03:44:48 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 03:44:49 | [Mutex] waiting for: [received:nodes:8d4f6c9c-1970-4517-bd3d-e172df3eaa2e:localhost]

2022-03-03 03:44:49 | [Mutex] waiting for: [received:nodes:8d4f6c9c-1970-4517-bd3d-e172df3eaa2e:localhost]

2022-03-03 03:44:49 | [Mutex] waiting for: [received:nodes:8d4f6c9c-1970-4517-bd3d-e172df3eaa2e:localhost]

2022-03-03 03:44:49 | [Mutex] received everything.

2022-03-03 03:44:49 | [Mutex] isItemNotified: received:node:8d4f6c9c-1970-4517-bd3d-e172df3eaa2e:localhost:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:Node b854463c-6c23-4fd5-b1ee-c2faee3a429e :: true

createSubnodes 1.029s
2022-03-03 03:44:49 |

2022-03-03 03:44:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:49 | ------------------------------------

2022-03-03 03:44:49 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b95b4d4f-c0cc-418a-8357-8494e1278adf",
    "pubsub#title": "Node b95b4d4f-c0cc-418a-8357-8494e1278adf"
}

2022-03-03 03:44:49 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 03:44:50 | [Mutex] waiting for: [received:nodes:ad604a80-90dc-42b0-85f1-c709f5a46706:localhost]

2022-03-03 03:44:50 | [Mutex] waiting for: [received:nodes:ad604a80-90dc-42b0-85f1-c709f5a46706:localhost]

2022-03-03 03:44:50 | [Mutex] received everything.

2022-03-03 03:44:50 | [Mutex] isItemNotified: received:node:ad604a80-90dc-42b0-85f1-c709f5a46706:localhost:node-b95b4d4f-c0cc-418a-8357-8494e1278adf:Node b95b4d4f-c0cc-418a-8357-8494e1278adf :: true

deleteNodes 1.028s
2022-03-03 03:44:54 |

2022-03-03 03:44:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:54 | ------------------------------------

2022-03-03 03:44:54 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b95b4d4f-c0cc-418a-8357-8494e1278adf"
}

2022-03-03 03:44:54 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 03:44:55 | [Mutex] waiting for: [received:nodes:5f111df0-bb7f-4af8-8da3-f88f671b771f:localhost]

2022-03-03 03:44:55 | [Mutex] waiting for: [received:nodes:5f111df0-bb7f-4af8-8da3-f88f671b771f:localhost]

2022-03-03 03:44:55 | [Mutex] received everything.

2022-03-03 03:44:55 | [Mutex] isItemNotified: received:node:5f111df0-bb7f-4af8-8da3-f88f671b771f:localhost:node-b95b4d4f-c0cc-418a-8357-8494e1278adf:Node b95b4d4f-c0cc-418a-8357-8494e1278adf :: false

deleteSubnodes 1.032s
2022-03-03 03:44:53 |

2022-03-03 03:44:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:53 | ------------------------------------

2022-03-03 03:44:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e"
}

2022-03-03 03:44:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-03-03 03:44:54 | [Mutex] waiting for: [received:nodes:e4c47df0-8ae9-4222-85bf-8a3502dbc36b:localhost]

2022-03-03 03:44:54 | [Mutex] received everything.

2022-03-03 03:44:54 | [Mutex] isItemNotified: received:node:e4c47df0-8ae9-4222-85bf-8a3502dbc36b:localhost:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:Node b854463c-6c23-4fd5-b1ee-c2faee3a429e :: false

2022-03-03 03:44:54 | [Mutex] waiting for: [received:nodes:ba32300b-a6a6-4d51-bbac-03ff61e578c0:localhost]

2022-03-03 03:44:54 | [Mutex] received everything.

2022-03-03 03:44:54 | [Mutex] isItemNotified: received:node:ba32300b-a6a6-4d51-bbac-03ff61e578c0:localhost:node-b854463c-6c23-4fd5-b1ee-c2faee3a429e:Node b854463c-6c23-4fd5-b1ee-c2faee3a429e :: false

publishItemsToNodes 0.042s
2022-03-03 03:44:52 |

2022-03-03 03:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:52 | ------------------------------------

2022-03-03 03:44:52 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "entry": "<test>item-d12bd293-ded2-4f31-ae64-102e8e453f60</test>",
    "item-id": "item-d12bd293-ded2-4f31-ae64-102e8e453f60"
}

2022-03-03 03:44:52 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d12bd293-ded2-4f31-ae64-102e8e453f60"
}

2022-03-03 03:44:52 | [Mutex] waiting for: [published:item:notifieditem-d12bd293-ded2-4f31-ae64-102e8e453f60:admin@test-domain.com]

2022-03-03 03:44:52 | [Mutex] received everything.

2022-03-03 03:44:52 | [Mutex] isItemNotified: published:item:notifieditem-d12bd293-ded2-4f31-ae64-102e8e453f60:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2022-03-03 03:44:52 |

2022-03-03 03:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:52 | ------------------------------------

2022-03-03 03:44:52 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "item-id": "item-d12bd293-ded2-4f31-ae64-102e8e453f60"
}

2022-03-03 03:44:52 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-d12bd293-ded2-4f31-ae64-102e8e453f60"
}

2022-03-03 03:44:52 | [Mutex] received everything.

2022-03-03 03:44:52 | [Mutex] isItemNotified: retracted:item:notifieditem-d12bd293-ded2-4f31-ae64-102e8e453f60:admin@test-domain.com :: true

retrieveItemsFromNodes 0.067s
2022-03-03 03:44:52 |

2022-03-03 03:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:52 | ------------------------------------

2022-03-03 03:44:52 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "item-id": "item-d12bd293-ded2-4f31-ae64-102e8e453f60"
}

2022-03-03 03:44:52 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "item-id": "item-d12bd293-ded2-4f31-ae64-102e8e453f60",
    "item": [
        "<item id=\"item-d12bd293-ded2-4f31-ae64-102e8e453f60\"><test>item-d12bd293-ded2-4f31-ae64-102e8e453f60</test></item>"
    ]
}

2022-03-03 03:44:52 | [Mutex] notify: [retrieved:item:item-d12bd293-ded2-4f31-ae64-102e8e453f60:payload-matches:true:localhost]

2022-03-03 03:44:52 | [Mutex] received everything.

2022-03-03 03:44:52 | [Mutex] isItemNotified: retrieved:item:item-d12bd293-ded2-4f31-ae64-102e8e453f60:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2022-03-03 03:44:52 |

2022-03-03 03:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:52 | ------------------------------------

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

2022-03-03 03:44:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
        "node-b95b4d4f-c0cc-418a-8357-8494e1278adf"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-03-03 03:44:52 |

2022-03-03 03:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:52 | ------------------------------------

2022-03-03 03:44:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b854463c-6c23-4fd5-b1ee-c2faee3a429e)"
}

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

subscribeNodes 1.014s
2022-03-03 03:44:51 |

2022-03-03 03:44:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:51 | ------------------------------------

2022-03-03 03:44:51 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2022-03-03 03:44:52 |

2022-03-03 03:44:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-03-03 03:44:52 | ------------------------------------

2022-03-03 03:44:52 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b854463c-6c23-4fd5-b1ee-c2faee3a429e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-03-03 03:44:52 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}