Generated by TestNG with ReportNG at 21:41 PST on Monday 08 March 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.793s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.111s
2021-03-08 21:57:13 |

2021-03-08 21:57:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:13 | ------------------------------------

2021-03-08 21:57:13 | [Mutex] waiting for: [configured:node:node-d18655a1-47b3-4372-8109-0bd44879c143:node-083ad10c-550e-44ac-959c-f9da184d66e5]

2021-03-08 21:57:13 | [Mutex] received everything.

2021-03-08 21:57:13 | [Mutex] isItemNotified: configured:node:node-d18655a1-47b3-4372-8109-0bd44879c143:node-083ad10c-550e-44ac-959c-f9da184d66e5 :: true

2021-03-08 21:57:14 | [Mutex] waiting for: [received:nodes:6003e770-b13c-4602-be7b-b05eb6a3dda5:localhost]

2021-03-08 21:57:14 | [Mutex] received everything.

2021-03-08 21:57:14 | [Mutex] isItemNotified: received:node:6003e770-b13c-4602-be7b-b05eb6a3dda5:localhost:node-d18655a1-47b3-4372-8109-0bd44879c143:Node d18655a1-47b3-4372-8109-0bd44879c143 :: true

2021-03-08 21:57:14 | [Mutex] waiting for: [received:nodes:f08be3cd-ee71-41c3-9e09-949bd7eadf18:localhost]

2021-03-08 21:57:14 | [Mutex] received everything.

2021-03-08 21:57:14 | [Mutex] isItemNotified: received:node:f08be3cd-ee71-41c3-9e09-949bd7eadf18:localhost:node-d18655a1-47b3-4372-8109-0bd44879c143:Node d18655a1-47b3-4372-8109-0bd44879c143 :: false

createNodes 1.526s
2021-03-08 21:57:10 |

2021-03-08 21:57:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:10 | ------------------------------------

2021-03-08 21:57: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-d18655a1-47b3-4372-8109-0bd44879c143",
    "pubsub#title": "Node d18655a1-47b3-4372-8109-0bd44879c143"
}

2021-03-08 21:57:11 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-08 21:57:12 | [Mutex] waiting for: [received:nodes:4433dc44-1f2f-43eb-9be7-cad2b1305fe9:localhost]

2021-03-08 21:57:12 | [Mutex] received everything.

2021-03-08 21:57:12 | [Mutex] isItemNotified: received:node:4433dc44-1f2f-43eb-9be7-cad2b1305fe9:localhost:node-d18655a1-47b3-4372-8109-0bd44879c143:Node d18655a1-47b3-4372-8109-0bd44879c143 :: true

createSubnodes 1.022s
2021-03-08 21:57:12 |

2021-03-08 21:57:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:12 | ------------------------------------

2021-03-08 21:57: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-083ad10c-550e-44ac-959c-f9da184d66e5",
    "pubsub#title": "Node 083ad10c-550e-44ac-959c-f9da184d66e5"
}

2021-03-08 21:57:12 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-08 21:57:13 | [Mutex] waiting for: [received:nodes:1ffe3c0d-25d6-40fe-9cde-be9c221cf2d3:localhost]

2021-03-08 21:57:13 | [Mutex] received everything.

2021-03-08 21:57:13 | [Mutex] isItemNotified: received:node:1ffe3c0d-25d6-40fe-9cde-be9c221cf2d3:localhost:node-083ad10c-550e-44ac-959c-f9da184d66e5:Node 083ad10c-550e-44ac-959c-f9da184d66e5 :: true

deleteNodes 1.023s
2021-03-08 21:57:17 |

2021-03-08 21:57:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:17 | ------------------------------------

2021-03-08 21:57:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-083ad10c-550e-44ac-959c-f9da184d66e5"
}

2021-03-08 21:57:17 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-08 21:57:18 | [Mutex] waiting for: [received:nodes:7044170d-681c-4660-9e48-9b936ef9df52:localhost]

2021-03-08 21:57:18 | [Mutex] received everything.

2021-03-08 21:57:18 | [Mutex] isItemNotified: received:node:7044170d-681c-4660-9e48-9b936ef9df52:localhost:node-083ad10c-550e-44ac-959c-f9da184d66e5:Node 083ad10c-550e-44ac-959c-f9da184d66e5 :: false

deleteSubnodes 1.043s
2021-03-08 21:57:16 |

2021-03-08 21:57:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:16 | ------------------------------------

2021-03-08 21:57:16 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143"
}

2021-03-08 21:57:16 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-03-08 21:57:17 | [Mutex] waiting for: [received:nodes:eb260185-be61-483b-a9cd-e7a4eec6c6de:localhost]

2021-03-08 21:57:17 | [Mutex] received everything.

2021-03-08 21:57:17 | [Mutex] isItemNotified: received:node:eb260185-be61-483b-a9cd-e7a4eec6c6de:localhost:node-d18655a1-47b3-4372-8109-0bd44879c143:Node d18655a1-47b3-4372-8109-0bd44879c143 :: false

2021-03-08 21:57:17 | [Mutex] waiting for: [received:nodes:f3d67afa-2f92-4c3a-bb9c-1255780316f8:localhost]

2021-03-08 21:57:17 | [Mutex] received everything.

2021-03-08 21:57:17 | [Mutex] isItemNotified: received:node:f3d67afa-2f92-4c3a-bb9c-1255780316f8:localhost:node-d18655a1-47b3-4372-8109-0bd44879c143:Node d18655a1-47b3-4372-8109-0bd44879c143 :: false

publishItemsToNodes 0.048s
2021-03-08 21:57:15 |

2021-03-08 21:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:15 | ------------------------------------

2021-03-08 21:57:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143",
    "entry": "<test>item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc</test>",
    "item-id": "item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc"
}

2021-03-08 21:57:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc"
}

2021-03-08 21:57:15 | [Mutex] waiting for: [published:item:notifieditem-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc:admin@test-domain.com]

2021-03-08 21:57:15 | [Mutex] received everything.

2021-03-08 21:57:15 | [Mutex] isItemNotified: published:item:notifieditem-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc:admin@test-domain.com :: true

retractItemsFromNodes 0.066s
2021-03-08 21:57:15 |

2021-03-08 21:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:15 | ------------------------------------

2021-03-08 21:57:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143",
    "item-id": "item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc"
}

2021-03-08 21:57:15 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc"
}

2021-03-08 21:57:15 | [Mutex] waiting for: [retracted:item:notifieditem-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc:admin@test-domain.com]

2021-03-08 21:57:15 | [Mutex] received everything.

2021-03-08 21:57:15 | [Mutex] isItemNotified: retracted:item:notifieditem-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc:admin@test-domain.com :: true

retrieveItemsFromNodes 0.085s
2021-03-08 21:57:15 |

2021-03-08 21:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:15 | ------------------------------------

2021-03-08 21:57:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143",
    "item-id": "item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc"
}

2021-03-08 21:57:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143",
    "item-id": "item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc",
    "item": [
        "<item id=\"item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc\"><test>item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc</test></item>"
    ]
}

2021-03-08 21:57:15 | [Mutex] notify: [retrieved:item:item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc:payload-matches:true:localhost]

2021-03-08 21:57:15 | [Mutex] received everything.

2021-03-08 21:57:15 | [Mutex] isItemNotified: retrieved:item:item-ff98a56c-f987-4d7e-850e-89a6aa3cc5fc:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2021-03-08 21:57:15 |

2021-03-08 21:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:15 | ------------------------------------

2021-03-08 21:57:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-03-08 21:57:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d18655a1-47b3-4372-8109-0bd44879c143",
        "node-083ad10c-550e-44ac-959c-f9da184d66e5"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2021-03-08 21:57:15 |

2021-03-08 21:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:15 | ------------------------------------

2021-03-08 21:57:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d18655a1-47b3-4372-8109-0bd44879c143)"
}

2021-03-08 21:57:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.013s
2021-03-08 21:57:14 |

2021-03-08 21:57:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:14 | ------------------------------------

2021-03-08 21:57:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-08 21:57:14 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.061s
2021-03-08 21:57:15 |

2021-03-08 21:57:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-03-08 21:57:15 | ------------------------------------

2021-03-08 21:57:15 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d18655a1-47b3-4372-8109-0bd44879c143",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-03-08 21:57:15 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}