Generated by TestNG with ReportNG at 22:32 PDT on Sunday 03 October 2021
root@b2c2a8eba6e6 / 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.115s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2021-10-03 22:48:33 |

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

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

2021-10-03 22:48:33 | [Mutex] waiting for: [configured:node:node-1ad25096-0ae2-4649-af73-9e5cc8018681:node-43b7a1f5-c45c-4a80-976f-9099ac52ddb7]

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

2021-10-03 22:48:33 | [Mutex] isItemNotified: configured:node:node-1ad25096-0ae2-4649-af73-9e5cc8018681:node-43b7a1f5-c45c-4a80-976f-9099ac52ddb7 :: true

2021-10-03 22:48:34 | [Mutex] waiting for: [received:nodes:afc07149-3fe6-4ab3-ab7c-eac1847ccbb9:localhost]

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

2021-10-03 22:48:34 | [Mutex] isItemNotified: received:node:afc07149-3fe6-4ab3-ab7c-eac1847ccbb9:localhost:node-1ad25096-0ae2-4649-af73-9e5cc8018681:Node 1ad25096-0ae2-4649-af73-9e5cc8018681 :: true

2021-10-03 22:48:34 | [Mutex] waiting for: [received:nodes:37084c51-7259-4881-bcc2-4ae053b3b14f:localhost]

2021-10-03 22:48:34 | [Mutex] waiting for: [received:nodes:37084c51-7259-4881-bcc2-4ae053b3b14f:localhost]

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

2021-10-03 22:48:34 | [Mutex] isItemNotified: received:node:37084c51-7259-4881-bcc2-4ae053b3b14f:localhost:node-1ad25096-0ae2-4649-af73-9e5cc8018681:Node 1ad25096-0ae2-4649-af73-9e5cc8018681 :: false

createNodes 1.645s
2021-10-03 22:48:30 |

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

2021-10-03 22:48:30 | ------------------------------------

2021-10-03 22:48: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-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "pubsub#title": "Node 1ad25096-0ae2-4649-af73-9e5cc8018681"
}

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

2021-10-03 22:48:32 | [Mutex] waiting for: [received:nodes:7aa5f8bc-cb40-44f3-a61c-eba64aa303ec:localhost]

2021-10-03 22:48:32 | [Mutex] received everything.

2021-10-03 22:48:32 | [Mutex] isItemNotified: received:node:7aa5f8bc-cb40-44f3-a61c-eba64aa303ec:localhost:node-1ad25096-0ae2-4649-af73-9e5cc8018681:Node 1ad25096-0ae2-4649-af73-9e5cc8018681 :: true

createSubnodes 1.033s
2021-10-03 22:48:32 |

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

2021-10-03 22:48:32 | ------------------------------------

2021-10-03 22:48: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-43b7a1f5-c45c-4a80-976f-9099ac52ddb7",
    "pubsub#title": "Node 43b7a1f5-c45c-4a80-976f-9099ac52ddb7"
}

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

2021-10-03 22:48:33 | [Mutex] waiting for: [received:nodes:48145df9-204d-44a5-905a-ac60015709e4:localhost]

2021-10-03 22:48:33 | [Mutex] waiting for: [received:nodes:48145df9-204d-44a5-905a-ac60015709e4:localhost]

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

2021-10-03 22:48:33 | [Mutex] isItemNotified: received:node:48145df9-204d-44a5-905a-ac60015709e4:localhost:node-43b7a1f5-c45c-4a80-976f-9099ac52ddb7:Node 43b7a1f5-c45c-4a80-976f-9099ac52ddb7 :: true

deleteNodes 1.024s
2021-10-03 22:48:37 |

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

2021-10-03 22:48:37 | ------------------------------------

2021-10-03 22:48:37 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-43b7a1f5-c45c-4a80-976f-9099ac52ddb7"
}

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

2021-10-03 22:48:38 | [Mutex] waiting for: [received:nodes:e9f4de13-0834-4674-8c5c-e19cd03887a8:localhost]

2021-10-03 22:48:38 | [Mutex] waiting for: [received:nodes:e9f4de13-0834-4674-8c5c-e19cd03887a8:localhost]

2021-10-03 22:48:38 | [Mutex] received everything.

2021-10-03 22:48:38 | [Mutex] isItemNotified: received:node:e9f4de13-0834-4674-8c5c-e19cd03887a8:localhost:node-43b7a1f5-c45c-4a80-976f-9099ac52ddb7:Node 43b7a1f5-c45c-4a80-976f-9099ac52ddb7 :: false

deleteSubnodes 1.031s
2021-10-03 22:48:36 |

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

2021-10-03 22:48:36 | ------------------------------------

2021-10-03 22:48:36 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681"
}

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

2021-10-03 22:48:37 | [Mutex] waiting for: [received:nodes:d15f84c4-f131-45de-b14d-0974bf2319cf:localhost]

2021-10-03 22:48:37 | [Mutex] received everything.

2021-10-03 22:48:37 | [Mutex] isItemNotified: received:node:d15f84c4-f131-45de-b14d-0974bf2319cf:localhost:node-1ad25096-0ae2-4649-af73-9e5cc8018681:Node 1ad25096-0ae2-4649-af73-9e5cc8018681 :: false

2021-10-03 22:48:37 | [Mutex] waiting for: [received:nodes:70139e45-13da-490e-b001-ac95586b8f61:localhost]

2021-10-03 22:48:37 | [Mutex] received everything.

2021-10-03 22:48:37 | [Mutex] isItemNotified: received:node:70139e45-13da-490e-b001-ac95586b8f61:localhost:node-1ad25096-0ae2-4649-af73-9e5cc8018681:Node 1ad25096-0ae2-4649-af73-9e5cc8018681 :: false

publishItemsToNodes 0.049s
2021-10-03 22:48:35 |

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

2021-10-03 22:48:35 | ------------------------------------

2021-10-03 22:48:35 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "entry": "<test>item-85a775b4-24eb-4bb3-beb4-85c313048e36</test>",
    "item-id": "item-85a775b4-24eb-4bb3-beb4-85c313048e36"
}

2021-10-03 22:48:35 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85a775b4-24eb-4bb3-beb4-85c313048e36"
}

2021-10-03 22:48:35 | [Mutex] waiting for: [published:item:notifieditem-85a775b4-24eb-4bb3-beb4-85c313048e36:admin@test-domain.com]

2021-10-03 22:48:35 | [Mutex] received everything.

2021-10-03 22:48:35 | [Mutex] isItemNotified: published:item:notifieditem-85a775b4-24eb-4bb3-beb4-85c313048e36:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-10-03 22:48:35 |

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

2021-10-03 22:48:35 | ------------------------------------

2021-10-03 22:48:35 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "item-id": "item-85a775b4-24eb-4bb3-beb4-85c313048e36"
}

2021-10-03 22:48:35 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-85a775b4-24eb-4bb3-beb4-85c313048e36"
}

2021-10-03 22:48:35 | [Mutex] received everything.

2021-10-03 22:48:35 | [Mutex] isItemNotified: retracted:item:notifieditem-85a775b4-24eb-4bb3-beb4-85c313048e36:admin@test-domain.com :: true

retrieveItemsFromNodes 0.058s
2021-10-03 22:48:35 |

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

2021-10-03 22:48:35 | ------------------------------------

2021-10-03 22:48:35 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "item-id": "item-85a775b4-24eb-4bb3-beb4-85c313048e36"
}

2021-10-03 22:48:35 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "item-id": "item-85a775b4-24eb-4bb3-beb4-85c313048e36",
    "item": [
        "<item id=\"item-85a775b4-24eb-4bb3-beb4-85c313048e36\"><test>item-85a775b4-24eb-4bb3-beb4-85c313048e36</test></item>"
    ]
}

2021-10-03 22:48:35 | [Mutex] notify: [retrieved:item:item-85a775b4-24eb-4bb3-beb4-85c313048e36:payload-matches:true:localhost]

2021-10-03 22:48:35 | [Mutex] received everything.

2021-10-03 22:48:35 | [Mutex] isItemNotified: retrieved:item:item-85a775b4-24eb-4bb3-beb4-85c313048e36:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-10-03 22:48:35 |

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

2021-10-03 22:48:35 | ------------------------------------

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

2021-10-03 22:48:35 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-43b7a1f5-c45c-4a80-976f-9099ac52ddb7",
        "test",
        "node-1ad25096-0ae2-4649-af73-9e5cc8018681"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-10-03 22:48:35 |

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

2021-10-03 22:48:35 | ------------------------------------

2021-10-03 22:48:35 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-1ad25096-0ae2-4649-af73-9e5cc8018681)"
}

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

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

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

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

2021-10-03 22:48:34 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.104s
2021-10-03 22:48:35 |

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

2021-10-03 22:48:35 | ------------------------------------

2021-10-03 22:48:35 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-1ad25096-0ae2-4649-af73-9e5cc8018681",
    "jids": [
        "admin@test-domain.com"
    ]
}

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