Generated by TestNG with ReportNG at 23:49 PDT on Friday 18 September 2020
root@f53a97fae7d2 / 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.062s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.115s
2020-09-19 00:07:36 |

2020-09-19 00:07:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:36 | ------------------------------------

2020-09-19 00:07:36 | [Mutex] waiting for: [configured:node:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:node-3e79c157-c9e3-48d7-a858-ad450a40cb58]

2020-09-19 00:07:36 | [Mutex] received everything.

2020-09-19 00:07:36 | [Mutex] isItemNotified: configured:node:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:node-3e79c157-c9e3-48d7-a858-ad450a40cb58 :: true

2020-09-19 00:07:37 | [Mutex] waiting for: [received:nodes:d143a5e4-05a8-4eeb-ad7d-ba5633e035da:localhost]

2020-09-19 00:07:37 | [Mutex] received everything.

2020-09-19 00:07:37 | [Mutex] isItemNotified: received:node:d143a5e4-05a8-4eeb-ad7d-ba5633e035da:localhost:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:Node a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8 :: true

2020-09-19 00:07:37 | [Mutex] waiting for: [received:nodes:06b9ef73-1f73-4721-8d04-503c84f303a9:localhost]

2020-09-19 00:07:37 | [Mutex] waiting for: [received:nodes:06b9ef73-1f73-4721-8d04-503c84f303a9:localhost]

2020-09-19 00:07:37 | [Mutex] waiting for: [received:nodes:06b9ef73-1f73-4721-8d04-503c84f303a9:localhost]

2020-09-19 00:07:37 | [Mutex] received everything.

2020-09-19 00:07:37 | [Mutex] isItemNotified: received:node:06b9ef73-1f73-4721-8d04-503c84f303a9:localhost:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:Node a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8 :: false

createNodes 1.554s
2020-09-19 00:07:33 |

2020-09-19 00:07:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:33 | ------------------------------------

2020-09-19 00:07:34 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "pubsub#title": "Node a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8"
}

2020-09-19 00:07:34 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 00:07:35 | [Mutex] waiting for: [received:nodes:e4413160-4686-4114-ad7d-e1de9f7916c0:localhost]

2020-09-19 00:07:35 | [Mutex] received everything.

2020-09-19 00:07:35 | [Mutex] isItemNotified: received:node:e4413160-4686-4114-ad7d-e1de9f7916c0:localhost:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:Node a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8 :: true

createSubnodes 1.035s
2020-09-19 00:07:35 |

2020-09-19 00:07:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:35 | ------------------------------------

2020-09-19 00:07:35 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3e79c157-c9e3-48d7-a858-ad450a40cb58",
    "pubsub#title": "Node 3e79c157-c9e3-48d7-a858-ad450a40cb58"
}

2020-09-19 00:07:35 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 00:07:36 | [Mutex] waiting for: [received:nodes:71e9dbbe-a972-4c92-8c56-7e8a411acf2c:localhost]

2020-09-19 00:07:36 | [Mutex] received everything.

2020-09-19 00:07:36 | [Mutex] isItemNotified: received:node:71e9dbbe-a972-4c92-8c56-7e8a411acf2c:localhost:node-3e79c157-c9e3-48d7-a858-ad450a40cb58:Node 3e79c157-c9e3-48d7-a858-ad450a40cb58 :: true

deleteNodes 1.027s
2020-09-19 00:07:40 |

2020-09-19 00:07:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:40 | ------------------------------------

2020-09-19 00:07:40 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3e79c157-c9e3-48d7-a858-ad450a40cb58"
}

2020-09-19 00:07:40 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 00:07:41 | [Mutex] waiting for: [received:nodes:4b0f4544-32f1-4934-848b-d2440278ab63:localhost]

2020-09-19 00:07:41 | [Mutex] received everything.

2020-09-19 00:07:41 | [Mutex] isItemNotified: received:node:4b0f4544-32f1-4934-848b-d2440278ab63:localhost:node-3e79c157-c9e3-48d7-a858-ad450a40cb58:Node 3e79c157-c9e3-48d7-a858-ad450a40cb58 :: false

deleteSubnodes 1.029s
2020-09-19 00:07:39 |

2020-09-19 00:07:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:39 | ------------------------------------

2020-09-19 00:07:39 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8"
}

2020-09-19 00:07:39 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-19 00:07:40 | [Mutex] waiting for: [received:nodes:34508dca-ebe8-43d8-8432-59ec7a06e38e:localhost]

2020-09-19 00:07:40 | [Mutex] received everything.

2020-09-19 00:07:40 | [Mutex] isItemNotified: received:node:34508dca-ebe8-43d8-8432-59ec7a06e38e:localhost:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:Node a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8 :: false

2020-09-19 00:07:40 | [Mutex] waiting for: [received:nodes:20cd59d3-61a5-4eaf-b0fb-b5f713bf5a58:localhost]

2020-09-19 00:07:40 | [Mutex] received everything.

2020-09-19 00:07:40 | [Mutex] isItemNotified: received:node:20cd59d3-61a5-4eaf-b0fb-b5f713bf5a58:localhost:node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8:Node a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8 :: false

publishItemsToNodes 0.036s
2020-09-19 00:07:38 |

2020-09-19 00:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:38 | ------------------------------------

2020-09-19 00:07:38 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "entry": "<test>item-7d00f758-717c-41d5-a5b9-6305e4385c41</test>",
    "item-id": "item-7d00f758-717c-41d5-a5b9-6305e4385c41"
}

2020-09-19 00:07:38 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7d00f758-717c-41d5-a5b9-6305e4385c41"
}

2020-09-19 00:07:38 | [Mutex] waiting for: [published:item:notifieditem-7d00f758-717c-41d5-a5b9-6305e4385c41:admin@test-domain.com]

2020-09-19 00:07:38 | [Mutex] received everything.

2020-09-19 00:07:38 | [Mutex] isItemNotified: published:item:notifieditem-7d00f758-717c-41d5-a5b9-6305e4385c41:admin@test-domain.com :: true

retractItemsFromNodes 0.060s
2020-09-19 00:07:38 |

2020-09-19 00:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:38 | ------------------------------------

2020-09-19 00:07:38 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "item-id": "item-7d00f758-717c-41d5-a5b9-6305e4385c41"
}

2020-09-19 00:07:38 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-7d00f758-717c-41d5-a5b9-6305e4385c41"
}

2020-09-19 00:07:38 | [Mutex] received everything.

2020-09-19 00:07:38 | [Mutex] isItemNotified: retracted:item:notifieditem-7d00f758-717c-41d5-a5b9-6305e4385c41:admin@test-domain.com :: true

retrieveItemsFromNodes 0.065s
2020-09-19 00:07:38 |

2020-09-19 00:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:38 | ------------------------------------

2020-09-19 00:07:38 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "item-id": "item-7d00f758-717c-41d5-a5b9-6305e4385c41"
}

2020-09-19 00:07:38 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "item-id": "item-7d00f758-717c-41d5-a5b9-6305e4385c41",
    "item": [
        "<item id=\"item-7d00f758-717c-41d5-a5b9-6305e4385c41\"><test>item-7d00f758-717c-41d5-a5b9-6305e4385c41</test></item>"
    ]
}

2020-09-19 00:07:38 | [Mutex] notify: [retrieved:item:item-7d00f758-717c-41d5-a5b9-6305e4385c41:payload-matches:true:localhost]

2020-09-19 00:07:38 | [Mutex] received everything.

2020-09-19 00:07:38 | [Mutex] isItemNotified: retrieved:item:item-7d00f758-717c-41d5-a5b9-6305e4385c41:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.050s
2020-09-19 00:07:38 |

2020-09-19 00:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:38 | ------------------------------------

2020-09-19 00:07:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-19 00:07:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
        "node-3e79c157-c9e3-48d7-a858-ad450a40cb58"
    ]
}

retrieveUserSubscriptionsWithRegex 0.051s
2020-09-19 00:07:38 |

2020-09-19 00:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:38 | ------------------------------------

2020-09-19 00:07:38 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8)"
}

2020-09-19 00:07:38 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.016s
2020-09-19 00:07:37 |

2020-09-19 00:07:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:37 | ------------------------------------

2020-09-19 00:07:37 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-19 00:07:37 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.054s
2020-09-19 00:07:38 |

2020-09-19 00:07:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-19 00:07:38 | ------------------------------------

2020-09-19 00:07:38 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-a3ec80c9-a88b-4e70-bfc7-dbb9d0fb15f8",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-19 00:07:38 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}