Generated by TestNG with ReportNG at 21:27 PST on Sunday 29 November 2020
root@eaa73862192b / 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.053s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.123s
2020-11-29 21:43:22 |

2020-11-29 21:43:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:22 | ------------------------------------

2020-11-29 21:43:22 | [Mutex] waiting for: [configured:node:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:node-6cb087d0-59e9-4644-bc10-4791ea4458d9]

2020-11-29 21:43:22 | [Mutex] received everything.

2020-11-29 21:43:22 | [Mutex] isItemNotified: configured:node:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:node-6cb087d0-59e9-4644-bc10-4791ea4458d9 :: true

2020-11-29 21:43:23 | [Mutex] waiting for: [received:nodes:07d953e8-ecf5-47bc-b830-85a0715942a7:localhost]

2020-11-29 21:43:23 | [Mutex] received everything.

2020-11-29 21:43:23 | [Mutex] isItemNotified: received:node:07d953e8-ecf5-47bc-b830-85a0715942a7:localhost:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:Node 64f97e3e-8bfd-4290-b3bb-b0508082be1d :: true

2020-11-29 21:43:23 | [Mutex] waiting for: [received:nodes:74b7dfdc-27ef-4fc9-adfd-31bdfbd8a567:localhost]

2020-11-29 21:43:23 | [Mutex] received everything.

2020-11-29 21:43:23 | [Mutex] isItemNotified: received:node:74b7dfdc-27ef-4fc9-adfd-31bdfbd8a567:localhost:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:Node 64f97e3e-8bfd-4290-b3bb-b0508082be1d :: false

createNodes 1.638s
2020-11-29 21:43:20 |

2020-11-29 21:43:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:20 | ------------------------------------

2020-11-29 21:43:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "pubsub#title": "Node 64f97e3e-8bfd-4290-b3bb-b0508082be1d"
}

2020-11-29 21:43:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:43:21 | [Mutex] waiting for: [received:nodes:81b5b85a-906a-401e-819a-3117e3f4d5c6:localhost]

2020-11-29 21:43:21 | [Mutex] received everything.

2020-11-29 21:43:21 | [Mutex] isItemNotified: received:node:81b5b85a-906a-401e-819a-3117e3f4d5c6:localhost:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:Node 64f97e3e-8bfd-4290-b3bb-b0508082be1d :: true

createSubnodes 1.048s
2020-11-29 21:43:21 |

2020-11-29 21:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:21 | ------------------------------------

2020-11-29 21:43: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-6cb087d0-59e9-4644-bc10-4791ea4458d9",
    "pubsub#title": "Node 6cb087d0-59e9-4644-bc10-4791ea4458d9"
}

2020-11-29 21:43:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:43:22 | [Mutex] waiting for: [received:nodes:037137a8-7416-4801-87c5-9350eeca033d:localhost]

2020-11-29 21:43:22 | [Mutex] received everything.

2020-11-29 21:43:22 | [Mutex] isItemNotified: received:node:037137a8-7416-4801-87c5-9350eeca033d:localhost:node-6cb087d0-59e9-4644-bc10-4791ea4458d9:Node 6cb087d0-59e9-4644-bc10-4791ea4458d9 :: true

deleteNodes 1.029s
2020-11-29 21:43:27 |

2020-11-29 21:43:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:27 | ------------------------------------

2020-11-29 21:43:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6cb087d0-59e9-4644-bc10-4791ea4458d9"
}

2020-11-29 21:43:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:43:28 | [Mutex] waiting for: [received:nodes:8bb1140d-87e2-4d9b-bfc9-81fbd4e7c7dc:localhost]

2020-11-29 21:43:28 | [Mutex] received everything.

2020-11-29 21:43:28 | [Mutex] isItemNotified: received:node:8bb1140d-87e2-4d9b-bfc9-81fbd4e7c7dc:localhost:node-6cb087d0-59e9-4644-bc10-4791ea4458d9:Node 6cb087d0-59e9-4644-bc10-4791ea4458d9 :: false

deleteSubnodes 1.031s
2020-11-29 21:43:26 |

2020-11-29 21:43:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:26 | ------------------------------------

2020-11-29 21:43:26 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d"
}

2020-11-29 21:43:26 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-29 21:43:27 | [Mutex] waiting for: [received:nodes:2ec1e5dc-b36a-4d92-b197-9c0da7d0d135:localhost]

2020-11-29 21:43:27 | [Mutex] received everything.

2020-11-29 21:43:27 | [Mutex] isItemNotified: received:node:2ec1e5dc-b36a-4d92-b197-9c0da7d0d135:localhost:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:Node 64f97e3e-8bfd-4290-b3bb-b0508082be1d :: false

2020-11-29 21:43:27 | [Mutex] waiting for: [received:nodes:a7475b00-5a30-487c-abc6-e60b17e9ffc1:localhost]

2020-11-29 21:43:27 | [Mutex] received everything.

2020-11-29 21:43:27 | [Mutex] isItemNotified: received:node:a7475b00-5a30-487c-abc6-e60b17e9ffc1:localhost:node-64f97e3e-8bfd-4290-b3bb-b0508082be1d:Node 64f97e3e-8bfd-4290-b3bb-b0508082be1d :: false

publishItemsToNodes 0.063s
2020-11-29 21:43:24 |

2020-11-29 21:43:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:24 | ------------------------------------

2020-11-29 21:43:24 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "entry": "<test>item-add84543-ddd1-42ca-8da9-314b7835b3a8</test>",
    "item-id": "item-add84543-ddd1-42ca-8da9-314b7835b3a8"
}

2020-11-29 21:43:24 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-add84543-ddd1-42ca-8da9-314b7835b3a8"
}

2020-11-29 21:43:24 | [Mutex] waiting for: [published:item:notifieditem-add84543-ddd1-42ca-8da9-314b7835b3a8:admin@test-domain.com]

2020-11-29 21:43:24 | [Mutex] received everything.

2020-11-29 21:43:24 | [Mutex] isItemNotified: published:item:notifieditem-add84543-ddd1-42ca-8da9-314b7835b3a8:admin@test-domain.com :: true

retractItemsFromNodes 0.064s
2020-11-29 21:43:25 |

2020-11-29 21:43:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:25 | ------------------------------------

2020-11-29 21:43:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "item-id": "item-add84543-ddd1-42ca-8da9-314b7835b3a8"
}

2020-11-29 21:43:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-add84543-ddd1-42ca-8da9-314b7835b3a8"
}

2020-11-29 21:43:25 | [Mutex] received everything.

2020-11-29 21:43:25 | [Mutex] isItemNotified: retracted:item:notifieditem-add84543-ddd1-42ca-8da9-314b7835b3a8:admin@test-domain.com :: true

retrieveItemsFromNodes 0.046s
2020-11-29 21:43:24 |

2020-11-29 21:43:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:24 | ------------------------------------

2020-11-29 21:43:24 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "item-id": "item-add84543-ddd1-42ca-8da9-314b7835b3a8"
}

2020-11-29 21:43:24 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "item-id": "item-add84543-ddd1-42ca-8da9-314b7835b3a8",
    "item": [
        "<item id=\"item-add84543-ddd1-42ca-8da9-314b7835b3a8\"><test>item-add84543-ddd1-42ca-8da9-314b7835b3a8</test></item>"
    ]
}

2020-11-29 21:43:24 | [Mutex] notify: [retrieved:item:item-add84543-ddd1-42ca-8da9-314b7835b3a8:payload-matches:true:localhost]

2020-11-29 21:43:24 | [Mutex] received everything.

2020-11-29 21:43:24 | [Mutex] isItemNotified: retrieved:item:item-add84543-ddd1-42ca-8da9-314b7835b3a8:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.049s
2020-11-29 21:43:24 |

2020-11-29 21:43:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:24 | ------------------------------------

2020-11-29 21:43:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-29 21:43:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-6cb087d0-59e9-4644-bc10-4791ea4458d9",
        "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-11-29 21:43:25 |

2020-11-29 21:43:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:25 | ------------------------------------

2020-11-29 21:43:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-64f97e3e-8bfd-4290-b3bb-b0508082be1d)"
}

2020-11-29 21:43:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2020-11-29 21:43:23 |

2020-11-29 21:43:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:23 | ------------------------------------

2020-11-29 21:43:23 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 21:43:23 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.076s
2020-11-29 21:43:25 |

2020-11-29 21:43:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-29 21:43:25 | ------------------------------------

2020-11-29 21:43:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-64f97e3e-8bfd-4290-b3bb-b0508082be1d",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-29 21:43:25 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}