Generated by TestNG with ReportNG at 22:25 PDT on Monday 19 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.109s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2020-10-19 22:42:00 |

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

2020-10-19 22:42:00 | ------------------------------------

2020-10-19 22:42:00 | [Mutex] waiting for: [configured:node:node-247a0931-b3d2-40ed-b957-c472e4496745:node-e51b0411-f4e3-4006-8efb-cf91c9026b5d]

2020-10-19 22:42:00 | [Mutex] received everything.

2020-10-19 22:42:00 | [Mutex] isItemNotified: configured:node:node-247a0931-b3d2-40ed-b957-c472e4496745:node-e51b0411-f4e3-4006-8efb-cf91c9026b5d :: true

2020-10-19 22:42:01 | [Mutex] waiting for: [received:nodes:b69dd9a6-2d4b-410d-b359-34330b3b1061:localhost]

2020-10-19 22:42:01 | [Mutex] waiting for: [received:nodes:b69dd9a6-2d4b-410d-b359-34330b3b1061:localhost]

2020-10-19 22:42:01 | [Mutex] received everything.

2020-10-19 22:42:01 | [Mutex] isItemNotified: received:node:b69dd9a6-2d4b-410d-b359-34330b3b1061:localhost:node-247a0931-b3d2-40ed-b957-c472e4496745:Node 247a0931-b3d2-40ed-b957-c472e4496745 :: true

2020-10-19 22:42:01 | [Mutex] waiting for: [received:nodes:d558dbd4-1d4a-41ca-84f9-c41565ad8761:localhost]

2020-10-19 22:42:01 | [Mutex] waiting for: [received:nodes:d558dbd4-1d4a-41ca-84f9-c41565ad8761:localhost]

2020-10-19 22:42:01 | [Mutex] received everything.

2020-10-19 22:42:01 | [Mutex] isItemNotified: received:node:d558dbd4-1d4a-41ca-84f9-c41565ad8761:localhost:node-247a0931-b3d2-40ed-b957-c472e4496745:Node 247a0931-b3d2-40ed-b957-c472e4496745 :: false

createNodes 1.712s
2020-10-19 22:41:57 |

2020-10-19 22:41:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 22:41:57 | ------------------------------------

2020-10-19 22:41: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-247a0931-b3d2-40ed-b957-c472e4496745",
    "pubsub#title": "Node 247a0931-b3d2-40ed-b957-c472e4496745"
}

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

2020-10-19 22:41:59 | [Mutex] waiting for: [received:nodes:d9f45c68-276a-484d-9f94-5875a702970a:localhost]

2020-10-19 22:41:59 | [Mutex] received everything.

2020-10-19 22:41:59 | [Mutex] isItemNotified: received:node:d9f45c68-276a-484d-9f94-5875a702970a:localhost:node-247a0931-b3d2-40ed-b957-c472e4496745:Node 247a0931-b3d2-40ed-b957-c472e4496745 :: true

createSubnodes 1.027s
2020-10-19 22:41:59 |

2020-10-19 22:41:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-10-19 22:41:59 | ------------------------------------

2020-10-19 22:41: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-e51b0411-f4e3-4006-8efb-cf91c9026b5d",
    "pubsub#title": "Node e51b0411-f4e3-4006-8efb-cf91c9026b5d"
}

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

2020-10-19 22:42:00 | [Mutex] waiting for: [received:nodes:8738f97f-bd0a-4e10-8bf8-bb2f97ae0d51:localhost]

2020-10-19 22:42:00 | [Mutex] received everything.

2020-10-19 22:42:00 | [Mutex] isItemNotified: received:node:8738f97f-bd0a-4e10-8bf8-bb2f97ae0d51:localhost:node-e51b0411-f4e3-4006-8efb-cf91c9026b5d:Node e51b0411-f4e3-4006-8efb-cf91c9026b5d :: true

deleteNodes 1.025s
2020-10-19 22:42:05 |

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

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

2020-10-19 22:42:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-e51b0411-f4e3-4006-8efb-cf91c9026b5d"
}

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

2020-10-19 22:42:06 | [Mutex] waiting for: [received:nodes:f21c90dc-d4e5-4cc0-97e4-38064ee82f47:localhost]

2020-10-19 22:42:06 | [Mutex] received everything.

2020-10-19 22:42:06 | [Mutex] isItemNotified: received:node:f21c90dc-d4e5-4cc0-97e4-38064ee82f47:localhost:node-e51b0411-f4e3-4006-8efb-cf91c9026b5d:Node e51b0411-f4e3-4006-8efb-cf91c9026b5d :: false

deleteSubnodes 1.031s
2020-10-19 22:42:04 |

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

2020-10-19 22:42:04 | ------------------------------------

2020-10-19 22:42:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745"
}

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

2020-10-19 22:42:05 | [Mutex] waiting for: [received:nodes:f5c91d1d-d60a-49bf-870e-f746d2b19f95:localhost]

2020-10-19 22:42:05 | [Mutex] waiting for: [received:nodes:f5c91d1d-d60a-49bf-870e-f746d2b19f95:localhost]

2020-10-19 22:42:05 | [Mutex] received everything.

2020-10-19 22:42:05 | [Mutex] isItemNotified: received:node:f5c91d1d-d60a-49bf-870e-f746d2b19f95:localhost:node-247a0931-b3d2-40ed-b957-c472e4496745:Node 247a0931-b3d2-40ed-b957-c472e4496745 :: false

2020-10-19 22:42:05 | [Mutex] waiting for: [received:nodes:2680955a-10dc-438c-b61f-f222d406f4b0:localhost]

2020-10-19 22:42:05 | [Mutex] received everything.

2020-10-19 22:42:05 | [Mutex] isItemNotified: received:node:2680955a-10dc-438c-b61f-f222d406f4b0:localhost:node-247a0931-b3d2-40ed-b957-c472e4496745:Node 247a0931-b3d2-40ed-b957-c472e4496745 :: false

publishItemsToNodes 0.060s
2020-10-19 22:42:02 |

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

2020-10-19 22:42:02 | ------------------------------------

2020-10-19 22:42:02 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745",
    "entry": "<test>item-92696881-63c1-47fb-ae61-bf42a7445ba9</test>",
    "item-id": "item-92696881-63c1-47fb-ae61-bf42a7445ba9"
}

2020-10-19 22:42:02 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-92696881-63c1-47fb-ae61-bf42a7445ba9"
}

2020-10-19 22:42:02 | [Mutex] waiting for: [published:item:notifieditem-92696881-63c1-47fb-ae61-bf42a7445ba9:admin@test-domain.com]

2020-10-19 22:42:02 | [Mutex] received everything.

2020-10-19 22:42:02 | [Mutex] isItemNotified: published:item:notifieditem-92696881-63c1-47fb-ae61-bf42a7445ba9:admin@test-domain.com :: true

retractItemsFromNodes 0.057s
2020-10-19 22:42:02 |

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

2020-10-19 22:42:02 | ------------------------------------

2020-10-19 22:42:02 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745",
    "item-id": "item-92696881-63c1-47fb-ae61-bf42a7445ba9"
}

2020-10-19 22:42:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-92696881-63c1-47fb-ae61-bf42a7445ba9"
}

2020-10-19 22:42:03 | [Mutex] received everything.

2020-10-19 22:42:03 | [Mutex] isItemNotified: retracted:item:notifieditem-92696881-63c1-47fb-ae61-bf42a7445ba9:admin@test-domain.com :: true

retrieveItemsFromNodes 0.074s
2020-10-19 22:42:02 |

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

2020-10-19 22:42:02 | ------------------------------------

2020-10-19 22:42:02 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745",
    "item-id": "item-92696881-63c1-47fb-ae61-bf42a7445ba9"
}

2020-10-19 22:42:02 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745",
    "item-id": "item-92696881-63c1-47fb-ae61-bf42a7445ba9",
    "item": [
        "<item id=\"item-92696881-63c1-47fb-ae61-bf42a7445ba9\"><test>item-92696881-63c1-47fb-ae61-bf42a7445ba9</test></item>"
    ]
}

2020-10-19 22:42:02 | [Mutex] notify: [retrieved:item:item-92696881-63c1-47fb-ae61-bf42a7445ba9:payload-matches:true:localhost]

2020-10-19 22:42:02 | [Mutex] received everything.

2020-10-19 22:42:02 | [Mutex] isItemNotified: retrieved:item:item-92696881-63c1-47fb-ae61-bf42a7445ba9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.063s
2020-10-19 22:42:02 |

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

2020-10-19 22:42:02 | ------------------------------------

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

2020-10-19 22:42:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-e51b0411-f4e3-4006-8efb-cf91c9026b5d",
        "node-247a0931-b3d2-40ed-b957-c472e4496745",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-10-19 22:42:02 |

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

2020-10-19 22:42:02 | ------------------------------------

2020-10-19 22:42:02 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-247a0931-b3d2-40ed-b957-c472e4496745)"
}

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

subscribeNodes 1.011s
2020-10-19 22:42:01 |

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

2020-10-19 22:42:01 | ------------------------------------

2020-10-19 22:42:01 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.071s
2020-10-19 22:42:03 |

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

2020-10-19 22:42:03 | ------------------------------------

2020-10-19 22:42:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-247a0931-b3d2-40ed-b957-c472e4496745",
    "jids": [
        "admin@test-domain.com"
    ]
}

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