Generated by TestNG with ReportNG at 22:14 PDT on Thursday 30 September 2021
root@f29ef40080b5 / 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.038s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.088s
2021-09-30 22:29:48 |

2021-09-30 22:29:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:48 | ------------------------------------

2021-09-30 22:29:48 | [Mutex] waiting for: [configured:node:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:node-0eca3108-a720-4583-8bb7-cdc6ae40a223]

2021-09-30 22:29:48 | [Mutex] received everything.

2021-09-30 22:29:48 | [Mutex] isItemNotified: configured:node:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:node-0eca3108-a720-4583-8bb7-cdc6ae40a223 :: true

2021-09-30 22:29:49 | [Mutex] waiting for: [received:nodes:9ca7b825-7570-467f-aba9-ff956ab72ff0:localhost]

2021-09-30 22:29:49 | [Mutex] received everything.

2021-09-30 22:29:49 | [Mutex] isItemNotified: received:node:9ca7b825-7570-467f-aba9-ff956ab72ff0:localhost:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:Node c47cd5e6-1241-41bb-aea3-11c4e5488a9a :: true

2021-09-30 22:29:49 | [Mutex] waiting for: [received:nodes:4f95e85b-f4c4-4ede-bac3-9ff23f532766:localhost]

2021-09-30 22:29:49 | [Mutex] received everything.

2021-09-30 22:29:49 | [Mutex] isItemNotified: received:node:4f95e85b-f4c4-4ede-bac3-9ff23f532766:localhost:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:Node c47cd5e6-1241-41bb-aea3-11c4e5488a9a :: false

createNodes 1.658s
2021-09-30 22:29:45 |

2021-09-30 22:29:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:45 | ------------------------------------

2021-09-30 22:29:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "pubsub#title": "Node c47cd5e6-1241-41bb-aea3-11c4e5488a9a"
}

2021-09-30 22:29:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:29:47 | [Mutex] waiting for: [received:nodes:6b6b6dc8-e66b-460d-87f4-c984ffa569ae:localhost]

2021-09-30 22:29:47 | [Mutex] received everything.

2021-09-30 22:29:47 | [Mutex] isItemNotified: received:node:6b6b6dc8-e66b-460d-87f4-c984ffa569ae:localhost:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:Node c47cd5e6-1241-41bb-aea3-11c4e5488a9a :: true

createSubnodes 1.025s
2021-09-30 22:29:47 |

2021-09-30 22:29:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:47 | ------------------------------------

2021-09-30 22:29:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-0eca3108-a720-4583-8bb7-cdc6ae40a223",
    "pubsub#title": "Node 0eca3108-a720-4583-8bb7-cdc6ae40a223"
}

2021-09-30 22:29:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:29:48 | [Mutex] waiting for: [received:nodes:1b1642e7-a117-42c2-9a94-e817ecf26f51:localhost]

2021-09-30 22:29:48 | [Mutex] received everything.

2021-09-30 22:29:48 | [Mutex] isItemNotified: received:node:1b1642e7-a117-42c2-9a94-e817ecf26f51:localhost:node-0eca3108-a720-4583-8bb7-cdc6ae40a223:Node 0eca3108-a720-4583-8bb7-cdc6ae40a223 :: true

deleteNodes 1.032s
2021-09-30 22:29:52 |

2021-09-30 22:29:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:52 | ------------------------------------

2021-09-30 22:29:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0eca3108-a720-4583-8bb7-cdc6ae40a223"
}

2021-09-30 22:29:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:29:53 | [Mutex] waiting for: [received:nodes:aef70595-abcc-4759-b75d-e156fe16b053:localhost]

2021-09-30 22:29:53 | [Mutex] waiting for: [received:nodes:aef70595-abcc-4759-b75d-e156fe16b053:localhost]

2021-09-30 22:29:53 | [Mutex] received everything.

2021-09-30 22:29:53 | [Mutex] isItemNotified: received:node:aef70595-abcc-4759-b75d-e156fe16b053:localhost:node-0eca3108-a720-4583-8bb7-cdc6ae40a223:Node 0eca3108-a720-4583-8bb7-cdc6ae40a223 :: false

deleteSubnodes 1.027s
2021-09-30 22:29:51 |

2021-09-30 22:29:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:51 | ------------------------------------

2021-09-30 22:29:51 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a"
}

2021-09-30 22:29:51 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-09-30 22:29:52 | [Mutex] waiting for: [received:nodes:f97cdf7a-84b6-41ce-a8b9-e0cc87004076:localhost]

2021-09-30 22:29:52 | [Mutex] received everything.

2021-09-30 22:29:52 | [Mutex] isItemNotified: received:node:f97cdf7a-84b6-41ce-a8b9-e0cc87004076:localhost:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:Node c47cd5e6-1241-41bb-aea3-11c4e5488a9a :: false

2021-09-30 22:29:52 | [Mutex] waiting for: [received:nodes:e82d2b18-b88a-4e1f-a167-aa5b25c65f97:localhost]

2021-09-30 22:29:52 | [Mutex] received everything.

2021-09-30 22:29:52 | [Mutex] isItemNotified: received:node:e82d2b18-b88a-4e1f-a167-aa5b25c65f97:localhost:node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a:Node c47cd5e6-1241-41bb-aea3-11c4e5488a9a :: false

publishItemsToNodes 0.044s
2021-09-30 22:29:50 |

2021-09-30 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:50 | ------------------------------------

2021-09-30 22:29:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "entry": "<test>item-2f489707-7191-4ae6-a607-ab841399d179</test>",
    "item-id": "item-2f489707-7191-4ae6-a607-ab841399d179"
}

2021-09-30 22:29:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2f489707-7191-4ae6-a607-ab841399d179"
}

2021-09-30 22:29:50 | [Mutex] waiting for: [published:item:notifieditem-2f489707-7191-4ae6-a607-ab841399d179:admin@test-domain.com]

2021-09-30 22:29:50 | [Mutex] received everything.

2021-09-30 22:29:50 | [Mutex] isItemNotified: published:item:notifieditem-2f489707-7191-4ae6-a607-ab841399d179:admin@test-domain.com :: true

retractItemsFromNodes 0.067s
2021-09-30 22:29:50 |

2021-09-30 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:50 | ------------------------------------

2021-09-30 22:29:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "item-id": "item-2f489707-7191-4ae6-a607-ab841399d179"
}

2021-09-30 22:29:50 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2f489707-7191-4ae6-a607-ab841399d179"
}

2021-09-30 22:29:50 | [Mutex] waiting for: [retracted:item:notifieditem-2f489707-7191-4ae6-a607-ab841399d179:admin@test-domain.com]

2021-09-30 22:29:50 | [Mutex] received everything.

2021-09-30 22:29:50 | [Mutex] isItemNotified: retracted:item:notifieditem-2f489707-7191-4ae6-a607-ab841399d179:admin@test-domain.com :: true

retrieveItemsFromNodes 0.072s
2021-09-30 22:29:50 |

2021-09-30 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:50 | ------------------------------------

2021-09-30 22:29:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "item-id": "item-2f489707-7191-4ae6-a607-ab841399d179"
}

2021-09-30 22:29:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "item-id": "item-2f489707-7191-4ae6-a607-ab841399d179",
    "item": [
        "<item id=\"item-2f489707-7191-4ae6-a607-ab841399d179\"><test>item-2f489707-7191-4ae6-a607-ab841399d179</test></item>"
    ]
}

2021-09-30 22:29:50 | [Mutex] notify: [retrieved:item:item-2f489707-7191-4ae6-a607-ab841399d179:payload-matches:true:localhost]

2021-09-30 22:29:50 | [Mutex] received everything.

2021-09-30 22:29:50 | [Mutex] isItemNotified: retrieved:item:item-2f489707-7191-4ae6-a607-ab841399d179:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2021-09-30 22:29:50 |

2021-09-30 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:50 | ------------------------------------

2021-09-30 22:29:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-09-30 22:29:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0eca3108-a720-4583-8bb7-cdc6ae40a223",
        "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-09-30 22:29:50 |

2021-09-30 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:50 | ------------------------------------

2021-09-30 22:29:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a)"
}

2021-09-30 22:29:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-09-30 22:29:49 |

2021-09-30 22:29:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:49 | ------------------------------------

2021-09-30 22:29:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-30 22:29:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.072s
2021-09-30 22:29:50 |

2021-09-30 22:29:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-09-30 22:29:50 | ------------------------------------

2021-09-30 22:29:50 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-c47cd5e6-1241-41bb-aea3-11c4e5488a9a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-09-30 22:29:50 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}