Generated by TestNG with ReportNG at 22:18 PDT on Wednesday 20 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.661s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.095s
2022-07-20 22:33:15 |

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

2022-07-20 22:33:15 | ------------------------------------

2022-07-20 22:33:15 | [Mutex] waiting for: [configured:node:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:node-e8729069-5d67-4e62-a18f-ad39d3617925]

2022-07-20 22:33:15 | [Mutex] received everything.

2022-07-20 22:33:15 | [Mutex] isItemNotified: configured:node:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:node-e8729069-5d67-4e62-a18f-ad39d3617925 :: true

2022-07-20 22:33:16 | [Mutex] waiting for: [received:nodes:f99f394b-3f2c-44d7-b752-84555981c70e:localhost]

2022-07-20 22:33:16 | [Mutex] received everything.

2022-07-20 22:33:16 | [Mutex] isItemNotified: received:node:f99f394b-3f2c-44d7-b752-84555981c70e:localhost:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:Node 20ad3c04-591c-4d88-9eb7-ee720ce6c2c4 :: true

2022-07-20 22:33:16 | [Mutex] waiting for: [received:nodes:5ff77e82-4554-48e9-82b0-6017f5b83d3f:localhost]

2022-07-20 22:33:16 | [Mutex] received everything.

2022-07-20 22:33:16 | [Mutex] isItemNotified: received:node:5ff77e82-4554-48e9-82b0-6017f5b83d3f:localhost:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:Node 20ad3c04-591c-4d88-9eb7-ee720ce6c2c4 :: false

createNodes 1.629s
2022-07-20 22:33:12 |

2022-07-20 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:12 | ------------------------------------

2022-07-20 22:33:13 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "pubsub#title": "Node 20ad3c04-591c-4d88-9eb7-ee720ce6c2c4"
}

2022-07-20 22:33:13 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-20 22:33:14 | [Mutex] waiting for: [received:nodes:92cfedec-19d4-4963-83d7-ae9d3f1e84e2:localhost]

2022-07-20 22:33:14 | [Mutex] waiting for: [received:nodes:92cfedec-19d4-4963-83d7-ae9d3f1e84e2:localhost]

2022-07-20 22:33:14 | [Mutex] received everything.

2022-07-20 22:33:14 | [Mutex] isItemNotified: received:node:92cfedec-19d4-4963-83d7-ae9d3f1e84e2:localhost:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:Node 20ad3c04-591c-4d88-9eb7-ee720ce6c2c4 :: true

createSubnodes 1.027s
2022-07-20 22:33:14 |

2022-07-20 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:14 | ------------------------------------

2022-07-20 22:33:14 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-e8729069-5d67-4e62-a18f-ad39d3617925",
    "pubsub#title": "Node e8729069-5d67-4e62-a18f-ad39d3617925"
}

2022-07-20 22:33:14 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-20 22:33:15 | [Mutex] waiting for: [received:nodes:40d62ac4-1b78-45e2-a362-8dd9fef017d2:localhost]

2022-07-20 22:33:15 | [Mutex] waiting for: [received:nodes:40d62ac4-1b78-45e2-a362-8dd9fef017d2:localhost]

2022-07-20 22:33:15 | [Mutex] received everything.

2022-07-20 22:33:15 | [Mutex] isItemNotified: received:node:40d62ac4-1b78-45e2-a362-8dd9fef017d2:localhost:node-e8729069-5d67-4e62-a18f-ad39d3617925:Node e8729069-5d67-4e62-a18f-ad39d3617925 :: true

deleteNodes 1.020s
2022-07-20 22:33:20 |

2022-07-20 22:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:20 | ------------------------------------

2022-07-20 22:33:20 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e8729069-5d67-4e62-a18f-ad39d3617925"
}

2022-07-20 22:33:20 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-20 22:33:21 | [Mutex] waiting for: [received:nodes:6a1c9ed9-a320-4437-8dfe-682d809339ff:localhost]

2022-07-20 22:33:21 | [Mutex] received everything.

2022-07-20 22:33:21 | [Mutex] isItemNotified: received:node:6a1c9ed9-a320-4437-8dfe-682d809339ff:localhost:node-e8729069-5d67-4e62-a18f-ad39d3617925:Node e8729069-5d67-4e62-a18f-ad39d3617925 :: false

deleteSubnodes 1.068s
2022-07-20 22:33:19 |

2022-07-20 22:33:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:19 | ------------------------------------

2022-07-20 22:33:19 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4"
}

2022-07-20 22:33:19 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-20 22:33:20 | [Mutex] waiting for: [received:nodes:65cc7c3b-2ed6-4af4-a2de-4fb14f0da860:localhost]

2022-07-20 22:33:20 | [Mutex] received everything.

2022-07-20 22:33:20 | [Mutex] isItemNotified: received:node:65cc7c3b-2ed6-4af4-a2de-4fb14f0da860:localhost:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:Node 20ad3c04-591c-4d88-9eb7-ee720ce6c2c4 :: false

2022-07-20 22:33:20 | [Mutex] waiting for: [received:nodes:cba87d1f-df30-45e1-8d84-42967a15b6d6:localhost]

2022-07-20 22:33:20 | [Mutex] received everything.

2022-07-20 22:33:20 | [Mutex] isItemNotified: received:node:cba87d1f-df30-45e1-8d84-42967a15b6d6:localhost:node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4:Node 20ad3c04-591c-4d88-9eb7-ee720ce6c2c4 :: false

publishItemsToNodes 0.054s
2022-07-20 22:33:17 |

2022-07-20 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:17 | ------------------------------------

2022-07-20 22:33:17 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "entry": "<test>item-699ce78a-a817-4251-8526-4f6f723b3516</test>",
    "item-id": "item-699ce78a-a817-4251-8526-4f6f723b3516"
}

2022-07-20 22:33:17 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-699ce78a-a817-4251-8526-4f6f723b3516"
}

2022-07-20 22:33:17 | [Mutex] waiting for: [published:item:notifieditem-699ce78a-a817-4251-8526-4f6f723b3516:admin@test-domain.com]

2022-07-20 22:33:17 | [Mutex] received everything.

2022-07-20 22:33:17 | [Mutex] isItemNotified: published:item:notifieditem-699ce78a-a817-4251-8526-4f6f723b3516:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2022-07-20 22:33:17 |

2022-07-20 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:17 | ------------------------------------

2022-07-20 22:33:17 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "item-id": "item-699ce78a-a817-4251-8526-4f6f723b3516"
}

2022-07-20 22:33:17 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-699ce78a-a817-4251-8526-4f6f723b3516"
}

2022-07-20 22:33:17 | [Mutex] waiting for: [retracted:item:notifieditem-699ce78a-a817-4251-8526-4f6f723b3516:admin@test-domain.com]

2022-07-20 22:33:17 | [Mutex] received everything.

2022-07-20 22:33:17 | [Mutex] isItemNotified: retracted:item:notifieditem-699ce78a-a817-4251-8526-4f6f723b3516:admin@test-domain.com :: true

retrieveItemsFromNodes 0.039s
2022-07-20 22:33:17 |

2022-07-20 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:17 | ------------------------------------

2022-07-20 22:33:17 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "item-id": "item-699ce78a-a817-4251-8526-4f6f723b3516"
}

2022-07-20 22:33:17 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "item-id": "item-699ce78a-a817-4251-8526-4f6f723b3516",
    "item": [
        "<item id=\"item-699ce78a-a817-4251-8526-4f6f723b3516\"><test>item-699ce78a-a817-4251-8526-4f6f723b3516</test></item>"
    ]
}

2022-07-20 22:33:17 | [Mutex] notify: [retrieved:item:item-699ce78a-a817-4251-8526-4f6f723b3516:payload-matches:true:localhost]

2022-07-20 22:33:17 | [Mutex] received everything.

2022-07-20 22:33:17 | [Mutex] isItemNotified: retrieved:item:item-699ce78a-a817-4251-8526-4f6f723b3516:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2022-07-20 22:33:17 |

2022-07-20 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:17 | ------------------------------------

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

2022-07-20 22:33:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
        "test",
        "node-e8729069-5d67-4e62-a18f-ad39d3617925"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-07-20 22:33:17 |

2022-07-20 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:17 | ------------------------------------

2022-07-20 22:33:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4)"
}

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

subscribeNodes 1.011s
2022-07-20 22:33:16 |

2022-07-20 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:16 | ------------------------------------

2022-07-20 22:33:16 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-20 22:33:16 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2022-07-20 22:33:17 |

2022-07-20 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-20 22:33:17 | ------------------------------------

2022-07-20 22:33:17 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-20ad3c04-591c-4d88-9eb7-ee720ce6c2c4",
    "jids": [
        "admin@test-domain.com"
    ]
}

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