Generated by TestNG with ReportNG at 21:13 PST on Monday 21 December 2020
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.426s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.134s
2020-12-21 21:30:48 |

2020-12-21 21:30:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:48 | ------------------------------------

2020-12-21 21:30:48 | [Mutex] waiting for: [configured:node:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:node-3377ae5b-c57a-4912-b44a-10a7dee68d1e]

2020-12-21 21:30:48 | [Mutex] received everything.

2020-12-21 21:30:48 | [Mutex] isItemNotified: configured:node:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:node-3377ae5b-c57a-4912-b44a-10a7dee68d1e :: true

2020-12-21 21:30:49 | [Mutex] waiting for: [received:nodes:28a1b33d-0a85-44b7-a15b-42f6541cf8b0:localhost]

2020-12-21 21:30:49 | [Mutex] received everything.

2020-12-21 21:30:49 | [Mutex] isItemNotified: received:node:28a1b33d-0a85-44b7-a15b-42f6541cf8b0:localhost:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:Node 02d44f85-ad21-4132-b92d-11fe4763ffc9 :: true

2020-12-21 21:30:49 | [Mutex] waiting for: [received:nodes:e6071df6-4171-4fa3-8662-46605a23cd7d:localhost]

2020-12-21 21:30:49 | [Mutex] received everything.

2020-12-21 21:30:49 | [Mutex] isItemNotified: received:node:e6071df6-4171-4fa3-8662-46605a23cd7d:localhost:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:Node 02d44f85-ad21-4132-b92d-11fe4763ffc9 :: false

createNodes 1.901s
2020-12-21 21:30:45 |

2020-12-21 21:30:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:45 | ------------------------------------

2020-12-21 21:30:46 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "pubsub#title": "Node 02d44f85-ad21-4132-b92d-11fe4763ffc9"
}

2020-12-21 21:30:46 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:30:47 | [Mutex] waiting for: [received:nodes:ace8c283-0f1f-4611-829a-84eefaa4d305:localhost]

2020-12-21 21:30:47 | [Mutex] waiting for: [received:nodes:ace8c283-0f1f-4611-829a-84eefaa4d305:localhost]

2020-12-21 21:30:47 | [Mutex] received everything.

2020-12-21 21:30:47 | [Mutex] isItemNotified: received:node:ace8c283-0f1f-4611-829a-84eefaa4d305:localhost:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:Node 02d44f85-ad21-4132-b92d-11fe4763ffc9 :: true

createSubnodes 1.035s
2020-12-21 21:30:47 |

2020-12-21 21:30:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:47 | ------------------------------------

2020-12-21 21:30:47 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-3377ae5b-c57a-4912-b44a-10a7dee68d1e",
    "pubsub#title": "Node 3377ae5b-c57a-4912-b44a-10a7dee68d1e"
}

2020-12-21 21:30:47 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:30:48 | [Mutex] waiting for: [received:nodes:201e7b08-1288-43dc-8a73-bd4d1284e344:localhost]

2020-12-21 21:30:48 | [Mutex] received everything.

2020-12-21 21:30:48 | [Mutex] isItemNotified: received:node:201e7b08-1288-43dc-8a73-bd4d1284e344:localhost:node-3377ae5b-c57a-4912-b44a-10a7dee68d1e:Node 3377ae5b-c57a-4912-b44a-10a7dee68d1e :: true

deleteNodes 1.025s
2020-12-21 21:30:53 |

2020-12-21 21:30:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:53 | ------------------------------------

2020-12-21 21:30:53 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-3377ae5b-c57a-4912-b44a-10a7dee68d1e"
}

2020-12-21 21:30:53 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:30:54 | [Mutex] waiting for: [received:nodes:98966ce9-3265-4b25-819c-5f8a15a54864:localhost]

2020-12-21 21:30:54 | [Mutex] received everything.

2020-12-21 21:30:54 | [Mutex] isItemNotified: received:node:98966ce9-3265-4b25-819c-5f8a15a54864:localhost:node-3377ae5b-c57a-4912-b44a-10a7dee68d1e:Node 3377ae5b-c57a-4912-b44a-10a7dee68d1e :: false

deleteSubnodes 1.031s
2020-12-21 21:30:52 |

2020-12-21 21:30:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:52 | ------------------------------------

2020-12-21 21:30:52 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9"
}

2020-12-21 21:30:52 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-12-21 21:30:53 | [Mutex] waiting for: [received:nodes:ee5e40b5-724c-4c42-b49c-dc076cf18153:localhost]

2020-12-21 21:30:53 | [Mutex] waiting for: [received:nodes:ee5e40b5-724c-4c42-b49c-dc076cf18153:localhost]

2020-12-21 21:30:53 | [Mutex] received everything.

2020-12-21 21:30:53 | [Mutex] isItemNotified: received:node:ee5e40b5-724c-4c42-b49c-dc076cf18153:localhost:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:Node 02d44f85-ad21-4132-b92d-11fe4763ffc9 :: false

2020-12-21 21:30:53 | [Mutex] waiting for: [received:nodes:25fe0625-4c99-4543-84b4-c182352db962:localhost]

2020-12-21 21:30:53 | [Mutex] received everything.

2020-12-21 21:30:53 | [Mutex] isItemNotified: received:node:25fe0625-4c99-4543-84b4-c182352db962:localhost:node-02d44f85-ad21-4132-b92d-11fe4763ffc9:Node 02d44f85-ad21-4132-b92d-11fe4763ffc9 :: false

publishItemsToNodes 0.037s
2020-12-21 21:30:50 |

2020-12-21 21:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:50 | ------------------------------------

2020-12-21 21:30:50 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "entry": "<test>item-1e8ef785-0001-420b-8822-5661fb15dc3e</test>",
    "item-id": "item-1e8ef785-0001-420b-8822-5661fb15dc3e"
}

2020-12-21 21:30:50 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1e8ef785-0001-420b-8822-5661fb15dc3e"
}

2020-12-21 21:30:50 | [Mutex] waiting for: [published:item:notifieditem-1e8ef785-0001-420b-8822-5661fb15dc3e:admin@test-domain.com]

2020-12-21 21:30:50 | [Mutex] received everything.

2020-12-21 21:30:50 | [Mutex] isItemNotified: published:item:notifieditem-1e8ef785-0001-420b-8822-5661fb15dc3e:admin@test-domain.com :: true

retractItemsFromNodes 0.108s
2020-12-21 21:30:50 |

2020-12-21 21:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:50 | ------------------------------------

2020-12-21 21:30:50 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "item-id": "item-1e8ef785-0001-420b-8822-5661fb15dc3e"
}

2020-12-21 21:30:51 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-1e8ef785-0001-420b-8822-5661fb15dc3e"
}

2020-12-21 21:30:51 | [Mutex] received everything.

2020-12-21 21:30:51 | [Mutex] isItemNotified: retracted:item:notifieditem-1e8ef785-0001-420b-8822-5661fb15dc3e:admin@test-domain.com :: true

retrieveItemsFromNodes 0.081s
2020-12-21 21:30:50 |

2020-12-21 21:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:50 | ------------------------------------

2020-12-21 21:30:50 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "item-id": "item-1e8ef785-0001-420b-8822-5661fb15dc3e"
}

2020-12-21 21:30:50 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "item-id": "item-1e8ef785-0001-420b-8822-5661fb15dc3e",
    "item": [
        "<item id=\"item-1e8ef785-0001-420b-8822-5661fb15dc3e\"><test>item-1e8ef785-0001-420b-8822-5661fb15dc3e</test></item>"
    ]
}

2020-12-21 21:30:50 | [Mutex] notify: [retrieved:item:item-1e8ef785-0001-420b-8822-5661fb15dc3e:payload-matches:true:localhost]

2020-12-21 21:30:50 | [Mutex] received everything.

2020-12-21 21:30:50 | [Mutex] isItemNotified: retrieved:item:item-1e8ef785-0001-420b-8822-5661fb15dc3e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.055s
2020-12-21 21:30:50 |

2020-12-21 21:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:50 | ------------------------------------

2020-12-21 21:30:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-12-21 21:30:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-3377ae5b-c57a-4912-b44a-10a7dee68d1e",
        "test",
        "node-02d44f85-ad21-4132-b92d-11fe4763ffc9"
    ]
}

retrieveUserSubscriptionsWithRegex 0.055s
2020-12-21 21:30:50 |

2020-12-21 21:30:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:50 | ------------------------------------

2020-12-21 21:30:50 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-02d44f85-ad21-4132-b92d-11fe4763ffc9)"
}

2020-12-21 21:30:50 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.014s
2020-12-21 21:30:49 |

2020-12-21 21:30:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:49 | ------------------------------------

2020-12-21 21:30:49 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:30:49 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.087s
2020-12-21 21:30:51 |

2020-12-21 21:30:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-12-21 21:30:51 | ------------------------------------

2020-12-21 21:30:51 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-02d44f85-ad21-4132-b92d-11fe4763ffc9",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-12-21 21:30:51 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}