Generated by TestNG with ReportNG at 22:15 PDT on Wednesday 12 May 2021
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 : 8.967s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.116s
2021-05-12 22:31:11 |

2021-05-12 22:31:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:11 | ------------------------------------

2021-05-12 22:31:11 | [Mutex] waiting for: [configured:node:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d]

2021-05-12 22:31:11 | [Mutex] received everything.

2021-05-12 22:31:11 | [Mutex] isItemNotified: configured:node:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d :: true

2021-05-12 22:31:12 | [Mutex] waiting for: [received:nodes:3ccf5921-7804-4608-8873-2edd8fd5ede1:localhost]

2021-05-12 22:31:12 | [Mutex] received everything.

2021-05-12 22:31:12 | [Mutex] isItemNotified: received:node:3ccf5921-7804-4608-8873-2edd8fd5ede1:localhost:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:Node cded9cbd-6b6d-4b21-832e-61220bdf411a :: true

2021-05-12 22:31:12 | [Mutex] waiting for: [received:nodes:7528e376-04f0-4df3-9536-b2d92b63f2d5:localhost]

2021-05-12 22:31:12 | [Mutex] waiting for: [received:nodes:7528e376-04f0-4df3-9536-b2d92b63f2d5:localhost]

2021-05-12 22:31:12 | [Mutex] received everything.

2021-05-12 22:31:12 | [Mutex] isItemNotified: received:node:7528e376-04f0-4df3-9536-b2d92b63f2d5:localhost:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:Node cded9cbd-6b6d-4b21-832e-61220bdf411a :: false

createNodes 1.581s
2021-05-12 22:31:08 |

2021-05-12 22:31:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:08 | ------------------------------------

2021-05-12 22:31:09 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "pubsub#title": "Node cded9cbd-6b6d-4b21-832e-61220bdf411a"
}

2021-05-12 22:31:09 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:31:10 | [Mutex] waiting for: [received:nodes:95993c8f-48d1-4f3e-b9d4-685573e4f2e8:localhost]

2021-05-12 22:31:10 | [Mutex] received everything.

2021-05-12 22:31:10 | [Mutex] isItemNotified: received:node:95993c8f-48d1-4f3e-b9d4-685573e4f2e8:localhost:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:Node cded9cbd-6b6d-4b21-832e-61220bdf411a :: true

createSubnodes 1.032s
2021-05-12 22:31:10 |

2021-05-12 22:31:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:10 | ------------------------------------

2021-05-12 22:31:10 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d",
    "pubsub#title": "Node 20a465d5-89ba-4ac1-bb1a-50d2b462dc5d"
}

2021-05-12 22:31:10 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2021-05-12 22:31:11 | [Mutex] waiting for: [received:nodes:f4352845-c970-4403-8b3d-0544964e1fd7:localhost]

2021-05-12 22:31:11 | [Mutex] received everything.

2021-05-12 22:31:11 | [Mutex] isItemNotified: received:node:f4352845-c970-4403-8b3d-0544964e1fd7:localhost:node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d:Node 20a465d5-89ba-4ac1-bb1a-50d2b462dc5d :: true

deleteNodes 1.020s
2021-05-12 22:31:15 |

2021-05-12 22:31:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:15 | ------------------------------------

2021-05-12 22:31:15 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d"
}

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

2021-05-12 22:31:16 | [Mutex] waiting for: [received:nodes:34529d5b-6d12-4143-abac-3663895dc1de:localhost]

2021-05-12 22:31:16 | [Mutex] waiting for: [received:nodes:34529d5b-6d12-4143-abac-3663895dc1de:localhost]

2021-05-12 22:31:16 | [Mutex] received everything.

2021-05-12 22:31:16 | [Mutex] isItemNotified: received:node:34529d5b-6d12-4143-abac-3663895dc1de:localhost:node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d:Node 20a465d5-89ba-4ac1-bb1a-50d2b462dc5d :: false

deleteSubnodes 1.027s
2021-05-12 22:31:14 |

2021-05-12 22:31:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:14 | ------------------------------------

2021-05-12 22:31:14 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a"
}

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

2021-05-12 22:31:15 | [Mutex] waiting for: [received:nodes:cda8e3fc-24e4-4965-8953-83a40f20dd51:localhost]

2021-05-12 22:31:15 | [Mutex] waiting for: [received:nodes:cda8e3fc-24e4-4965-8953-83a40f20dd51:localhost]

2021-05-12 22:31:15 | [Mutex] received everything.

2021-05-12 22:31:15 | [Mutex] isItemNotified: received:node:cda8e3fc-24e4-4965-8953-83a40f20dd51:localhost:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:Node cded9cbd-6b6d-4b21-832e-61220bdf411a :: false

2021-05-12 22:31:15 | [Mutex] waiting for: [received:nodes:38e42115-123c-49a7-9734-f82efa8e9c65:localhost]

2021-05-12 22:31:15 | [Mutex] received everything.

2021-05-12 22:31:15 | [Mutex] isItemNotified: received:node:38e42115-123c-49a7-9734-f82efa8e9c65:localhost:node-cded9cbd-6b6d-4b21-832e-61220bdf411a:Node cded9cbd-6b6d-4b21-832e-61220bdf411a :: false

publishItemsToNodes 0.048s
2021-05-12 22:31:13 |

2021-05-12 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:13 | ------------------------------------

2021-05-12 22:31:13 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "entry": "<test>item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c</test>",
    "item-id": "item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c"
}

2021-05-12 22:31:13 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c"
}

2021-05-12 22:31:13 | [Mutex] waiting for: [published:item:notifieditem-8d40d859-34bd-44cf-8eb9-5fa6bb91708c:admin@test-domain.com]

2021-05-12 22:31:13 | [Mutex] received everything.

2021-05-12 22:31:13 | [Mutex] isItemNotified: published:item:notifieditem-8d40d859-34bd-44cf-8eb9-5fa6bb91708c:admin@test-domain.com :: true

retractItemsFromNodes 0.056s
2021-05-12 22:31:13 |

2021-05-12 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:13 | ------------------------------------

2021-05-12 22:31:13 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "item-id": "item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c"
}

2021-05-12 22:31:13 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c"
}

2021-05-12 22:31:13 | [Mutex] received everything.

2021-05-12 22:31:13 | [Mutex] isItemNotified: retracted:item:notifieditem-8d40d859-34bd-44cf-8eb9-5fa6bb91708c:admin@test-domain.com :: true

retrieveItemsFromNodes 0.050s
2021-05-12 22:31:13 |

2021-05-12 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:13 | ------------------------------------

2021-05-12 22:31:13 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "item-id": "item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c"
}

2021-05-12 22:31:13 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "item-id": "item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c",
    "item": [
        "<item id=\"item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c\"><test>item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c</test></item>"
    ]
}

2021-05-12 22:31:13 | [Mutex] notify: [retrieved:item:item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c:payload-matches:true:localhost]

2021-05-12 22:31:13 | [Mutex] received everything.

2021-05-12 22:31:13 | [Mutex] isItemNotified: retrieved:item:item-8d40d859-34bd-44cf-8eb9-5fa6bb91708c:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.087s
2021-05-12 22:31:13 |

2021-05-12 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:13 | ------------------------------------

2021-05-12 22:31:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2021-05-12 22:31:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-20a465d5-89ba-4ac1-bb1a-50d2b462dc5d",
        "test",
        "node-cded9cbd-6b6d-4b21-832e-61220bdf411a"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2021-05-12 22:31:13 |

2021-05-12 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:13 | ------------------------------------

2021-05-12 22:31:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-cded9cbd-6b6d-4b21-832e-61220bdf411a)"
}

2021-05-12 22:31:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2021-05-12 22:31:12 |

2021-05-12 22:31:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:12 | ------------------------------------

2021-05-12 22:31:12 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-12 22:31:12 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.148s
2021-05-12 22:31:13 |

2021-05-12 22:31:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2021-05-12 22:31:13 | ------------------------------------

2021-05-12 22:31:13 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-cded9cbd-6b6d-4b21-832e-61220bdf411a",
    "jids": [
        "admin@test-domain.com"
    ]
}

2021-05-12 22:31:13 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}