Generated by TestNG with ReportNG at 23:01 PDT on Wednesday 13 April 2022
root@21fb2cc9076b / Java 17.0.2 (Private Build) / 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 : 8.973s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.121s
2022-04-13 23:16:22 |

2022-04-13 23:16:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:22 | ------------------------------------

2022-04-13 23:16:22 | [Mutex] waiting for: [configured:node:node-630c24cd-c386-483c-8e06-264c82cd5b5d:node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7]

2022-04-13 23:16:22 | [Mutex] received everything.

2022-04-13 23:16:22 | [Mutex] isItemNotified: configured:node:node-630c24cd-c386-483c-8e06-264c82cd5b5d:node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7 :: true

2022-04-13 23:16:23 | [Mutex] waiting for: [received:nodes:ac93c0a1-d270-4c70-9e41-5d80bf6aab03:localhost]

2022-04-13 23:16:23 | [Mutex] received everything.

2022-04-13 23:16:23 | [Mutex] isItemNotified: received:node:ac93c0a1-d270-4c70-9e41-5d80bf6aab03:localhost:node-630c24cd-c386-483c-8e06-264c82cd5b5d:Node 630c24cd-c386-483c-8e06-264c82cd5b5d :: true

2022-04-13 23:16:23 | [Mutex] waiting for: [received:nodes:d8765943-45da-43f7-9d64-de7fd872f8dd:localhost]

2022-04-13 23:16:23 | [Mutex] received everything.

2022-04-13 23:16:23 | [Mutex] isItemNotified: received:node:d8765943-45da-43f7-9d64-de7fd872f8dd:localhost:node-630c24cd-c386-483c-8e06-264c82cd5b5d:Node 630c24cd-c386-483c-8e06-264c82cd5b5d :: false

createNodes 1.691s
2022-04-13 23:16:19 |

2022-04-13 23:16:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:19 | ------------------------------------

2022-04-13 23:16:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "pubsub#title": "Node 630c24cd-c386-483c-8e06-264c82cd5b5d"
}

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

2022-04-13 23:16:21 | [Mutex] waiting for: [received:nodes:eadcb7d1-c066-4235-8df1-457d8c838d9e:localhost]

2022-04-13 23:16:21 | [Mutex] waiting for: [received:nodes:eadcb7d1-c066-4235-8df1-457d8c838d9e:localhost]

2022-04-13 23:16:21 | [Mutex] received everything.

2022-04-13 23:16:21 | [Mutex] isItemNotified: received:node:eadcb7d1-c066-4235-8df1-457d8c838d9e:localhost:node-630c24cd-c386-483c-8e06-264c82cd5b5d:Node 630c24cd-c386-483c-8e06-264c82cd5b5d :: true

createSubnodes 1.019s
2022-04-13 23:16:21 |

2022-04-13 23:16:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:21 | ------------------------------------

2022-04-13 23:16:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7",
    "pubsub#title": "Node ae730375-3d35-4ba5-bfbd-c64d3a338bf7"
}

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

2022-04-13 23:16:22 | [Mutex] waiting for: [received:nodes:3f2618a5-3a79-4ec9-8d34-4aa1b980e77f:localhost]

2022-04-13 23:16:22 | [Mutex] waiting for: [received:nodes:3f2618a5-3a79-4ec9-8d34-4aa1b980e77f:localhost]

2022-04-13 23:16:22 | [Mutex] received everything.

2022-04-13 23:16:22 | [Mutex] isItemNotified: received:node:3f2618a5-3a79-4ec9-8d34-4aa1b980e77f:localhost:node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7:Node ae730375-3d35-4ba5-bfbd-c64d3a338bf7 :: true

deleteNodes 1.017s
2022-04-13 23:16:26 |

2022-04-13 23:16:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:26 | ------------------------------------

2022-04-13 23:16:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7"
}

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

2022-04-13 23:16:27 | [Mutex] waiting for: [received:nodes:53868cc9-0f11-4ae6-ac89-98bbac83ed8b:localhost]

2022-04-13 23:16:27 | [Mutex] received everything.

2022-04-13 23:16:27 | [Mutex] isItemNotified: received:node:53868cc9-0f11-4ae6-ac89-98bbac83ed8b:localhost:node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7:Node ae730375-3d35-4ba5-bfbd-c64d3a338bf7 :: false

deleteSubnodes 1.032s
2022-04-13 23:16:25 |

2022-04-13 23:16:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:25 | ------------------------------------

2022-04-13 23:16:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d"
}

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

2022-04-13 23:16:26 | [Mutex] waiting for: [received:nodes:14e1429b-d50e-4bba-b16e-9fe555857564:localhost]

2022-04-13 23:16:26 | [Mutex] waiting for: [received:nodes:14e1429b-d50e-4bba-b16e-9fe555857564:localhost]

2022-04-13 23:16:26 | [Mutex] received everything.

2022-04-13 23:16:26 | [Mutex] isItemNotified: received:node:14e1429b-d50e-4bba-b16e-9fe555857564:localhost:node-630c24cd-c386-483c-8e06-264c82cd5b5d:Node 630c24cd-c386-483c-8e06-264c82cd5b5d :: false

2022-04-13 23:16:26 | [Mutex] waiting for: [received:nodes:0cfbc6d2-5b48-4982-a08c-b107e042b44f:localhost]

2022-04-13 23:16:26 | [Mutex] received everything.

2022-04-13 23:16:26 | [Mutex] isItemNotified: received:node:0cfbc6d2-5b48-4982-a08c-b107e042b44f:localhost:node-630c24cd-c386-483c-8e06-264c82cd5b5d:Node 630c24cd-c386-483c-8e06-264c82cd5b5d :: false

publishItemsToNodes 0.052s
2022-04-13 23:16:24 |

2022-04-13 23:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:24 | ------------------------------------

2022-04-13 23:16:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "entry": "<test>item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d</test>",
    "item-id": "item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d"
}

2022-04-13 23:16:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d"
}

2022-04-13 23:16:24 | [Mutex] waiting for: [published:item:notifieditem-60d42e4d-7ac0-4e16-ac76-9bc689e4646d:admin@test-domain.com]

2022-04-13 23:16:24 | [Mutex] received everything.

2022-04-13 23:16:24 | [Mutex] isItemNotified: published:item:notifieditem-60d42e4d-7ac0-4e16-ac76-9bc689e4646d:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-04-13 23:16:24 |

2022-04-13 23:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:24 | ------------------------------------

2022-04-13 23:16:24 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "item-id": "item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d"
}

2022-04-13 23:16:24 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d"
}

2022-04-13 23:16:24 | [Mutex] received everything.

2022-04-13 23:16:24 | [Mutex] isItemNotified: retracted:item:notifieditem-60d42e4d-7ac0-4e16-ac76-9bc689e4646d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.031s
2022-04-13 23:16:24 |

2022-04-13 23:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:24 | ------------------------------------

2022-04-13 23:16:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "item-id": "item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d"
}

2022-04-13 23:16:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "item-id": "item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d",
    "item": [
        "<item id=\"item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d\"><test>item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d</test></item>"
    ]
}

2022-04-13 23:16:24 | [Mutex] notify: [retrieved:item:item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d:payload-matches:true:localhost]

2022-04-13 23:16:24 | [Mutex] received everything.

2022-04-13 23:16:24 | [Mutex] isItemNotified: retrieved:item:item-60d42e4d-7ac0-4e16-ac76-9bc689e4646d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.068s
2022-04-13 23:16:24 |

2022-04-13 23:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:24 | ------------------------------------

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

2022-04-13 23:16:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-ae730375-3d35-4ba5-bfbd-c64d3a338bf7",
        "test",
        "node-630c24cd-c386-483c-8e06-264c82cd5b5d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-04-13 23:16:24 |

2022-04-13 23:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:24 | ------------------------------------

2022-04-13 23:16:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-630c24cd-c386-483c-8e06-264c82cd5b5d)"
}

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

subscribeNodes 1.013s
2022-04-13 23:16:23 |

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

2022-04-13 23:16:23 | ------------------------------------

2022-04-13 23:16:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.055s
2022-04-13 23:16:24 |

2022-04-13 23:16:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-04-13 23:16:24 | ------------------------------------

2022-04-13 23:16:24 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-630c24cd-c386-483c-8e06-264c82cd5b5d",
    "jids": [
        "admin@test-domain.com"
    ]
}

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