Generated by TestNG with ReportNG at 22:14 PDT on Tuesday 27 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.266s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.119s
2020-10-27 22:32:07 |

2020-10-27 22:32:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:07 | ------------------------------------

2020-10-27 22:32:07 | [Mutex] waiting for: [configured:node:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:node-7f588085-9730-4dc5-a57f-ece6e4d8c359]

2020-10-27 22:32:07 | [Mutex] received everything.

2020-10-27 22:32:07 | [Mutex] isItemNotified: configured:node:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:node-7f588085-9730-4dc5-a57f-ece6e4d8c359 :: true

2020-10-27 22:32:08 | [Mutex] waiting for: [received:nodes:ccdb686d-0fcc-4491-a9b7-2b430f72c9e0:localhost]

2020-10-27 22:32:08 | [Mutex] waiting for: [received:nodes:ccdb686d-0fcc-4491-a9b7-2b430f72c9e0:localhost]

2020-10-27 22:32:08 | [Mutex] received everything.

2020-10-27 22:32:08 | [Mutex] isItemNotified: received:node:ccdb686d-0fcc-4491-a9b7-2b430f72c9e0:localhost:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:Node 93c28d35-64d3-4041-bee3-3f8eb64f0911 :: true

2020-10-27 22:32:08 | [Mutex] waiting for: [received:nodes:23adee05-49b3-427e-a052-453c0cc925aa:localhost]

2020-10-27 22:32:08 | [Mutex] received everything.

2020-10-27 22:32:08 | [Mutex] isItemNotified: received:node:23adee05-49b3-427e-a052-453c0cc925aa:localhost:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:Node 93c28d35-64d3-4041-bee3-3f8eb64f0911 :: false

createNodes 1.778s
2020-10-27 22:32:04 |

2020-10-27 22:32:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:04 | ------------------------------------

2020-10-27 22:32:05 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "pubsub#title": "Node 93c28d35-64d3-4041-bee3-3f8eb64f0911"
}

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

2020-10-27 22:32:06 | [Mutex] waiting for: [received:nodes:bcac693d-7280-4371-99d8-922a2cb51909:localhost]

2020-10-27 22:32:06 | [Mutex] received everything.

2020-10-27 22:32:06 | [Mutex] isItemNotified: received:node:bcac693d-7280-4371-99d8-922a2cb51909:localhost:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:Node 93c28d35-64d3-4041-bee3-3f8eb64f0911 :: true

createSubnodes 1.035s
2020-10-27 22:32:06 |

2020-10-27 22:32:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:06 | ------------------------------------

2020-10-27 22:32:06 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-7f588085-9730-4dc5-a57f-ece6e4d8c359",
    "pubsub#title": "Node 7f588085-9730-4dc5-a57f-ece6e4d8c359"
}

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

2020-10-27 22:32:07 | [Mutex] waiting for: [received:nodes:59046d42-0b90-4063-9ba1-66b3cf51202c:localhost]

2020-10-27 22:32:07 | [Mutex] received everything.

2020-10-27 22:32:07 | [Mutex] isItemNotified: received:node:59046d42-0b90-4063-9ba1-66b3cf51202c:localhost:node-7f588085-9730-4dc5-a57f-ece6e4d8c359:Node 7f588085-9730-4dc5-a57f-ece6e4d8c359 :: true

deleteNodes 1.027s
2020-10-27 22:32:12 |

2020-10-27 22:32:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:12 | ------------------------------------

2020-10-27 22:32:12 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-7f588085-9730-4dc5-a57f-ece6e4d8c359"
}

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

2020-10-27 22:32:13 | [Mutex] waiting for: [received:nodes:9d435fe4-b2c9-4eb9-9f11-e3421d4d5f96:localhost]

2020-10-27 22:32:13 | [Mutex] received everything.

2020-10-27 22:32:13 | [Mutex] isItemNotified: received:node:9d435fe4-b2c9-4eb9-9f11-e3421d4d5f96:localhost:node-7f588085-9730-4dc5-a57f-ece6e4d8c359:Node 7f588085-9730-4dc5-a57f-ece6e4d8c359 :: false

deleteSubnodes 1.036s
2020-10-27 22:32:11 |

2020-10-27 22:32:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:11 | ------------------------------------

2020-10-27 22:32:11 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911"
}

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

2020-10-27 22:32:12 | [Mutex] waiting for: [received:nodes:d9650808-2c42-4d37-8144-6532d978d15b:localhost]

2020-10-27 22:32:12 | [Mutex] waiting for: [received:nodes:d9650808-2c42-4d37-8144-6532d978d15b:localhost]

2020-10-27 22:32:12 | [Mutex] received everything.

2020-10-27 22:32:12 | [Mutex] isItemNotified: received:node:d9650808-2c42-4d37-8144-6532d978d15b:localhost:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:Node 93c28d35-64d3-4041-bee3-3f8eb64f0911 :: false

2020-10-27 22:32:12 | [Mutex] waiting for: [received:nodes:307597e5-d964-4abb-a93a-637cfa0d9364:localhost]

2020-10-27 22:32:12 | [Mutex] received everything.

2020-10-27 22:32:12 | [Mutex] isItemNotified: received:node:307597e5-d964-4abb-a93a-637cfa0d9364:localhost:node-93c28d35-64d3-4041-bee3-3f8eb64f0911:Node 93c28d35-64d3-4041-bee3-3f8eb64f0911 :: false

publishItemsToNodes 0.073s
2020-10-27 22:32:09 |

2020-10-27 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:09 | ------------------------------------

2020-10-27 22:32:09 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "entry": "<test>item-1746c033-6681-4cd1-9876-6b1a82ee68b0</test>",
    "item-id": "item-1746c033-6681-4cd1-9876-6b1a82ee68b0"
}

2020-10-27 22:32:09 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1746c033-6681-4cd1-9876-6b1a82ee68b0"
}

2020-10-27 22:32:09 | [Mutex] waiting for: [published:item:notifieditem-1746c033-6681-4cd1-9876-6b1a82ee68b0:admin@test-domain.com]

2020-10-27 22:32:09 | [Mutex] received everything.

2020-10-27 22:32:09 | [Mutex] isItemNotified: published:item:notifieditem-1746c033-6681-4cd1-9876-6b1a82ee68b0:admin@test-domain.com :: true

retractItemsFromNodes 0.107s
2020-10-27 22:32:10 |

2020-10-27 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:10 | ------------------------------------

2020-10-27 22:32:10 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "item-id": "item-1746c033-6681-4cd1-9876-6b1a82ee68b0"
}

2020-10-27 22:32:10 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1746c033-6681-4cd1-9876-6b1a82ee68b0"
}

2020-10-27 22:32:10 | [Mutex] waiting for: [retracted:item:notifieditem-1746c033-6681-4cd1-9876-6b1a82ee68b0:admin@test-domain.com]

2020-10-27 22:32:10 | [Mutex] received everything.

2020-10-27 22:32:10 | [Mutex] isItemNotified: retracted:item:notifieditem-1746c033-6681-4cd1-9876-6b1a82ee68b0:admin@test-domain.com :: true

retrieveItemsFromNodes 0.033s
2020-10-27 22:32:09 |

2020-10-27 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:09 | ------------------------------------

2020-10-27 22:32:09 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "item-id": "item-1746c033-6681-4cd1-9876-6b1a82ee68b0"
}

2020-10-27 22:32:09 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "item-id": "item-1746c033-6681-4cd1-9876-6b1a82ee68b0",
    "item": [
        "<item id=\"item-1746c033-6681-4cd1-9876-6b1a82ee68b0\"><test>item-1746c033-6681-4cd1-9876-6b1a82ee68b0</test></item>"
    ]
}

2020-10-27 22:32:09 | [Mutex] notify: [retrieved:item:item-1746c033-6681-4cd1-9876-6b1a82ee68b0:payload-matches:true:localhost]

2020-10-27 22:32:09 | [Mutex] received everything.

2020-10-27 22:32:09 | [Mutex] isItemNotified: retrieved:item:item-1746c033-6681-4cd1-9876-6b1a82ee68b0:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.076s
2020-10-27 22:32:09 |

2020-10-27 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:09 | ------------------------------------

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

2020-10-27 22:32:09 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
        "test",
        "node-7f588085-9730-4dc5-a57f-ece6e4d8c359"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-10-27 22:32:09 |

2020-10-27 22:32:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:09 | ------------------------------------

2020-10-27 22:32:09 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-93c28d35-64d3-4041-bee3-3f8eb64f0911)"
}

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

subscribeNodes 1.013s
2020-10-27 22:32:08 |

2020-10-27 22:32:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:08 | ------------------------------------

2020-10-27 22:32:08 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.075s
2020-10-27 22:32:10 |

2020-10-27 22:32:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-27 22:32:10 | ------------------------------------

2020-10-27 22:32:10 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-93c28d35-64d3-4041-bee3-3f8eb64f0911",
    "jids": [
        "admin@test-domain.com"
    ]
}

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