Generated by TestNG with ReportNG at 22:22 PDT on Monday 05 October 2020
root@87f6aca6b6f2 / Java 11.0.8 (Ubuntu) / 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 : 9.309s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-10-05 22:39:45 |

2020-10-05 22:39:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:45 | ------------------------------------

2020-10-05 22:39:45 | [Mutex] waiting for: [configured:node:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:node-96e2fa90-df09-42a4-81aa-111da846ee5f]

2020-10-05 22:39:45 | [Mutex] received everything.

2020-10-05 22:39:45 | [Mutex] isItemNotified: configured:node:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:node-96e2fa90-df09-42a4-81aa-111da846ee5f :: true

2020-10-05 22:39:46 | [Mutex] waiting for: [received:nodes:0677fa8a-a0f0-4f54-accc-b0c4df01567b:localhost]

2020-10-05 22:39:46 | [Mutex] waiting for: [received:nodes:0677fa8a-a0f0-4f54-accc-b0c4df01567b:localhost]

2020-10-05 22:39:46 | [Mutex] received everything.

2020-10-05 22:39:46 | [Mutex] isItemNotified: received:node:0677fa8a-a0f0-4f54-accc-b0c4df01567b:localhost:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:Node 6596f80c-711b-47ef-97aa-e8c6b2fc965e :: true

2020-10-05 22:39:46 | [Mutex] waiting for: [received:nodes:9e448bd5-5acd-4d12-baea-1c8deea4212b:localhost]

2020-10-05 22:39:46 | [Mutex] received everything.

2020-10-05 22:39:46 | [Mutex] isItemNotified: received:node:9e448bd5-5acd-4d12-baea-1c8deea4212b:localhost:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:Node 6596f80c-711b-47ef-97aa-e8c6b2fc965e :: false

createNodes 1.921s
2020-10-05 22:39:42 |

2020-10-05 22:39:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:42 | ------------------------------------

2020-10-05 22:39:43 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "pubsub#title": "Node 6596f80c-711b-47ef-97aa-e8c6b2fc965e"
}

2020-10-05 22:39:43 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 22:39:44 | [Mutex] waiting for: [received:nodes:c96a8541-e61f-4d60-b3dd-52f777cae937:localhost]

2020-10-05 22:39:44 | [Mutex] received everything.

2020-10-05 22:39:44 | [Mutex] isItemNotified: received:node:c96a8541-e61f-4d60-b3dd-52f777cae937:localhost:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:Node 6596f80c-711b-47ef-97aa-e8c6b2fc965e :: true

createSubnodes 1.027s
2020-10-05 22:39:44 |

2020-10-05 22:39:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:44 | ------------------------------------

2020-10-05 22:39:44 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-96e2fa90-df09-42a4-81aa-111da846ee5f",
    "pubsub#title": "Node 96e2fa90-df09-42a4-81aa-111da846ee5f"
}

2020-10-05 22:39:44 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 22:39:45 | [Mutex] waiting for: [received:nodes:fa9baae6-2672-4112-9c6d-98c404a85784:localhost]

2020-10-05 22:39:45 | [Mutex] received everything.

2020-10-05 22:39:45 | [Mutex] isItemNotified: received:node:fa9baae6-2672-4112-9c6d-98c404a85784:localhost:node-96e2fa90-df09-42a4-81aa-111da846ee5f:Node 96e2fa90-df09-42a4-81aa-111da846ee5f :: true

deleteNodes 1.024s
2020-10-05 22:39:49 |

2020-10-05 22:39:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:49 | ------------------------------------

2020-10-05 22:39:49 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-96e2fa90-df09-42a4-81aa-111da846ee5f"
}

2020-10-05 22:39:49 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 22:39:50 | [Mutex] waiting for: [received:nodes:635441b6-6784-4e19-b300-af9c3447281d:localhost]

2020-10-05 22:39:50 | [Mutex] received everything.

2020-10-05 22:39:50 | [Mutex] isItemNotified: received:node:635441b6-6784-4e19-b300-af9c3447281d:localhost:node-96e2fa90-df09-42a4-81aa-111da846ee5f:Node 96e2fa90-df09-42a4-81aa-111da846ee5f :: false

deleteSubnodes 1.028s
2020-10-05 22:39:48 |

2020-10-05 22:39:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:48 | ------------------------------------

2020-10-05 22:39:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e"
}

2020-10-05 22:39:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-10-05 22:39:49 | [Mutex] waiting for: [received:nodes:8d5d4928-bf04-47b4-b008-e753785231e9:localhost]

2020-10-05 22:39:49 | [Mutex] received everything.

2020-10-05 22:39:49 | [Mutex] isItemNotified: received:node:8d5d4928-bf04-47b4-b008-e753785231e9:localhost:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:Node 6596f80c-711b-47ef-97aa-e8c6b2fc965e :: false

2020-10-05 22:39:49 | [Mutex] waiting for: [received:nodes:c662701c-0f6c-4c80-bfdc-4cafd09d7d32:localhost]

2020-10-05 22:39:49 | [Mutex] received everything.

2020-10-05 22:39:49 | [Mutex] isItemNotified: received:node:c662701c-0f6c-4c80-bfdc-4cafd09d7d32:localhost:node-6596f80c-711b-47ef-97aa-e8c6b2fc965e:Node 6596f80c-711b-47ef-97aa-e8c6b2fc965e :: false

publishItemsToNodes 0.042s
2020-10-05 22:39:47 |

2020-10-05 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:47 | ------------------------------------

2020-10-05 22:39:47 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "entry": "<test>item-394ce1f2-ae63-4829-9c32-ca30d15ef203</test>",
    "item-id": "item-394ce1f2-ae63-4829-9c32-ca30d15ef203"
}

2020-10-05 22:39:47 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-394ce1f2-ae63-4829-9c32-ca30d15ef203"
}

2020-10-05 22:39:47 | [Mutex] waiting for: [published:item:notifieditem-394ce1f2-ae63-4829-9c32-ca30d15ef203:admin@test-domain.com]

2020-10-05 22:39:47 | [Mutex] received everything.

2020-10-05 22:39:47 | [Mutex] isItemNotified: published:item:notifieditem-394ce1f2-ae63-4829-9c32-ca30d15ef203:admin@test-domain.com :: true

retractItemsFromNodes 0.086s
2020-10-05 22:39:47 |

2020-10-05 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:47 | ------------------------------------

2020-10-05 22:39:47 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "item-id": "item-394ce1f2-ae63-4829-9c32-ca30d15ef203"
}

2020-10-05 22:39:47 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-394ce1f2-ae63-4829-9c32-ca30d15ef203"
}

2020-10-05 22:39:47 | [Mutex] waiting for: [retracted:item:notifieditem-394ce1f2-ae63-4829-9c32-ca30d15ef203:admin@test-domain.com]

2020-10-05 22:39:47 | [Mutex] received everything.

2020-10-05 22:39:47 | [Mutex] isItemNotified: retracted:item:notifieditem-394ce1f2-ae63-4829-9c32-ca30d15ef203:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2020-10-05 22:39:47 |

2020-10-05 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:47 | ------------------------------------

2020-10-05 22:39:47 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "item-id": "item-394ce1f2-ae63-4829-9c32-ca30d15ef203"
}

2020-10-05 22:39:47 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "item-id": "item-394ce1f2-ae63-4829-9c32-ca30d15ef203",
    "item": [
        "<item id=\"item-394ce1f2-ae63-4829-9c32-ca30d15ef203\"><test>item-394ce1f2-ae63-4829-9c32-ca30d15ef203</test></item>"
    ]
}

2020-10-05 22:39:47 | [Mutex] notify: [retrieved:item:item-394ce1f2-ae63-4829-9c32-ca30d15ef203:payload-matches:true:localhost]

2020-10-05 22:39:47 | [Mutex] received everything.

2020-10-05 22:39:47 | [Mutex] isItemNotified: retrieved:item:item-394ce1f2-ae63-4829-9c32-ca30d15ef203:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-10-05 22:39:47 |

2020-10-05 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:47 | ------------------------------------

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

2020-10-05 22:39:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-96e2fa90-df09-42a4-81aa-111da846ee5f",
        "test",
        "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-10-05 22:39:47 |

2020-10-05 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:47 | ------------------------------------

2020-10-05 22:39:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6596f80c-711b-47ef-97aa-e8c6b2fc965e)"
}

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

subscribeNodes 1.012s
2020-10-05 22:39:46 |

2020-10-05 22:39:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:46 | ------------------------------------

2020-10-05 22:39:46 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-05 22:39:46 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.052s
2020-10-05 22:39:47 |

2020-10-05 22:39:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-05 22:39:47 | ------------------------------------

2020-10-05 22:39:47 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6596f80c-711b-47ef-97aa-e8c6b2fc965e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-10-05 22:39:47 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}