Generated by TestNG with ReportNG at 21:25 PST on Wednesday 27 January 2021
root@43fec6d4badf / 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.136s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.126s
2021-01-27 21:42:13 |

2021-01-27 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:13 | ------------------------------------

2021-01-27 21:42:13 | [Mutex] waiting for: [configured:node:node-6883996c-ec3f-418f-b413-963fb4a5065a:node-191149b9-f60c-4ede-973b-a160eb106bca]

2021-01-27 21:42:13 | [Mutex] received everything.

2021-01-27 21:42:13 | [Mutex] isItemNotified: configured:node:node-6883996c-ec3f-418f-b413-963fb4a5065a:node-191149b9-f60c-4ede-973b-a160eb106bca :: true

2021-01-27 21:42:14 | [Mutex] waiting for: [received:nodes:a31b0b24-7bcd-4725-883d-48062de18a18:localhost]

2021-01-27 21:42:14 | [Mutex] received everything.

2021-01-27 21:42:14 | [Mutex] isItemNotified: received:node:a31b0b24-7bcd-4725-883d-48062de18a18:localhost:node-6883996c-ec3f-418f-b413-963fb4a5065a:Node 6883996c-ec3f-418f-b413-963fb4a5065a :: true

2021-01-27 21:42:14 | [Mutex] waiting for: [received:nodes:ac6e7df0-ac20-42e4-9f8f-bc2f7d4a7560:localhost]

2021-01-27 21:42:14 | [Mutex] received everything.

2021-01-27 21:42:14 | [Mutex] isItemNotified: received:node:ac6e7df0-ac20-42e4-9f8f-bc2f7d4a7560:localhost:node-6883996c-ec3f-418f-b413-963fb4a5065a:Node 6883996c-ec3f-418f-b413-963fb4a5065a :: false

createNodes 1.747s
2021-01-27 21:42:10 |

2021-01-27 21:42:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:10 | ------------------------------------

2021-01-27 21:42: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-6883996c-ec3f-418f-b413-963fb4a5065a",
    "pubsub#title": "Node 6883996c-ec3f-418f-b413-963fb4a5065a"
}

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

2021-01-27 21:42:12 | [Mutex] waiting for: [received:nodes:e35f7ae4-c722-4f57-bcad-5209631a85b5:localhost]

2021-01-27 21:42:12 | [Mutex] received everything.

2021-01-27 21:42:12 | [Mutex] isItemNotified: received:node:e35f7ae4-c722-4f57-bcad-5209631a85b5:localhost:node-6883996c-ec3f-418f-b413-963fb4a5065a:Node 6883996c-ec3f-418f-b413-963fb4a5065a :: true

createSubnodes 1.031s
2021-01-27 21:42:12 |

2021-01-27 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:12 | ------------------------------------

2021-01-27 21:42: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-191149b9-f60c-4ede-973b-a160eb106bca",
    "pubsub#title": "Node 191149b9-f60c-4ede-973b-a160eb106bca"
}

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

2021-01-27 21:42:13 | [Mutex] waiting for: [received:nodes:c8911b61-6629-4f39-9ed1-1dfb7ae56ce1:localhost]

2021-01-27 21:42:13 | [Mutex] received everything.

2021-01-27 21:42:13 | [Mutex] isItemNotified: received:node:c8911b61-6629-4f39-9ed1-1dfb7ae56ce1:localhost:node-191149b9-f60c-4ede-973b-a160eb106bca:Node 191149b9-f60c-4ede-973b-a160eb106bca :: true

deleteNodes 1.028s
2021-01-27 21:42:18 |

2021-01-27 21:42:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:18 | ------------------------------------

2021-01-27 21:42:18 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-191149b9-f60c-4ede-973b-a160eb106bca"
}

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

2021-01-27 21:42:19 | [Mutex] waiting for: [received:nodes:d44d6e03-1590-42ef-8fac-eb2d205857f2:localhost]

2021-01-27 21:42:19 | [Mutex] received everything.

2021-01-27 21:42:19 | [Mutex] isItemNotified: received:node:d44d6e03-1590-42ef-8fac-eb2d205857f2:localhost:node-191149b9-f60c-4ede-973b-a160eb106bca:Node 191149b9-f60c-4ede-973b-a160eb106bca :: false

deleteSubnodes 1.035s
2021-01-27 21:42:17 |

2021-01-27 21:42:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:17 | ------------------------------------

2021-01-27 21:42:17 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a"
}

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

2021-01-27 21:42:18 | [Mutex] waiting for: [received:nodes:a76dcd5b-e156-48bb-9ab6-39b4ee85da20:localhost]

2021-01-27 21:42:18 | [Mutex] received everything.

2021-01-27 21:42:18 | [Mutex] isItemNotified: received:node:a76dcd5b-e156-48bb-9ab6-39b4ee85da20:localhost:node-6883996c-ec3f-418f-b413-963fb4a5065a:Node 6883996c-ec3f-418f-b413-963fb4a5065a :: false

2021-01-27 21:42:18 | [Mutex] waiting for: [received:nodes:58cce0ca-72d2-4a61-b840-f28e808a4e69:localhost]

2021-01-27 21:42:18 | [Mutex] received everything.

2021-01-27 21:42:18 | [Mutex] isItemNotified: received:node:58cce0ca-72d2-4a61-b840-f28e808a4e69:localhost:node-6883996c-ec3f-418f-b413-963fb4a5065a:Node 6883996c-ec3f-418f-b413-963fb4a5065a :: false

publishItemsToNodes 0.048s
2021-01-27 21:42:15 |

2021-01-27 21:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:15 | ------------------------------------

2021-01-27 21:42:15 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a",
    "entry": "<test>item-adb70d0e-2e77-477d-902a-709bd6d2ae5c</test>",
    "item-id": "item-adb70d0e-2e77-477d-902a-709bd6d2ae5c"
}

2021-01-27 21:42:15 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-adb70d0e-2e77-477d-902a-709bd6d2ae5c"
}

2021-01-27 21:42:15 | [Mutex] waiting for: [published:item:notifieditem-adb70d0e-2e77-477d-902a-709bd6d2ae5c:admin@test-domain.com]

2021-01-27 21:42:15 | [Mutex] received everything.

2021-01-27 21:42:15 | [Mutex] isItemNotified: published:item:notifieditem-adb70d0e-2e77-477d-902a-709bd6d2ae5c:admin@test-domain.com :: true

retractItemsFromNodes 0.080s
2021-01-27 21:42:15 |

2021-01-27 21:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:15 | ------------------------------------

2021-01-27 21:42:15 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a",
    "item-id": "item-adb70d0e-2e77-477d-902a-709bd6d2ae5c"
}

2021-01-27 21:42:16 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-adb70d0e-2e77-477d-902a-709bd6d2ae5c"
}

2021-01-27 21:42:16 | [Mutex] received everything.

2021-01-27 21:42:16 | [Mutex] isItemNotified: retracted:item:notifieditem-adb70d0e-2e77-477d-902a-709bd6d2ae5c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2021-01-27 21:42:15 |

2021-01-27 21:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:15 | ------------------------------------

2021-01-27 21:42:15 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a",
    "item-id": "item-adb70d0e-2e77-477d-902a-709bd6d2ae5c"
}

2021-01-27 21:42:15 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a",
    "item-id": "item-adb70d0e-2e77-477d-902a-709bd6d2ae5c",
    "item": [
        "<item id=\"item-adb70d0e-2e77-477d-902a-709bd6d2ae5c\"><test>item-adb70d0e-2e77-477d-902a-709bd6d2ae5c</test></item>"
    ]
}

2021-01-27 21:42:15 | [Mutex] notify: [retrieved:item:item-adb70d0e-2e77-477d-902a-709bd6d2ae5c:payload-matches:true:localhost]

2021-01-27 21:42:15 | [Mutex] received everything.

2021-01-27 21:42:15 | [Mutex] isItemNotified: retrieved:item:item-adb70d0e-2e77-477d-902a-709bd6d2ae5c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-01-27 21:42:15 |

2021-01-27 21:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:15 | ------------------------------------

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

2021-01-27 21:42:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-6883996c-ec3f-418f-b413-963fb4a5065a",
        "test",
        "node-191149b9-f60c-4ede-973b-a160eb106bca"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-01-27 21:42:15 |

2021-01-27 21:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:15 | ------------------------------------

2021-01-27 21:42:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-6883996c-ec3f-418f-b413-963fb4a5065a)"
}

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

subscribeNodes 1.015s
2021-01-27 21:42:14 |

2021-01-27 21:42:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:14 | ------------------------------------

2021-01-27 21:42:14 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a",
    "jids": [
        "admin@test-domain.com"
    ]
}

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

unsubscribeNodes 1.064s
2021-01-27 21:42:16 |

2021-01-27 21:42:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-01-27 21:42:16 | ------------------------------------

2021-01-27 21:42:16 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-6883996c-ec3f-418f-b413-963fb4a5065a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-01-27 21:42:16 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}