Generated by TestNG with ReportNG at 21:30 PST on Tuesday 01 February 2022
root@f29ef40080b5 / 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.101s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2022-02-01 21:46:52 |

2022-02-01 21:46:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:52 | ------------------------------------

2022-02-01 21:46:52 | [Mutex] waiting for: [configured:node:node-71ed273f-0c4a-4b64-af21-90898009394e:node-b7c406cc-7701-496f-86f4-bda14d18eada]

2022-02-01 21:46:52 | [Mutex] received everything.

2022-02-01 21:46:52 | [Mutex] isItemNotified: configured:node:node-71ed273f-0c4a-4b64-af21-90898009394e:node-b7c406cc-7701-496f-86f4-bda14d18eada :: true

2022-02-01 21:46:53 | [Mutex] waiting for: [received:nodes:5884ffab-9f7c-40f7-b657-f1de02b9e349:localhost]

2022-02-01 21:46:53 | [Mutex] waiting for: [received:nodes:5884ffab-9f7c-40f7-b657-f1de02b9e349:localhost]

2022-02-01 21:46:53 | [Mutex] received everything.

2022-02-01 21:46:53 | [Mutex] isItemNotified: received:node:5884ffab-9f7c-40f7-b657-f1de02b9e349:localhost:node-71ed273f-0c4a-4b64-af21-90898009394e:Node 71ed273f-0c4a-4b64-af21-90898009394e :: true

2022-02-01 21:46:53 | [Mutex] waiting for: [received:nodes:f3b4ec71-efe4-4764-879d-33e22eef81e1:localhost]

2022-02-01 21:46:53 | [Mutex] received everything.

2022-02-01 21:46:53 | [Mutex] isItemNotified: received:node:f3b4ec71-efe4-4764-879d-33e22eef81e1:localhost:node-71ed273f-0c4a-4b64-af21-90898009394e:Node 71ed273f-0c4a-4b64-af21-90898009394e :: false

createNodes 1.663s
2022-02-01 21:46:49 |

2022-02-01 21:46:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:49 | ------------------------------------

2022-02-01 21:46:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "pubsub#title": "Node 71ed273f-0c4a-4b64-af21-90898009394e"
}

2022-02-01 21:46:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 21:46:51 | [Mutex] waiting for: [received:nodes:7d49e05f-2dee-435b-b1d0-127c36f1adbf:localhost]

2022-02-01 21:46:51 | [Mutex] received everything.

2022-02-01 21:46:51 | [Mutex] isItemNotified: received:node:7d49e05f-2dee-435b-b1d0-127c36f1adbf:localhost:node-71ed273f-0c4a-4b64-af21-90898009394e:Node 71ed273f-0c4a-4b64-af21-90898009394e :: true

createSubnodes 1.027s
2022-02-01 21:46:51 |

2022-02-01 21:46:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:51 | ------------------------------------

2022-02-01 21:46:51 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b7c406cc-7701-496f-86f4-bda14d18eada",
    "pubsub#title": "Node b7c406cc-7701-496f-86f4-bda14d18eada"
}

2022-02-01 21:46:51 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 21:46:52 | [Mutex] waiting for: [received:nodes:73c09142-86f4-4bb4-8525-2a95f19a45c9:localhost]

2022-02-01 21:46:52 | [Mutex] received everything.

2022-02-01 21:46:52 | [Mutex] isItemNotified: received:node:73c09142-86f4-4bb4-8525-2a95f19a45c9:localhost:node-b7c406cc-7701-496f-86f4-bda14d18eada:Node b7c406cc-7701-496f-86f4-bda14d18eada :: true

deleteNodes 1.024s
2022-02-01 21:46:56 |

2022-02-01 21:46:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:56 | ------------------------------------

2022-02-01 21:46:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b7c406cc-7701-496f-86f4-bda14d18eada"
}

2022-02-01 21:46:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 21:46:57 | [Mutex] waiting for: [received:nodes:b5b899d4-664b-4c71-abc7-e977bad72a17:localhost]

2022-02-01 21:46:57 | [Mutex] received everything.

2022-02-01 21:46:57 | [Mutex] isItemNotified: received:node:b5b899d4-664b-4c71-abc7-e977bad72a17:localhost:node-b7c406cc-7701-496f-86f4-bda14d18eada:Node b7c406cc-7701-496f-86f4-bda14d18eada :: false

deleteSubnodes 1.030s
2022-02-01 21:46:55 |

2022-02-01 21:46:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:55 | ------------------------------------

2022-02-01 21:46:55 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e"
}

2022-02-01 21:46:55 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 21:46:56 | [Mutex] waiting for: [received:nodes:6b0603dc-30f7-493b-b9a7-7e942e725534:localhost]

2022-02-01 21:46:56 | [Mutex] received everything.

2022-02-01 21:46:56 | [Mutex] isItemNotified: received:node:6b0603dc-30f7-493b-b9a7-7e942e725534:localhost:node-71ed273f-0c4a-4b64-af21-90898009394e:Node 71ed273f-0c4a-4b64-af21-90898009394e :: false

2022-02-01 21:46:56 | [Mutex] waiting for: [received:nodes:d56b7491-ef01-4fd7-b437-9c2dddf9bd6f:localhost]

2022-02-01 21:46:56 | [Mutex] received everything.

2022-02-01 21:46:56 | [Mutex] isItemNotified: received:node:d56b7491-ef01-4fd7-b437-9c2dddf9bd6f:localhost:node-71ed273f-0c4a-4b64-af21-90898009394e:Node 71ed273f-0c4a-4b64-af21-90898009394e :: false

publishItemsToNodes 0.074s
2022-02-01 21:46:54 |

2022-02-01 21:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:54 | ------------------------------------

2022-02-01 21:46:54 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "entry": "<test>item-cd86d87f-cd6e-4517-8892-b716d2425adc</test>",
    "item-id": "item-cd86d87f-cd6e-4517-8892-b716d2425adc"
}

2022-02-01 21:46:54 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cd86d87f-cd6e-4517-8892-b716d2425adc"
}

2022-02-01 21:46:54 | [Mutex] waiting for: [published:item:notifieditem-cd86d87f-cd6e-4517-8892-b716d2425adc:admin@test-domain.com]

2022-02-01 21:46:54 | [Mutex] received everything.

2022-02-01 21:46:54 | [Mutex] isItemNotified: published:item:notifieditem-cd86d87f-cd6e-4517-8892-b716d2425adc:admin@test-domain.com :: true

retractItemsFromNodes 0.075s
2022-02-01 21:46:54 |

2022-02-01 21:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:54 | ------------------------------------

2022-02-01 21:46:54 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "item-id": "item-cd86d87f-cd6e-4517-8892-b716d2425adc"
}

2022-02-01 21:46:54 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-cd86d87f-cd6e-4517-8892-b716d2425adc"
}

2022-02-01 21:46:54 | [Mutex] received everything.

2022-02-01 21:46:54 | [Mutex] isItemNotified: retracted:item:notifieditem-cd86d87f-cd6e-4517-8892-b716d2425adc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.051s
2022-02-01 21:46:54 |

2022-02-01 21:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:54 | ------------------------------------

2022-02-01 21:46:54 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "item-id": "item-cd86d87f-cd6e-4517-8892-b716d2425adc"
}

2022-02-01 21:46:54 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "item-id": "item-cd86d87f-cd6e-4517-8892-b716d2425adc",
    "item": [
        "<item id=\"item-cd86d87f-cd6e-4517-8892-b716d2425adc\"><test>item-cd86d87f-cd6e-4517-8892-b716d2425adc</test></item>"
    ]
}

2022-02-01 21:46:54 | [Mutex] notify: [retrieved:item:item-cd86d87f-cd6e-4517-8892-b716d2425adc:payload-matches:true:localhost]

2022-02-01 21:46:54 | [Mutex] received everything.

2022-02-01 21:46:54 | [Mutex] isItemNotified: retrieved:item:item-cd86d87f-cd6e-4517-8892-b716d2425adc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2022-02-01 21:46:54 |

2022-02-01 21:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:54 | ------------------------------------

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

2022-02-01 21:46:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-71ed273f-0c4a-4b64-af21-90898009394e",
        "test",
        "node-b7c406cc-7701-496f-86f4-bda14d18eada"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-01 21:46:54 |

2022-02-01 21:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:54 | ------------------------------------

2022-02-01 21:46:54 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-71ed273f-0c4a-4b64-af21-90898009394e)"
}

2022-02-01 21:46:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2022-02-01 21:46:53 |

2022-02-01 21:46:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:53 | ------------------------------------

2022-02-01 21:46:53 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-01 21:46:53 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.099s
2022-02-01 21:46:54 |

2022-02-01 21:46:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 21:46:54 | ------------------------------------

2022-02-01 21:46:54 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-71ed273f-0c4a-4b64-af21-90898009394e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-01 21:46:54 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}