Generated by TestNG with ReportNG at 22:22 PDT on Monday 17 October 2022
root@f9c07ffec79b / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.681s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.105s
2022-10-17 22:36:37 |

2022-10-17 22:36:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:37 | ------------------------------------

2022-10-17 22:36:37 | [Mutex] waiting for: [configured:node:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916]

2022-10-17 22:36:37 | [Mutex] received everything.

2022-10-17 22:36:37 | [Mutex] isItemNotified: configured:node:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916 :: true

2022-10-17 22:36:38 | [Mutex] waiting for: [received:nodes:7ce8afa5-35fb-4949-8121-49bae1f4a156:localhost]

2022-10-17 22:36:38 | [Mutex] received everything.

2022-10-17 22:36:38 | [Mutex] isItemNotified: received:node:7ce8afa5-35fb-4949-8121-49bae1f4a156:localhost:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:Node 6345886d-8ee4-4f2e-8125-0e157b912a2d :: true

2022-10-17 22:36:38 | [Mutex] waiting for: [received:nodes:d1a5e3d7-82dd-4f9c-84d9-00bd3a13c097:localhost]

2022-10-17 22:36:38 | [Mutex] waiting for: [received:nodes:d1a5e3d7-82dd-4f9c-84d9-00bd3a13c097:localhost]

2022-10-17 22:36:38 | [Mutex] received everything.

2022-10-17 22:36:38 | [Mutex] isItemNotified: received:node:d1a5e3d7-82dd-4f9c-84d9-00bd3a13c097:localhost:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:Node 6345886d-8ee4-4f2e-8125-0e157b912a2d :: false

createNodes 1.594s
2022-10-17 22:36:34 |

2022-10-17 22:36:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:34 | ------------------------------------

2022-10-17 22:36:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "pubsub#title": "Node 6345886d-8ee4-4f2e-8125-0e157b912a2d"
}

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

2022-10-17 22:36:36 | [Mutex] waiting for: [received:nodes:d470b9cc-83a3-4c6c-b7a4-766b4878ba99:localhost]

2022-10-17 22:36:36 | [Mutex] received everything.

2022-10-17 22:36:36 | [Mutex] isItemNotified: received:node:d470b9cc-83a3-4c6c-b7a4-766b4878ba99:localhost:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:Node 6345886d-8ee4-4f2e-8125-0e157b912a2d :: true

createSubnodes 1.023s
2022-10-17 22:36:36 |

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

2022-10-17 22:36:36 | ------------------------------------

2022-10-17 22:36:36 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916",
    "pubsub#title": "Node fa1d52a0-aef6-4d2a-a164-00dd87e8f916"
}

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

2022-10-17 22:36:37 | [Mutex] waiting for: [received:nodes:eec0cce2-c667-4106-b473-094ace567751:localhost]

2022-10-17 22:36:37 | [Mutex] received everything.

2022-10-17 22:36:37 | [Mutex] isItemNotified: received:node:eec0cce2-c667-4106-b473-094ace567751:localhost:node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916:Node fa1d52a0-aef6-4d2a-a164-00dd87e8f916 :: true

deleteNodes 1.023s
2022-10-17 22:36:42 |

2022-10-17 22:36:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:42 | ------------------------------------

2022-10-17 22:36:42 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916"
}

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

2022-10-17 22:36:43 | [Mutex] waiting for: [received:nodes:fe135540-6162-4f4b-850e-23da7479d07e:localhost]

2022-10-17 22:36:43 | [Mutex] received everything.

2022-10-17 22:36:43 | [Mutex] isItemNotified: received:node:fe135540-6162-4f4b-850e-23da7479d07e:localhost:node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916:Node fa1d52a0-aef6-4d2a-a164-00dd87e8f916 :: false

deleteSubnodes 1.025s
2022-10-17 22:36:41 |

2022-10-17 22:36:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:41 | ------------------------------------

2022-10-17 22:36:41 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d"
}

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

2022-10-17 22:36:42 | [Mutex] waiting for: [received:nodes:604f2a9a-134d-4cfb-b689-4ecba49a7255:localhost]

2022-10-17 22:36:42 | [Mutex] waiting for: [received:nodes:604f2a9a-134d-4cfb-b689-4ecba49a7255:localhost]

2022-10-17 22:36:42 | [Mutex] received everything.

2022-10-17 22:36:42 | [Mutex] isItemNotified: received:node:604f2a9a-134d-4cfb-b689-4ecba49a7255:localhost:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:Node 6345886d-8ee4-4f2e-8125-0e157b912a2d :: false

2022-10-17 22:36:42 | [Mutex] waiting for: [received:nodes:c7538dfc-e2c6-4686-bdd9-8929975707e3:localhost]

2022-10-17 22:36:42 | [Mutex] received everything.

2022-10-17 22:36:42 | [Mutex] isItemNotified: received:node:c7538dfc-e2c6-4686-bdd9-8929975707e3:localhost:node-6345886d-8ee4-4f2e-8125-0e157b912a2d:Node 6345886d-8ee4-4f2e-8125-0e157b912a2d :: false

publishItemsToNodes 0.067s
2022-10-17 22:36:39 |

2022-10-17 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:39 | ------------------------------------

2022-10-17 22:36:39 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "entry": "<test>item-384b35fc-6176-4ab1-be49-4fbc0d7b304d</test>",
    "item-id": "item-384b35fc-6176-4ab1-be49-4fbc0d7b304d"
}

2022-10-17 22:36:39 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-384b35fc-6176-4ab1-be49-4fbc0d7b304d"
}

2022-10-17 22:36:39 | [Mutex] waiting for: [published:item:notifieditem-384b35fc-6176-4ab1-be49-4fbc0d7b304d:admin@test-domain.com]

2022-10-17 22:36:39 | [Mutex] received everything.

2022-10-17 22:36:39 | [Mutex] isItemNotified: published:item:notifieditem-384b35fc-6176-4ab1-be49-4fbc0d7b304d:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-10-17 22:36:39 |

2022-10-17 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:39 | ------------------------------------

2022-10-17 22:36:39 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "item-id": "item-384b35fc-6176-4ab1-be49-4fbc0d7b304d"
}

2022-10-17 22:36:39 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-384b35fc-6176-4ab1-be49-4fbc0d7b304d"
}

2022-10-17 22:36:39 | [Mutex] received everything.

2022-10-17 22:36:39 | [Mutex] isItemNotified: retracted:item:notifieditem-384b35fc-6176-4ab1-be49-4fbc0d7b304d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.104s
2022-10-17 22:36:39 |

2022-10-17 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:39 | ------------------------------------

2022-10-17 22:36:39 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "item-id": "item-384b35fc-6176-4ab1-be49-4fbc0d7b304d"
}

2022-10-17 22:36:39 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "item-id": "item-384b35fc-6176-4ab1-be49-4fbc0d7b304d",
    "item": [
        "<item id=\"item-384b35fc-6176-4ab1-be49-4fbc0d7b304d\"><test>item-384b35fc-6176-4ab1-be49-4fbc0d7b304d</test></item>"
    ]
}

2022-10-17 22:36:39 | [Mutex] notify: [retrieved:item:item-384b35fc-6176-4ab1-be49-4fbc0d7b304d:payload-matches:true:localhost]

2022-10-17 22:36:39 | [Mutex] received everything.

2022-10-17 22:36:39 | [Mutex] isItemNotified: retrieved:item:item-384b35fc-6176-4ab1-be49-4fbc0d7b304d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2022-10-17 22:36:39 |

2022-10-17 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:39 | ------------------------------------

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

2022-10-17 22:36:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-fa1d52a0-aef6-4d2a-a164-00dd87e8f916",
        "test",
        "node-6345886d-8ee4-4f2e-8125-0e157b912a2d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-10-17 22:36:39 |

2022-10-17 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:39 | ------------------------------------

2022-10-17 22:36:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6345886d-8ee4-4f2e-8125-0e157b912a2d)"
}

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

subscribeNodes 1.016s
2022-10-17 22:36:38 |

2022-10-17 22:36:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:38 | ------------------------------------

2022-10-17 22:36:38 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.056s
2022-10-17 22:36:39 |

2022-10-17 22:36:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-17 22:36:39 | ------------------------------------

2022-10-17 22:36:39 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6345886d-8ee4-4f2e-8125-0e157b912a2d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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