Generated by TestNG with ReportNG at 22:49 PDT on Thursday 07 July 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.680s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.091s
2022-07-07 23:04:54 |

2022-07-07 23:04:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:54 | ------------------------------------

2022-07-07 23:04:54 | [Mutex] waiting for: [configured:node:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:node-b0decf1e-f36f-4199-a7a0-221b190e1040]

2022-07-07 23:04:54 | [Mutex] received everything.

2022-07-07 23:04:54 | [Mutex] isItemNotified: configured:node:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:node-b0decf1e-f36f-4199-a7a0-221b190e1040 :: true

2022-07-07 23:04:55 | [Mutex] waiting for: [received:nodes:303a72b5-6c61-4c52-a634-68d9ea55562d:localhost]

2022-07-07 23:04:55 | [Mutex] received everything.

2022-07-07 23:04:55 | [Mutex] isItemNotified: received:node:303a72b5-6c61-4c52-a634-68d9ea55562d:localhost:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:Node de715f92-66a1-4a13-9d1f-8cf8ceef7e49 :: true

2022-07-07 23:04:55 | [Mutex] waiting for: [received:nodes:61058c13-6365-450e-8cc0-240cdbffe4f5:localhost]

2022-07-07 23:04:55 | [Mutex] received everything.

2022-07-07 23:04:55 | [Mutex] isItemNotified: received:node:61058c13-6365-450e-8cc0-240cdbffe4f5:localhost:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:Node de715f92-66a1-4a13-9d1f-8cf8ceef7e49 :: false

createNodes 1.541s
2022-07-07 23:04:51 |

2022-07-07 23:04:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:51 | ------------------------------------

2022-07-07 23:04:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "pubsub#title": "Node de715f92-66a1-4a13-9d1f-8cf8ceef7e49"
}

2022-07-07 23:04:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:04:53 | [Mutex] waiting for: [received:nodes:f1e9207b-245e-48e7-84a5-db407f7c920d:localhost]

2022-07-07 23:04:53 | [Mutex] received everything.

2022-07-07 23:04:53 | [Mutex] isItemNotified: received:node:f1e9207b-245e-48e7-84a5-db407f7c920d:localhost:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:Node de715f92-66a1-4a13-9d1f-8cf8ceef7e49 :: true

createSubnodes 1.023s
2022-07-07 23:04:53 |

2022-07-07 23:04:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:53 | ------------------------------------

2022-07-07 23:04:53 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b0decf1e-f36f-4199-a7a0-221b190e1040",
    "pubsub#title": "Node b0decf1e-f36f-4199-a7a0-221b190e1040"
}

2022-07-07 23:04:53 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:04:54 | [Mutex] waiting for: [received:nodes:1e3fc09a-db08-443c-9b11-5641aac5f145:localhost]

2022-07-07 23:04:54 | [Mutex] waiting for: [received:nodes:1e3fc09a-db08-443c-9b11-5641aac5f145:localhost]

2022-07-07 23:04:54 | [Mutex] received everything.

2022-07-07 23:04:54 | [Mutex] isItemNotified: received:node:1e3fc09a-db08-443c-9b11-5641aac5f145:localhost:node-b0decf1e-f36f-4199-a7a0-221b190e1040:Node b0decf1e-f36f-4199-a7a0-221b190e1040 :: true

deleteNodes 1.023s
2022-07-07 23:04:58 |

2022-07-07 23:04:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:58 | ------------------------------------

2022-07-07 23:04:58 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b0decf1e-f36f-4199-a7a0-221b190e1040"
}

2022-07-07 23:04:58 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:04:59 | [Mutex] waiting for: [received:nodes:e6c9df93-66d5-4ff6-9f36-7a6abdb9132b:localhost]

2022-07-07 23:04:59 | [Mutex] received everything.

2022-07-07 23:04:59 | [Mutex] isItemNotified: received:node:e6c9df93-66d5-4ff6-9f36-7a6abdb9132b:localhost:node-b0decf1e-f36f-4199-a7a0-221b190e1040:Node b0decf1e-f36f-4199-a7a0-221b190e1040 :: false

deleteSubnodes 1.025s
2022-07-07 23:04:57 |

2022-07-07 23:04:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:57 | ------------------------------------

2022-07-07 23:04:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49"
}

2022-07-07 23:04:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-07 23:04:58 | [Mutex] waiting for: [received:nodes:c4e917ca-5a23-4b33-8598-cc6d3868c420:localhost]

2022-07-07 23:04:58 | [Mutex] received everything.

2022-07-07 23:04:58 | [Mutex] isItemNotified: received:node:c4e917ca-5a23-4b33-8598-cc6d3868c420:localhost:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:Node de715f92-66a1-4a13-9d1f-8cf8ceef7e49 :: false

2022-07-07 23:04:58 | [Mutex] waiting for: [received:nodes:e00095e3-3ffa-4014-b1f8-3356681793c7:localhost]

2022-07-07 23:04:58 | [Mutex] received everything.

2022-07-07 23:04:58 | [Mutex] isItemNotified: received:node:e00095e3-3ffa-4014-b1f8-3356681793c7:localhost:node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49:Node de715f92-66a1-4a13-9d1f-8cf8ceef7e49 :: false

publishItemsToNodes 0.120s
2022-07-07 23:04:56 |

2022-07-07 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:56 | ------------------------------------

2022-07-07 23:04:56 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "entry": "<test>item-49629c68-0df3-452a-a2d1-97b29236d15f</test>",
    "item-id": "item-49629c68-0df3-452a-a2d1-97b29236d15f"
}

2022-07-07 23:04:56 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-49629c68-0df3-452a-a2d1-97b29236d15f"
}

2022-07-07 23:04:56 | [Mutex] waiting for: [published:item:notifieditem-49629c68-0df3-452a-a2d1-97b29236d15f:admin@test-domain.com]

2022-07-07 23:04:56 | [Mutex] received everything.

2022-07-07 23:04:56 | [Mutex] isItemNotified: published:item:notifieditem-49629c68-0df3-452a-a2d1-97b29236d15f:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-07 23:04:56 |

2022-07-07 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:56 | ------------------------------------

2022-07-07 23:04:56 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "item-id": "item-49629c68-0df3-452a-a2d1-97b29236d15f"
}

2022-07-07 23:04:56 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-49629c68-0df3-452a-a2d1-97b29236d15f"
}

2022-07-07 23:04:56 | [Mutex] received everything.

2022-07-07 23:04:56 | [Mutex] isItemNotified: retracted:item:notifieditem-49629c68-0df3-452a-a2d1-97b29236d15f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.047s
2022-07-07 23:04:56 |

2022-07-07 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:56 | ------------------------------------

2022-07-07 23:04:56 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "item-id": "item-49629c68-0df3-452a-a2d1-97b29236d15f"
}

2022-07-07 23:04:56 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "item-id": "item-49629c68-0df3-452a-a2d1-97b29236d15f",
    "item": [
        "<item id=\"item-49629c68-0df3-452a-a2d1-97b29236d15f\"><test>item-49629c68-0df3-452a-a2d1-97b29236d15f</test></item>"
    ]
}

2022-07-07 23:04:56 | [Mutex] notify: [retrieved:item:item-49629c68-0df3-452a-a2d1-97b29236d15f:payload-matches:true:localhost]

2022-07-07 23:04:56 | [Mutex] received everything.

2022-07-07 23:04:56 | [Mutex] isItemNotified: retrieved:item:item-49629c68-0df3-452a-a2d1-97b29236d15f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.054s
2022-07-07 23:04:56 |

2022-07-07 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:56 | ------------------------------------

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

2022-07-07 23:04:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
        "node-b0decf1e-f36f-4199-a7a0-221b190e1040"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-07-07 23:04:56 |

2022-07-07 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:56 | ------------------------------------

2022-07-07 23:04:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49)"
}

2022-07-07 23:04:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-07-07 23:04:55 |

2022-07-07 23:04:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:55 | ------------------------------------

2022-07-07 23:04:55 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-07 23:04:55 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.056s
2022-07-07 23:04:56 |

2022-07-07 23:04:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-07 23:04:56 | ------------------------------------

2022-07-07 23:04:56 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-de715f92-66a1-4a13-9d1f-8cf8ceef7e49",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-07 23:04:56 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}