Generated by TestNG with ReportNG at 23:01 PDT on Wednesday 01 June 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.620s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.087s
2022-06-01 23:17:00 |

2022-06-01 23:17:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:00 | ------------------------------------

2022-06-01 23:17:00 | [Mutex] waiting for: [configured:node:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:node-43e32048-bf95-4848-8aba-8dbe82a3a2e4]

2022-06-01 23:17:00 | [Mutex] received everything.

2022-06-01 23:17:00 | [Mutex] isItemNotified: configured:node:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:node-43e32048-bf95-4848-8aba-8dbe82a3a2e4 :: true

2022-06-01 23:17:01 | [Mutex] waiting for: [received:nodes:3b46a4df-a57e-4385-ae71-20a0a463195d:localhost]

2022-06-01 23:17:01 | [Mutex] received everything.

2022-06-01 23:17:01 | [Mutex] isItemNotified: received:node:3b46a4df-a57e-4385-ae71-20a0a463195d:localhost:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:Node 9be27dec-f65c-4e14-a3d9-446ac100dc4d :: true

2022-06-01 23:17:01 | [Mutex] waiting for: [received:nodes:00bd4541-108c-49dd-89ba-0107327248d9:localhost]

2022-06-01 23:17:01 | [Mutex] received everything.

2022-06-01 23:17:01 | [Mutex] isItemNotified: received:node:00bd4541-108c-49dd-89ba-0107327248d9:localhost:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:Node 9be27dec-f65c-4e14-a3d9-446ac100dc4d :: false

createNodes 1.551s
2022-06-01 23:16:57 |

2022-06-01 23:16:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:16:57 | ------------------------------------

2022-06-01 23:16:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "pubsub#title": "Node 9be27dec-f65c-4e14-a3d9-446ac100dc4d"
}

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

2022-06-01 23:16:59 | [Mutex] waiting for: [received:nodes:990d949e-0927-4b2a-9276-3ec0d66335e2:localhost]

2022-06-01 23:16:59 | [Mutex] received everything.

2022-06-01 23:16:59 | [Mutex] isItemNotified: received:node:990d949e-0927-4b2a-9276-3ec0d66335e2:localhost:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:Node 9be27dec-f65c-4e14-a3d9-446ac100dc4d :: true

createSubnodes 1.023s
2022-06-01 23:16:59 |

2022-06-01 23:16:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:16:59 | ------------------------------------

2022-06-01 23:16:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-43e32048-bf95-4848-8aba-8dbe82a3a2e4",
    "pubsub#title": "Node 43e32048-bf95-4848-8aba-8dbe82a3a2e4"
}

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

2022-06-01 23:17:00 | [Mutex] waiting for: [received:nodes:d4b4c45c-65dc-4d5f-9cd9-dce41bd8943f:localhost]

2022-06-01 23:17:00 | [Mutex] received everything.

2022-06-01 23:17:00 | [Mutex] isItemNotified: received:node:d4b4c45c-65dc-4d5f-9cd9-dce41bd8943f:localhost:node-43e32048-bf95-4848-8aba-8dbe82a3a2e4:Node 43e32048-bf95-4848-8aba-8dbe82a3a2e4 :: true

deleteNodes 1.022s
2022-06-01 23:17:04 |

2022-06-01 23:17:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:04 | ------------------------------------

2022-06-01 23:17:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-43e32048-bf95-4848-8aba-8dbe82a3a2e4"
}

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

2022-06-01 23:17:05 | [Mutex] waiting for: [received:nodes:909a4f13-8de2-4f7b-99d6-44ba0323d814:localhost]

2022-06-01 23:17:05 | [Mutex] waiting for: [received:nodes:909a4f13-8de2-4f7b-99d6-44ba0323d814:localhost]

2022-06-01 23:17:05 | [Mutex] received everything.

2022-06-01 23:17:05 | [Mutex] isItemNotified: received:node:909a4f13-8de2-4f7b-99d6-44ba0323d814:localhost:node-43e32048-bf95-4848-8aba-8dbe82a3a2e4:Node 43e32048-bf95-4848-8aba-8dbe82a3a2e4 :: false

deleteSubnodes 1.023s
2022-06-01 23:17:03 |

2022-06-01 23:17:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:03 | ------------------------------------

2022-06-01 23:17:03 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d"
}

2022-06-01 23:17:03 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-06-01 23:17:04 | [Mutex] waiting for: [received:nodes:165c170d-8667-4cf1-ac96-00e09e4ed39c:localhost]

2022-06-01 23:17:04 | [Mutex] received everything.

2022-06-01 23:17:04 | [Mutex] isItemNotified: received:node:165c170d-8667-4cf1-ac96-00e09e4ed39c:localhost:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:Node 9be27dec-f65c-4e14-a3d9-446ac100dc4d :: false

2022-06-01 23:17:04 | [Mutex] waiting for: [received:nodes:37084fb2-65e7-4e58-baf6-0da99f616373:localhost]

2022-06-01 23:17:04 | [Mutex] received everything.

2022-06-01 23:17:04 | [Mutex] isItemNotified: received:node:37084fb2-65e7-4e58-baf6-0da99f616373:localhost:node-9be27dec-f65c-4e14-a3d9-446ac100dc4d:Node 9be27dec-f65c-4e14-a3d9-446ac100dc4d :: false

publishItemsToNodes 0.055s
2022-06-01 23:17:02 |

2022-06-01 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:02 | ------------------------------------

2022-06-01 23:17:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "entry": "<test>item-ca2fd0a6-6701-44d4-ae65-71806afe63c0</test>",
    "item-id": "item-ca2fd0a6-6701-44d4-ae65-71806afe63c0"
}

2022-06-01 23:17:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca2fd0a6-6701-44d4-ae65-71806afe63c0"
}

2022-06-01 23:17:02 | [Mutex] waiting for: [published:item:notifieditem-ca2fd0a6-6701-44d4-ae65-71806afe63c0:admin@test-domain.com]

2022-06-01 23:17:02 | [Mutex] received everything.

2022-06-01 23:17:02 | [Mutex] isItemNotified: published:item:notifieditem-ca2fd0a6-6701-44d4-ae65-71806afe63c0:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-06-01 23:17:02 |

2022-06-01 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:02 | ------------------------------------

2022-06-01 23:17:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "item-id": "item-ca2fd0a6-6701-44d4-ae65-71806afe63c0"
}

2022-06-01 23:17:02 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ca2fd0a6-6701-44d4-ae65-71806afe63c0"
}

2022-06-01 23:17:02 | [Mutex] received everything.

2022-06-01 23:17:02 | [Mutex] isItemNotified: retracted:item:notifieditem-ca2fd0a6-6701-44d4-ae65-71806afe63c0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2022-06-01 23:17:02 |

2022-06-01 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:02 | ------------------------------------

2022-06-01 23:17:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "item-id": "item-ca2fd0a6-6701-44d4-ae65-71806afe63c0"
}

2022-06-01 23:17:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "item-id": "item-ca2fd0a6-6701-44d4-ae65-71806afe63c0",
    "item": [
        "<item id=\"item-ca2fd0a6-6701-44d4-ae65-71806afe63c0\"><test>item-ca2fd0a6-6701-44d4-ae65-71806afe63c0</test></item>"
    ]
}

2022-06-01 23:17:02 | [Mutex] notify: [retrieved:item:item-ca2fd0a6-6701-44d4-ae65-71806afe63c0:payload-matches:true:localhost]

2022-06-01 23:17:02 | [Mutex] received everything.

2022-06-01 23:17:02 | [Mutex] isItemNotified: retrieved:item:item-ca2fd0a6-6701-44d4-ae65-71806afe63c0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.112s
2022-06-01 23:17:02 |

2022-06-01 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:02 | ------------------------------------

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

2022-06-01 23:17:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
        "node-43e32048-bf95-4848-8aba-8dbe82a3a2e4"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-06-01 23:17:02 |

2022-06-01 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:02 | ------------------------------------

2022-06-01 23:17:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-9be27dec-f65c-4e14-a3d9-446ac100dc4d)"
}

2022-06-01 23:17:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2022-06-01 23:17:01 |

2022-06-01 23:17:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:01 | ------------------------------------

2022-06-01 23:17:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-01 23:17:01 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.055s
2022-06-01 23:17:02 |

2022-06-01 23:17:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-06-01 23:17:02 | ------------------------------------

2022-06-01 23:17:02 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-9be27dec-f65c-4e14-a3d9-446ac100dc4d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-06-01 23:17:02 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}