Generated by TestNG with ReportNG at 21:14 PST on Monday 28 December 2020
root@eaa73862192b / 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.390s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.117s
2020-12-28 21:29:13 |

2020-12-28 21:29:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:13 | ------------------------------------

2020-12-28 21:29:13 | [Mutex] waiting for: [configured:node:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:node-2810b4ce-88dd-479f-86c7-42787772c4fb]

2020-12-28 21:29:13 | [Mutex] received everything.

2020-12-28 21:29:13 | [Mutex] isItemNotified: configured:node:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:node-2810b4ce-88dd-479f-86c7-42787772c4fb :: true

2020-12-28 21:29:14 | [Mutex] waiting for: [received:nodes:8a993630-8516-42ad-bfe5-be350aa719d6:localhost]

2020-12-28 21:29:14 | [Mutex] received everything.

2020-12-28 21:29:14 | [Mutex] isItemNotified: received:node:8a993630-8516-42ad-bfe5-be350aa719d6:localhost:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:Node b3eb6790-7309-40f6-b814-6b32d9c4e304 :: true

2020-12-28 21:29:14 | [Mutex] waiting for: [received:nodes:7c7740cd-e70e-43c0-8c21-e4bb60ab02b7:localhost]

2020-12-28 21:29:14 | [Mutex] waiting for: [received:nodes:7c7740cd-e70e-43c0-8c21-e4bb60ab02b7:localhost]

2020-12-28 21:29:14 | [Mutex] waiting for: [received:nodes:7c7740cd-e70e-43c0-8c21-e4bb60ab02b7:localhost]

2020-12-28 21:29:14 | [Mutex] waiting for: [received:nodes:7c7740cd-e70e-43c0-8c21-e4bb60ab02b7:localhost]

2020-12-28 21:29:14 | [Mutex] received everything.

2020-12-28 21:29:14 | [Mutex] isItemNotified: received:node:7c7740cd-e70e-43c0-8c21-e4bb60ab02b7:localhost:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:Node b3eb6790-7309-40f6-b814-6b32d9c4e304 :: false

createNodes 1.913s
2020-12-28 21:29:10 |

2020-12-28 21:29:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:10 | ------------------------------------

2020-12-28 21:29:11 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "pubsub#title": "Node b3eb6790-7309-40f6-b814-6b32d9c4e304"
}

2020-12-28 21:29:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:29:12 | [Mutex] waiting for: [received:nodes:5462feda-ad44-40aa-87a9-7990ae6c582a:localhost]

2020-12-28 21:29:12 | [Mutex] received everything.

2020-12-28 21:29:12 | [Mutex] isItemNotified: received:node:5462feda-ad44-40aa-87a9-7990ae6c582a:localhost:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:Node b3eb6790-7309-40f6-b814-6b32d9c4e304 :: true

createSubnodes 1.036s
2020-12-28 21:29:12 |

2020-12-28 21:29:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:12 | ------------------------------------

2020-12-28 21:29:12 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2810b4ce-88dd-479f-86c7-42787772c4fb",
    "pubsub#title": "Node 2810b4ce-88dd-479f-86c7-42787772c4fb"
}

2020-12-28 21:29:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:29:13 | [Mutex] waiting for: [received:nodes:795c0f1d-05f3-4853-8dd0-c9dd2b8175ee:localhost]

2020-12-28 21:29:13 | [Mutex] received everything.

2020-12-28 21:29:13 | [Mutex] isItemNotified: received:node:795c0f1d-05f3-4853-8dd0-c9dd2b8175ee:localhost:node-2810b4ce-88dd-479f-86c7-42787772c4fb:Node 2810b4ce-88dd-479f-86c7-42787772c4fb :: true

deleteNodes 1.024s
2020-12-28 21:29:18 |

2020-12-28 21:29:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:18 | ------------------------------------

2020-12-28 21:29:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2810b4ce-88dd-479f-86c7-42787772c4fb"
}

2020-12-28 21:29:18 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:29:19 | [Mutex] waiting for: [received:nodes:5cf7ab58-17a0-4727-8471-a210e22578e3:localhost]

2020-12-28 21:29:19 | [Mutex] received everything.

2020-12-28 21:29:19 | [Mutex] isItemNotified: received:node:5cf7ab58-17a0-4727-8471-a210e22578e3:localhost:node-2810b4ce-88dd-479f-86c7-42787772c4fb:Node 2810b4ce-88dd-479f-86c7-42787772c4fb :: false

deleteSubnodes 1.039s
2020-12-28 21:29:17 |

2020-12-28 21:29:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:17 | ------------------------------------

2020-12-28 21:29:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304"
}

2020-12-28 21:29:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-28 21:29:18 | [Mutex] waiting for: [received:nodes:0d442a23-510a-47ff-a075-0def03e762dc:localhost]

2020-12-28 21:29:18 | [Mutex] received everything.

2020-12-28 21:29:18 | [Mutex] isItemNotified: received:node:0d442a23-510a-47ff-a075-0def03e762dc:localhost:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:Node b3eb6790-7309-40f6-b814-6b32d9c4e304 :: false

2020-12-28 21:29:18 | [Mutex] waiting for: [received:nodes:223996f2-d631-4f20-b199-a72707dacd98:localhost]

2020-12-28 21:29:18 | [Mutex] received everything.

2020-12-28 21:29:18 | [Mutex] isItemNotified: received:node:223996f2-d631-4f20-b199-a72707dacd98:localhost:node-b3eb6790-7309-40f6-b814-6b32d9c4e304:Node b3eb6790-7309-40f6-b814-6b32d9c4e304 :: false

publishItemsToNodes 0.041s
2020-12-28 21:29:15 |

2020-12-28 21:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:15 | ------------------------------------

2020-12-28 21:29:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "entry": "<test>item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91</test>",
    "item-id": "item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91"
}

2020-12-28 21:29:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91"
}

2020-12-28 21:29:15 | [Mutex] waiting for: [published:item:notifieditem-c6c6fd37-bf51-44ff-a787-0cabe4d30a91:admin@test-domain.com]

2020-12-28 21:29:15 | [Mutex] received everything.

2020-12-28 21:29:15 | [Mutex] isItemNotified: published:item:notifieditem-c6c6fd37-bf51-44ff-a787-0cabe4d30a91:admin@test-domain.com :: true

retractItemsFromNodes 0.084s
2020-12-28 21:29:15 |

2020-12-28 21:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:15 | ------------------------------------

2020-12-28 21:29:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "item-id": "item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91"
}

2020-12-28 21:29:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91"
}

2020-12-28 21:29:16 | [Mutex] waiting for: [retracted:item:notifieditem-c6c6fd37-bf51-44ff-a787-0cabe4d30a91:admin@test-domain.com]

2020-12-28 21:29:16 | [Mutex] received everything.

2020-12-28 21:29:16 | [Mutex] isItemNotified: retracted:item:notifieditem-c6c6fd37-bf51-44ff-a787-0cabe4d30a91:admin@test-domain.com :: true

retrieveItemsFromNodes 0.062s
2020-12-28 21:29:15 |

2020-12-28 21:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:15 | ------------------------------------

2020-12-28 21:29:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "item-id": "item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91"
}

2020-12-28 21:29:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "item-id": "item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91",
    "item": [
        "<item id=\"item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91\"><test>item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91</test></item>"
    ]
}

2020-12-28 21:29:15 | [Mutex] notify: [retrieved:item:item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91:payload-matches:true:localhost]

2020-12-28 21:29:15 | [Mutex] received everything.

2020-12-28 21:29:15 | [Mutex] isItemNotified: retrieved:item:item-c6c6fd37-bf51-44ff-a787-0cabe4d30a91:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.048s
2020-12-28 21:29:15 |

2020-12-28 21:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:15 | ------------------------------------

2020-12-28 21:29:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-28 21:29:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2810b4ce-88dd-479f-86c7-42787772c4fb",
        "node-b3eb6790-7309-40f6-b814-6b32d9c4e304"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-12-28 21:29:15 |

2020-12-28 21:29:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:15 | ------------------------------------

2020-12-28 21:29:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-b3eb6790-7309-40f6-b814-6b32d9c4e304)"
}

2020-12-28 21:29:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2020-12-28 21:29:14 |

2020-12-28 21:29:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:14 | ------------------------------------

2020-12-28 21:29:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-28 21:29:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.059s
2020-12-28 21:29:16 |

2020-12-28 21:29:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-28 21:29:16 | ------------------------------------

2020-12-28 21:29:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-b3eb6790-7309-40f6-b814-6b32d9c4e304",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-28 21:29:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}