Generated by TestNG with ReportNG at 21:47 PST on Tuesday 15 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.099s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.122s
2022-02-15 22:03:30 |

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

2022-02-15 22:03:30 | ------------------------------------

2022-02-15 22:03:30 | [Mutex] waiting for: [configured:node:node-67ec07cc-c376-4a71-81f9-352685566d3c:node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994]

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

2022-02-15 22:03:31 | [Mutex] isItemNotified: configured:node:node-67ec07cc-c376-4a71-81f9-352685566d3c:node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994 :: true

2022-02-15 22:03:32 | [Mutex] waiting for: [received:nodes:eab2003d-c064-4973-b479-5971b670d9a1:localhost]

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

2022-02-15 22:03:32 | [Mutex] isItemNotified: received:node:eab2003d-c064-4973-b479-5971b670d9a1:localhost:node-67ec07cc-c376-4a71-81f9-352685566d3c:Node 67ec07cc-c376-4a71-81f9-352685566d3c :: true

2022-02-15 22:03:32 | [Mutex] waiting for: [received:nodes:9c1d685e-3309-450c-9bd2-bcb391f16594:localhost]

2022-02-15 22:03:32 | [Mutex] waiting for: [received:nodes:9c1d685e-3309-450c-9bd2-bcb391f16594:localhost]

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

2022-02-15 22:03:32 | [Mutex] isItemNotified: received:node:9c1d685e-3309-450c-9bd2-bcb391f16594:localhost:node-67ec07cc-c376-4a71-81f9-352685566d3c:Node 67ec07cc-c376-4a71-81f9-352685566d3c :: false

createNodes 1.762s
2022-02-15 22:03:28 |

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

2022-02-15 22:03:28 | ------------------------------------

2022-02-15 22:03:28 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "pubsub#title": "Node 67ec07cc-c376-4a71-81f9-352685566d3c"
}

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

2022-02-15 22:03:29 | [Mutex] waiting for: [received:nodes:765f540b-e7d8-4a04-8eab-4d2cd7a437fb:localhost]

2022-02-15 22:03:29 | [Mutex] waiting for: [received:nodes:765f540b-e7d8-4a04-8eab-4d2cd7a437fb:localhost]

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

2022-02-15 22:03:29 | [Mutex] isItemNotified: received:node:765f540b-e7d8-4a04-8eab-4d2cd7a437fb:localhost:node-67ec07cc-c376-4a71-81f9-352685566d3c:Node 67ec07cc-c376-4a71-81f9-352685566d3c :: true

createSubnodes 1.026s
2022-02-15 22:03:29 |

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

2022-02-15 22:03:29 | ------------------------------------

2022-02-15 22:03:29 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994",
    "pubsub#title": "Node 9f01c56e-707e-4cf3-b0c2-dc0b42bee994"
}

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

2022-02-15 22:03:30 | [Mutex] waiting for: [received:nodes:e2a3e1dc-d113-47b5-8f1e-77ed8519897e:localhost]

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

2022-02-15 22:03:30 | [Mutex] isItemNotified: received:node:e2a3e1dc-d113-47b5-8f1e-77ed8519897e:localhost:node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994:Node 9f01c56e-707e-4cf3-b0c2-dc0b42bee994 :: true

deleteNodes 1.026s
2022-02-15 22:03:35 |

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

2022-02-15 22:03:35 | ------------------------------------

2022-02-15 22:03:35 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994"
}

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

2022-02-15 22:03:36 | [Mutex] waiting for: [received:nodes:ff86e54b-3861-4c65-a839-40d2f55fd719:localhost]

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

2022-02-15 22:03:36 | [Mutex] isItemNotified: received:node:ff86e54b-3861-4c65-a839-40d2f55fd719:localhost:node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994:Node 9f01c56e-707e-4cf3-b0c2-dc0b42bee994 :: false

deleteSubnodes 1.040s
2022-02-15 22:03:34 |

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

2022-02-15 22:03:34 | ------------------------------------

2022-02-15 22:03:34 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c"
}

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

2022-02-15 22:03:35 | [Mutex] waiting for: [received:nodes:16c4e01c-2da4-4118-a511-7b65d6a029f6:localhost]

2022-02-15 22:03:35 | [Mutex] waiting for: [received:nodes:16c4e01c-2da4-4118-a511-7b65d6a029f6:localhost]

2022-02-15 22:03:35 | [Mutex] waiting for: [received:nodes:16c4e01c-2da4-4118-a511-7b65d6a029f6:localhost]

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

2022-02-15 22:03:35 | [Mutex] isItemNotified: received:node:16c4e01c-2da4-4118-a511-7b65d6a029f6:localhost:node-67ec07cc-c376-4a71-81f9-352685566d3c:Node 67ec07cc-c376-4a71-81f9-352685566d3c :: false

2022-02-15 22:03:35 | [Mutex] waiting for: [received:nodes:c98210fa-91c1-47fd-9a9c-8370faf678d1:localhost]

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

2022-02-15 22:03:35 | [Mutex] isItemNotified: received:node:c98210fa-91c1-47fd-9a9c-8370faf678d1:localhost:node-67ec07cc-c376-4a71-81f9-352685566d3c:Node 67ec07cc-c376-4a71-81f9-352685566d3c :: false

publishItemsToNodes 0.060s
2022-02-15 22:03:33 |

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

2022-02-15 22:03:33 | ------------------------------------

2022-02-15 22:03:33 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "entry": "<test>item-c4acdd99-0aab-4ead-a405-9ce3017e555f</test>",
    "item-id": "item-c4acdd99-0aab-4ead-a405-9ce3017e555f"
}

2022-02-15 22:03:33 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4acdd99-0aab-4ead-a405-9ce3017e555f"
}

2022-02-15 22:03:33 | [Mutex] waiting for: [published:item:notifieditem-c4acdd99-0aab-4ead-a405-9ce3017e555f:admin@test-domain.com]

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

2022-02-15 22:03:33 | [Mutex] isItemNotified: published:item:notifieditem-c4acdd99-0aab-4ead-a405-9ce3017e555f:admin@test-domain.com :: true

retractItemsFromNodes 0.083s
2022-02-15 22:03:33 |

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

2022-02-15 22:03:33 | ------------------------------------

2022-02-15 22:03:33 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "item-id": "item-c4acdd99-0aab-4ead-a405-9ce3017e555f"
}

2022-02-15 22:03:33 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c4acdd99-0aab-4ead-a405-9ce3017e555f"
}

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

2022-02-15 22:03:33 | [Mutex] isItemNotified: retracted:item:notifieditem-c4acdd99-0aab-4ead-a405-9ce3017e555f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.099s
2022-02-15 22:03:33 |

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

2022-02-15 22:03:33 | ------------------------------------

2022-02-15 22:03:33 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "item-id": "item-c4acdd99-0aab-4ead-a405-9ce3017e555f"
}

2022-02-15 22:03:33 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "item-id": "item-c4acdd99-0aab-4ead-a405-9ce3017e555f",
    "item": [
        "<item id=\"item-c4acdd99-0aab-4ead-a405-9ce3017e555f\"><test>item-c4acdd99-0aab-4ead-a405-9ce3017e555f</test></item>"
    ]
}

2022-02-15 22:03:33 | [Mutex] notify: [retrieved:item:item-c4acdd99-0aab-4ead-a405-9ce3017e555f:payload-matches:true:localhost]

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

2022-02-15 22:03:33 | [Mutex] isItemNotified: retrieved:item:item-c4acdd99-0aab-4ead-a405-9ce3017e555f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.056s
2022-02-15 22:03:33 |

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

2022-02-15 22:03:33 | ------------------------------------

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

2022-02-15 22:03:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-9f01c56e-707e-4cf3-b0c2-dc0b42bee994",
        "test",
        "node-67ec07cc-c376-4a71-81f9-352685566d3c"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2022-02-15 22:03:33 |

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

2022-02-15 22:03:33 | ------------------------------------

2022-02-15 22:03:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-67ec07cc-c376-4a71-81f9-352685566d3c)"
}

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

subscribeNodes 1.012s
2022-02-15 22:03:32 |

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

2022-02-15 22:03:32 | ------------------------------------

2022-02-15 22:03:32 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.063s
2022-02-15 22:03:33 |

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

2022-02-15 22:03:33 | ------------------------------------

2022-02-15 22:03:33 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-67ec07cc-c376-4a71-81f9-352685566d3c",
    "jids": [
        "admin@test-domain.com"
    ]
}

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