Generated by TestNG with ReportNG at 22:42 PDT on Sunday 20 September 2020
root@1a41183091ef / 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.061s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.099s
2020-09-20 22:59:36 |

2020-09-20 22:59:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:36 | ------------------------------------

2020-09-20 22:59:36 | [Mutex] waiting for: [configured:node:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5]

2020-09-20 22:59:36 | [Mutex] received everything.

2020-09-20 22:59:36 | [Mutex] isItemNotified: configured:node:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5 :: true

2020-09-20 22:59:37 | [Mutex] waiting for: [received:nodes:16f821d1-0964-4f9b-bac7-ad11fbe749c2:localhost]

2020-09-20 22:59:37 | [Mutex] received everything.

2020-09-20 22:59:37 | [Mutex] isItemNotified: received:node:16f821d1-0964-4f9b-bac7-ad11fbe749c2:localhost:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:Node a75c4eb8-3245-4671-95df-b85cd5ef547c :: true

2020-09-20 22:59:37 | [Mutex] waiting for: [received:nodes:da1d4365-8845-413b-b574-2b41d75082db:localhost]

2020-09-20 22:59:37 | [Mutex] received everything.

2020-09-20 22:59:37 | [Mutex] isItemNotified: received:node:da1d4365-8845-413b-b574-2b41d75082db:localhost:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:Node a75c4eb8-3245-4671-95df-b85cd5ef547c :: false

createNodes 1.695s
2020-09-20 22:59:33 |

2020-09-20 22:59:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:33 | ------------------------------------

2020-09-20 22:59:33 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "pubsub#title": "Node a75c4eb8-3245-4671-95df-b85cd5ef547c"
}

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

2020-09-20 22:59:35 | [Mutex] waiting for: [received:nodes:ea1770d4-f358-4101-bd96-b8dd753bc3f8:localhost]

2020-09-20 22:59:35 | [Mutex] received everything.

2020-09-20 22:59:35 | [Mutex] isItemNotified: received:node:ea1770d4-f358-4101-bd96-b8dd753bc3f8:localhost:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:Node a75c4eb8-3245-4671-95df-b85cd5ef547c :: true

createSubnodes 1.031s
2020-09-20 22:59:35 |

2020-09-20 22:59:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:35 | ------------------------------------

2020-09-20 22:59:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5",
    "pubsub#title": "Node 1a8a5dae-57da-46f4-b088-a663cbaf0ad5"
}

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

2020-09-20 22:59:36 | [Mutex] waiting for: [received:nodes:1d70d946-bf13-4f72-a557-d83b40ddb092:localhost]

2020-09-20 22:59:36 | [Mutex] received everything.

2020-09-20 22:59:36 | [Mutex] isItemNotified: received:node:1d70d946-bf13-4f72-a557-d83b40ddb092:localhost:node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5:Node 1a8a5dae-57da-46f4-b088-a663cbaf0ad5 :: true

deleteNodes 1.019s
2020-09-20 22:59:40 |

2020-09-20 22:59:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:40 | ------------------------------------

2020-09-20 22:59:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5"
}

2020-09-20 22:59:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-20 22:59:41 | [Mutex] waiting for: [received:nodes:b4574436-306b-41bd-92e5-3054e43def2c:localhost]

2020-09-20 22:59:41 | [Mutex] received everything.

2020-09-20 22:59:41 | [Mutex] isItemNotified: received:node:b4574436-306b-41bd-92e5-3054e43def2c:localhost:node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5:Node 1a8a5dae-57da-46f4-b088-a663cbaf0ad5 :: false

deleteSubnodes 1.025s
2020-09-20 22:59:39 |

2020-09-20 22:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:39 | ------------------------------------

2020-09-20 22:59:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c"
}

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

2020-09-20 22:59:40 | [Mutex] waiting for: [received:nodes:3ddd9993-a013-4186-a83e-23a04bd8bcff:localhost]

2020-09-20 22:59:40 | [Mutex] waiting for: [received:nodes:3ddd9993-a013-4186-a83e-23a04bd8bcff:localhost]

2020-09-20 22:59:40 | [Mutex] waiting for: [received:nodes:3ddd9993-a013-4186-a83e-23a04bd8bcff:localhost]

2020-09-20 22:59:40 | [Mutex] received everything.

2020-09-20 22:59:40 | [Mutex] isItemNotified: received:node:3ddd9993-a013-4186-a83e-23a04bd8bcff:localhost:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:Node a75c4eb8-3245-4671-95df-b85cd5ef547c :: false

2020-09-20 22:59:40 | [Mutex] waiting for: [received:nodes:08231177-81d1-4e30-b2bb-6c49614353a4:localhost]

2020-09-20 22:59:40 | [Mutex] received everything.

2020-09-20 22:59:40 | [Mutex] isItemNotified: received:node:08231177-81d1-4e30-b2bb-6c49614353a4:localhost:node-a75c4eb8-3245-4671-95df-b85cd5ef547c:Node a75c4eb8-3245-4671-95df-b85cd5ef547c :: false

publishItemsToNodes 0.058s
2020-09-20 22:59:38 |

2020-09-20 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:38 | ------------------------------------

2020-09-20 22:59:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "entry": "<test>item-3bdb0798-ac04-480b-b952-562b8a01b20b</test>",
    "item-id": "item-3bdb0798-ac04-480b-b952-562b8a01b20b"
}

2020-09-20 22:59:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3bdb0798-ac04-480b-b952-562b8a01b20b"
}

2020-09-20 22:59:38 | [Mutex] waiting for: [published:item:notifieditem-3bdb0798-ac04-480b-b952-562b8a01b20b:admin@test-domain.com]

2020-09-20 22:59:38 | [Mutex] received everything.

2020-09-20 22:59:38 | [Mutex] isItemNotified: published:item:notifieditem-3bdb0798-ac04-480b-b952-562b8a01b20b:admin@test-domain.com :: true

retractItemsFromNodes 0.052s
2020-09-20 22:59:38 |

2020-09-20 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:38 | ------------------------------------

2020-09-20 22:59:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "item-id": "item-3bdb0798-ac04-480b-b952-562b8a01b20b"
}

2020-09-20 22:59:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-3bdb0798-ac04-480b-b952-562b8a01b20b"
}

2020-09-20 22:59:38 | [Mutex] received everything.

2020-09-20 22:59:38 | [Mutex] isItemNotified: retracted:item:notifieditem-3bdb0798-ac04-480b-b952-562b8a01b20b:admin@test-domain.com :: true

retrieveItemsFromNodes 0.017s
2020-09-20 22:59:38 |

2020-09-20 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:38 | ------------------------------------

2020-09-20 22:59:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "item-id": "item-3bdb0798-ac04-480b-b952-562b8a01b20b"
}

2020-09-20 22:59:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "item-id": "item-3bdb0798-ac04-480b-b952-562b8a01b20b",
    "item": [
        "<item id=\"item-3bdb0798-ac04-480b-b952-562b8a01b20b\"><test>item-3bdb0798-ac04-480b-b952-562b8a01b20b</test></item>"
    ]
}

2020-09-20 22:59:38 | [Mutex] notify: [retrieved:item:item-3bdb0798-ac04-480b-b952-562b8a01b20b:payload-matches:true:localhost]

2020-09-20 22:59:38 | [Mutex] received everything.

2020-09-20 22:59:38 | [Mutex] isItemNotified: retrieved:item:item-3bdb0798-ac04-480b-b952-562b8a01b20b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.046s
2020-09-20 22:59:38 |

2020-09-20 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:38 | ------------------------------------

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

2020-09-20 22:59:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
        "node-1a8a5dae-57da-46f4-b088-a663cbaf0ad5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2020-09-20 22:59:38 |

2020-09-20 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:38 | ------------------------------------

2020-09-20 22:59:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a75c4eb8-3245-4671-95df-b85cd5ef547c)"
}

2020-09-20 22:59:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2020-09-20 22:59:37 |

2020-09-20 22:59:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:37 | ------------------------------------

2020-09-20 22:59:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-20 22:59:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-09-20 22:59:38 |

2020-09-20 22:59:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-20 22:59:38 | ------------------------------------

2020-09-20 22:59:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a75c4eb8-3245-4671-95df-b85cd5ef547c",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-20 22:59:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}