Generated by TestNG with ReportNG at 21:18 PST on Saturday 06 February 2021
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 : 8.902s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.098s
2021-02-06 21:33:23 |

2021-02-06 21:33:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:23 | ------------------------------------

2021-02-06 21:33:23 | [Mutex] waiting for: [configured:node:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d]

2021-02-06 21:33:23 | [Mutex] received everything.

2021-02-06 21:33:23 | [Mutex] isItemNotified: configured:node:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d :: true

2021-02-06 21:33:24 | [Mutex] waiting for: [received:nodes:1fc103bc-0191-4da6-852b-2eab76cb54da:localhost]

2021-02-06 21:33:24 | [Mutex] received everything.

2021-02-06 21:33:24 | [Mutex] isItemNotified: received:node:1fc103bc-0191-4da6-852b-2eab76cb54da:localhost:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:Node 8d14bdf8-577c-481f-8bfa-d7edb81c6328 :: true

2021-02-06 21:33:24 | [Mutex] waiting for: [received:nodes:ad8e20f8-647d-4fe0-b724-e72860cf64e2:localhost]

2021-02-06 21:33:24 | [Mutex] received everything.

2021-02-06 21:33:24 | [Mutex] isItemNotified: received:node:ad8e20f8-647d-4fe0-b724-e72860cf64e2:localhost:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:Node 8d14bdf8-577c-481f-8bfa-d7edb81c6328 :: false

createNodes 1.504s
2021-02-06 21:33:20 |

2021-02-06 21:33:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:20 | ------------------------------------

2021-02-06 21:33:21 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "pubsub#title": "Node 8d14bdf8-577c-481f-8bfa-d7edb81c6328"
}

2021-02-06 21:33:21 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 21:33:22 | [Mutex] waiting for: [received:nodes:da922ff4-e0aa-48a3-86f8-c52c586a5fbd:localhost]

2021-02-06 21:33:22 | [Mutex] waiting for: [received:nodes:da922ff4-e0aa-48a3-86f8-c52c586a5fbd:localhost]

2021-02-06 21:33:22 | [Mutex] received everything.

2021-02-06 21:33:22 | [Mutex] isItemNotified: received:node:da922ff4-e0aa-48a3-86f8-c52c586a5fbd:localhost:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:Node 8d14bdf8-577c-481f-8bfa-d7edb81c6328 :: true

createSubnodes 1.021s
2021-02-06 21:33:22 |

2021-02-06 21:33:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:22 | ------------------------------------

2021-02-06 21:33:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d",
    "pubsub#title": "Node f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d"
}

2021-02-06 21:33:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 21:33:23 | [Mutex] waiting for: [received:nodes:f5b2a5ed-70a4-429c-b831-46e13aa8515a:localhost]

2021-02-06 21:33:23 | [Mutex] waiting for: [received:nodes:f5b2a5ed-70a4-429c-b831-46e13aa8515a:localhost]

2021-02-06 21:33:23 | [Mutex] received everything.

2021-02-06 21:33:23 | [Mutex] isItemNotified: received:node:f5b2a5ed-70a4-429c-b831-46e13aa8515a:localhost:node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d:Node f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d :: true

deleteNodes 1.019s
2021-02-06 21:33:28 |

2021-02-06 21:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:28 | ------------------------------------

2021-02-06 21:33:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d"
}

2021-02-06 21:33:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 21:33:29 | [Mutex] waiting for: [received:nodes:6b2de542-95b3-4078-8a94-75162e273dba:localhost]

2021-02-06 21:33:29 | [Mutex] received everything.

2021-02-06 21:33:29 | [Mutex] isItemNotified: received:node:6b2de542-95b3-4078-8a94-75162e273dba:localhost:node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d:Node f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d :: false

deleteSubnodes 1.026s
2021-02-06 21:33:27 |

2021-02-06 21:33:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:27 | ------------------------------------

2021-02-06 21:33:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328"
}

2021-02-06 21:33:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-02-06 21:33:28 | [Mutex] waiting for: [received:nodes:77efedfa-680d-408e-9e4c-d0663f4ee33f:localhost]

2021-02-06 21:33:28 | [Mutex] received everything.

2021-02-06 21:33:28 | [Mutex] isItemNotified: received:node:77efedfa-680d-408e-9e4c-d0663f4ee33f:localhost:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:Node 8d14bdf8-577c-481f-8bfa-d7edb81c6328 :: false

2021-02-06 21:33:28 | [Mutex] waiting for: [received:nodes:4cb43b1c-1971-496b-902a-1920efabe4fe:localhost]

2021-02-06 21:33:28 | [Mutex] received everything.

2021-02-06 21:33:28 | [Mutex] isItemNotified: received:node:4cb43b1c-1971-496b-902a-1920efabe4fe:localhost:node-8d14bdf8-577c-481f-8bfa-d7edb81c6328:Node 8d14bdf8-577c-481f-8bfa-d7edb81c6328 :: false

publishItemsToNodes 0.042s
2021-02-06 21:33:25 |

2021-02-06 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:25 | ------------------------------------

2021-02-06 21:33:25 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "entry": "<test>item-93da2041-bebd-4667-a98d-b4f42b9713a4</test>",
    "item-id": "item-93da2041-bebd-4667-a98d-b4f42b9713a4"
}

2021-02-06 21:33:25 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-93da2041-bebd-4667-a98d-b4f42b9713a4"
}

2021-02-06 21:33:25 | [Mutex] waiting for: [published:item:notifieditem-93da2041-bebd-4667-a98d-b4f42b9713a4:admin@test-domain.com]

2021-02-06 21:33:25 | [Mutex] received everything.

2021-02-06 21:33:25 | [Mutex] isItemNotified: published:item:notifieditem-93da2041-bebd-4667-a98d-b4f42b9713a4:admin@test-domain.com :: true

retractItemsFromNodes 0.088s
2021-02-06 21:33:25 |

2021-02-06 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:25 | ------------------------------------

2021-02-06 21:33:25 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "item-id": "item-93da2041-bebd-4667-a98d-b4f42b9713a4"
}

2021-02-06 21:33:25 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-93da2041-bebd-4667-a98d-b4f42b9713a4"
}

2021-02-06 21:33:25 | [Mutex] waiting for: [retracted:item:notifieditem-93da2041-bebd-4667-a98d-b4f42b9713a4:admin@test-domain.com]

2021-02-06 21:33:25 | [Mutex] received everything.

2021-02-06 21:33:25 | [Mutex] isItemNotified: retracted:item:notifieditem-93da2041-bebd-4667-a98d-b4f42b9713a4:admin@test-domain.com :: true

retrieveItemsFromNodes 0.084s
2021-02-06 21:33:25 |

2021-02-06 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:25 | ------------------------------------

2021-02-06 21:33:25 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "item-id": "item-93da2041-bebd-4667-a98d-b4f42b9713a4"
}

2021-02-06 21:33:25 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "item-id": "item-93da2041-bebd-4667-a98d-b4f42b9713a4",
    "item": [
        "<item id=\"item-93da2041-bebd-4667-a98d-b4f42b9713a4\"><test>item-93da2041-bebd-4667-a98d-b4f42b9713a4</test></item>"
    ]
}

2021-02-06 21:33:25 | [Mutex] notify: [retrieved:item:item-93da2041-bebd-4667-a98d-b4f42b9713a4:payload-matches:true:localhost]

2021-02-06 21:33:25 | [Mutex] received everything.

2021-02-06 21:33:25 | [Mutex] isItemNotified: retrieved:item:item-93da2041-bebd-4667-a98d-b4f42b9713a4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.052s
2021-02-06 21:33:25 |

2021-02-06 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:25 | ------------------------------------

2021-02-06 21:33:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-02-06 21:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
        "node-f7e4f7d1-a7a2-47a3-bcda-fe1437cf665d"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2021-02-06 21:33:25 |

2021-02-06 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:25 | ------------------------------------

2021-02-06 21:33:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-8d14bdf8-577c-481f-8bfa-d7edb81c6328)"
}

2021-02-06 21:33:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.018s
2021-02-06 21:33:24 |

2021-02-06 21:33:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:24 | ------------------------------------

2021-02-06 21:33:24 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-06 21:33:24 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.079s
2021-02-06 21:33:25 |

2021-02-06 21:33:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-02-06 21:33:25 | ------------------------------------

2021-02-06 21:33:25 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-8d14bdf8-577c-481f-8bfa-d7edb81c6328",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-02-06 21:33:26 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}