Generated by TestNG with ReportNG at 22:14 PDT on Sunday 25 April 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 : 8.997s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.108s
2021-04-25 22:28:00 |

2021-04-25 22:28:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:00 | ------------------------------------

2021-04-25 22:28:00 | [Mutex] waiting for: [configured:node:node-fbe6a50a-4310-48b4-9723-3251fcec8335:node-de1aac02-351c-4e17-9916-dabe9d1ceee9]

2021-04-25 22:28:01 | [Mutex] received everything.

2021-04-25 22:28:01 | [Mutex] isItemNotified: configured:node:node-fbe6a50a-4310-48b4-9723-3251fcec8335:node-de1aac02-351c-4e17-9916-dabe9d1ceee9 :: true

2021-04-25 22:28:02 | [Mutex] waiting for: [received:nodes:313a49ba-625c-495d-ae6d-dcaf60459fcd:localhost]

2021-04-25 22:28:02 | [Mutex] received everything.

2021-04-25 22:28:02 | [Mutex] isItemNotified: received:node:313a49ba-625c-495d-ae6d-dcaf60459fcd:localhost:node-fbe6a50a-4310-48b4-9723-3251fcec8335:Node fbe6a50a-4310-48b4-9723-3251fcec8335 :: true

2021-04-25 22:28:02 | [Mutex] waiting for: [received:nodes:1714dc08-8cea-42f9-80eb-d289fef89237:localhost]

2021-04-25 22:28:02 | [Mutex] waiting for: [received:nodes:1714dc08-8cea-42f9-80eb-d289fef89237:localhost]

2021-04-25 22:28:02 | [Mutex] received everything.

2021-04-25 22:28:02 | [Mutex] isItemNotified: received:node:1714dc08-8cea-42f9-80eb-d289fef89237:localhost:node-fbe6a50a-4310-48b4-9723-3251fcec8335:Node fbe6a50a-4310-48b4-9723-3251fcec8335 :: false

createNodes 1.632s
2021-04-25 22:27:58 |

2021-04-25 22:27:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:27:58 | ------------------------------------

2021-04-25 22:27:58 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "pubsub#title": "Node fbe6a50a-4310-48b4-9723-3251fcec8335"
}

2021-04-25 22:27:58 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:27:59 | [Mutex] waiting for: [received:nodes:876e04d2-d5a8-4010-86d0-b90b73a96867:localhost]

2021-04-25 22:27:59 | [Mutex] received everything.

2021-04-25 22:27:59 | [Mutex] isItemNotified: received:node:876e04d2-d5a8-4010-86d0-b90b73a96867:localhost:node-fbe6a50a-4310-48b4-9723-3251fcec8335:Node fbe6a50a-4310-48b4-9723-3251fcec8335 :: true

createSubnodes 1.024s
2021-04-25 22:27:59 |

2021-04-25 22:27:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:27:59 | ------------------------------------

2021-04-25 22:27:59 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-de1aac02-351c-4e17-9916-dabe9d1ceee9",
    "pubsub#title": "Node de1aac02-351c-4e17-9916-dabe9d1ceee9"
}

2021-04-25 22:27:59 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:28:00 | [Mutex] waiting for: [received:nodes:55a0725d-5e69-4c3b-a5e5-6a28c32b4ff1:localhost]

2021-04-25 22:28:00 | [Mutex] received everything.

2021-04-25 22:28:00 | [Mutex] isItemNotified: received:node:55a0725d-5e69-4c3b-a5e5-6a28c32b4ff1:localhost:node-de1aac02-351c-4e17-9916-dabe9d1ceee9:Node de1aac02-351c-4e17-9916-dabe9d1ceee9 :: true

deleteNodes 1.030s
2021-04-25 22:28:05 |

2021-04-25 22:28:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:05 | ------------------------------------

2021-04-25 22:28:05 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-de1aac02-351c-4e17-9916-dabe9d1ceee9"
}

2021-04-25 22:28:05 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:28:06 | [Mutex] waiting for: [received:nodes:4ddffcf1-2970-43d0-b5dc-7212af2d4d15:localhost]

2021-04-25 22:28:06 | [Mutex] received everything.

2021-04-25 22:28:06 | [Mutex] isItemNotified: received:node:4ddffcf1-2970-43d0-b5dc-7212af2d4d15:localhost:node-de1aac02-351c-4e17-9916-dabe9d1ceee9:Node de1aac02-351c-4e17-9916-dabe9d1ceee9 :: false

deleteSubnodes 1.067s
2021-04-25 22:28:04 |

2021-04-25 22:28:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:04 | ------------------------------------

2021-04-25 22:28:04 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335"
}

2021-04-25 22:28:04 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-04-25 22:28:05 | [Mutex] waiting for: [received:nodes:1be2e65b-eb05-4f34-b0be-4ae300193b5d:localhost]

2021-04-25 22:28:05 | [Mutex] received everything.

2021-04-25 22:28:05 | [Mutex] isItemNotified: received:node:1be2e65b-eb05-4f34-b0be-4ae300193b5d:localhost:node-fbe6a50a-4310-48b4-9723-3251fcec8335:Node fbe6a50a-4310-48b4-9723-3251fcec8335 :: false

2021-04-25 22:28:05 | [Mutex] waiting for: [received:nodes:c9b58579-edcd-479e-ae2e-cb6f27db18ac:localhost]

2021-04-25 22:28:05 | [Mutex] received everything.

2021-04-25 22:28:05 | [Mutex] isItemNotified: received:node:c9b58579-edcd-479e-ae2e-cb6f27db18ac:localhost:node-fbe6a50a-4310-48b4-9723-3251fcec8335:Node fbe6a50a-4310-48b4-9723-3251fcec8335 :: false

publishItemsToNodes 0.024s
2021-04-25 22:28:03 |

2021-04-25 22:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:03 | ------------------------------------

2021-04-25 22:28:03 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "entry": "<test>item-5ddc26c3-1979-45e9-8cd3-560a4cec885a</test>",
    "item-id": "item-5ddc26c3-1979-45e9-8cd3-560a4cec885a"
}

2021-04-25 22:28:03 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ddc26c3-1979-45e9-8cd3-560a4cec885a"
}

2021-04-25 22:28:03 | [Mutex] waiting for: [published:item:notifieditem-5ddc26c3-1979-45e9-8cd3-560a4cec885a:admin@test-domain.com]

2021-04-25 22:28:03 | [Mutex] received everything.

2021-04-25 22:28:03 | [Mutex] isItemNotified: published:item:notifieditem-5ddc26c3-1979-45e9-8cd3-560a4cec885a:admin@test-domain.com :: true

retractItemsFromNodes 0.102s
2021-04-25 22:28:03 |

2021-04-25 22:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:03 | ------------------------------------

2021-04-25 22:28:03 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "item-id": "item-5ddc26c3-1979-45e9-8cd3-560a4cec885a"
}

2021-04-25 22:28:03 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-5ddc26c3-1979-45e9-8cd3-560a4cec885a"
}

2021-04-25 22:28:03 | [Mutex] waiting for: [retracted:item:notifieditem-5ddc26c3-1979-45e9-8cd3-560a4cec885a:admin@test-domain.com]

2021-04-25 22:28:03 | [Mutex] received everything.

2021-04-25 22:28:03 | [Mutex] isItemNotified: retracted:item:notifieditem-5ddc26c3-1979-45e9-8cd3-560a4cec885a:admin@test-domain.com :: true

retrieveItemsFromNodes 0.112s
2021-04-25 22:28:03 |

2021-04-25 22:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:03 | ------------------------------------

2021-04-25 22:28:03 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "item-id": "item-5ddc26c3-1979-45e9-8cd3-560a4cec885a"
}

2021-04-25 22:28:03 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "item-id": "item-5ddc26c3-1979-45e9-8cd3-560a4cec885a",
    "item": [
        "<item id=\"item-5ddc26c3-1979-45e9-8cd3-560a4cec885a\"><test>item-5ddc26c3-1979-45e9-8cd3-560a4cec885a</test></item>"
    ]
}

2021-04-25 22:28:03 | [Mutex] notify: [retrieved:item:item-5ddc26c3-1979-45e9-8cd3-560a4cec885a:payload-matches:true:localhost]

2021-04-25 22:28:03 | [Mutex] received everything.

2021-04-25 22:28:03 | [Mutex] isItemNotified: retrieved:item:item-5ddc26c3-1979-45e9-8cd3-560a4cec885a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2021-04-25 22:28:03 |

2021-04-25 22:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:03 | ------------------------------------

2021-04-25 22:28:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-04-25 22:28:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
        "node-de1aac02-351c-4e17-9916-dabe9d1ceee9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2021-04-25 22:28:03 |

2021-04-25 22:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:03 | ------------------------------------

2021-04-25 22:28:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-fbe6a50a-4310-48b4-9723-3251fcec8335)"
}

2021-04-25 22:28:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.015s
2021-04-25 22:28:02 |

2021-04-25 22:28:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:02 | ------------------------------------

2021-04-25 22:28:02 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-25 22:28:02 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.010s
2021-04-25 22:28:03 |

2021-04-25 22:28:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-04-25 22:28:03 | ------------------------------------

2021-04-25 22:28:03 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-fbe6a50a-4310-48b4-9723-3251fcec8335",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-04-25 22:28:03 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}