Generated by TestNG with ReportNG at 21:58 PST on Tuesday 01 February 2022
root@785cf647a4ab / 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.227s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2022-02-01 22:16:43 |

2022-02-01 22:16:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:43 | ------------------------------------

2022-02-01 22:16:43 | [Mutex] waiting for: [configured:node:node-0a321884-26bc-4559-9af0-0153133d3664:node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1]

2022-02-01 22:16:43 | [Mutex] received everything.

2022-02-01 22:16:43 | [Mutex] isItemNotified: configured:node:node-0a321884-26bc-4559-9af0-0153133d3664:node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1 :: true

2022-02-01 22:16:44 | [Mutex] waiting for: [received:nodes:f1d3318d-7243-4170-82bc-550a34129bc8:localhost]

2022-02-01 22:16:44 | [Mutex] received everything.

2022-02-01 22:16:44 | [Mutex] isItemNotified: received:node:f1d3318d-7243-4170-82bc-550a34129bc8:localhost:node-0a321884-26bc-4559-9af0-0153133d3664:Node 0a321884-26bc-4559-9af0-0153133d3664 :: true

2022-02-01 22:16:44 | [Mutex] waiting for: [received:nodes:2ef365c5-fd9d-4043-99bb-7e32301a57a9:localhost]

2022-02-01 22:16:44 | [Mutex] received everything.

2022-02-01 22:16:44 | [Mutex] isItemNotified: received:node:2ef365c5-fd9d-4043-99bb-7e32301a57a9:localhost:node-0a321884-26bc-4559-9af0-0153133d3664:Node 0a321884-26bc-4559-9af0-0153133d3664 :: false

createNodes 1.842s
2022-02-01 22:16:40 |

2022-02-01 22:16:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:40 | ------------------------------------

2022-02-01 22:16:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "pubsub#title": "Node 0a321884-26bc-4559-9af0-0153133d3664"
}

2022-02-01 22:16:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:16:42 | [Mutex] waiting for: [received:nodes:153d13f5-2513-4b65-b50b-0351fc7f27da:localhost]

2022-02-01 22:16:42 | [Mutex] received everything.

2022-02-01 22:16:42 | [Mutex] isItemNotified: received:node:153d13f5-2513-4b65-b50b-0351fc7f27da:localhost:node-0a321884-26bc-4559-9af0-0153133d3664:Node 0a321884-26bc-4559-9af0-0153133d3664 :: true

createSubnodes 1.080s
2022-02-01 22:16:42 |

2022-02-01 22:16:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:42 | ------------------------------------

2022-02-01 22:16:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1",
    "pubsub#title": "Node 5cea0dfe-4b52-4a70-a9a7-2d81095776c1"
}

2022-02-01 22:16:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:16:43 | [Mutex] waiting for: [received:nodes:f91461be-674f-43f3-ae0a-7987b175ecab:localhost]

2022-02-01 22:16:43 | [Mutex] received everything.

2022-02-01 22:16:43 | [Mutex] isItemNotified: received:node:f91461be-674f-43f3-ae0a-7987b175ecab:localhost:node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1:Node 5cea0dfe-4b52-4a70-a9a7-2d81095776c1 :: true

deleteNodes 1.034s
2022-02-01 22:16:48 |

2022-02-01 22:16:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:48 | ------------------------------------

2022-02-01 22:16:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1"
}

2022-02-01 22:16:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:16:49 | [Mutex] waiting for: [received:nodes:71649de6-5fc2-4e53-b8bd-e308693aa502:localhost]

2022-02-01 22:16:49 | [Mutex] received everything.

2022-02-01 22:16:49 | [Mutex] isItemNotified: received:node:71649de6-5fc2-4e53-b8bd-e308693aa502:localhost:node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1:Node 5cea0dfe-4b52-4a70-a9a7-2d81095776c1 :: false

deleteSubnodes 1.037s
2022-02-01 22:16:47 |

2022-02-01 22:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:47 | ------------------------------------

2022-02-01 22:16:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664"
}

2022-02-01 22:16:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-02-01 22:16:48 | [Mutex] waiting for: [received:nodes:5492a764-85a6-4bc7-9af3-3bdd18ca3ec1:localhost]

2022-02-01 22:16:48 | [Mutex] received everything.

2022-02-01 22:16:48 | [Mutex] isItemNotified: received:node:5492a764-85a6-4bc7-9af3-3bdd18ca3ec1:localhost:node-0a321884-26bc-4559-9af0-0153133d3664:Node 0a321884-26bc-4559-9af0-0153133d3664 :: false

2022-02-01 22:16:48 | [Mutex] waiting for: [received:nodes:ca14fbf6-4824-4b86-8f37-7fa8353f0e52:localhost]

2022-02-01 22:16:48 | [Mutex] received everything.

2022-02-01 22:16:48 | [Mutex] isItemNotified: received:node:ca14fbf6-4824-4b86-8f37-7fa8353f0e52:localhost:node-0a321884-26bc-4559-9af0-0153133d3664:Node 0a321884-26bc-4559-9af0-0153133d3664 :: false

publishItemsToNodes 0.060s
2022-02-01 22:16:45 |

2022-02-01 22:16:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:45 | ------------------------------------

2022-02-01 22:16:45 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "entry": "<test>item-2945af58-ba79-45c3-acee-19abdbf8aba1</test>",
    "item-id": "item-2945af58-ba79-45c3-acee-19abdbf8aba1"
}

2022-02-01 22:16:45 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2945af58-ba79-45c3-acee-19abdbf8aba1"
}

2022-02-01 22:16:45 | [Mutex] waiting for: [published:item:notifieditem-2945af58-ba79-45c3-acee-19abdbf8aba1:admin@test-domain.com]

2022-02-01 22:16:45 | [Mutex] received everything.

2022-02-01 22:16:45 | [Mutex] isItemNotified: published:item:notifieditem-2945af58-ba79-45c3-acee-19abdbf8aba1:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2022-02-01 22:16:46 |

2022-02-01 22:16:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:46 | ------------------------------------

2022-02-01 22:16:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "item-id": "item-2945af58-ba79-45c3-acee-19abdbf8aba1"
}

2022-02-01 22:16:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-2945af58-ba79-45c3-acee-19abdbf8aba1"
}

2022-02-01 22:16:46 | [Mutex] received everything.

2022-02-01 22:16:46 | [Mutex] isItemNotified: retracted:item:notifieditem-2945af58-ba79-45c3-acee-19abdbf8aba1:admin@test-domain.com :: true

retrieveItemsFromNodes 0.069s
2022-02-01 22:16:45 |

2022-02-01 22:16:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:45 | ------------------------------------

2022-02-01 22:16:45 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "item-id": "item-2945af58-ba79-45c3-acee-19abdbf8aba1"
}

2022-02-01 22:16:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "item-id": "item-2945af58-ba79-45c3-acee-19abdbf8aba1",
    "item": [
        "<item id=\"item-2945af58-ba79-45c3-acee-19abdbf8aba1\"><test>item-2945af58-ba79-45c3-acee-19abdbf8aba1</test></item>"
    ]
}

2022-02-01 22:16:46 | [Mutex] notify: [retrieved:item:item-2945af58-ba79-45c3-acee-19abdbf8aba1:payload-matches:true:localhost]

2022-02-01 22:16:46 | [Mutex] received everything.

2022-02-01 22:16:46 | [Mutex] isItemNotified: retrieved:item:item-2945af58-ba79-45c3-acee-19abdbf8aba1:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2022-02-01 22:16:46 |

2022-02-01 22:16:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:46 | ------------------------------------

2022-02-01 22:16:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-02-01 22:16:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-0a321884-26bc-4559-9af0-0153133d3664",
        "node-5cea0dfe-4b52-4a70-a9a7-2d81095776c1"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2022-02-01 22:16:46 |

2022-02-01 22:16:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:46 | ------------------------------------

2022-02-01 22:16:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-0a321884-26bc-4559-9af0-0153133d3664)"
}

2022-02-01 22:16:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.012s
2022-02-01 22:16:44 |

2022-02-01 22:16:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:44 | ------------------------------------

2022-02-01 22:16:44 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-01 22:16:44 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2022-02-01 22:16:46 |

2022-02-01 22:16:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-02-01 22:16:46 | ------------------------------------

2022-02-01 22:16:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-0a321884-26bc-4559-9af0-0153133d3664",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-02-01 22:16:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}